/* ==========================================================================
   Nice B2B — sezione Home, Catalogo e Pubblico (agente A)
   Solo ciò che non è già nel core.
   ========================================================================== */

/* ---------- Home cliente loggato (YMuOc / mobile xWBgH) ---------- */
.n-home__welcome { display: flex; align-items: flex-end; gap: 24px; padding-top: 56px; padding-bottom: 32px; }
.n-home__welcome-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.n-home__conditions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: var(--fs-base); color: var(--ink-2); }
.n-home__conditions .n-link { color: var(--ink); }
.n-home__quick { display: flex; gap: 8px; }

.n-home__continue { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.n-home__more { display: contents; }
.n-home__card { display: flex; flex-direction: column; gap: 16px; }
.n-home__big { display: flex; align-items: baseline; gap: 8px; font-size: 32px; font-weight: var(--fw-semibold); letter-spacing: -1px; line-height: 1.15; }
.n-home__big small { font-size: var(--fs-md); font-weight: var(--fw-regular); letter-spacing: 0; color: var(--muted); }
.n-home__points { align-items: center; gap: 10px; }
.n-home__points .n-icon { --i: 26px; }
.n-home__points em { font-style: normal; font-size: var(--fs-lg); font-weight: var(--fw-bold); letter-spacing: 0; color: var(--accent-ink); }
.n-home__muted13 { font-size: var(--fs-md); }
.n-home__card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }

.n-home__head { margin-bottom: 24px; }
.n-home__filters { display: flex; gap: 6px; }
.n-home__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.n-home__grid > [hidden] { display: none; }

.n-freq__head { margin-bottom: 18px; }
.n-freq__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 0; list-style: none; }
.n-freq__item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); }
.n-freq__item img { width: 60px; height: 60px; flex: none; border-radius: 12px; object-fit: cover; background: var(--bg); }
.n-freq__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.n-freq__name { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 1.3; }
.n-freq__price { font-size: var(--fs-md); font-weight: var(--fw-bold); }
.n-freq__price span { font-weight: var(--fw-regular); color: var(--muted); }
.n-freq__add { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--r-pill); background: var(--bg); color: var(--ink); transition: transform var(--dur-1) var(--ease), background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.n-freq__add:hover { background: var(--line); }
.n-freq__add:active { transform: scale(.92); }
.n-freq__add .n-icon { --i: 16px; transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.n-freq__add .n-icon + .n-icon { position: absolute; opacity: 0; transform: scale(.4); }
.n-freq__add.is-done { background: var(--ok); color: #fff; }
.n-freq__add.is-done .n-icon:first-child { opacity: 0; transform: scale(.4); }
.n-freq__add.is-done .n-icon + .n-icon { opacity: 1; transform: none; }

.n-home__lines { padding-bottom: 72px; }

@media (max-width: 1024px) {
  .n-home__welcome { flex-direction: column; align-items: flex-start; padding-top: 40px; }
  .n-home__continue { grid-template-columns: 1fr 1fr; }
  .n-home__continue > .n-home__card:first-child { grid-column: 1 / -1; }
  .n-home__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .n-home__head { flex-direction: column; align-items: flex-start; }
  .n-home__filters { max-width: 100%; }
  .n-freq__list { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .n-home__welcome { padding-top: 24px; padding-bottom: 16px; gap: 16px; }
  .n-home__welcome .n-h1 { font-size: 25px; letter-spacing: -.6px; }
  .n-home__conditions { font-size: var(--fs-md); gap: 6px; }
  .n-home__conditions .n-link { flex-basis: 100%; text-decoration: none; }
  .n-home__quick { width: 100%; }
  .n-home__quick .n-btn { flex: 1; padding-inline: 12px; }

  .n-home__continue { display: flex; flex-direction: column; gap: 12px; padding-inline: 0; }
  .n-home__continue > .n-home__card:first-child { margin-inline: var(--gutter); }
  .n-home__card { padding: 20px; gap: 14px; }
  .n-home__more { display: flex; padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); gap: 12px; }
  .n-home__more > .n-home__card { width: 290px; }
  .n-home__big { font-size: 28px; }

  .n-home__head { margin-bottom: 14px; gap: 12px; }
  .n-home__head .n-section-head__sub { font-size: var(--fs-sm); }
  .n-home__filters { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); width: calc(100% + var(--gutter) * 2); max-width: none; }
  .n-home__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .n-home__grid::-webkit-scrollbar { display: none; }
  .n-home__grid > .n-card { flex: 0 0 234px; scroll-snap-align: start; }
  .n-home__all { margin-top: 16px; font-size: var(--fs-md); }
  .n-home__all .n-link { text-decoration: none; }

  .n-freq { padding: 20px 16px 8px; border-radius: var(--r-xl); background: var(--surface); }
  .n-freq__head { margin-bottom: 8px; align-items: center; }
  .n-freq__head .n-link { text-decoration: none; }
  .n-freq__list { display: flex; flex-direction: column; gap: 0; }
  .n-freq__item { padding: 12px 0; border-radius: 0; gap: 12px; }
  .n-freq__item img { width: 56px; height: 56px; }
  .n-freq__add { background: var(--ink); color: #fff; }
  .n-freq__add:hover { background: #333; }

  .n-home__lines { padding-bottom: 40px; }
}

/* ---------- Guida componenti (componenti.html) ---------- */
.n-guide__top { position: sticky; top: 0; z-index: var(--z-header); padding: 14px 0; background: rgba(247, 246, 244, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.n-guide { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 80px; }
.n-guide__nav { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.n-guide__nav a { padding: 6px 10px; border-radius: var(--r-sm); font-size: var(--fs-md); color: var(--ink-2); }
.n-guide__nav a:hover { background: var(--surface); color: var(--ink); }
.n-guide__main { display: flex; flex-direction: column; gap: 56px; min-width: 0; }
.n-guide__main code { font-family: var(--font-mono); font-size: .92em; padding: 1px 5px; border-radius: 5px; background: var(--surface); }
.n-guide__sec { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 90px; }
.n-guide__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.n-guide__swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.n-guide__swatches span { display: flex; flex-direction: column; justify-content: flex-end; min-height: 96px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-2); position: relative; overflow: hidden; }
.n-guide__swatches span::before { content: ""; position: absolute; inset: 0 0 44px 0; background: var(--sw); border-bottom: 1px solid var(--line); }
.n-guide__cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.n-guide__frame { border: 1px dashed #D9D6D1; border-radius: var(--r-md); }
.n-guide__frame .n-header { border-radius: var(--r-md); }
.n-guide__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 1024px) { .n-guide { grid-template-columns: 1fr; } .n-guide__nav { display: none; } .n-guide__cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .n-guide__cards, .n-guide__cols { grid-template-columns: 1fr; } .n-guide { padding-top: 24px; } }

/* ---------- Indice delle pagine (index.html) ---------- */
.n-index { display: flex; flex-direction: column; gap: 40px; padding-top: 56px; padding-bottom: 80px; max-width: 980px; }
.n-index__head { display: flex; flex-direction: column; gap: 18px; }
.n-index__sec { display: flex; flex-direction: column; gap: 12px; }
.n-index__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; list-style: none; }
.n-index__list li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); transition: transform var(--dur-2) var(--ease); }
.n-index__list li:hover { transform: translateY(-2px); }
.n-index__list a:first-child { font-weight: var(--fw-bold); }
.n-index__list span { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--muted); }
.n-index__alt { font-size: var(--fs-sm); color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) { .n-index { padding-top: 32px; } .n-index__list { grid-template-columns: 1fr; } }

/* ---------- Catalogo (RV9Om · mobile OfHme · filtri QSWRw) ---------- */
.n-cat-hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.n-cat-hero__inner { display: flex; flex-direction: column; align-items: center; gap: 14px; padding-top: 40px; padding-bottom: 36px; text-align: center; }
.n-cat-hero__title { font-size: 36px; font-weight: var(--fw-semibold); letter-spacing: -1px; }
.n-cat-hero__try { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.n-cat-hero__chips { gap: 8px; }
.n-cat-hero__note { display: flex; align-items: center; gap: 8px; padding-top: 6px; font-size: var(--fs-sm); color: var(--muted); text-align: left; }
.n-cat { display: flex; align-items: flex-start; gap: 32px; padding-top: 32px; }
.n-cat__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.n-cat__head { display: flex; align-items: center; gap: 16px; }
.n-cat__head .n-h4 { flex: 1; }
.n-cat__tools { display: flex; align-items: center; gap: 16px; }
.n-cat__more { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 8px 0; }
.n-cat-side { width: 248px; flex: none; display: flex; flex-direction: column; gap: 28px; position: sticky; top: calc(var(--header-h) + 16px); }
.n-cat-side--box { width: 260px; gap: 22px; padding: 20px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.n-cat-side__group { display: flex; flex-direction: column; gap: 2px; }
.n-cat-side__group > .n-eyebrow { margin-bottom: 6px; }
.n-cat-side__item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); font-size: var(--fs-md); transition: background-color var(--dur-1) var(--ease); }
.n-cat-side__item:hover { background: var(--surface); }
.n-cat-side__item.is-active { background: var(--surface); font-weight: var(--fw-bold); }
.n-cat-side__item.is-active .n-icon { color: var(--accent-ink); }
.n-cat-side__check { width: 100%; align-items: center; padding: 6px 2px; font-size: var(--fs-md); }
.n-cat-side__ages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.n-cat-side__age { min-height: 36px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-size: var(--fs-md); font-weight: var(--fw-bold); transition: background-color var(--dur-2) var(--ease), color var(--dur-2) var(--ease); }
.n-cat-side__age.is-active, .n-cat-side__age[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.n-cat-side__theme { display: flex; align-items: center; gap: 10px; padding: 5px 10px; font-size: var(--fs-md); }
.n-cat-side__theme span { width: 10px; height: 10px; border-radius: 3px; }
.n-cat-side__dl { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.n-cat-side__file { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: var(--fs-md); }
.n-cat-side__file > .n-icon:first-child { color: var(--accent-ink); }
.n-cat-title { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; }
.n-cat-title__row { display: flex; align-items: flex-end; gap: 16px; }
.n-cat-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.n-cat-active__chip { gap: 8px; }
.n-cat-active__chip.is-removing { opacity: 0; transform: scale(.9); transition: opacity var(--dur-2) var(--ease), transform var(--dur-2) var(--ease); }
.n-cat--filtered { padding-top: 20px; }
.n-cat-mbar { align-items: center; gap: 8px; }
.n-fsheet { display: flex; flex-direction: column; }
.n-fsheet__body { padding: 8px 20px 16px; display: flex; flex-direction: column; gap: 6px; overflow: auto; }
.n-fsheet__group { border: 0; padding: 12px 0 4px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.n-fsheet__group legend { padding: 0; margin-bottom: 10px; }
.n-fsheet__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.n-fsheet__chips .n-chip.is-active { border-color: var(--ink); }
.n-fsheet__check { width: 100%; align-items: center; font-size: var(--fs-lg); }
.n-fsheet__search { background: var(--bg); border-color: var(--bg); border-radius: var(--r-md); }
.n-fsheet__line { font-family: var(--font-fun); font-weight: 600; font-size: var(--fs-base); }
.n-fsheet__foot { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }

/* ---------- Linea (w8R9j) ---------- */
.n-line-hero-wrap { padding-top: 16px; }
.n-line-hero { display: flex; align-items: center; gap: 40px; padding: 40px 48px; border-radius: var(--r-xl); background: var(--line-diamantiny-soft); }
.n-line-hero__text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.n-line-hero__logo { padding: 10px 18px; border-radius: 14px; background: var(--surface); font-family: var(--font-fun); font-size: 44px; font-weight: 700; line-height: 1.1; color: var(--line-diamantiny); }
.n-line-hero__claim { font-size: 22px; }
.n-line-hero__stats { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.n-line-hero__stats li { padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--line-diamantiny); }
.n-line-hero__imgs { display: flex; align-items: center; gap: 12px; }
.n-line-hero__imgs img { width: 180px; height: 220px; border-radius: 16px; object-fit: cover; }
.n-line-hero__imgs img:nth-child(2) { width: 200px; height: 260px; }
.n-line-list { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; }
.n-line-list__bar { display: flex; align-items: center; gap: 12px; }
.n-line-list__chips { flex: 1; gap: 8px; }

/* ---------- Home visitatore (g6hgE) ---------- */
.n-vhero { display: flex; align-items: center; gap: 56px; padding-top: 72px; padding-bottom: 64px; }
.n-vhero__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.n-vhero__facts { display: flex; padding: 12px 0 0; list-style: none; }
.n-vhero__facts li { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 0 20px; border-left: 1px solid var(--line); }
.n-vhero__facts li:first-child { padding-left: 0; border-left: 0; }
.n-vhero__facts b { font-size: 22px; font-weight: var(--fw-semibold); letter-spacing: -.5px; }
.n-vhero__facts span { font-size: var(--fs-md); color: var(--muted); }
.n-vhero__mosaic { width: 560px; flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.n-vhero__mosaic img { width: 100%; height: 240px; border-radius: 24px; object-fit: cover; }
.n-vsteps-wrap { padding-bottom: 80px; }
.n-vsteps { display: flex; flex-direction: column; gap: 36px; }
.n-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 0; list-style: none; }
.n-steps__item { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.n-steps__num { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--accent-ink); }

@media (max-width: 1024px) {
  .n-cat-side { display: none; }
  .n-cat { padding-top: 20px; }
  .n-line-hero { flex-direction: column; align-items: flex-start; padding: 28px; }
  .n-vhero { flex-direction: column; align-items: stretch; padding-top: 40px; }
  .n-vhero__mosaic { width: 100%; }
  .n-steps { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 600px) {
  .n-cat-hero { background: transparent; border: 0; }
  .n-cat-hero__inner { align-items: flex-start; text-align: left; padding-top: 16px; padding-bottom: 8px; gap: 10px; }
  .n-cat-hero__title { font-size: 26px; letter-spacing: -.6px; display: flex; flex-direction: column; }
  .n-cat-hero__sep { display: none; }
  .n-cat-hero__count { font-size: var(--fs-base); font-weight: var(--fw-regular); letter-spacing: 0; color: var(--muted); }
  .n-cat-hero__try { flex-direction: column; align-items: flex-start; width: calc(100% + var(--gutter)); }
  .n-cat-hero__try .n-small { font-weight: var(--fw-bold); color: var(--ink); }
  .n-cat-hero__chips { width: 100%; padding-right: var(--gutter); }
  .n-cat-hero__note { width: 100%; padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); font-size: var(--fs-md); color: var(--ink-2); align-items: flex-start; }
  .n-cat-hero__note > .n-icon { display: none; }
  .n-cat-hero__note b { color: var(--ink); }
  .n-cat__main { gap: 12px; }
  .n-cat__more { flex-direction: column-reverse; gap: 10px; }
  .n-cat__more .n-btn { width: 100%; }
  .n-cat-active { gap: 6px; }
  .n-cat-active__chip { background: var(--accent-soft); color: var(--accent-ink); min-height: 30px; padding: 4px 10px; }
  .n-cat-active__chip .n-chip__x { color: var(--accent-ink); }
  .n-cat-active .n-chip:not(:nth-child(-n+3)) { display: none; }
  .n-line-hero { padding: 20px; gap: 16px; }
  .n-line-hero__logo { font-size: 32px; }
  .n-line-hero__imgs img, .n-line-hero__imgs img:nth-child(2) { width: 30vw; height: 36vw; }
  .n-vhero { padding-top: 28px; gap: 28px; }
  .n-vhero .n-display { font-size: 34px; letter-spacing: -1px; }
  .n-vhero__facts { flex-direction: column; gap: 14px; }
  .n-vhero__facts li { padding: 0 0 0 14px; border-left: 2px solid var(--accent); }
  .n-vhero__facts li:first-child { padding-left: 14px; border-left: 2px solid var(--accent); }
  .n-vhero__mosaic img { height: 150px; border-radius: 18px; }
  .n-vsteps .n-section-head { flex-direction: column; align-items: flex-start; }
  .n-panel--lg { padding: 24px; border-radius: var(--r-xl); }
}

/* ---------- Scheda prodotto (bW9uC · mobile eGKKC · o50F5Q) ---------- */
.n-pdp-top { padding-top: 20px; }
.n-pdp { display: flex; align-items: flex-start; gap: 48px; padding-top: 20px; }
.n-pdp__gallery { width: 620px; flex: none; display: flex; flex-direction: column; gap: 12px; }
.n-pdp__main { position: relative; height: 500px; border-radius: 16px; overflow: hidden; background: var(--bg); }
.n-pdp__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--dur-2) var(--ease), transform var(--dur-3) var(--ease); }
.n-pdp__tags { position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; }
.n-pdp__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.n-pdp__thumb { height: 100px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); transition: border-color var(--dur-2) var(--ease), transform var(--dur-1) var(--ease); }
.n-pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.n-pdp__thumb[aria-current="true"] { border: 2px solid var(--ink); }
.n-pdp__thumb:active { transform: scale(.97); }
.n-pdp__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.n-pdp__line-name { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); }
.n-pdp__line-name a { font-family: var(--font-fun); font-size: 20px; font-weight: 700; color: var(--line-diamantiny); }
.n-pdp__line-name span { color: var(--muted); }
.n-pdp__title { font-size: 30px; font-weight: var(--fw-semibold); letter-spacing: -.6px; line-height: 1.15; }
.n-pdp__codes { display: flex; flex-wrap: wrap; gap: 16px; font-size: var(--fs-sm); color: var(--muted); }
.n-pdp__codes b { color: var(--ink); font-size: var(--fs-base); margin-left: 4px; }
.n-pdp__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.n-pdp__chips li { padding: 5px 10px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.n-pdp__box { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.n-pdp__price { display: flex; align-items: flex-end; gap: 14px; }
.n-pdp__compare { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.n-pdp__compare .n-price__was { font-size: var(--fs-base); }
.n-pdp__hint { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--bg); font-size: var(--fs-sm); line-height: 1.45; color: var(--ink-2); }
.n-pdp__hint .n-icon { flex: none; margin-top: 1px; color: var(--muted); }
.n-pdp__hint--warn { background: var(--warn-soft); }
.n-pdp__hint--warn .n-icon { color: var(--warn); }
.n-pdp__qty { display: flex; align-items: center; gap: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.n-pdp__line { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.n-pdp__sum { font-size: var(--fs-lg); font-weight: var(--fw-semibold); }
.n-pdp__sum b { font-weight: 800; }
.n-pdp__min { display: flex; flex-direction: column; gap: 6px; }
.n-pdp__perks { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; font-size: var(--fs-md); color: var(--ink-2); }
.n-pdp__perks li { display: flex; align-items: center; gap: 10px; }
.n-pdp__perks .n-icon { --i: 16px; }
.n-pdp-details { padding-top: 40px; }
.n-pdp__acc { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 40px; border-top: 0; }
.n-pdp__acc .n-accordion__item { border-bottom: 0; }
.n-pdp__acc .n-accordion__btn { pointer-events: none; font-size: 20px; font-weight: var(--fw-semibold); }
.n-pdp__acc .n-accordion__btn .n-icon { display: none; }
.n-pdp__desc .n-accordion__panel { display: flex; flex-direction: column; gap: 12px; }
.n-pdp__content { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; font-size: var(--fs-base); color: var(--ink-2); }
.n-pdp__content li { display: flex; align-items: center; gap: 10px; }
.n-pdp__content .n-icon { color: var(--ok); }
.n-pdp__spec .n-accordion__panel { padding: 0; }
.n-pdp__table { width: 100%; border: 1px solid var(--line); border-radius: 14px; border-collapse: separate; border-spacing: 0; overflow: hidden; background: var(--surface); font-size: var(--fs-md); }
.n-pdp__table th, .n-pdp__table td { padding: 11px 18px; text-align: left; border-top: 1px solid var(--line); }
.n-pdp__table tr:first-child th, .n-pdp__table tr:first-child td { border-top: 0; }
.n-pdp__table th { width: 220px; font-weight: var(--fw-regular); color: var(--muted); }
.n-pdp__table td { font-weight: var(--fw-bold); }
.n-pdp-related { padding-bottom: 56px; }
.n-pdp-related .n-section-head { margin-bottom: 16px; }
.n-pdp-bar { display: none; }

/* ---------- Ricerca (dkKt1, WnpBP) ---------- */
.n-srch { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; }
.n-srch__interp { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.n-srch__ctl { display: flex; align-items: center; gap: 16px; }
.n-srch__related { display: flex; align-items: center; gap: 10px; }
.n-noresult-wrap { padding-top: 40px; }
.n-noresult { display: flex; align-items: center; gap: 40px; padding: 40px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.n-noresult__icon { width: 96px; height: 96px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.n-noresult__icon .n-icon { --i: 44px; }
.n-noresult__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.n-noresult__tips { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; font-size: var(--fs-base); color: var(--ink-2); }
.n-noresult__tips li { display: flex; align-items: center; gap: 10px; }
.n-noresult__tips .n-icon { color: var(--warn); }
.n-noresult__help { margin-top: 24px; align-items: center; }

@media (max-width: 1024px) {
  .n-pdp { flex-direction: column; gap: 24px; }
  .n-pdp__gallery { width: 100%; }
  .n-pdp__acc { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  .n-pdp-top { padding-top: 0; }
  .n-pdp-top .n-breadcrumb { display: none; }
  .n-pdp-back { align-items: center; justify-content: space-between; margin-inline: calc(var(--gutter) * -1); padding: 6px 4px 6px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--line); }
  .n-pdp-back a { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-md); font-weight: var(--fw-bold); }
  .n-pdp { padding-top: 0; gap: 16px; }
  .n-pdp__gallery { margin-inline: calc(var(--gutter) * -1); width: calc(100% + var(--gutter) * 2); }
  .n-pdp__main { height: 300px; border-radius: 0; }
  .n-pdp__thumbs { display: none; }
  .n-pdp__count { position: absolute; right: 16px; bottom: 16px; padding: 3px 10px; border-radius: var(--r-pill); background: rgba(28, 28, 28, .7); color: #fff; font-size: var(--fs-sm); font-weight: var(--fw-bold); }
  .n-pdp__dots { position: absolute; left: 16px; bottom: 20px; display: flex !important; gap: 6px; }
  .n-pdp__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
  .n-pdp__dots i:first-child { width: 18px; border-radius: 3px; background: #fff; }
  .n-pdp__info { gap: 12px; }
  .n-pdp__title { font-size: 24px; }
  .n-pdp__box { padding: 16px; }
  .n-pdp__price { flex-direction: column; align-items: flex-start; gap: 8px; }
  .n-pdp__perks { padding: 4px 0 0; }
  .n-pdp-details { padding-top: 16px; }
  .n-pdp__acc { gap: 0; border-top: 1px solid var(--line); }
  .n-pdp__acc .n-accordion__item { border-bottom: 1px solid var(--line); }
  .n-pdp__acc .n-accordion__btn { pointer-events: auto; font-size: var(--fs-xl); }
  .n-pdp__acc .n-accordion__btn .n-icon { display: inline; }
  .n-pdp__acc .n-accordion__panel[hidden] { display: none; }
  .n-pdp__table { border: 0; border-radius: 0; background: transparent; }
  .n-pdp__table th, .n-pdp__table td { padding: 8px 0; border: 0; }
  .n-pdp__table th { width: 45%; }
  .n-pdp-related .n-home__grid > .n-card:nth-child(n+3) { display: flex; }
  body:has(.n-pdp-bar) { --cartbar-h: 76px; }
  .n-pdp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-cartbar); display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(28,28,28,.06); }
  .n-pdp-bar__price { font-size: var(--fs-xl); font-weight: 800; }
  .n-pdp-bar__price--best { color: var(--best); }
  .n-srch { padding-top: 16px; gap: 14px; }
  .n-srch__interp { padding: 12px; }
  .n-srch__related { flex-direction: column; align-items: flex-start; }
  .n-srch__related .n-scroller { max-width: 100%; }
  .n-noresult { flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; }
  .n-noresult__icon { width: 64px; height: 64px; }
  .n-noresult__icon .n-icon { --i: 30px; }
  .n-noresult__help { flex-direction: column; align-items: flex-start; }
}
.n-pdp__info .n-stock { align-self: flex-start; }
.n-pdp__sum { display: flex; align-items: baseline; gap: 6px; }
.n-pdp__sum span { order: 1; }
.n-pdp__sum b { order: 2; }
.n-pdp__sum b::before { content: "= "; font-weight: var(--fw-semibold); }
@media (max-width: 600px) {
  .n-pdp__qty { flex-wrap: wrap; row-gap: 10px; }
  .n-pdp__line { display: contents; }
  .n-pdp__rule { order: 3; flex-basis: 100%; }
  .n-pdp__sum { order: 2; margin-left: auto; flex-direction: column; align-items: flex-end; gap: 0; }
  .n-pdp__sum b { order: 1; font-size: var(--fs-h4); }
  .n-pdp__sum b::before { content: none; }
  .n-pdp__sum span { order: 2; font-size: var(--fs-xs); color: var(--muted); font-weight: var(--fw-regular); }
}
@media (max-width: 600px) { .n-line-hero__imgs { width: 100%; } .n-line-hero__imgs img, .n-line-hero__imgs img:nth-child(2) { flex: 1; min-width: 0; width: auto; height: 130px; } .n-line-hero__imgs img:nth-child(2) { height: 150px; } }
.n-line-tile.is-active[style] { background: var(--c); border-color: var(--c); font-family: var(--font-fun); font-size: 19px; }

/* ---------- Revisione ---------- */
/* Filtri: barra Filtri/Ordina con il foglio fino a 1024 px (sotto, la colonna laterale è nascosta) */
.n-cat-mbar { display: none; }
@media (max-width: 1024px) {
  .n-cat-mbar { display: flex; }
  .n-cat__tools, .n-cat-title__row .n-select--pill { display: none; }
}
/* Scheda prodotto: nome in maiuscolo come nel frame desktop, prezzo al pubblico come testo normale */
.n-pdp__retail { font-size: var(--fs-base); color: var(--ink-2); }
@media (min-width: 601px) { .n-pdp__title { text-transform: uppercase; } }
@media (max-width: 600px) { .n-freq__add::after { content: ""; position: absolute; inset: -2px; } }
@media (max-width: 600px) {
  .n-cat-active__chip, .n-pdp__line-name a { position: relative; }
  .n-cat-active__chip::after { content: ""; position: absolute; inset: -7px 0; }
  .n-pdp__line-name a::after { content: ""; position: absolute; inset: -9px -4px; }
}
/* Hero della linea fluida anche tra 601 e 1024 px */
@media (max-width: 1024px) {
  .n-line-hero__imgs { width: 100%; }
  .n-line-hero__imgs img, .n-line-hero__imgs img:nth-child(2) { flex: 1 1 0; min-width: 0; width: auto; max-width: 100%; height: 200px; }
  .n-line-hero__imgs img:nth-child(2) { height: 230px; }
}
/* Guida: 4 card per riga solo da 1200 px; testata compatta su mobile */
@media (max-width: 1200px) { .n-guide__cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .n-guide__cards { grid-template-columns: 1fr; }
  .n-guide__top .n-logo__divider, .n-guide__top .n-logo__label { display: none; }
  .n-guide__top .n-row { --gap: 10px; }
}

/* ==========================================================================
   Laravel (agente catalogo): dati veri
   ========================================================================== */

/* Catalogo: età e chip come link veri (nel template erano bottoni dimostrativi) */
a.n-cat-side__age { display: grid; place-items: center; }
a.n-cat-active__chip { text-decoration: none; }

/* Colore della linea (--lc, impostato dalla pagina) al posto del viola di Diamantiny del template */
.n-line-hero[style*="--lc"] { background: color-mix(in srgb, var(--lc) 11%, var(--surface)); }
.n-line-hero[style*="--lc"] .n-line-hero__logo, .n-line-hero[style*="--lc"] .n-line-hero__stats li { color: var(--lc); }
.n-line-hero__logo:has(img) { padding: 12px 18px; }
.n-line-hero__logo img { display: block; width: auto; max-width: 280px; height: 76px; object-fit: contain; }
.n-pdp__line-name[style*="--lc"] a { color: var(--lc); }
@media (max-width: 600px) { .n-line-hero__logo img { height: 56px; max-width: 220px; } }
/* Galleria: il puntino attivo segue la foto */
@media (max-width: 600px) {
  .n-pdp__dots:has(.is-current) i:first-child:not(.is-current) { width: 6px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
  .n-pdp__dots i.is-current { width: 18px; border-radius: 3px; background: #fff; }
}
@media (max-width: 380px) { .n-cat-mbar { gap: 6px; } .n-cat-mbar .n-btn { padding-inline: 12px; } }

/* Slider delle linee con i loghi (offerta): stesse misure delle tessere del template; il nome resta per le linee senza logo */
.n-line-tile--logo { padding: 8px 14px; }
.n-line-tile__logo { display: block; width: auto; height: auto; max-width: 100%; max-height: 54px; object-fit: contain; }
.n-line-tile--logo.is-active[style] { background: var(--surface); border: 2px solid var(--c); }
@media (max-width: 600px) {
  .n-line-tile--logo { padding: 6px 14px; }
  .n-line-tile__logo { height: 34px; max-height: none; max-width: 132px; }
}

/* Product page, product already in the cart (cart-cards.js): note above the selector, "Vai al carrello" in orchid */
.n-pdp__incart { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent-ink); font-size: var(--fs-sm); line-height: 1.4; }
.n-pdp__incart .n-icon { flex: none; --i: 16px; }
.n-pdp__incart b { font-weight: var(--fw-bold); }
.n-pdp.is-cart-pending .n-pdp__incart { background: var(--bg); color: var(--ink-2); }
.n-pdp.is-cart-saved .n-pdp__incart { background: var(--ok-soft); color: var(--ok); font-weight: var(--fw-bold); }
.n-pdp__incart[hidden], .n-pdp [data-add][hidden], .n-pdp [data-tocart][hidden] { display: none; }
.n-btn--incart { background: var(--accent-ink); color: #fff; }
.n-btn--incart:hover { background: #8E3290; }

/* Search: words no product contains (ProductSearch), under "Ho capito che cerchi" */
.n-srch__ignored { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--muted); }
.n-srch__ignored .n-icon { flex: none; }
