/* Nexus Studio – stili del front-end: pulsanti, costruttore intestazione, pannello mobile, ricerca, popup,
   barre laterali, piè di pagina "Sito", sezioni dei siti predefiniti (editor a blocchi). */

/* ---------- Pulsanti: forma da Opzioni tema ---------- */
.nx-btn, .wp-block-button__link, .button, button.button, input[type="submit"] { border-radius: var(--nx-btn-radius, 999px); }
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: inherit; border: 2px solid currentColor; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.nx-brand--text { font: 700 1.35rem/1 var(--nx-font-display); letter-spacing: -.02em; color: inherit; text-decoration: none; }

/* ---------- Costruttore intestazione ---------- */
.nx-hb { position: relative; z-index: 60; view-transition-name: nx-header; }
.nx-hb--sticky { position: sticky; top: 0; }
body.admin-bar .nx-hb--sticky { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nx-hb--sticky { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .nx-hb--sticky { top: 0; } }
.nx-hb__row { display: flex; align-items: center; min-height: var(--nx-hb-h, 76px); transition: background-color .25s ease, color .25s ease; }
.nx-hb__row--main { border-bottom: 1px solid var(--nx-line); }
.nx-hb__row--top { font-size: .88rem; }
.nx-hb__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; min-height: inherit; }
.nx-hb__zone { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.nx-hb__zone--center { justify-content: center; }
.nx-hb__zone--right { justify-content: flex-end; }
.nx-hb__zone:empty { min-width: 0; }
/* Zona centrale vuota: la sinistra (es. menu) usa tutto lo spazio che le serve invece di un terzo della riga */
.nx-hb__inner:has(> .nx-hb__zone--center:empty) { grid-template-columns: minmax(0, max-content) 0 minmax(0, 1fr); }
.nx-hb-bg--surface { background: var(--nx-surface); color: var(--nx-fg); }
.nx-hb-bg--paper { background: var(--nx-bg); color: var(--nx-fg); }
.nx-hb-bg--primary { background: var(--nx-primary); color: var(--nx-on-primary); }
.nx-hb-bg--ink { background: var(--nx-ink); color: var(--nx-paper); }
.nx-hb-bg--accent { background: var(--nx-accent); color: var(--nx-on-accent); }
.nx-hb-bg--transparent { background: transparent; color: inherit; }
.nx-hb-bg--primary, .nx-hb-bg--ink, .nx-hb-bg--accent { border-bottom-color: transparent; }
.nx-hb--shadow.is-stuck .nx-hb__view { box-shadow: 0 10px 30px -18px rgb(8 12 50 / .45); }
.nx-hb .nx-cart, .nx-hb .nx-brand { color: inherit; }
.nx-hb__logo { display: flex; align-items: center; min-width: 0; }
.nx-hb .custom-logo { max-height: calc(var(--nx-hb-h, 76px) - 24px); }

/* Menu dentro l'intestazione, con sottomenu a tendina */
.nx-hb__nav .nx-menu { flex-wrap: wrap; gap: .15rem; }
.nx-hb__nav .nx-menu a { color: inherit; }
.nx-hb__nav .nx-menu a:hover, .nx-hb__nav .nx-menu .current-menu-item > a { background: color-mix(in oklab, currentColor 10%, transparent); }
.nx-hb__nav--secondary .nx-menu a { font-size: .88rem; padding: .3rem .6rem; }
.nx-hb .menu-item-has-children { position: relative; }
.nx-hb .menu-item-has-children > a::after { content: ""; display: inline-block; width: .38em; height: .38em; margin-left: .45em; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-.2em) rotate(45deg); opacity: .7; }
.nx-hb .sub-menu { position: absolute; top: 100%; left: 0; z-index: 5; min-width: 14rem; padding: .5rem; list-style: none; margin: 0; background: var(--nx-surface); color: var(--nx-fg); border: 1px solid var(--nx-line); border-radius: 14px; box-shadow: 0 24px 40px -24px rgb(8 12 50 / .45); }
.nx-hb .menu-item-has-children:hover > .sub-menu, .nx-hb .menu-item-has-children:focus-within > .sub-menu { display: block; }
.nx-hb .sub-menu a { border-radius: 8px; }
.nx-hb .sub-menu .sub-menu { top: 0; left: 100%; }

/* Icone, contatti, social, separatore */
.nx-hb__icon, .nx-hb__burger { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; position: relative; }
.nx-hb__icon:hover, .nx-hb__burger:hover { background: color-mix(in oklab, currentColor 10%, transparent); }
.nx-hb__burger .nx-burger__bars, .nx-hb__burger .nx-burger__bars::before { width: 1.25rem; }
.nx-hb__burger .nx-burger__bars { top: 44%; }
.nx-hb__contact { display: inline-flex; align-items: center; gap: .4rem; color: inherit; text-decoration: none; font-weight: 550; white-space: nowrap; }
.nx-hb__contact svg { width: 1.05em; height: 1.05em; }
.nx-hb__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .92; }
.nx-hb__text a { color: inherit; }
.nx-hb__social { display: flex; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nx-hb__social a { display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border-radius: 50%; color: inherit; }
.nx-hb__social a:hover { background: color-mix(in oklab, currentColor 12%, transparent); }
.nx-hb__divider { width: 1px; height: 1.1em; background: currentColor; opacity: .3; }

/* Desktop / mobile */
.nx-hb__view--mobile { display: none; }
@media (max-width: 991px) {
  .nx-hb__view--desktop { display: none; }
  .nx-hb__view--mobile { display: block; }
  .nx-hb__view--mobile .nx-hb__contact span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nx-hb__view--mobile .nx-hb__contact { width: 2.6rem; height: 2.6rem; justify-content: center; }
  .nx-hb__view--mobile .nx-hb__zone { gap: .25rem; }
  .nx-hb__view--mobile .nx-hb__text { white-space: normal; text-align: center; font-size: .82rem; line-height: 1.3; padding-block: .35rem; }
  .nx-hb__view--mobile .nx-hb__nav, .nx-hb__view--mobile .nx-btn { display: none; }
}

/* Trasparente sopra la prima sezione (home o pagine scelte) */
.nx-hb--transparent { position: absolute; inset-inline: 0; top: 0; }
.nx-hb--transparent.nx-hb--sticky { position: fixed; }
body.admin-bar .nx-hb--transparent { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nx-hb--transparent { top: 46px; } }
.nx-hb--transparent:not(.is-stuck) .nx-hb__row { background: transparent; color: #fff; border-bottom-color: rgb(255 255 255 / .16); }
.nx-hb--transparent:not(.is-stuck) .nx-logo:not(.nx-logo--light) { display: none; }
.nx-hb--transparent:not(.is-stuck) .nx-logo--light { display: block; }
.nx-hb--transparent.is-stuck .nx-hb__row--main { background: var(--nx-surface); color: var(--nx-fg); }
.nx-hb--transparent ~ main > :first-child { padding-top: max(8rem, calc(var(--nx-hb-h, 76px) + 4rem)); }

/* ---------- Pannello mobile (menu a scomparsa) ---------- */
.nx-drawer { position: fixed; inset: 0; z-index: 100; }
.nx-drawer[hidden] { display: none; }
.nx-drawer__backdrop { position: absolute; inset: 0; background: rgb(8 12 30 / .5); animation: nx-fade .2s ease; }
.nx-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); overflow-y: auto; display: flex; flex-direction: column; gap: 1.2rem; padding: 4.5rem 1.4rem 2rem; background: var(--nx-bg); color: var(--nx-fg); box-shadow: -20px 0 50px -20px rgb(8 12 50 / .4); animation: nx-slide .25s cubic-bezier(.2, .8, .2, 1); }
.nx-drawer__close { position: absolute; top: 1rem; right: 1rem; display: inline-flex; width: 2.6rem; height: 2.6rem; align-items: center; justify-content: center; border: 1px solid var(--nx-line); border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.nx-drawer .nx-menu { flex-direction: column; gap: 0; }
.nx-drawer .nx-menu a { padding: .85rem .3rem; border-radius: 0; border-bottom: 1px solid var(--nx-line); font-size: 1.08rem; }
.nx-drawer .sub-menu { display: block; list-style: none; margin: 0; padding: 0 0 0 1rem; }
.nx-drawer .sub-menu a { font-size: .98rem; }
.nx-drawer .nx-hb__nav--secondary .nx-menu a { font-size: .95rem; border-bottom: 0; padding: .45rem .3rem; }
.nx-drawer .nx-btn { align-self: flex-start; }
.nx-drawer .nx-hb__contact span { position: static; width: auto; height: auto; clip-path: none; }
@keyframes nx-slide { from { transform: translateX(100%); } to { transform: none; } }
@keyframes nx-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Ricerca a tutto schermo ---------- */
.nx-searchbox { position: fixed; inset: 0; z-index: 110; display: flex; align-items: flex-start; padding-top: 18vh; background: color-mix(in oklab, var(--nx-bg) 96%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: nx-fade .2s ease; }
.nx-searchbox[hidden] { display: none; }
.nx-searchbox .nx-wrap { position: relative; }
.nx-searchbox__form { display: flex; gap: .8rem; }
.nx-searchbox__form input[type="search"] { flex: 1; font-size: clamp(1.2rem, 1rem + 1.2vw, 1.8rem); padding: 1rem 1.2rem; border-radius: var(--nx-radius); }
.nx-searchbox__close { position: absolute; top: -4rem; right: 0; display: inline-flex; width: 3rem; height: 3rem; align-items: center; justify-content: center; border: 1px solid var(--nx-line); border-radius: 50%; background: transparent; color: var(--nx-fg); cursor: pointer; }
@media (max-width: 600px) { .nx-searchbox__form { flex-direction: column; } }

/* ---------- Popup ---------- */
.nx-popup { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.nx-popup[hidden] { display: none; }
.nx-popup__backdrop { position: absolute; inset: 0; background: rgb(8 12 30 / .55); animation: nx-fade .2s ease; }
.nx-popup__box { position: relative; width: min(100%, 560px); max-height: calc(100vh - 2rem); overflow-y: auto; padding: clamp(1.6rem, 4vw, 2.6rem); background: var(--nx-surface); color: var(--nx-fg); border-radius: var(--nx-radius); box-shadow: 0 40px 80px -30px rgb(8 12 50 / .55); animation: nx-pop .28s cubic-bezier(.2, .8, .2, 1); }
.nx-popup--small .nx-popup__box { width: min(100%, 400px); }
.nx-popup--large .nx-popup__box { width: min(100%, 880px); }
.nx-popup__close { position: absolute; top: .7rem; right: .7rem; display: inline-flex; width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--nx-tint); color: inherit; cursor: pointer; }
.nx-popup__body > :last-child { margin-bottom: 0; }
.nx-popup__body .wp-block-buttons { margin-top: 1rem; }
.nx-popup--corner, .nx-popup--bar { pointer-events: none; align-items: flex-end; justify-content: flex-end; }
.nx-popup--corner .nx-popup__backdrop, .nx-popup--bar .nx-popup__backdrop { display: none; }
.nx-popup--corner .nx-popup__box, .nx-popup--bar .nx-popup__box { pointer-events: auto; }
.nx-popup--bar { padding: 0; }
.nx-popup--bar .nx-popup__box { width: 100%; max-width: none; border-radius: 0; padding: 1rem 3.5rem 1rem var(--nx-gutter); background: var(--nx-ink); color: var(--nx-paper); animation: nx-up .3s ease; }
.nx-popup--bar .nx-popup__body { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1.5rem; }
.nx-popup--bar .nx-popup__body p { margin: 0; }
.nx-popup--bar .wp-block-buttons { margin: 0; }
.nx-popup--bar .nx-popup__close { top: 50%; transform: translateY(-50%); background: rgb(255 255 255 / .12); }
@keyframes nx-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes nx-up { from { transform: translateY(100%); } to { transform: none; } }

/* ---------- Barre laterali ---------- */
.nx-with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.nx-with-sidebar--left { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); }
.nx-with-sidebar--left .nx-sidebar { order: -1; }
.nx-with-sidebar .nx-prose, .nx-with-sidebar .nx-article__head, .nx-with-sidebar .nx-wrap { width: 100%; }
.nx-sidebar { display: grid; gap: 1.4rem; position: sticky; top: 6rem; }
.nx-widget { padding: 1.3rem 1.4rem; background: var(--nx-tint); border-radius: var(--nx-radius); }
.nx-widget .widget-title { font-size: 1.05rem; margin-bottom: .7rem; }
.nx-widget ul { list-style: none; margin: 0; padding: 0; }
.nx-widget li + li { margin-top: .45rem; }
@media (max-width: 900px) { .nx-with-sidebar, .nx-with-sidebar--left { grid-template-columns: 1fr; } .nx-with-sidebar--left .nx-sidebar { order: 0; } .nx-sidebar { position: static; } }

/* ---------- Torna su ---------- */
.nx-totop { position: fixed; right: 1.2rem; bottom: 1.2rem; z-index: 90; display: inline-flex; width: 2.9rem; height: 2.9rem; align-items: center; justify-content: center; border-radius: 50%; background: var(--nx-primary); color: var(--nx-on-primary); box-shadow: 0 12px 24px -12px rgb(8 12 50 / .6); animation: nx-fade .2s ease; }
.nx-totop[hidden] { display: none; }

/* ---------- Piè di pagina "Sito" e "Minimale" ---------- */
.nx-footer__name { font: 700 1.6rem/1.1 var(--nx-font-display); text-decoration: none; letter-spacing: -.02em; }
.nx-footer--site .nx-footer__brand p { opacity: .8; max-width: 26em; margin-top: .8rem; }
.nx-footer--site .custom-logo { filter: brightness(0) invert(1); }
.nx-footer__list { list-style: none; margin: 0; padding: 0; }
.nx-footer__list li + li { margin-top: .5rem; }
.nx-footer__list a { text-decoration: none; opacity: .88; }
.nx-footer__list a:hover { opacity: 1; text-decoration: underline; }
.nx-footer__social { margin-top: 1rem; }
.nx-footer--minimal { padding-block: 1.6rem; }
.nx-footer--minimal .nx-footer__bar { align-items: center; }
.nx-footer--block { background: none; padding: 0; color: inherit; }

/* ---------- Sezioni dei siti predefiniti (editor a blocchi) ---------- */
.nx-blocks > .wp-block-group.nx-sec, .nx-blocks .nx-sec { padding: clamp(3.5rem, 8vw, 6.5rem) var(--nx-gutter); margin: 0; }
.nx-blocks > * + * { margin-block-start: 0; }
.nx-sec.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: var(--nx-wrap); }
.nx-sec--tint { background: var(--nx-tint); }
.nx-kicker { display: flex; align-items: center; gap: .6rem; color: var(--nx-primary); font-weight: 650; font-size: .95rem; letter-spacing: .01em; margin-bottom: .7rem; }
.nx-kicker::before { content: ""; width: 1.6rem; height: 2px; background: var(--nx-accent); flex: none; }
.nx-kicker.has-text-align-center { justify-content: center; }
:where(.nx-dark) .nx-kicker { color: color-mix(in oklab, var(--nx-primary) 40%, #fff); }
.nx-sec__title { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3rem); max-width: 22ch; }
.nx-sec__title.has-text-align-center, .nx-sec__intro.has-text-align-center { margin-inline: auto; }
.nx-page-title { font-size: clamp(2.3rem, 1.2rem + 3.6vw, 4rem); }
.nx-sec__intro { color: var(--nx-muted); font-size: 1.12rem; max-width: 40em; margin-bottom: 2.4rem; }
.nx-page-head { padding-bottom: 1rem !important; }
.nx-note { text-align: inherit; font-size: .85rem; }
.nx-center { justify-content: center; }
.nx-sec .wp-block-buttons { gap: .8rem; margin-top: 1.6rem; }

/* Prima sezione */
.nx-hero.nx-sec { padding-block: clamp(3rem, 7vw, 6rem); }
.nx-hero__cols { align-items: center !important; gap: clamp(2rem, 5vw, 4.5rem) !important; }
.nx-hero__title { font-size: clamp(2.4rem, 1rem + 4.4vw, 4.6rem); line-height: 1; letter-spacing: -.035em; margin-bottom: 1.2rem; }
.nx-hero__lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--nx-muted); max-width: 34em; }
.nx-hero__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--nx-radius); box-shadow: var(--nx-shadow); }
.nx-hero--center { text-align: center; }
.nx-hero--center .nx-hero__title, .nx-hero--center .nx-hero__lead { margin-inline: auto; }
.nx-hero--center .wp-block-buttons, .nx-hero--center .nx-kicker { justify-content: center; }
.nx-hero--bold { background: var(--nx-primary); color: var(--nx-on-primary); }
.nx-hero--bold .nx-hero__lead { color: inherit; opacity: .88; }
.nx-hero--bold .nx-kicker { color: inherit; }
.nx-hero--bold .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: var(--nx-accent); color: var(--nx-on-accent); }
.nx-hero--warm { background: linear-gradient(180deg, var(--nx-tint), var(--nx-bg)); }
.nx-hero--editorial .nx-hero__title { font-weight: 500; letter-spacing: -.02em; }
.nx-hero--editorial .nx-hero__img img { aspect-ratio: 4 / 5; }

/* Schede, passi, numeri */
.nx-cards { gap: 1.25rem !important; margin-top: .5rem; }
.nx-card-b { padding: 1.7rem 1.6rem; background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: var(--nx-radius); }
.nx-sec--tint .nx-card-b { border-color: transparent; }
.nx-card-b h3 { font-size: 1.28rem; margin-bottom: .55rem; }
.nx-card-b p:last-child { margin-bottom: 0; }
.nx-card-b .wp-block-buttons { margin-top: 1rem; }
.nx-card__num { font: 700 1.9rem/1 var(--nx-font-display); color: var(--nx-primary); margin-bottom: 1rem; }
:where(.nx-dark) .nx-card__num { color: var(--nx-accent); }
.nx-flow { gap: 1rem !important; }
.nx-flow .nx-card-b { background: transparent; border: 0; border-top: 2px solid var(--nx-primary); border-radius: 0; padding: 1.2rem 0 0; }
.nx-flow--grid { flex-wrap: wrap !important; }
.nx-flow--grid > .wp-block-column { flex-basis: calc(50% - 1rem) !important; }
.nx-flow--row .nx-card-b { border-top-color: var(--nx-accent); }
.nx-perks .nx-card-b { text-align: center; padding: 1.4rem; }
.nx-stats { text-align: center; }
.nx-stat__num { font: 700 clamp(2.6rem, 1.6rem + 3vw, 4rem)/1 var(--nx-font-display); color: var(--nx-primary); margin-bottom: .4rem; letter-spacing: -.03em; }
:where(.nx-dark) .nx-stat__num { color: var(--nx-accent); }
.nx-stat__label { color: var(--nx-muted); max-width: 18em; margin-inline: auto; }

/* Testo e immagine affiancati */
.nx-split { align-items: center !important; gap: clamp(2rem, 5vw, 4.5rem) !important; }
.nx-media-col img, .nx-rounded img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--nx-radius); box-shadow: var(--nx-shadow); }
.wp-block-image.nx-rounded { margin: 0; }

/* Lavori (portfolio) */
.nx-works { gap: 1.5rem !important; margin-bottom: 1.5rem; }
.nx-work .nx-kicker { margin-top: 1rem; font-size: .85rem; }
.nx-work h3 { font-size: 1.25rem; }
.nx-work img { transition: transform .4s ease; }
.nx-work:hover img { transform: translateY(-4px); }

/* Fascia finale */
.nx-cta-band { background: var(--nx-primary); color: var(--nx-on-primary); text-align: center; }
.nx-cta-band h2 { font-size: clamp(1.9rem, 1.1rem + 2.4vw, 3rem); max-width: 20ch; margin-inline: auto; }
.nx-cta-band p { opacity: .88; max-width: 34em; margin-inline: auto; }
.nx-cta-band .wp-block-button:not(.is-style-outline) > .wp-block-button__link { background: var(--nx-accent); color: var(--nx-on-accent); }
.nx-cta-band--photo { background: radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--nx-accent) 35%, var(--nx-primary)) 0%, var(--nx-primary) 55%, color-mix(in oklab, var(--nx-primary) 70%, #000) 100%); }

/* Menù del ristorante */
.nx-menu-grid { gap: clamp(1.5rem, 4vw, 3.5rem) !important; }
.nx-menu-item.wp-block-columns { flex-wrap: nowrap !important; align-items: baseline !important; gap: 1rem !important; padding: 1rem 0; margin: 0 !important; border-bottom: 1px dashed var(--nx-line); }
.nx-menu-item.wp-block-columns > .wp-block-column.nx-menu-item__text { flex: 1 1 0 !important; }
.nx-menu-item.wp-block-columns > .wp-block-column.nx-menu-item__price-col { flex: 0 0 auto !important; }
.nx-menu-item h3 { font-size: 1.12rem; margin-bottom: .2rem; }
.nx-menu-item p { margin: 0; color: var(--nx-muted); font-size: .95rem; }
.nx-menu-item__price { font: 700 1.15rem/1 var(--nx-font-display); color: var(--nx-primary) !important; white-space: nowrap; }
.nx-menu-page > .nx-menu-col { max-width: 780px !important; margin-bottom: 2.5rem; }
.nx-menu-cat { font-size: 1.6rem; padding-bottom: .5rem; border-bottom: 2px solid var(--nx-accent); display: inline-block; }

/* Prodotti WooCommerce dentro le sezioni */
.nx-sec .woocommerce ul.products { margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  .nx-drawer__panel, .nx-popup__box, .nx-searchbox, .nx-totop, .nx-popup--bar .nx-popup__box { animation: none; }
  .nx-work img, .nx-hb__row { transition: none; }
}

/* Blocca lo scorrimento della pagina sotto pannelli e popup modali */
.nx-locked, .nx-locked body { overflow: hidden; }
.nx-card-b h3, .nx-sec__title, .nx-hero__title { overflow-wrap: break-word; hyphens: auto; }
.nx-flow .nx-card-b h3 { font-size: 1.12rem; }
/* Pulsanti su righe colorate dell'intestazione: usano l'accento per restare visibili */
.nx-hb-bg--primary .nx-btn:not(.nx-btn--ghost), .nx-hb-bg--ink .nx-btn:not(.nx-btn--ghost) { background: var(--nx-accent); color: var(--nx-on-accent); }
/* Numero di prodotti nelle categorie WooCommerce senza evidenziatore */
.woocommerce-loop-category__title mark, .product-category mark { background: none; color: var(--nx-muted); font-weight: 500; }

/* ===================== v0.7 – funzioni del sito ===================== */

/* Nuovi elementi dell'intestazione */
.nx-hb__space { display: inline-block; flex: none; }
.nx-hb__list { position: relative; }
.nx-count { position: absolute; top: .1rem; right: .05rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 99px; background: var(--nx-accent); color: var(--nx-on-accent); font: 700 .68rem/1.15rem var(--nx-font-text); text-align: center; }
.nx-count[hidden] { display: none; }
.nx-hb__block { display: flex; align-items: center; }
.nx-hb__block > * { margin: 0; }
.nx-hb__cats { position: relative; }
.nx-hb__cats > summary { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.6rem; padding: .45rem 1rem; border-radius: var(--nx-btn-radius, 999px); background: color-mix(in oklab, currentColor 8%, transparent); font-weight: 600; cursor: pointer; list-style: none; white-space: nowrap; }
.nx-hb__cats > summary::-webkit-details-marker { display: none; }
.nx-hb__cats > ul { position: absolute; top: calc(100% + .5rem); left: 0; z-index: 60; min-width: 250px; margin: 0; padding: .5rem; list-style: none; background: var(--nx-surface); color: var(--nx-fg); border-radius: var(--nx-radius); box-shadow: 0 30px 60px -24px rgb(8 12 50 / .45); }
.nx-hb__cats li { position: relative; }
.nx-hb__cats a { display: block; padding: .55rem .8rem; border-radius: 10px; color: inherit; text-decoration: none; }
.nx-hb__cats a:hover, .nx-hb__cats a:focus-visible { background: var(--nx-tint); }
.nx-hb__cats li.has-kids > a::after { content: "›"; float: right; opacity: .5; }
.nx-hb__cats li > ul { display: none; position: absolute; top: -.5rem; left: 100%; min-width: 220px; margin: 0; padding: .5rem; list-style: none; background: var(--nx-surface); border-radius: var(--nx-radius); box-shadow: 0 30px 60px -24px rgb(8 12 50 / .45); }
.nx-hb__cats li.has-kids:hover > ul, .nx-hb__cats li.has-kids:focus-within > ul { display: block; }
.nx-hb__cats.is-drawer > ul { position: static; box-shadow: none; padding: .3rem 0; background: transparent; }
.nx-hb__cats.is-drawer li > ul { display: block; position: static; box-shadow: none; padding: 0 0 0 1rem; background: transparent; }

/* Ricerca (barra, pannello) e risultati dal vivo */
.nx-search { position: relative; display: flex; align-items: center; gap: .4rem; }
.nx-search input[type="search"] { width: 100%; min-height: 2.75rem; padding: .55rem 3rem .55rem 1.1rem; border: 1px solid var(--nx-line); border-radius: var(--nx-btn-radius, 999px); background: var(--nx-surface); color: var(--nx-fg); font: inherit; }
.nx-search__go { position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); display: inline-flex; width: 2.3rem; height: 2.3rem; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.nx-hb__searchbar { width: min(100%, 520px); min-width: 220px; }
.nx-searchbox__form input[type="search"] { padding-right: 3.6rem; }
.nx-search__results { position: absolute; top: calc(100% + .45rem); left: 0; right: 0; z-index: 70; max-height: min(70vh, 520px); overflow-y: auto; padding: .45rem; background: var(--nx-surface); color: var(--nx-fg); border: 1px solid var(--nx-line); border-radius: var(--nx-radius); box-shadow: 0 30px 60px -24px rgb(8 12 50 / .45); text-align: left; }
.nx-search__results[hidden] { display: none; }
.nx-search__item { display: flex; align-items: center; gap: .8rem; padding: .45rem .55rem; border-radius: 12px; color: inherit; text-decoration: none; }
.nx-search__item:hover, .nx-search__item:focus-visible { background: var(--nx-tint); }
.nx-search__item img, .nx-search__ph { flex: none; width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--nx-tint); }
.nx-search__t { display: flex; flex-direction: column; min-width: 0; }
.nx-search__t strong { font-weight: 600; font-size: .98rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nx-search__t em { font-style: normal; font-size: .88rem; color: var(--nx-price, var(--nx-muted)); }
.nx-search__cats { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; padding: .4rem .5rem .6rem; border-bottom: 1px solid var(--nx-line); margin-bottom: .3rem; }
.nx-search__cats span { font-size: .8rem; color: var(--nx-muted); margin-right: .2rem; }
.nx-search__cats a { padding: .2rem .7rem; border-radius: 99px; background: var(--nx-tint); color: inherit; text-decoration: none; font-size: .88rem; }
.nx-search__all { display: block; padding: .7rem .6rem .4rem; font-weight: 600; text-decoration: none; }
.nx-search__none { margin: 0; padding: .8rem; color: var(--nx-muted); }
.nx-searchbox .nx-search__results { font-size: 1rem; }
.nx-drawer__search { width: 100%; }

/* Banner intestazione */
.nx-banner { --nx-banner-bg: var(--nx-primary); background: var(--nx-banner-bg); color: #fff; font-size: .92rem; position: relative; z-index: 51; }
.nx-banner--dark { color: var(--nx-ink); }
.nx-banner[hidden] { display: none; }
.nx-banner__inner { display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 2.5rem; padding-block: .45rem; text-align: center; }
.nx-banner__text { margin: 0; color: inherit; text-decoration: none; }
a.nx-banner__text:hover { text-decoration: underline; }
.nx-banner__text a { color: inherit; }
.nx-banner__close { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); display: inline-flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.nx-banner__close svg { width: 16px; height: 16px; }
@media (max-width: 767px) { .nx-hide-mobile { display: none !important; } .nx-banner__inner { padding-right: 2.2rem; justify-content: flex-start; text-align: left; } }

/* Popup promozionale */
.nx-promo.has-image { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.6rem; align-items: center; }
.nx-promo__img img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: calc(var(--nx-radius) * .7); }
.nx-promo__copy h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); }
@media (max-width: 640px) { .nx-promo.has-image { grid-template-columns: 1fr; } .nx-promo__img img { max-height: 200px; } }

/* Titolo pagina e briciole di pane */
.nx-main--titled { padding-top: 0; }
.nx-ptitle { --nx-pt-bg: var(--nx-tint); --nx-pt-img: none; position: relative; margin-bottom: clamp(2rem, 4vw, 3rem); padding-block: clamp(2.2rem, 5vw, 3.6rem); background: var(--nx-pt-bg) var(--nx-pt-img) center / cover no-repeat; color: var(--nx-fg); }
.nx-ptitle.has-image::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(8 12 30 / .62), rgb(8 12 30 / .25)); }
.nx-ptitle .nx-wrap { position: relative; }
.nx-ptitle--light { color: #fff; }
.nx-ptitle--light .nx-crumbs a, .nx-ptitle--light .nx-crumbs { color: rgb(255 255 255 / .82); }
.nx-ptitle--small { padding-block: clamp(1.2rem, 3vw, 1.8rem); }
.nx-ptitle--small .nx-ptitle__title { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); }
.nx-ptitle--large { padding-block: clamp(3.5rem, 9vw, 7rem); }
.nx-ptitle--large .nx-ptitle__title { font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem); }
.nx-ptitle__title { margin: 0; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); }
.nx-ptitle--center { text-align: center; }
.nx-ptitle--center .nx-crumbs ol { justify-content: center; }
.nx-ptitle__desc { max-width: 62ch; margin-top: .8rem; opacity: .85; }
.nx-ptitle--center .nx-ptitle__desc { margin-inline: auto; }
.nx-ptitle__desc > :last-child { margin-bottom: 0; }
.nx-crumbs { font-size: .86rem; color: var(--nx-muted); margin: 0 0 .8rem; }
.nx-crumbs ol { display: flex; flex-wrap: wrap; gap: .1rem .5rem; margin: 0; padding: 0; list-style: none; }
.nx-crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.nx-crumbs a { color: inherit; text-decoration: none; }
.nx-crumbs a:hover { text-decoration: underline; }

/* Blog: lista o griglia */
.nx-blog-grid-2 .nx-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.nx-blog-list-2 .nx-grid, .nx-blog-list-3 .nx-grid { grid-template-columns: 1fr; }
.nx-blog-noexcerpt .nx-card__excerpt, .nx-blog-noexcerpt .nx-card p:not(.nx-card__meta) { display: none; }

/* Verifica età */
.nx-age { display: none; }
.nx-age-pending .nx-age { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; background: color-mix(in oklab, var(--nx-ink) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nx-age-pending body { overflow: hidden; }
.nx-age__box { width: min(100%, 460px); padding: clamp(1.8rem, 5vw, 2.8rem); text-align: center; background: var(--nx-surface); color: var(--nx-fg); border-radius: var(--nx-radius); box-shadow: 0 40px 80px -30px rgb(0 0 0 / .6); }
.nx-age__logo { display: flex; justify-content: center; margin-bottom: 1.2rem; }
.nx-age__logo img { max-height: 56px; width: auto; }
.nx-age__actions { display: flex; gap: .8rem; justify-content: center; margin-top: 1.4rem; }
.nx-age__actions[hidden], .nx-age__denied[hidden] { display: none; }
.nx-age__denied { margin-top: 1.2rem; font-weight: 600; }

/* Avviso cookie */
.nx-cookie { position: fixed; z-index: 150; display: flex; align-items: center; gap: 1rem 1.4rem; padding: 1rem 1.2rem; background: var(--nx-surface); color: var(--nx-fg); box-shadow: 0 -10px 40px -20px rgb(8 12 50 / .45); font-size: .93rem; }
.nx-cookie[hidden] { display: none; }
.nx-cookie p { margin: 0; flex: 1; }
.nx-cookie--bar { left: 0; right: 0; bottom: 0; padding-inline: max(1.2rem, calc((100vw - var(--nx-wrap)) / 2)); }
.nx-cookie--box { left: 1rem; bottom: 1rem; max-width: 380px; flex-direction: column; align-items: stretch; border-radius: var(--nx-radius); box-shadow: 0 30px 60px -24px rgb(8 12 50 / .5); }
.nx-cookie__actions { display: flex; gap: .6rem; flex: none; }
.nx-cookie--box .nx-cookie__actions .nx-btn { flex: 1; }
.nx-has-mnav .nx-cookie--bar { bottom: calc(64px + env(safe-area-inset-bottom)); }
@media (max-width: 640px) { .nx-cookie--bar { flex-direction: column; align-items: stretch; } .nx-cookie__actions .nx-btn { flex: 1; } }
.nx-linkbtn { padding: 0; border: 0; background: none; color: var(--nx-primary); font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* Barra di navigazione mobile */
.nx-mnav { display: none; }
@media (max-width: 767px) {
  .nx-has-mnav { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .nx-mnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; padding: .3rem .2rem calc(.3rem + env(safe-area-inset-bottom)); background: var(--nx-surface); color: var(--nx-fg); border-top: 1px solid var(--nx-line); box-shadow: 0 -12px 30px -18px rgb(8 12 50 / .35); }
  .nx-mnav__item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 52px; padding: .2rem; border: 0; background: none; color: inherit; font: 600 .68rem/1.1 var(--nx-font-text); text-decoration: none; cursor: pointer; }
  .nx-mnav__icon { position: relative; display: inline-flex; }
  .nx-mnav__icon svg { width: 23px; height: 23px; }
  .nx-mnav__icon .nx-count { top: -.35rem; right: -.6rem; }
  .nx-mnav--icons .nx-mnav__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nx-has-mnav .nx-totop { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

/* Social fissi e condivisione */
.nx-social-sticky { position: fixed; top: 50%; transform: translateY(-50%); z-index: 80; display: flex; flex-direction: column; gap: .3rem; margin: 0; padding: .4rem; list-style: none; background: var(--nx-surface); border-radius: 999px; box-shadow: 0 20px 40px -20px rgb(8 12 50 / .4); }
.nx-social-sticky--left { left: .6rem; }
.nx-social-sticky--right { right: .6rem; }
.nx-social-sticky a { display: inline-flex; width: 2.3rem; height: 2.3rem; align-items: center; justify-content: center; border-radius: 50%; color: var(--nx-fg); }
.nx-social-sticky a:hover { background: var(--nx-tint); color: var(--nx-primary); }
@media (max-width: 767px) { .nx-social-sticky { display: none; } }
.nx-share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 1.6rem 0 0; }
.nx-share__label { font-size: .88rem; font-weight: 600; color: var(--nx-muted); }
.nx-share ul { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.nx-share a, .nx-share button { display: inline-flex; width: 2.4rem; height: 2.4rem; align-items: center; justify-content: center; border: 1px solid var(--nx-line); border-radius: 50%; background: transparent; color: var(--nx-fg); cursor: pointer; }
.nx-share a:hover, .nx-share button:hover { border-color: var(--nx-primary); color: var(--nx-primary); }
.nx-share button.is-done { background: var(--nx-primary); border-color: var(--nx-primary); color: var(--nx-on-primary); }

/* Manutenzione */
.nx-maint .nx-maint__main { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; }
.nx-maint__box { max-width: 560px; text-align: center; }
.nx-maint__logo { display: flex; justify-content: center; margin-bottom: 2rem; }
.nx-maint__logo img { max-height: 64px; width: auto; }
.nx-maint .nx-blocks { width: 100%; }
#wpadminbar .nx-maint-node > .ab-item { background: #b45309; color: #fff; }

/* ===================== 1.0.0 – costruttore intestazione e piè di pagina ===================== */

/* Righe: colori personalizzati, linea, larghezza piena, altezza ridotta quando è fissa */
.nx-hb__row.has-bgc { background: var(--nx-hb-bgc); }
.nx-hb__row.has-fgc { color: var(--nx-hb-fgc); }
.nx-hb__row.no-border { border-bottom: 0; }
.nx-hb__row.has-border:not(.nx-hb__row--main) { border-bottom: 1px solid color-mix(in oklab, currentColor 14%, transparent); }
.nx-hb--full .nx-hb__inner.nx-wrap { width: 100%; max-width: none; padding-inline: var(--nx-gutter); box-sizing: border-box; }
.nx-hb--shrink.is-stuck .nx-hb__row--main { --nx-hb-h: var(--nx-hb-sh); }

/* Logo: larghezza scelta, logo diverso per l'intestazione fissa */
.nx-hb__logo.has-w img, .nx-hb__logo.has-w .custom-logo { width: var(--nx-logo-w); max-width: none; height: auto; max-height: none; }
.nx-hb.is-stuck .nx-hb__logo.has-ws img { width: var(--nx-logo-ws); height: auto; max-height: none; }
.nx-hb__logo-img { display: block; height: auto; max-height: calc(var(--nx-hb-h, 76px) - 24px); width: auto; }
.nx-hb__logo-sticky { display: none !important; }
.nx-hb.is-stuck .nx-hb__logo.has-sticky > :not(.nx-hb__logo-sticky) { display: none !important; }
.nx-hb.is-stuck .nx-hb__logo.has-sticky > .nx-hb__logo-sticky { display: inline-flex !important; }

/* Menu: stili delle voci e allineamento */
.nx-hb__nav--left { margin-right: auto; }
.nx-hb__nav--center { margin-inline: auto; }
.nx-hb__nav--right { margin-left: auto; }
.nx-hb__nav--s-underline .nx-menu > li > a { border-radius: 0; background: none !important; box-shadow: inset 0 -2px 0 transparent; transition: box-shadow .2s ease; }
.nx-hb__nav--s-underline .nx-menu > li > a:hover, .nx-hb__nav--s-underline .nx-menu > .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--nx-accent); }
.nx-hb__nav--s-bordered .nx-menu > li > a:hover, .nx-hb__nav--s-bordered .nx-menu > .current-menu-item > a { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.nx-hb__nav--s-pill .nx-menu > li > a { border-radius: 999px; }
.nx-hb__nav--s-pill .nx-menu > li > a:hover, .nx-hb__nav--s-pill .nx-menu > .current-menu-item > a { background: var(--nx-primary); color: var(--nx-on-primary); }
.nx-hb__nav--s-separated .nx-menu > li + li { border-left: 1px solid color-mix(in oklab, currentColor 22%, transparent); }
.nx-hb__nav--s-separated .nx-menu > li > a { border-radius: 0; }

/* Icone con testo e contatore (carrello, desideri, compara, account, ricerca) */
.nx-hb-ic { position: relative; display: inline-flex; align-items: center; gap: .45rem; min-height: 2.6rem; padding: 0 .55rem; border: 0; border-radius: 999px; background: transparent; color: inherit; font: inherit; font-weight: 550; text-decoration: none; white-space: nowrap; cursor: pointer; }
.nx-hb-ic--icon { justify-content: center; width: 2.6rem; padding: 0; }
.nx-hb-ic:hover { background: color-mix(in oklab, currentColor 10%, transparent); }
.nx-hb-ic__i { position: relative; display: inline-grid; place-items: center; }
.nx-hb-ic__t { font-size: .95rem; }
.nx-hb-ic .nx-count { position: absolute; top: -.45rem; right: -.6rem; }
.nx-hb-ic--bubble .nx-count { background: var(--nx-fg); color: var(--nx-bg); }
.nx-hb-ic--inline .nx-count, .nx-hb-ic--bracket .nx-count, .nx-hb-ic--text .nx-count { position: static; }
.nx-hb-ic--inline .nx-count { background: var(--nx-fg); color: var(--nx-bg); }
.nx-hb-ic--bracket .nx-count { min-width: 0; height: auto; padding: 0; background: none; color: inherit; font: inherit; }
.nx-hb-ic--bracket .nx-count::before { content: "("; }
.nx-hb-ic--bracket .nx-count::after { content: ")"; }
.nx-hb-ic--circle .nx-hb-ic__i { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--nx-fg); color: var(--nx-bg); }
.nx-hb-ic--circle .nx-hb-ic__i svg { width: 1.15rem; height: 1.15rem; }
.nx-hb-ic--circle .nx-count { top: -.3rem; right: -.35rem; }
.nx-hb-ic--circle.nx-hb-ic--icon { width: auto; }
.nx-cart-total { font-weight: 650; font-variant-numeric: tabular-nums; }
.nx-cart-total:empty { display: none; }
.nx-hb-bg--primary .nx-hb-ic--circle .nx-hb-ic__i, .nx-hb-bg--ink .nx-hb-ic--circle .nx-hb-ic__i { background: var(--nx-accent); color: var(--nx-on-accent); }

/* Pulsante: dimensione media e solo testo */
.nx-btn--md { min-height: 2.85rem; padding: .62rem 1.35rem; font-size: 1rem; }
.nx-hb__link { color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: .25em; white-space: nowrap; }

/* Telefono ed email: icona, testo o entrambi */
.nx-hb__contact--icon span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.nx-hb__contact--icon { justify-content: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; }
.nx-hb__contact--icon:hover { background: color-mix(in oklab, currentColor 10%, transparent); }

/* Social: stili e dimensioni */
.nx-hb__social--circle a { border: 1.5px solid color-mix(in oklab, currentColor 45%, transparent); }
.nx-hb__social--filled a { background: currentColor; }
.nx-hb__social--filled a svg { color: var(--nx-bg); }
.nx-hb-bg--primary .nx-hb__social--filled a svg { color: var(--nx-primary); }
.nx-hb-bg--ink .nx-hb__social--filled a svg { color: var(--nx-ink); }
.nx-hb__social--sm a { width: 1.7rem; height: 1.7rem; }
.nx-hb__social--sm svg { width: 15px; height: 15px; }
.nx-hb__social--lg a { width: 2.5rem; height: 2.5rem; }
.nx-hb__social--lg svg { width: 21px; height: 21px; }

/* Menu a scomparsa con testo e pannello da sinistra */
.nx-hb__burger--icontext, .nx-hb__burger--text { width: auto; gap: .5rem; padding: 0 .8rem; border-radius: 999px; font: inherit; font-weight: 600; }
.nx-hb__burger--icontext .nx-burger__bars { position: relative; top: auto; }
.nx-drawer--left .nx-drawer__panel { right: auto; left: 0; box-shadow: 20px 0 50px -20px rgb(8 12 50 / .4); animation-name: nx-slide-left; }
@keyframes nx-slide-left { from { transform: translateX(-100%); } to { transform: none; } }
.nx-hb__searchwrap { flex: 1 1 auto; width: 100%; }

/* Anteprima dell'intestazione non salvata */
.nx-hb-preview-note { position: fixed; left: 50%; bottom: 1rem; z-index: 200; transform: translateX(-50%); max-width: calc(100% - 2rem); padding: .7rem 1.1rem; border-radius: 12px; background: #1d2033; color: #fff; font-size: .9rem; box-shadow: 0 20px 40px -20px rgb(8 12 50 / .6); }

/* Pre-footer e riga del copyright */
.nx-prefooter { position: relative; }
.nx-footer__bar--center { flex-direction: column; align-items: center; text-align: center; }
.nx-footer__bar--center .nx-footer__menu { justify-content: center; flex-wrap: wrap; }
.nx-footer__bar--stack { flex-direction: column; align-items: flex-start; gap: .5rem; }
.nx-footer__text2 { opacity: .8; }
.nx-footer__text2 > :first-child { margin-top: 0; }
.nx-footer__text2 > :last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .nx-drawer--left .nx-drawer__panel { animation: none; }
  .nx-hb__nav--s-underline .nx-menu > li > a { transition: none; }
}
