/*
Theme Name: Nume Plus
Theme URI: https://www.nume.plus
Author: Nume Plus srl
Description: Tema del sito Nume Plus con la grafica "mappa della metro": quattro linee, fermate e prodotti. Da usare con il plugin Nume Plus Core.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: Proprietario
Text Domain: nume-plus
*/

:root {
	--navy: #15192F;
	--navy-2: #1E2340;
	--navy-3: #262B48;
	--navy-4: #2A3058;
	--line-dark: #3A3F5C;
	--orange: #F6A32A;
	--red: #E72858;
	--blue: #3AA7DF;
	--green: #7ABA3E;
	--light: #F1F2F6;
	--text-2: #555869;
	--muted: #9A9EB0;
	--soft: #C7CADB;
	--border: #C9CCD8;
	--font: Corbel, "Segoe UI", Candara, "Helvetica Neue", system-ui, sans-serif;
	--gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5; color: var(--navy); background: #FFFFFF; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.12; margin: 0; }
h1 { font-size: clamp(34px, 4vw, 48px); }
h2 { font-size: clamp(26px, 2.6vw, 34px); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.np-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.np-skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--orange); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.np-skip:focus { top: 12px; }
.np-main:focus { outline: none; }
.np-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.np-muted { color: var(--text-2); }

/* Pallini e stazioni */
.np-dot { display: inline-block; flex: 0 0 auto; width: var(--s, 12px); height: var(--s, 12px); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 var(--r, 0) #FFFFFF; }
.np-dot--red { background: var(--red); } .np-dot--orange { background: var(--orange); } .np-dot--blue { background: var(--blue); } .np-dot--green { background: var(--green); }
.np-dot--ring { --r: 3px; }
.np-station { width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; border: 5px solid var(--navy); flex: 0 0 auto; position: relative; z-index: 1; }
.np-station--ring { box-shadow: 0 0 0 2px #FFFFFF; }

/* Pulsanti */
.np-btn, .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; font: 700 16px/1.2 var(--font); cursor: pointer; text-decoration: none; transition: background .2s, transform .2s; }
.np-btn--orange { background: var(--orange); color: var(--navy); } .np-btn--orange:hover { background: #FFB847; }
.np-btn--navy, .wp-block-button__link { background: var(--navy); color: #FFFFFF; } .np-btn--navy:hover, .wp-block-button__link:hover { background: var(--navy-4); color: #FFFFFF; }
.np-btn--outline { background: transparent; color: #FFFFFF; border: 1.5px solid #FFFFFF; } .np-btn--outline:hover { background: var(--navy-3); }
.np-btn--light { background: #FFFFFF; color: var(--navy); border: 1.5px solid var(--navy); } .np-btn--light:hover { background: var(--light); }
.np-btn--ghost { background: transparent; color: #FFFFFF; border: 1.5px solid var(--line-dark); } .np-btn--ghost:hover { background: var(--navy-4); }
.np-link { display: inline-block; font-weight: 700; text-underline-offset: 3px; margin-top: 4px; }
.np-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0; }
.np-actions--center { justify-content: center; }

.np-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; color: var(--text-2); }
.np-eyebrow--light { color: var(--soft); }
.np-kicker { display: flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .06em; font-weight: 700; text-transform: uppercase; color: var(--text-2); }

/* ---------- Header ---------- */
.np-header { background: var(--navy); position: relative; z-index: 20; }
.np-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.np-logo { display: inline-flex; flex: 0 0 auto; padding: 6px 4px; border-radius: 8px; }
.np-logo img { height: 34px; width: auto; max-width: none; aspect-ratio: 2000 / 479; display: block; }
.np-nav { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 2px; }
.np-nav__btn { background: transparent; border: 0; color: #FFFFFF; font: 16px/1.2 var(--font); padding: 10px 11px; white-space: nowrap; min-height: 44px; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.np-nav__btn:hover, .np-nav__btn.is-current, .np-nav__btn[aria-expanded="true"] { background: var(--navy-3); color: #FFFFFF; }
.np-caret { font-size: 11px; color: var(--muted); transition: transform .2s; }
.np-nav__btn[aria-expanded="true"] .np-caret { transform: rotate(180deg); }
.np-nav__sep { width: 1px; height: 24px; background: var(--line-dark); margin: 0 6px; }
.np-nav__cta { margin-left: 8px; min-height: 44px; white-space: nowrap; }
@media (max-width: 1360px) { .np-nav__btn { font-size: 15px; padding: 10px 8px; gap: 6px; } .np-nav__sep { margin: 0 3px; } .np-nav__cta { padding: 0 16px; } }
.np-burger { display: none; background: transparent; border: 0; min-width: 44px; min-height: 44px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.np-burger svg { stroke: #FFFFFF; stroke-width: 2; stroke-linecap: round; fill: none; }
.np-burger__close { display: none; }
.np-burger[aria-expanded="true"] .np-burger__open { display: none; }
.np-burger[aria-expanded="true"] .np-burger__close { display: block; }

.np-mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--navy-2); border-top: 1px solid #2E3456; padding: 28px 0 22px; box-shadow: 0 18px 30px rgba(0, 0, 0, .3); color: #FFFFFF; animation: np-drop .22s ease-out; }
@keyframes np-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.np-mega__grid { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 36px; }
.np-mega__intro { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.np-mega__title { font-size: 28px; font-weight: 700; }
.np-mega__text { color: var(--soft); margin: 0; }
.np-mega__label { display: block; font-size: 13px; letter-spacing: .12em; font-weight: 700; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; padding: 0 10px; text-decoration: none; }
.np-mega__label--link { color: var(--soft); min-height: 36px; display: flex; align-items: center; border-radius: 8px; }
.np-mega__label--link:hover { background: var(--navy-4); color: #FFFFFF; }
.np-mega__list { list-style: none; margin: 0; padding: 0; }
.np-mega__list a { display: flex; align-items: center; gap: 10px; color: #FFFFFF; text-decoration: none; padding: 6px 10px; min-height: 38px; border-radius: 8px; font-size: 15px; }
.np-mega__list a:hover { background: var(--navy-4); }
.np-mega__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; }
.np-mega__foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.np-mega__foot--split { justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.np-mega__close { background: transparent; border: 0; color: var(--soft); font: 14px var(--font); min-height: 44px; padding: 0 12px; border-radius: 8px; cursor: pointer; }
.np-mega__close:hover { background: var(--navy-3); color: #FFFFFF; }

/* Linea verticale con fermate (menu, linea, drawer) */
.np-track { list-style: none; margin: 0; padding: 0; position: relative; }
.np-track::before { content: ""; position: absolute; left: 19px; top: 22px; bottom: 22px; width: 4px; border-radius: 2px; background: var(--line, var(--blue)); }
.np-track a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: #FFFFFF; }
.np-track--dark .np-station { width: 20px; height: 20px; border-color: var(--navy-2); }
.np-track--dark a:hover { background: var(--navy-4); }
.np-track--big::before { left: 21px; width: 6px; top: 28px; bottom: 28px; border-radius: 3px; }
.np-track--big a { color: var(--navy); font-size: 18px; min-height: 54px; }
.np-track--big .np-station { width: 28px; height: 28px; border-width: 6px; transition: transform .2s; }
.np-track--big a:hover { background: var(--light); }
.np-track--big a:hover .np-station { transform: scale(1.15); }
.np-track__t { flex: 1 1 auto; }
.np-track__arrow { color: var(--muted); }
.np-track--big { margin: 18px 0 28px; }

/* Drawer telefono */
.np-drawer { background: var(--navy); color: #FFFFFF; padding: 8px var(--gutter) 28px; border-top: 1px solid #2E3456; max-height: calc(100vh - 72px); overflow-y: auto; }
.np-drawer nav { display: flex; flex-direction: column; gap: 2px; }
.np-drawer__label { font-size: 12px; letter-spacing: .12em; font-weight: 700; color: var(--muted); padding: 10px 6px; text-transform: uppercase; }
.np-acc__head { display: flex; align-items: center; }
.np-acc__link { flex: 1 1 auto; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px; color: #FFFFFF; text-decoration: none; font-size: 19px; font-weight: 700; border-radius: 10px; }
.np-acc__btn { background: transparent; border: 0; color: var(--soft); min-width: 48px; min-height: 48px; border-radius: 10px; cursor: pointer; font-size: 18px; }
.np-acc__btn span { display: inline-block; transition: transform .2s; }
.np-acc__btn[aria-expanded="true"] span { transform: rotate(180deg); }
.np-acc__body { margin: 0 0 8px 6px; }
.np-drawer__sep { height: 1px; background: var(--line-dark); margin: 10px 0; }
.np-drawer__item { display: flex; align-items: center; min-height: 48px; padding: 6px; color: #FFFFFF; text-decoration: none; font-size: 17px; border-radius: 10px; }
.np-drawer__item:hover, .np-acc__link:hover, .np-acc__btn:hover { background: var(--navy-3); }
.np-drawer__cta { margin-top: 14px; }

/* Briciole */
.np-crumbs { background: var(--light); }
.np-crumbs ol { list-style: none; margin: 0; padding: 8px 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 15px; }
.np-crumbs li { display: flex; align-items: center; gap: 6px; }
.np-crumbs li + li::before { content: "›"; color: var(--muted); }
.np-crumbs a { color: var(--text-2); text-underline-offset: 3px; padding: 4px 2px; }
.np-crumbs a:hover { color: var(--navy); }
.np-crumbs [aria-current] { font-weight: 700; }

/* ---------- Mappa ---------- */
.np-hero { position: relative; overflow: hidden; background: var(--navy); height: 640px; display: flex; align-items: center; justify-content: center; }
.np-hero--line { height: 440px; }
.np-hero--stop { height: 340px; }
.np-hero__map { position: absolute; inset: 0; }
.np-map { width: 100%; height: 100%; display: block; }
.np-map__drift { animation: np-drift 24s ease-in-out infinite alternate; transform-origin: 50% 50%; transform-box: view-box; }
@keyframes np-drift { from { transform: scale(1); } to { transform: scale(1.06) translate(-1%, -1%); } }
.np-ln { fill: none; stroke-width: 80; stroke-dasharray: 20000; stroke-dashoffset: 20000; animation: np-draw 2.6s ease-out forwards; transition: opacity .35s; }
@keyframes np-draw { to { stroke-dashoffset: 0; } }
.np-ln.np-c-red { stroke: var(--red); } .np-ln.np-c-orange { stroke: var(--orange); } .np-ln.np-c-blue { stroke: var(--blue); } .np-ln.np-c-green { stroke: var(--green); }
.np-trains { transition: opacity .35s; }
.np-trh, .np-trc { fill: none; stroke-linecap: round; stroke-dasharray: 900 29100; stroke-dashoffset: 900; animation: np-train 9s linear infinite; }
.np-trh { stroke-width: 300; opacity: .32; }
.np-trc { stroke-width: 64; stroke: #FFFFFF; }
.np-trh.np-t-red { stroke: var(--red); } .np-trh.np-t-orange { stroke: var(--orange); } .np-trh.np-t-blue { stroke: var(--blue); } .np-trh.np-t-green { stroke: var(--green); }
.np-t-red { animation-duration: 8s; animation-delay: 2.4s; } .np-t-orange { animation-duration: 11s; animation-delay: 2.9s; } .np-t-blue { animation-duration: 9s; animation-delay: 3.4s; } .np-t-green { animation-duration: 6.5s; animation-delay: 3.9s; }
.np-t2 { animation-delay: 6.4s; } .np-t2.np-t-orange { animation-delay: 8.4s; } .np-t2.np-t-blue { animation-delay: 7.9s; } .np-t2.np-t-green { animation-delay: 7.2s; }
@keyframes np-train { from { stroke-dashoffset: 900; } to { stroke-dashoffset: -29100; } }
.np-map__clear { fill: var(--navy); }
.np-stop { fill: #FFFFFF; stroke: var(--navy); stroke-width: 70; }
.np-stn { cursor: pointer; transition: opacity .35s; }
.np-stn__dot { stroke: #FFFFFF; stroke-width: 50; transition: transform .2s; transform-box: fill-box; transform-origin: center; }
.np-stn:hover .np-stn__dot, .np-stn:focus-visible .np-stn__dot { transform: scale(1.25); }
.np-stn:focus-visible { outline: none; }
.np-stn:focus-visible .np-lab { text-decoration: underline; }
.np-lab { fill: #FFFFFF; font-family: var(--font); font-size: 300px; }
.np-hero--stop .np-lab { display: none; }
.np-ring { fill: none; stroke-width: 44; transform-box: fill-box; transform-origin: center; opacity: 0; animation: np-ring 3s ease-out infinite; }
.np-rg2 { animation-delay: .75s; } .np-rg3 { animation-delay: 1.5s; } .np-rg4 { animation-delay: 2.25s; }
@keyframes np-ring { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(3.4); opacity: 0; } }
/* Linea in primo piano: le altre si attenuano */
.np-map[data-focus="red"] .np-c-orange, .np-map[data-focus="red"] .np-c-blue, .np-map[data-focus="red"] .np-c-green,
.np-map[data-focus="orange"] .np-c-red, .np-map[data-focus="orange"] .np-c-blue, .np-map[data-focus="orange"] .np-c-green,
.np-map[data-focus="blue"] .np-c-red, .np-map[data-focus="blue"] .np-c-orange, .np-map[data-focus="blue"] .np-c-green,
.np-map[data-focus="green"] .np-c-red, .np-map[data-focus="green"] .np-c-orange, .np-map[data-focus="green"] .np-c-blue { opacity: .15; }

.np-hero__box { position: relative; z-index: 2; width: min(720px, calc(100% - 32px)); background: rgba(21, 25, 47, .88); border-radius: 18px; padding: 26px 28px; text-align: center; color: #FFFFFF; display: flex; flex-direction: column; align-items: center; gap: 14px; animation: np-pop .7s cubic-bezier(.2, .9, .3, 1.4) .5s both; }
.np-hero__box h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; }
.np-hero--line .np-hero__box h1 { font-size: clamp(32px, 4.4vw, 54px); }
.np-hero--stop .np-hero__box h1 { font-size: clamp(28px, 3.8vw, 46px); }
.np-hero__box p { margin: 0; font-size: 18px; color: var(--soft); }
@keyframes np-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.np-rise { animation: np-rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.np-r1 { animation-delay: 1.1s; } .np-r2 { animation-delay: 1.35s; } .np-r3 { animation-delay: 1.6s; }
@keyframes np-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.np-pills { background: var(--navy); padding: 0 0 22px; }
.np-pills .np-wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
.np-pills__label { color: var(--muted); font-size: 14px; margin-right: 6px; }
.np-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border: 1.5px solid var(--line-dark); border-radius: 999px; color: #FFFFFF; text-decoration: none; font-size: 15px; }
.np-pill:hover, .np-pill.is-current { background: var(--navy-3); border-color: var(--muted); }

/* ---------- Sezioni ---------- */
.np-section { padding: 48px 0; }
.np-section--top { padding-top: 72px; padding-bottom: 24px; }
.np-section--tight { padding: 24px 0 48px; }
.np-section--last { padding: 24px 0 72px; }
.np-section--page { padding: 48px 0 80px; }
.np-section--stop { padding: 40px 0 80px; }
.np-head { display: flex; flex-direction: column; gap: 8px; max-width: 820px; margin-bottom: 28px; }
.np-head p { margin: 0; font-size: 18px; color: var(--text-2); }
.np-head--row { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.np-head--row > div { display: flex; flex-direction: column; gap: 8px; }
.np-head--narrow { max-width: 860px; }
.np-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.np-split > div { display: flex; flex-direction: column; gap: 16px; }
.np-split h2 { font-size: 30px; }
.np-h3 { font-size: 24px !important; }

/* Schede linee (home) */
.np-lines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.np-linecard { background: var(--light); border-radius: 18px; padding: 22px; min-height: 280px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--navy); border: 2px solid transparent; transition: transform .25s, border-color .25s, box-shadow .25s; }
.np-linecard:hover { transform: translateY(-4px); border-color: var(--navy); box-shadow: 0 14px 28px rgba(21, 25, 47, .12); }
.np-linecard__eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .1em; font-weight: 700; color: var(--text-2); text-transform: uppercase; }
.np-linecard__track { width: 100%; height: 26px; overflow: visible; }
.np-linecard__track line { stroke: var(--line); stroke-width: 8; stroke-linecap: round; }
.np-linecard__track .np-linecard__train { stroke: #FFFFFF; stroke-width: 4; stroke-dasharray: 40 900; stroke-dashoffset: 40; opacity: 0; }
.np-linecard:hover .np-linecard__train { opacity: 1; animation: np-mini 1.6s linear infinite; }
@keyframes np-mini { from { stroke-dashoffset: 40; } to { stroke-dashoffset: -280; } }
.np-linecard__title { font-size: 24px; font-weight: 700; }
.np-linecard__text { font-size: 16px; color: var(--text-2); flex: 1 1 auto; }
.np-linecard__go { font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Schede prodotto */
.np-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.np-grid--sm { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.np-cardlink { background: var(--light); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--navy); border: 2px solid transparent; transition: transform .25s, border-color .25s, box-shadow .25s; }
.np-cardlink:hover { transform: translateY(-4px); border-color: var(--navy); box-shadow: 0 14px 28px rgba(21, 25, 47, .12); }
.np-cardlink--small { padding: 16px 18px; }
.np-cardlink__title { font-size: 22px; font-weight: 700; line-height: 1.15; }
.np-cardlink--small .np-cardlink__title { font-size: 19px; }
.np-cardlink__text { font-size: 16px; color: var(--text-2); flex: 1 1 auto; }
.np-cardlink--small .np-cardlink__text { font-size: 15px; }
.np-cardlink__meta { font-size: 14px; color: var(--text-2); }
.np-grid--products .np-cardlink { min-height: 220px; }

.np-card { background: var(--light); border-radius: 16px; padding: 24px; }
.np-card--row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 8px; }
.np-card__title { font-size: 18px; font-weight: 700; }
.np-panel { background: var(--navy); color: #FFFFFF; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 8px; }
.np-panel > span { color: var(--soft); }
.np-panel .np-panel__title { font-size: 20px; font-weight: 700; color: #FFFFFF; }

/* Banner evento */
.np-banner { background: var(--navy); color: #FFFFFF; border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.np-banner > div { display: flex; flex-direction: column; gap: 12px; flex: 1 1 420px; }
.np-banner p { margin: 0; font-size: 17px; color: var(--soft); }
.np-events { display: grid; gap: 20px; max-width: 860px; }
.np-eventcard { background: var(--navy); color: #FFFFFF; border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.np-eventcard:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(21, 25, 47, .2); }
.np-eventcard__title { font-size: 28px; font-weight: 700; }
.np-eventcard__text { color: var(--soft); }
.np-eventcard__go { font-weight: 700; }

/* Fermata: linea orizzontale */
.np-line { position: relative; overflow-x: auto; padding-bottom: 6px; margin-bottom: 40px; }
.np-line ol { list-style: none; margin: 0; padding: 4px 0 0; position: relative; display: flex; justify-content: space-between; min-width: 640px; position: relative; }
.np-line ol::before { content: ""; position: absolute; left: 6%; right: 6%; top: 17px; height: 6px; border-radius: 3px; background: var(--line); }
.np-line li { flex: 1 1 0; display: flex; justify-content: center; }
.np-line a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 14px; color: var(--text-2); text-decoration: none; max-width: 150px; min-width: 44px; }
.np-line a:hover .np-line__t { text-decoration: underline; color: var(--navy); }
.np-line__dot { width: 30px; height: 30px; margin-top: 3px; margin-bottom: 4px; border-radius: 50%; background: #FFFFFF; border: 6px solid var(--navy); position: relative; transition: transform .2s; }
.np-line a:hover .np-line__dot { transform: scale(1.15); }
.np-line .is-current a { color: var(--navy); font-weight: 700; }
.np-line .is-current .np-line__dot { width: 40px; height: 40px; margin: -2px 0 0; background: var(--line); border-color: #FFFFFF; box-shadow: 0 0 0 3px var(--navy); }

/* Prodotto */
.np-product { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
.np-product__main { display: flex; flex-direction: column; gap: 16px; }
.np-product__title { font-size: clamp(38px, 5vw, 56px); line-height: 1.05; }
.np-product__img img { border-radius: 16px; }
.np-where { background: var(--navy); color: #FFFFFF; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.np-where__label { font-size: 13px; letter-spacing: .12em; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.np-where a { display: flex; align-items: center; gap: 14px; color: #FFFFFF; text-decoration: none; padding: 8px; border-radius: 10px; min-height: 56px; }
.np-where a:hover { background: var(--navy-4); }
.np-where small { display: block; font-size: 13px; color: var(--muted); }
.np-where strong { font-size: 19px; }
.np-related { margin-top: 48px; display: flex; flex-direction: column; gap: 16px; }

/* Filtri prodotti */
.np-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 24px; }
.np-search { font: 16px var(--font); padding: 10px 16px; min-height: 44px; border: 1.5px solid var(--border); border-radius: 999px; width: 260px; max-width: 100%; margin-right: 6px; }
.np-chip { display: inline-flex; align-items: center; border: 1.5px solid #D5D7E0; background: #FFFFFF; color: var(--navy); border-radius: 999px; padding: 8px 16px; min-height: 44px; font-size: 15px; text-decoration: none; }
.np-chip:hover { border-color: var(--navy); }
.np-chip.is-on { background: var(--navy); color: #FFFFFF; border-color: var(--navy); }

/* Team */
.np-team { margin-top: 48px; display: flex; flex-direction: column; gap: 16px; }
.np-team__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.np-team__grid li { padding: 14px 16px; border-radius: 12px; background: var(--light); display: flex; flex-direction: column; gap: 2px; }
.np-team__grid strong { font-size: 17px; }
.np-team__grid span { font-size: 14px; color: var(--text-2); }
.np-team__img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; }

/* ---------- Contenuti dall'editor ---------- */
.np-content { max-width: 820px; }
.np-content--wide { max-width: none; }
.np-wrap.np-content { max-width: 1240px; }
.np-content > * + * { margin-top: 20px; }
.np-content > :first-child { margin-top: 0; }
.np-content h2 { margin-top: 40px; font-size: 28px; }
.np-content h3 { font-size: 20px; }
.np-content p { margin-bottom: 0; }
.np-content--lead p, .np-lead, .is-style-np-lead { font-size: 19px; color: var(--text-2); max-width: 860px; }
.np-note { font-size: 15px; color: var(--text-2); }
.np-content a:not(.wp-block-button__link) { color: #1B6FA0; text-underline-offset: 3px; }
.np-content .wp-block-columns { gap: 32px; margin-top: 24px; }
.np-card, .is-style-np-card { background: var(--light); border-radius: 16px; padding: 24px; }
.np-content .np-card > * + *, .np-content .is-style-np-card > * + * { margin-top: 10px; }
.np-content .np-card p { color: var(--text-2); margin-top: 8px; }
.np-card--red::before, .np-card--orange::before, .np-card--blue::before, .np-card--green::before { content: ""; display: block; width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 3px #FFFFFF; margin-bottom: 12px; }
.np-card--red::before { background: var(--red); } .np-card--orange::before { background: var(--orange); } .np-card--blue::before { background: var(--blue); } .np-card--green::before { background: var(--green); }
.np-panel.wp-block-group, .is-style-np-panel { background: var(--navy); color: #FFFFFF; border-radius: 20px; padding: 32px; display: block; margin-top: 32px; }
.np-panel.wp-block-group p, .is-style-np-panel p { color: var(--soft); }
.np-panel.wp-block-group h2, .is-style-np-panel h2 { margin-top: 0; color: #FFFFFF; }
.np-panel.wp-block-group .wp-block-button__link, .is-style-np-panel .wp-block-button__link { background: var(--orange); color: var(--navy); }
.np-panel.wp-block-group > * + *, .is-style-np-panel > * + * { margin-top: 14px; }
/* Liste: pillole, numeri, fermate */
.is-style-np-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.is-style-np-chips li { padding: 10px 18px; border-radius: 999px; background: var(--light); font-weight: 700; }
.is-style-np-stats { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.is-style-np-stats li { background: var(--light); border-radius: 16px; padding: 20px; color: var(--text-2); font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.is-style-np-stats li strong { font-size: 32px; color: var(--navy); line-height: 1.1; display: flex; align-items: center; gap: 10px; }
.is-style-np-stats li strong::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--orange); }
.is-style-np-stats li:nth-child(4n+2) strong::before { background: var(--red); }
.is-style-np-stats li:nth-child(4n+3) strong::before { background: var(--blue); }
.is-style-np-stats li:nth-child(4n+4) strong::before { background: var(--green); }
.is-style-np-stations { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.is-style-np-stations li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.is-style-np-stations li::before { content: ""; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: #FFFFFF; border: 5px solid var(--navy); flex: 0 0 auto; }

/* Modulo contatti */
.np-form { background: var(--light); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 24px; }
.np-form h2 { font-size: 26px; margin: 0; }
.np-form p { margin: 0; color: var(--text-2); }
.np-field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.np-field input, .np-field select, .np-field textarea { font: 16px var(--font); padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px; background: #FFFFFF; color: var(--navy); }
.np-field input:focus, .np-field select:focus, .np-field textarea:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.np-field [aria-invalid="true"] { border-color: #B3123E; }
.np-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.np-check input { width: 20px; height: 20px; margin-top: 2px; }
.np-err { color: #B3123E; font-size: 14px; }
.np-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.np-form .np-btn { align-self: flex-start; }
.np-form--done .np-link { color: var(--navy); }

/* 404 e paginazione */
.np-404 { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; min-height: 40vh; }
.nav-links { display: flex; gap: 12px; margin-top: 32px; }
.nav-links a, .nav-links span { padding: 8px 14px; border-radius: 999px; background: var(--light); text-decoration: none; }
.np-cover img { border-radius: 20px; margin-bottom: 28px; }

/* ---------- Footer ---------- */
.np-footer { background: var(--navy); color: var(--soft); padding: 48px 0 28px; }
.np-footer .np-wrap { display: flex; flex-direction: column; gap: 28px; }
.np-footer__line { display: flex; align-items: center; height: 14px; }
.np-footer__line span { flex: 1 1 0; height: 6px; }
.np-footer__line i { width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; border: 4px solid var(--navy); margin: 0 -9px; z-index: 1; }
.np-footer__grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.np-footer__grid > div { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.np-footer__brand { flex: 1 1 280px; }
.np-footer__brand img { height: 30px; width: auto; max-width: none; aspect-ratio: 2000 / 479; align-self: flex-start; margin-bottom: 4px; }
.np-footer a { color: var(--soft); text-underline-offset: 3px; }
.np-footer a:hover { color: #FFFFFF; }
.np-footer__label { font-size: 13px; letter-spacing: .1em; font-weight: 700; color: var(--muted); text-transform: uppercase; }
.np-footer__legal { font-size: 13px; color: var(--muted); }

/* ---------- Tablet e telefono ---------- */
@media (max-width: 1100px) {
	.np-lines { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1180px) {
	.np-nav { display: none; }
	.np-burger { display: inline-flex; }
	.np-mega { display: none !important; }
}
@media (max-width: 960px) {
	.np-split, .np-product { grid-template-columns: 1fr; gap: 32px; }
}
@media (min-width: 1181px) {
	.np-drawer { display: none !important; }
}
@media (max-width: 700px) {
	:root { --gutter: 16px; }
	body { font-size: 16px; }
	.np-header__bar { padding-top: 10px; padding-bottom: 10px; }
	.np-logo img { height: 28px; }
	.np-hero, .np-hero--line, .np-hero--stop { height: auto; min-height: 0; padding: 150px 0 28px; align-items: flex-end; }
	.np-hero--home { padding-top: 190px; }
	.np-hero__box { padding: 20px; gap: 12px; }
	.np-hero__box p { font-size: 16px; }
	.np-lab { display: none; }
	.np-pills .np-wrap { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.np-pills .np-wrap::-webkit-scrollbar { display: none; }
	.np-pill { flex: 0 0 auto; }
	.np-pills__label { display: none; }
	/* Le linee scorrono di lato, una alla volta */
	.np-lines { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
	.np-lines::-webkit-scrollbar { display: none; }
	.np-linecard { flex: 0 0 82%; scroll-snap-align: center; min-height: 260px; background: var(--navy-2); color: #FFFFFF; }
	.np-linecard .np-linecard__eyebrow, .np-linecard .np-linecard__text { color: var(--soft); }
	.np-linecard .np-linecard__train { opacity: 1; animation: np-mini 2.4s linear infinite; }
	.np-section--top { padding-top: 40px; }
	.np-banner { padding: 26px; }
	.np-form { padding: 22px; }
	.np-section, .np-section--page { padding-top: 32px; padding-bottom: 48px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
	.np-ln { stroke-dashoffset: 0; }
	.np-trh, .np-trc, .np-ring, .np-linecard__train { display: none; }
}
