/* ==========================================================================
   NEDRA SERVICE — DESIGN SYSTEM 2026
   Interfaccia in stile Apple: nero profondo, tipografia grande,
   vetro smerigliato, spazi generosi, movimento discreto.
   Caricato DOPO desktop.css / mobile.css: sovrascrive le basi.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. TOKEN
   -------------------------------------------------------------------------- */
:root{
  /* superfici */
  --n-black:      #000000;
  --n-bg:         #000000;
  --n-surface:    #0a0a0c;
  --n-surface-2:  #141416;
  --n-surface-3:  #1d1d1f;
  --n-elevated:   rgba(255,255,255,.045);

  /* testo */
  --n-text:       #f5f5f7;
  --n-text-2:     #a1a1a6;
  --n-text-3:     #6e6e73;

  /* linee */
  --n-line:       rgba(255,255,255,.10);
  --n-line-soft:  rgba(255,255,255,.06);
  --n-line-strong:rgba(255,255,255,.18);

  /* accenti */
  --n-blue:       #2997ff;
  --n-blue-dark:  #0071e3;
  --n-green:      #30d158;
  --n-red:        #ff453a;
  --n-amber:      #ffd60a;

  /* geometria */
  --n-nav-h:      52px;
  --n-max:        1120px;
  --n-max-wide:   1440px;
  --n-r-sm:       12px;
  --n-r-md:       18px;
  --n-r-lg:       28px;
  --n-r-xl:       36px;

  /* movimento */
  --n-ease:       cubic-bezier(.28,.11,.32,1);
  --n-ease-out:   cubic-bezier(.16,1,.3,1);

  /* compatibilità con il vecchio CSS */
  --nav-h:        52px;
  --accent:       #2997ff;
  --max-w:        1120px;
}

/* --------------------------------------------------------------------------
   2. BASE
   -------------------------------------------------------------------------- */
/* Il vecchio CSS imponeva html,body{height:100%}: unito a overflow-x
   trasformava il body in un contenitore di scroll separato e la pagina
   restava bloccata sull'hero. Qui si torna al comportamento normale. */
html{
  height: auto;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body,
body.page-wrapper{
  margin: 0;
  height: auto;
  min-height: 100vh;
  background: var(--n-bg);
  color: var(--n-text);
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
               "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--n-nav-h);
}

body::selection,
::selection{ background: rgba(41,151,255,.32); color:#fff; }

a{ color: var(--n-blue); text-decoration: none; }
a:hover{ filter: none; text-decoration: none; }

img{ max-width: 100%; }

/* i componenti qui sotto usano display:inline-flex: senza questa riga
   l'attributo hidden non nasconderebbe piu' nulla (es. badge carrello) */
[hidden]{ display: none !important; }

:focus-visible{
  outline: 2px solid var(--n-blue);
  outline-offset: 3px;
  border-radius: 8px;
}

/* scrollbar discreta */
::-webkit-scrollbar{ width: 10px; height: 10px; }
::-webkit-scrollbar-track{ background: transparent; }
::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.14);
  border-radius: 99px;
  border: 3px solid #000;
}
::-webkit-scrollbar-thumb:hover{ background: rgba(255,255,255,.24); }

/* --------------------------------------------------------------------------
   3. TIPOGRAFIA
   -------------------------------------------------------------------------- */
.n-eyebrow{
  display: block;
  font-size: clamp(.85rem, 1.4vw, 1.05rem);
  font-weight: 600;
  letter-spacing: .004em;
  color: var(--n-blue);
  margin: 0 0 .55rem;
}

.n-display{
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -.028em;
  margin: 0;
}

.n-h1{
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -.024em;
  margin: 0;
}

.n-h2{
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -.02em;
  margin: 0;
}

.n-h3{
  font-size: clamp(1.2rem, 2.1vw, 1.5rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.014em;
  margin: 0;
}

.n-lead{
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.42;
  color: var(--n-text-2);
  letter-spacing: -.012em;
  margin: 1rem 0 0;
}

.n-body{
  color: var(--n-text-2);
  font-size: 1rem;
  line-height: 1.55;
  margin: .7rem 0 0;
}

.n-muted{ color: var(--n-text-3); }
.n-center{ text-align: center; }

/* gradiente su titolo */
.n-gradient{
  background: linear-gradient(92deg, #ffffff 0%, #b8d8ff 42%, #2997ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --------------------------------------------------------------------------
   4. LAYOUT
   -------------------------------------------------------------------------- */
.n-section{
  padding: clamp(4.5rem, 10vw, 8.5rem) 0;
  position: relative;
}
.n-section--tight{ padding: clamp(3rem, 6vw, 5rem) 0; }
.n-section--surface{ background: var(--n-surface); }
.n-section--panel{ background: var(--n-surface-2); }

.n-wrap{
  width: 100%;
  max-width: var(--n-max);
  margin: 0 auto;
  padding: 0 22px;
}
.n-wrap--wide{ max-width: var(--n-max-wide); }
.n-wrap--narrow{ max-width: 760px; }

.n-head{
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.n-head .n-lead{ margin-top: 1.1rem; }

.n-divider{
  height: 1px;
  background: var(--n-line-soft);
  border: 0;
  margin: 0;
}

/* --------------------------------------------------------------------------
   5. BOTTONI
   -------------------------------------------------------------------------- */
.n-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.55rem;
  border-radius: 980px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s var(--n-ease),
              border-color .25s var(--n-ease),
              transform .25s var(--n-ease),
              opacity .25s var(--n-ease);
}
.n-btn:active{ transform: scale(.97); }

.n-btn--primary{
  background: var(--n-blue-dark);
  color: #fff;
}
.n-btn--primary:hover{ background: #0077ED; }

.n-btn--light{
  background: #f5f5f7;
  color: #1d1d1f;
}
.n-btn--light:hover{ background: #fff; }

.n-btn--ghost{
  background: transparent;
  color: var(--n-text);
  border-color: var(--n-line-strong);
}
.n-btn--ghost:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.32);
}

.n-btn--sm{ padding: .58rem 1.15rem; font-size: .9rem; }
.n-btn--lg{ padding: 1rem 2rem; font-size: 1.08rem; }
.n-btn--block{ width: 100%; }

/* link con chevron, alla Apple */
.n-link{
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--n-blue);
  font-size: 1.02rem;
  font-weight: 400;
  letter-spacing: -.01em;
}
.n-link::after{
  content: "\203A";
  font-size: 1.35em;
  line-height: 0;
  transform: translateY(-.03em);
  transition: transform .25s var(--n-ease);
}
.n-link:hover{ text-decoration: underline; }
.n-link:hover::after{ transform: translate(3px,-.03em); }

.n-actions{
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.4rem;
  align-items: center;
}
.n-actions--center{ justify-content: center; }

/* --------------------------------------------------------------------------
   6. NAVBAR
   -------------------------------------------------------------------------- */
.n-nav{
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--n-nav-h);
  z-index: 9000;
  background: rgba(10,10,12,.72);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border-bottom: 1px solid var(--n-line-soft);
}

.n-nav__inner{
  height: 100%;
  max-width: var(--n-max-wide);
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.n-nav__brand{
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  height: 100%;
}
.n-nav__brand img{
  height: 22px;
  width: auto;
  display: block;
  opacity: .95;
  transition: opacity .25s var(--n-ease);
}
.n-nav__brand:hover img{ opacity: 1; }

.n-nav__links{
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.3rem);
  margin: 0 auto;
  padding: 0;
  height: 100%;
}
.n-nav__links > li{ height: 100%; display: flex; align-items: center; }
.n-nav__links a{
  color: var(--n-text);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: -.005em;
  opacity: .88;
  transition: opacity .2s var(--n-ease);
  white-space: nowrap;
}
.n-nav__links a:hover{ opacity: 1; }

.n-nav__actions{
  display: flex;
  align-items: center;
  gap: .35rem;
  flex: 0 0 auto;
}

.n-nav__icon{
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--n-text);
  font-size: .95rem;
  cursor: pointer;
  position: relative;
  transition: background .2s var(--n-ease);
}
.n-nav__icon:hover{ background: rgba(255,255,255,.10); }

.n-nav__badge{
  position: absolute;
  top: 1px; right: 0;
  min-width: 15px; height: 15px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--n-blue-dark);
  color: #fff;
  font-size: .62rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* menu account */
.n-menu{ position: relative; }
.n-menu__panel{
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 226px;
  padding: .4rem;
  list-style: none;
  margin: 0;
  border-radius: var(--n-r-md);
  background: rgba(28,28,30,.86);
  backdrop-filter: saturate(180%) blur(26px);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
  border: 1px solid var(--n-line);
  box-shadow: 0 22px 60px rgba(0,0,0,.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.98);
  transform-origin: top right;
  transition: opacity .2s var(--n-ease), transform .2s var(--n-ease), visibility .2s;
}
.n-menu.is-open .n-menu__panel{
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.n-menu__panel a{
  display: block;
  padding: .55rem .75rem;
  border-radius: 10px;
  color: var(--n-text);
  font-size: .88rem;
}
.n-menu__panel a:hover{ background: rgba(255,255,255,.08); }
.n-menu__label{
  padding: .5rem .75rem .35rem;
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--n-text-3);
}
.n-menu__sep{
  height: 1px;
  background: var(--n-line-soft);
  margin: .35rem .4rem;
}

/* burger */
.n-nav__burger{ display: none; }

.n-nav__backdrop{
  position: fixed;
  inset: var(--n-nav-h) 0 0 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--n-ease), visibility .3s;
  z-index: 8500;
}
body.n-nav-open .n-nav__backdrop{ opacity: 1; visibility: visible; }
body.n-nav-open{ overflow: hidden; }

@media (max-width: 900px){
  .n-nav__burger{
    display: inline-flex;
    order: 3;
  }
  /* su mobile il menu esce dal flusso: le icone vanno spinte a destra a mano */
  .n-nav__actions{ margin-left: auto; }
  .n-nav__links{
    position: fixed;
    inset: var(--n-nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    max-height: calc(100vh - var(--n-nav-h));
    overflow-y: auto;
    padding: .6rem 22px 2rem;
    background: rgba(10,10,12,.97);
    backdrop-filter: saturate(180%) blur(22px);
    -webkit-backdrop-filter: saturate(180%) blur(22px);
    border-bottom: 1px solid var(--n-line);
    transform: translateY(-102%);
    /* chiuso: fuori schermo E inerte, altrimenti il pannello coprirebbe
       il pulsante burger e i tap non arriverebbero */
    visibility: hidden;
    pointer-events: none;
    transition: transform .4s var(--n-ease-out), visibility .4s;
    z-index: 8800;
  }
  body.n-nav-open .n-nav__links{
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }
  .n-nav__links > li{
    height: auto;
    display: block;
    border-bottom: 1px solid var(--n-line-soft);
  }
  .n-nav__links a{
    display: block;
    padding: 1rem .2rem;
    font-size: 1.3rem;
    font-weight: 550;
    letter-spacing: -.015em;
  }
  .n-nav__links{ margin: 0; }
}

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.n-hero{
  position: relative;
  min-height: min(92vh, 860px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.n-hero__video{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.n-hero__scrim{
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(0,0,0,.30) 0%, rgba(0,0,0,.72) 62%, #000 100%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 34%, rgba(0,0,0,.92) 100%);
}

.n-hero__inner{
  max-width: 900px;
  padding: 0 22px;
  position: relative;
}

.n-hero__logo{
  width: min(360px, 74vw);
  margin: 0 auto 2.2rem;
  display: block;
  filter: drop-shadow(0 8px 40px rgba(0,0,0,.7));
}

.n-hero .n-lead{
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(245,245,247,.82);
}

.n-hero .n-actions{ margin-top: 2.2rem; }

.n-hero__scroll{
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  font-size: 1.1rem;
  animation: n-bob 2.4s var(--n-ease) infinite;
}
@keyframes n-bob{
  0%,100%{ transform: translate(-50%, 0); opacity: .45; }
  50%    { transform: translate(-50%, 7px); opacity: .9; }
}

/* --------------------------------------------------------------------------
   8. CARD / GRIGLIE
   -------------------------------------------------------------------------- */
.n-grid{
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}
.n-grid--2{ grid-template-columns: repeat(2, 1fr); }
.n-grid--3{ grid-template-columns: repeat(3, 1fr); }
.n-grid--4{ grid-template-columns: repeat(4, 1fr); }
.n-grid--auto{ grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

@media (max-width: 900px){
  .n-grid--3, .n-grid--4{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .n-grid--2, .n-grid--3, .n-grid--4{ grid-template-columns: 1fr; }
}

.n-card{
  background: var(--n-surface-2);
  border: 1px solid var(--n-line-soft);
  border-radius: var(--n-r-lg);
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  position: relative;
  overflow: hidden;
  transition: transform .45s var(--n-ease-out),
              border-color .45s var(--n-ease),
              background .45s var(--n-ease);
}
.n-card:hover{
  transform: translateY(-5px);
  border-color: var(--n-line-strong);
  background: var(--n-surface-3);
}
.n-card__icon{
  width: 46px; height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--n-blue);
  background: rgba(41,151,255,.14);
  margin-bottom: 1.1rem;
}
.n-card h3{ font-size: 1.22rem; font-weight: 600; letter-spacing: -.015em; margin: 0; }
.n-card p{ color: var(--n-text-2); font-size: .97rem; margin: .55rem 0 0; }
.n-card .n-link{ margin-top: 1.1rem; }

/* card grande con immagine — "bento" alla Apple */
.n-tile{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 460px;
  border-radius: var(--n-r-xl);
  overflow: hidden;
  background: var(--n-surface-2);
  border: 1px solid var(--n-line-soft);
  isolation: isolate;
  text-align: center;
}
.n-tile--tall{ min-height: 560px; }
.n-tile--top{ justify-content: flex-start; }

.n-tile__media{
  position: absolute;
  inset: 0;
  z-index: -2;
}
.n-tile__media img,
.n-tile__media video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--n-ease-out);
}
.n-tile:hover .n-tile__media img{ transform: scale(1.045); }
.n-tile::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.12) 40%, rgba(0,0,0,.86) 100%);
}
.n-tile--top::before{
  background: linear-gradient(180deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.25) 55%, rgba(0,0,0,.35) 100%);
}
.n-tile__body{
  padding: clamp(1.8rem, 3.2vw, 2.6rem);
}
.n-tile__body h3{
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  font-weight: 650;
  letter-spacing: -.02em;
  margin: 0;
}
.n-tile__body p{
  color: rgba(245,245,247,.78);
  font-size: 1.02rem;
  margin: .6rem 0 0;
}
.n-tile__body .n-actions{ margin-top: 1.3rem; justify-content: center; }

/* --------------------------------------------------------------------------
   9. FEATURE ALTERNATA (testo + media)
   -------------------------------------------------------------------------- */
.n-feature{
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.n-feature--flip .n-feature__text{ order: 2; }
.n-feature__media{
  border-radius: var(--n-r-lg);
  overflow: hidden;
  border: 1px solid var(--n-line-soft);
  background: var(--n-surface-2);
  aspect-ratio: 4 / 3;
}
.n-feature__media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.n-feature .n-actions{ margin-top: 1.7rem; }

@media (max-width: 860px){
  .n-feature{ grid-template-columns: 1fr; }
  .n-feature--flip .n-feature__text{ order: 0; }
}

/* --------------------------------------------------------------------------
   10. STATISTICHE / STEP / LISTE
   -------------------------------------------------------------------------- */
.n-stats{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px,1fr));
  gap: 1px;
  background: var(--n-line-soft);
  border: 1px solid var(--n-line-soft);
  border-radius: var(--n-r-lg);
  overflow: hidden;
}
.n-stat{
  background: var(--n-surface);
  padding: clamp(1.6rem, 3vw, 2.3rem) 1.3rem;
  text-align: center;
}
.n-stat__value{
  display: block;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
}
.n-stat__label{
  display: block;
  margin-top: .55rem;
  font-size: .88rem;
  color: var(--n-text-2);
}

.n-steps{
  counter-reset: nstep;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(1.2rem, 2.4vw, 2rem);
}
.n-step{
  padding-top: 1.3rem;
  border-top: 1px solid var(--n-line);
  counter-increment: nstep;
}
.n-step::before{
  content: "0" counter(nstep);
  display: block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--n-blue);
  margin-bottom: .7rem;
}
.n-step h4{
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -.012em;
}
.n-step p{ margin: .45rem 0 0; color: var(--n-text-2); font-size: .95rem; }

.n-checklist{
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: .85rem;
}
.n-checklist li{
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  color: var(--n-text-2);
  font-size: 1rem;
}
.n-checklist li::before{
  content: "\2713";
  flex: 0 0 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(48,209,88,.16);
  color: var(--n-green);
  font-size: .72rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: .12rem;
}

/* pillole materiali / tag */
.n-pills{ display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.n-pill{
  padding: .38rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--n-line);
  background: var(--n-elevated);
  color: var(--n-text-2);
  font-size: .82rem;
  letter-spacing: -.005em;
}

/* --------------------------------------------------------------------------
   11. GALLERIA A SCORRIMENTO
   -------------------------------------------------------------------------- */
.n-rail{
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: .4rem 22px 1.6rem;
  margin: 0 -22px;
  scrollbar-width: none;
}
.n-rail::-webkit-scrollbar{ display: none; }
.n-rail__item{
  flex: 0 0 clamp(240px, 34vw, 380px);
  scroll-snap-align: center;
  aspect-ratio: 4 / 5;
  border-radius: var(--n-r-lg);
  overflow: hidden;
  border: 1px solid var(--n-line-soft);
  background: var(--n-surface-2);
}
.n-rail__item img,
.n-rail__item video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .8s var(--n-ease-out);
}
.n-rail__item:hover img{ transform: scale(1.05); }

.n-rail-nav{
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: -.4rem;
}
.n-rail-btn{
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--n-line);
  background: var(--n-elevated);
  color: var(--n-text);
  cursor: pointer;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--n-ease), opacity .2s var(--n-ease);
}
.n-rail-btn:hover{ background: rgba(255,255,255,.14); }
.n-rail-btn:disabled{ opacity: .3; cursor: default; }

/* --------------------------------------------------------------------------
   12. FORM
   -------------------------------------------------------------------------- */
.n-form{
  display: grid;
  gap: 1.1rem;
}
.n-form__grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.1rem;
}
.n-field{ display: flex; flex-direction: column; gap: .45rem; }
.n-field--full{ grid-column: 1 / -1; }
.n-field label{
  font-size: .84rem;
  font-weight: 500;
  color: var(--n-text-2);
  letter-spacing: -.005em;
}
.n-input,
.n-field input,
.n-field select,
.n-field textarea{
  width: 100%;
  padding: .85rem 1rem;
  border-radius: var(--n-r-sm);
  border: 1px solid var(--n-line);
  background: rgba(255,255,255,.04);
  color: var(--n-text);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: -.01em;
  transition: border-color .2s var(--n-ease), background .2s var(--n-ease);
}
.n-field textarea{ min-height: 150px; resize: vertical; }
.n-input::placeholder,
.n-field input::placeholder,
.n-field textarea::placeholder{ color: var(--n-text-3); }
.n-input:focus,
.n-field input:focus,
.n-field select:focus,
.n-field textarea:focus{
  outline: none;
  border-color: var(--n-blue);
  background: rgba(255,255,255,.07);
}
.n-field select option{ background: #1d1d1f; color: #f5f5f7; }
.n-note{ font-size: .84rem; color: var(--n-text-3); margin: 0; }

/* --------------------------------------------------------------------------
   13. FOOTER
   -------------------------------------------------------------------------- */
.n-footer{
  background: var(--n-surface);
  border-top: 1px solid var(--n-line-soft);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: .82rem;
  color: var(--n-text-2);
  margin-top: auto;
}
.n-footer__top{
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2.4rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid var(--n-line-soft);
}
@media (max-width: 820px){
  .n-footer__top{ grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 520px){
  .n-footer__top{ grid-template-columns: 1fr; }
}
.n-footer__brand img{ height: 26px; width: auto; opacity: .9; }
.n-footer__brand p{ margin: 1rem 0 0; max-width: 300px; color: var(--n-text-3); }
.n-footer h5{
  margin: 0 0 .9rem;
  font-size: .82rem;
  font-weight: 600;
  color: var(--n-text);
  letter-spacing: -.005em;
}
.n-footer ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.n-footer ul a{ color: var(--n-text-2); }
.n-footer ul a:hover{ color: var(--n-text); text-decoration: underline; }
.n-footer__social{ display: flex; gap: .6rem; margin-top: 1.4rem; }
.n-footer__social a{
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--n-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--n-text-2);
  transition: background .2s var(--n-ease), color .2s var(--n-ease);
}
.n-footer__social a:hover{ background: rgba(255,255,255,.1); color: var(--n-text); }
.n-footer__bottom{
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  justify-content: space-between;
  color: var(--n-text-3);
  font-size: .78rem;
}
.n-footer__bottom nav{ display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }

/* --------------------------------------------------------------------------
   14. REVEAL ALLO SCROLL
   -------------------------------------------------------------------------- */
.n-reveal{
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--n-ease-out), transform .9s var(--n-ease-out);
  will-change: opacity, transform;
}
.n-reveal.is-in{ opacity: 1; transform: none; }
.n-reveal[data-delay="1"]{ transition-delay: .09s; }
.n-reveal[data-delay="2"]{ transition-delay: .18s; }
.n-reveal[data-delay="3"]{ transition-delay: .27s; }
.n-reveal[data-delay="4"]{ transition-delay: .36s; }

@media (prefers-reduced-motion: reduce){
  .n-reveal{ opacity: 1 !important; transform: none !important; }
  html{ scroll-behavior: auto; }
  .n-hero__scroll{ animation: none; }
  *{ transition-duration: .01ms !important; }
}

/* --------------------------------------------------------------------------
   15. LIGHTBOX
   -------------------------------------------------------------------------- */
.n-lightbox{
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  animation: n-fade .3s var(--n-ease);
}
@keyframes n-fade{ from{ opacity:0 } to{ opacity:1 } }
.n-lightbox img,
.n-lightbox video{
  max-width: 100%;
  max-height: 92vh;
  border-radius: var(--n-r-md);
  box-shadow: 0 30px 90px rgba(0,0,0,.7);
}
.n-lightbox__close{
  position: absolute;
  top: 20px; right: 20px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.n-lightbox__close:hover{ background: rgba(255,255,255,.22); }

/* --------------------------------------------------------------------------
   16. TOAST
   -------------------------------------------------------------------------- */
/* ATTENZIONE: il vecchio desktop.css posiziona .toast-container in alto a
   destra (top/right). Se qui si impostassero solo left/bottom, i quattro lati
   si sommerebbero e il contenitore si stirerebbe su tutta la pagina, coprendo
   ogni click. Vanno quindi azzerati top e right in modo esplicito, e il
   contenitore resta comunque trasparente ai click. */
.toast-container{
  position: fixed;
  top: auto;
  right: auto;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  z-index: 13000;
  display: grid;
  gap: .5rem;
  pointer-events: none;
}
.toast-container:empty{ display: none; }
.toast,
.toast-notify{ pointer-events: auto; }
.toast,
.toast-notify{
  padding: .8rem 1.3rem;
  border-radius: 999px;
  background: rgba(28,28,30,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--n-line);
  color: var(--n-text);
  font-size: .9rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  animation: n-toast .4s var(--n-ease-out);
}
.toast-notify{
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 13000;
}
@keyframes n-toast{
  from{ opacity: 0; transform: translate(-50%, 16px); }
  to  { opacity: 1; transform: translate(-50%, 0); }
}

/* --------------------------------------------------------------------------
   17. PAGINE INTERNE — INTESTAZIONE
   -------------------------------------------------------------------------- */
.n-pagehead{
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.n-pagehead::after{
  content: "";
  position: absolute;
  inset: -40% 20% auto 20%;
  height: 420px;
  background: radial-gradient(closest-side, rgba(41,151,255,.16), transparent 72%);
  pointer-events: none;
}
.n-pagehead > *{ position: relative; z-index: 1; }

/* il vecchio banner GIF non serve più */
.banner-wrapper{ display: none !important; }

/* --------------------------------------------------------------------------
   18. UTILITY
   -------------------------------------------------------------------------- */
.n-mt-0{ margin-top: 0 !important; }
.n-mt-1{ margin-top: .6rem; }
.n-mt-2{ margin-top: 1.2rem; }
.n-mt-3{ margin-top: 2rem; }
.n-mt-4{ margin-top: 3rem; }
.n-hide{ display: none !important; }
@media (max-width: 700px){ .n-hide-mobile{ display: none !important; } }

/* --------------------------------------------------------------------------
   19. PAGINE DI ACCESSO (login, registrazione, recupero password)
   -------------------------------------------------------------------------- */
body.n-auth{
  padding-top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.n-auth__bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 45% at 50% 8%,  rgba(41,151,255,.20), transparent 70%),
    radial-gradient(45% 40% at 85% 92%, rgba(88,86,214,.16), transparent 72%),
    var(--n-black);
}

.n-auth__top{
  padding: 26px 22px 0;
  display: flex;
  justify-content: center;
}
.n-auth__top img{
  height: 30px;
  width: auto;
  opacity: .95;
  transition: opacity .25s var(--n-ease);
}
.n-auth__top a:hover img{ opacity: 1; }

.n-auth__main{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) 22px clamp(2rem, 5vw, 3.5rem);
}

.n-auth__card{
  width: 100%;
  max-width: 420px;
  background: rgba(20,20,22,.72);
  backdrop-filter: saturate(180%) blur(26px);
  -webkit-backdrop-filter: saturate(180%) blur(26px);
  border: 1px solid var(--n-line);
  border-radius: var(--n-r-lg);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: 0 30px 90px rgba(0,0,0,.6);
}

.n-auth__title{
  margin: 0;
  font-size: clamp(1.7rem, 3.4vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -.024em;
  line-height: 1.1;
  text-align: center;
}
.n-auth__sub{
  margin: .7rem 0 0;
  text-align: center;
  color: var(--n-text-2);
  font-size: .95rem;
  line-height: 1.45;
}

.n-auth__form{
  display: grid;
  gap: .85rem;
  margin-top: 1.9rem;
}

.n-auth__form input{
  width: 100%;
  padding: .95rem 1.05rem;
  border-radius: var(--n-r-sm);
  border: 1px solid var(--n-line);
  background: rgba(255,255,255,.05);
  color: var(--n-text);
  font-family: inherit;
  font-size: 1rem;
  letter-spacing: -.01em;
  transition: border-color .2s var(--n-ease), background .2s var(--n-ease);
}
.n-auth__form input::placeholder{ color: var(--n-text-3); }
.n-auth__form input:focus{
  outline: none;
  border-color: var(--n-blue);
  background: rgba(255,255,255,.08);
}

.n-auth__form button{
  margin-top: .35rem;
  width: 100%;
  padding: .95rem 1.5rem;
  border: 0;
  border-radius: 980px;
  background: var(--n-blue-dark);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .25s var(--n-ease), transform .25s var(--n-ease);
}
.n-auth__form button:hover{ background: #0077ED; }
.n-auth__form button:active{ transform: scale(.98); }

/* campo password con occhio */
.n-auth__pwd{ position: relative; }
.n-auth__pwd input{ padding-right: 3rem; }
/* Selettore con la stessa forza di `.n-auth__form button`, altrimenti quella
   regola vincerebbe e allargherebbe l'occhio a tutta la riga, coprendo il
   campo password e rendendolo impossibile da cliccare. */
.n-auth__form .n-auth__eye,
.n-auth__eye{
  position: absolute;
  top: 50%;
  right: .55rem;
  left: auto;
  transform: translateY(-50%);
  margin: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--n-text-3);
  font-size: .95rem;
  font-weight: 400;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .2s var(--n-ease), color .2s var(--n-ease);
}
.n-auth__form .n-auth__eye:hover,
.n-auth__eye:hover{ background: rgba(255,255,255,.09); color: var(--n-text); }
.n-auth__form .n-auth__eye:active{ transform: translateY(-50%); }

/* messaggio di errore */
.n-auth__error{
  display: none;
  align-items: flex-start;
  gap: .55rem;
  margin: 1.4rem 0 0;
  padding: .8rem 1rem;
  border-radius: var(--n-r-sm);
  border: 1px solid rgba(255,69,58,.35);
  background: rgba(255,69,58,.1);
  color: #ff9d96;
  font-size: .88rem;
  line-height: 1.4;
}
.n-auth__error.is-on{ display: flex; }

/* piede della card */
.n-auth__foot{
  margin: 1.6rem 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid var(--n-line-soft);
  text-align: center;
  font-size: .9rem;
  color: var(--n-text-2);
  display: grid;
  gap: .55rem;
}
.n-auth__foot a{ color: var(--n-blue); }
.n-auth__foot a:hover{ text-decoration: underline; }

.n-auth__hint{
  margin: 1rem 0 0;
  text-align: center;
  font-size: .8rem;
  color: var(--n-text-3);
  line-height: 1.45;
}

.n-auth__back{
  display: block;
  text-align: center;
  margin-top: 1.6rem;
  font-size: .85rem;
  color: var(--n-text-3);
}
.n-auth__back:hover{ color: var(--n-text-2); }

/* --------------------------------------------------------------------------
   20. RECENSIONI IN EVIDENZA (home)
   -------------------------------------------------------------------------- */
.n-quotes{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}

.n-quote{
  margin: 0;
  padding: clamp(1.6rem, 3vw, 2.3rem);
  border-radius: var(--n-r-lg);
  background: var(--n-surface-2);
  border: 1px solid var(--n-line-soft);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  transition: transform .45s var(--n-ease-out),
              border-color .45s var(--n-ease),
              background .45s var(--n-ease);
}
.n-quote:hover{
  transform: translateY(-5px);
  border-color: var(--n-line-strong);
  background: var(--n-surface-3);
}

.n-quote__stars i{ color: var(--n-amber); font-size: .9rem; }

.n-quote blockquote{
  margin: 0;
  flex: 1;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  line-height: 1.45;
  letter-spacing: -.014em;
  color: var(--n-text);
}

.n-quote figcaption{
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .7rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--n-line-soft);
}
.n-quote__prod{ font-size: .9rem; font-weight: 500; color: var(--n-text-2); }
.n-quote__date{ font-size: .8rem; color: var(--n-text-3); }

/* --------------------------------------------------------------------------
   21. SPECIFICHE (pagina Stampa 3D)
   -------------------------------------------------------------------------- */
.n-specs{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.9rem, 1.8vw, 1.4rem);
}
@media (max-width: 1000px){ .n-specs{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px){  .n-specs{ grid-template-columns: 1fr; } }

.n-spec{
  position: relative;
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  border-radius: var(--n-r-lg);
  background: var(--n-surface-2);
  border: 1px solid var(--n-line-soft);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  overflow: hidden;
  transition: border-color .45s var(--n-ease), background .45s var(--n-ease);
}
.n-spec:hover{ border-color: var(--n-line-strong); background: var(--n-surface-3); }

.n-spec--hero{
  grid-column: span 2;
  grid-row: span 2;
  justify-content: flex-end;
  background: linear-gradient(160deg, rgba(41,151,255,.13) 0%, var(--n-surface-2) 62%);
  border-color: rgba(41,151,255,.24);
  min-height: 340px;
}
@media (max-width: 1000px){ .n-spec--hero{ grid-column: span 2; grid-row: auto; } }
@media (max-width: 560px){  .n-spec--hero{ grid-column: span 1; } }

.n-spec__label{
  font-size: .8rem;
  font-weight: 500;
  color: var(--n-blue);
  letter-spacing: -.005em;
}
.n-spec__value{
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.02;
  font-variant-numeric: tabular-nums;
}
.n-spec__value--sm{
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  letter-spacing: -.018em;
  line-height: 1.25;
}
.n-spec__value .x{
  font-size: .52em;
  font-weight: 400;
  color: var(--n-text-3);
  margin: 0 .12em;
  vertical-align: .12em;
}
.n-spec__value .u{ font-size: .5em; color: var(--n-text-2); margin-left: .06em; }
.n-spec__unit{ font-size: .86rem; color: var(--n-text-2); }
.n-spec__note{ margin: .7rem 0 0; font-size: .84rem; color: var(--n-text-3); line-height: 1.45; }
/* il contenuto del riquadro grande sta dentro un wrapper: senza questo
   etichetta, numero e unita' finirebbero sulla stessa riga */
.n-spec__body{
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

/* cubo del volume di stampa, in CSS 3D.
   La dimensione sta in una variabile: le facce si spostano di meta' lato,
   e senza un valore concreto il cubo si aprirebbe come una scatola. */
.n-cube-stage{
  --cube: 190px;
  position: absolute;
  top: 9%;
  right: 6%;
  width: var(--cube);
  height: var(--cube);
  perspective: 760px;
  pointer-events: none;
}
@media (max-width: 1200px){ .n-cube-stage{ --cube: 160px; } }

.n-cube{
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  animation: n-cube-spin 24s linear infinite;
}
.n-cube__f{
  position: absolute;
  inset: 0;
  border: 1px solid rgba(41,151,255,.55);
  background: rgba(41,151,255,.045);
  box-shadow: inset 0 0 40px rgba(41,151,255,.12);
}
.n-cube__f--front { transform: translateZ(calc(var(--cube) / 2)); }
.n-cube__f--back  { transform: rotateY(180deg) translateZ(calc(var(--cube) / 2)); }
.n-cube__f--right { transform: rotateY(90deg)  translateZ(calc(var(--cube) / 2)); }
.n-cube__f--left  { transform: rotateY(-90deg) translateZ(calc(var(--cube) / 2)); }
.n-cube__f--top   { transform: rotateX(90deg)  translateZ(calc(var(--cube) / 2)); }
.n-cube__f--bottom{
  transform: rotateX(-90deg) translateZ(calc(var(--cube) / 2));
  background: rgba(41,151,255,.10);
}

@keyframes n-cube-spin{
  from{ transform: rotateX(-20deg) rotateY(0deg); }
  to  { transform: rotateX(-20deg) rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce){
  .n-cube{ animation: none; transform: rotateX(-22deg) rotateY(-32deg); }
}
@media (max-width: 560px){
  .n-cube-stage{
    --cube: 140px;
    position: relative;
    top: 0; right: 0;
    margin: 0 auto 1.4rem;
  }
  .n-spec--hero{ align-items: center; text-align: center; }
}

/* --------------------------------------------------------------------------
   22. SAGOME DEGLI SCHERMI (pagina Siti Web)
   Solo bordi in CSS: nessuna immagine, nessuna libreria.
   -------------------------------------------------------------------------- */
.n-screens{
  position: absolute;
  top: 12%;
  right: 6%;
  width: min(230px, 48%);
  aspect-ratio: 4 / 3;
  pointer-events: none;
}
.n-screens span{
  position: absolute;
  display: block;
  border: 1px solid rgba(41,151,255,.55);
  border-radius: 6px;
  background: rgba(41,151,255,.05);
  box-shadow: inset 0 0 30px rgba(41,151,255,.12);
  animation: n-screen-float 7s var(--n-ease) infinite;
}
/* barra superiore: fa leggere la sagoma come uno schermo */
.n-screens span::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 7px;
  border-bottom: 1px solid rgba(41,151,255,.35);
  background: rgba(41,151,255,.10);
  border-radius: 5px 5px 0 0;
}

/* i tre schermi si sfalsano invece di sovrapporsi a meta':
   cosi' si distinguono le sagome */
.n-screens__desk{
  top: 0; left: 0;
  width: 76%; height: 58%;
}
.n-screens__tab{
  bottom: 0; left: 6%;
  width: 38%; height: 38%;
  animation-delay: .6s;
}
.n-screens__phone{
  bottom: 0; right: 4%;
  width: 19%; height: 50%;
  border-radius: 9px;
  animation-delay: 1.2s;
}
.n-screens__phone::before{ height: 5px; }

@keyframes n-screen-float{
  0%, 100%{ transform: translateY(0); }
  50%     { transform: translateY(-7px); }
}

@media (prefers-reduced-motion: reduce){
  .n-screens span{ animation: none; }
}
@media (max-width: 560px){
  .n-screens{
    position: relative;
    top: 0; right: 0;
    width: 190px;
    margin: 0 auto 1.4rem;
  }
}
