/* ==========================================================================
   Nobel Montalcini — stile del tema
   Palette dal logo: indaco (corona), cobalto (edificio), rosso (corsivo).
   ========================================================================== */

:root {
	--nm-primary: #1800AD;
	--nm-secondary: #0756C0;
	--nm-accent: #E0393E;
	--nm-ink: #0B1240;

	--nm-paper: #F7F8FC;
	--nm-white: #FFFFFF;
	--nm-tint: #EEF3FC;
	--nm-text: rgba(11, 18, 64, .78);
	--nm-muted: rgba(11, 18, 64, .58);
	--nm-line: rgba(11, 18, 64, .09);
	--nm-sky: #9EC2FF;

	--nm-serif: "Fraunces", Georgia, "Times New Roman", serif;
	--nm-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

	--nm-container: 1080px;
	--nm-gutter: clamp(22px, 7vw, 96px);
	--nm-radius: 24px;
	--nm-radius-sm: 14px;
	--nm-ease: cubic-bezier(.2, .7, .2, 1);
	--nm-shadow-sm: 0 1px 2px rgba(11, 18, 64, .05), 0 4px 12px -6px rgba(11, 18, 64, .10);
	--nm-shadow: 0 2px 4px rgba(11, 18, 64, .05), 0 12px 24px -12px rgba(11, 18, 64, .22);
	--nm-section: clamp(64px, 8vw, 104px);
}

/* Base ------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 96px;
}

body {
	margin: 0;
	background: var(--nm-paper);
	color: var(--nm-text);
	font-family: var(--nm-sans);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--nm-secondary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--nm-primary); }

h1, h2, h3, h4 {
	margin: 0 0 .5em;
	color: var(--nm-ink);
	font-family: var(--nm-serif);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -.015em;
	font-optical-sizing: auto;
}

p { margin: 0 0 1.1em; }

:focus-visible { outline: 2px solid var(--nm-secondary); outline-offset: 3px; border-radius: 6px; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.nm-skip {
	position: fixed;
	top: 10px; left: 10px;
	z-index: 1001;
	padding: 10px 18px;
	border-radius: 999px;
	background: var(--nm-ink);
	color: #fff;
	transform: translateY(-160%);
	transition: transform .2s ease;
}
.nm-skip:focus { transform: none; color: #fff; }

.nm-container {
	width: 100%;
	max-width: calc(var(--nm-container) + var(--nm-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--nm-gutter);
}

.nm-narrow { max-width: calc(800px + var(--nm-gutter) * 2); }
.nm-center { text-align: center; }

.nm-icon { width: 1.15em; height: 1.15em; flex: none; }

/* Header: barra bianca fissa a tutta larghezza, appena trasparente ------- */

.nm-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	--nm-h-color: var(--nm-ink);
}

.nm-header__bar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 24px;
	height: 76px;
	padding: 0 max(var(--nm-gutter), calc((100% - var(--nm-container)) / 2));
	transition: height .35s var(--nm-ease);
}

/* Il fondo sta su uno pseudo-elemento: un eventuale filtro non crea
   un containing block per il menu mobile (position: fixed). */
.nm-header__bar::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, .94);
	border-bottom: 1px solid var(--nm-line);
	pointer-events: none;
	transition: box-shadow .35s ease;
}

.nm-header.is-scrolled .nm-header__bar { height: 64px; }
.nm-header.is-scrolled .nm-header__bar::before { box-shadow: 0 6px 18px -12px rgba(11, 18, 64, .3); }

.nm-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--nm-h-color);
	transition: color .3s ease;
}
.nm-brand:hover { color: var(--nm-h-color); }

.nm-brand__mark {
	position: relative;
	width: 42px;
	height: 42px;
	flex: none;
	transition: width .4s var(--nm-ease), height .4s var(--nm-ease);
}
.nm-header.is-scrolled .nm-brand__mark { width: 38px; height: 38px; }

.nm-brand__mark img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity .35s ease;
}
.nm-brand__white { opacity: 0; }

.nm-brand__text { display: flex; flex-direction: column; line-height: 1.1; }

.nm-brand__payoff {
	font-family: var(--nm-serif);
	font-style: italic;
	font-size: 13px;
	color: var(--nm-accent);
	transition: color .3s ease;
}

.nm-brand__name {
	font-family: var(--nm-serif);
	font-size: 17.5px;
	font-weight: 600;
	letter-spacing: .01em;
}

.nm-nav { margin-left: auto; display: flex; align-items: center; }

.nm-menu {
	display: flex;
	align-items: center;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nm-menu a {
	position: relative;
	display: block;
	padding: 8px 13px;
	border-radius: 999px;
	color: var(--nm-h-color);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .005em;
	white-space: nowrap;
	transition: background-color .25s ease, color .25s ease;
}

.nm-menu a:hover { background: rgba(11, 18, 64, .06); color: var(--nm-h-color); }

.nm-menu .current-menu-item > a,
.nm-menu .current_page_item > a {
	background: rgba(24, 0, 173, .08);
	color: var(--nm-primary);
}

.nm-nav__contacts { display: none; }

.nm-burger {
	display: none;
	position: relative;
	width: 46px;
	height: 46px;
	margin-left: auto;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--nm-h-color);
	cursor: pointer;
}

.nm-burger__line {
	position: absolute;
	left: 13px;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .35s var(--nm-ease), top .35s var(--nm-ease);
}
.nm-burger__line--a { top: 19px; }
.nm-burger__line--b { top: 26px; }

@media (max-width: 1080px) {
	.nm-burger { display: block; z-index: 2; }
	.nm-brand { position: relative; z-index: 2; }

	.nm-nav {
		position: fixed;
		inset: 0;
		z-index: 1;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		padding: 84px var(--nm-gutter) 32px;
		background:
			radial-gradient(600px 400px at 100% 0%, rgba(7, 86, 192, .10), transparent 70%),
			var(--nm-paper);
		opacity: 0;
		visibility: hidden;
		transition: opacity .35s ease, visibility 0s linear .35s;
		overflow-y: auto;
	}

	/* blocco compatto centrato in verticale (margini auto: se lo schermo e
	   basso il menu scorre senza essere tagliato in alto) */
	.nm-menu { flex-direction: column; align-items: stretch; gap: 0; margin-top: auto; }
	.nm-menu li { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .5s var(--nm-ease); }
	.nm-menu a {
		padding: 11px 2px;
		border-radius: 0;
		border-bottom: 1px solid var(--nm-line);
		color: var(--nm-ink) !important;
		background: none !important;
		font-family: var(--nm-serif);
		font-size: clamp(20px, 5.4vw, 24px);
		font-weight: 500;
		line-height: 1.25;
	}
	.nm-menu .current-menu-item > a { color: var(--nm-primary) !important; }

	.nm-nav__contacts {
		display: flex;
		flex-direction: column;
		gap: 8px;
		margin-top: 24px;
		margin-bottom: auto;
		font-size: 14px;
	}
	.nm-nav__contacts a { display: flex; align-items: center; gap: 10px; color: var(--nm-ink); font-weight: 600; }
	.nm-nav__contacts .nm-icon { width: 17px; height: 17px; color: var(--nm-primary); }

	.nm-menu-open .nm-nav { opacity: 1; visibility: visible; transition: opacity .35s ease; }
	.nm-menu-open .nm-menu li { opacity: 1; transform: none; }
	.nm-menu-open .nm-menu li:nth-child(2) { transition-delay: .04s; }
	.nm-menu-open .nm-menu li:nth-child(3) { transition-delay: .08s; }
	.nm-menu-open .nm-menu li:nth-child(4) { transition-delay: .12s; }
	.nm-menu-open .nm-menu li:nth-child(5) { transition-delay: .16s; }
	.nm-menu-open .nm-menu li:nth-child(6) { transition-delay: .2s; }
	.nm-menu-open .nm-menu li:nth-child(7) { transition-delay: .24s; }

	/* A menu aperto la barra e i colori tornano scuri */
	.nm-menu-open .nm-header { --nm-h-color: var(--nm-ink) !important; }
	.nm-menu-open .nm-header__bar::before { box-shadow: none; }
	.nm-menu-open .nm-brand__white { opacity: 0 !important; }
	.nm-menu-open .nm-brand__color { opacity: 1 !important; }
	.nm-menu-open .nm-brand__payoff { color: var(--nm-accent) !important; }
	.nm-menu-open .nm-burger__line--a { top: 22px; transform: rotate(45deg); }
	.nm-menu-open .nm-burger__line--b { top: 22px; transform: rotate(-45deg); }
	.nm-menu-open { overflow: hidden; }
}

@media (max-width: 420px) {
	.nm-brand__name { font-size: 17px; }
	.nm-brand__payoff { font-size: 12px; }
}

/* Pulsanti --------------------------------------------------------------- */

.nm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 22px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--nm-sans);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .01em;
	cursor: pointer;
	transition: transform .3s var(--nm-ease), box-shadow .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease;
}
.nm-btn .nm-icon { width: 18px; height: 18px; transition: transform .3s var(--nm-ease); }
.nm-btn:hover { transform: translateY(-2px); }
.nm-btn:hover .nm-icon:last-child { transform: translateX(3px); }
.nm-btn:hover .nm-icon:first-child:not(:last-child) { transform: none; }

.nm-btn--primary { background: var(--nm-primary); color: #fff; box-shadow: 0 10px 24px -12px rgba(24, 0, 173, .7); }
.nm-btn--primary:hover { background: var(--nm-secondary); color: #fff; box-shadow: 0 16px 30px -14px rgba(7, 86, 192, .8); }

.nm-btn--accent { background: var(--nm-accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(224, 57, 62, .75); }
.nm-btn--accent:hover { background: #C92B30; color: #fff; }

.nm-btn--light { background: #fff; color: var(--nm-ink); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .4); }
.nm-btn--light:hover { background: rgba(255, 255, 255, .9); color: var(--nm-primary); }

.nm-btn--ghost { background: transparent; border-color: var(--nm-line); color: var(--nm-ink); }
.nm-btn--ghost:hover { border-color: var(--nm-primary); color: var(--nm-primary); }

/* Sezioni e titoli ------------------------------------------------------- */

.nm-section { position: relative; padding: var(--nm-section) 0; }
.nm-section--tight { padding: clamp(48px, 7vw, 88px) 0; }
.nm-section--tint { background: var(--nm-tint); }
.nm-section + .nm-section:not(.nm-section--tint) { padding-top: calc(var(--nm-section) * .75); }
.nm-section--tint + .nm-section { padding-top: var(--nm-section); }

.nm-head { margin-bottom: clamp(28px, 4vw, 44px); }
.nm-head--center { text-align: center; margin-left: auto; margin-right: auto; max-width: 780px; }
.nm-head__title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin: 0; }
.nm-head__sub { margin: 14px 0 0; color: var(--nm-muted); font-size: 1.1rem; }

.nm-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	color: var(--nm-primary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .2em;
	text-transform: uppercase;
}
.nm-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }

.nm-prose { max-width: 68ch; }
.nm-prose p, .nm-prose li { text-align: left !important; }
.nm-prose strong, .nm-prose b { color: var(--nm-ink); font-weight: 700; }
.nm-prose--lead { font-size: 1.04rem; }
.nm-prose h2 { font-size: 2rem; margin-top: 1.4em; }
.nm-prose h3 { font-size: 1.5rem; margin-top: 1.3em; }
.nm-prose img { border-radius: var(--nm-radius-sm); }
.nm-prose ul, .nm-prose ol { padding-left: 1.2em; }
.nm-prose > *:last-child { margin-bottom: 0; }
.nm-prose + div { margin-top: 32px; }

/* Apertura home ---------------------------------------------------------- */

.nm-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: max(560px, 75vh);
	min-height: max(560px, 75svh);
	padding: 120px 0 80px;
	overflow: hidden;
	background: var(--nm-ink);
	color: #fff;
	isolation: isolate;
}

.nm-hero__bg { position: absolute; inset: 0; z-index: -2; }
.nm-hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.08);
	animation: nm-hero-zoom 2.8s var(--nm-ease) forwards;
}

.nm-hero__veil {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		radial-gradient(900px 600px at 85% 30%, rgba(7, 86, 192, .35), transparent 70%),
		linear-gradient(110deg, rgba(11, 18, 64, .94) 0%, rgba(24, 0, 173, .78) 48%, rgba(7, 86, 192, .42) 100%);
}

.nm-hero__inner {
	display: grid;
	grid-template-columns: 1.3fr .7fr;
	align-items: center;
	gap: clamp(32px, 6vw, 80px);
}

.nm-hero__payoff {
	margin: 0 0 18px;
	color: #FFB3B5;
	font-family: var(--nm-serif);
	font-size: clamp(1.15rem, 1.8vw, 1.4rem);
	font-style: italic;
}

.nm-hero__title {
	margin: 0 0 40px;
	color: #fff;
	font-size: clamp(2.4rem, 5vw, 4.3rem);
	line-height: 1.04;
	letter-spacing: -.025em;
	text-wrap: balance;
}

.nm-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.nm-hero__emblem { display: flex; justify-content: center; }

.nm-hero__glass {
	width: min(100%, 340px);
	aspect-ratio: 1;
	padding: 12%;
	border-radius: 50%;
	background: linear-gradient(145deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04));
	border: 1px solid rgba(255, 255, 255, .28);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
}
.nm-hero__glass img { width: 100%; height: 100%; object-fit: contain; }

.nm-hero__scroll {
	position: absolute;
	left: 50%;
	bottom: 28px;
	width: 26px;
	height: 42px;
	margin-left: -13px;
	border: 1.5px solid rgba(255, 255, 255, .55);
	border-radius: 14px;
}
.nm-hero__scroll span {
	position: absolute;
	top: 8px;
	left: 50%;
	width: 3px;
	height: 8px;
	margin-left: -1.5px;
	border-radius: 2px;
	background: #fff;
}

@media (max-width: 860px) {
	.nm-hero { min-height: auto; padding: 120px 0 96px; }
	.nm-hero__inner { grid-template-columns: 1fr; }
	.nm-hero__emblem { order: -1; justify-content: flex-start; }
	.nm-hero__glass { width: 150px; padding: 18px; }
	.nm-hero__scroll { display: none; }
}

/* Pagine interne: intestazione ------------------------------------------- */

.nm-pagehero {
	position: relative;
	padding: clamp(128px, 14vw, 172px) 0 clamp(48px, 6vw, 80px);
	overflow: hidden;
	background:
		radial-gradient(900px 420px at 88% -10%, rgba(7, 86, 192, .16), transparent 70%),
		radial-gradient(700px 380px at -5% 10%, rgba(24, 0, 173, .10), transparent 70%),
		var(--nm-paper);
	isolation: isolate;
}

.nm-pagehero__deco {
	position: absolute;
	right: -120px;
	top: 40px;
	z-index: -1;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	border: 1px solid rgba(24, 0, 173, .08);
	background: radial-gradient(circle, transparent 50%, rgba(24, 0, 173, .025) 50.2%, rgba(24, 0, 173, .025) 62%, transparent 62.2%);
	pointer-events: none;
}

.nm-pagehero__title {
	max-width: 18ch;
	margin: 0;
	font-size: clamp(2.2rem, 4.4vw, 3.5rem);
	line-height: 1.04;
	letter-spacing: -.025em;
	text-wrap: balance;
}

.nm-pagehero__text {
	max-width: 720px;
	margin: 18px 0 0;
	color: var(--nm-muted);
	font-size: clamp(1rem, 1.4vw, 1.1rem);
	line-height: 1.65;
}

.nm-pagehero--image {
	min-height: min(70vh, 620px);
	display: flex;
	align-items: flex-end;
	padding-bottom: 170px;
	background: var(--nm-ink);
	color: #fff;
}
.nm-pagehero__bg { position: absolute; inset: 0; z-index: -2; }
.nm-pagehero__bg img { width: 100%; height: 100%; object-fit: cover; }
.nm-pagehero--image::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(11, 18, 64, .55) 0%, rgba(24, 0, 173, .62) 60%, rgba(11, 18, 64, .9) 100%);
}
.nm-pagehero--image .nm-pagehero__deco { display: none; }
.nm-pagehero--image .nm-pagehero__title { color: #fff; }
.nm-pagehero--image .nm-pagehero__text { color: rgba(255, 255, 255, .82); }
.nm-pagehero--image .nm-eyebrow { color: #FFB3B5; }

/* Schede ----------------------------------------------------------------- */

.nm-cards {
	--nm-cols: 3;
	--nm-gap: clamp(18px, 2vw, 26px);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--nm-gap);
}
.nm-cards > .nm-card { flex: 0 1 calc((100% - var(--nm-gap) * (var(--nm-cols) - 1)) / var(--nm-cols)); }
@media (max-width: 1020px) { .nm-cards { --nm-cols: 2; } }
@media (max-width: 640px) { .nm-cards { --nm-cols: 1; } }

.nm-card {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--nm-line);
	border-radius: var(--nm-radius);
	background: var(--nm-white);
	box-shadow: var(--nm-shadow-sm);
	transition: transform .4s var(--nm-ease), border-color .3s ease;
}
.nm-card:hover { transform: translateY(-6px); box-shadow: var(--nm-shadow); border-color: rgba(24, 0, 173, .14); }

.nm-card__media {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--nm-tint);
}
.nm-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 1s var(--nm-ease);
}
.nm-card:hover .nm-card__media img, .nm-card:hover .nm-card__media img.is-loaded { transform: scale(1.05); }

.nm-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }

.nm-card__title { margin: 0 0 10px; font-size: 1.22rem; line-height: 1.25; }
.nm-card__title a { color: var(--nm-ink); }
.nm-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.nm-card__title a:hover { color: var(--nm-primary); }

.nm-card__text { color: var(--nm-muted); font-size: 14.5px; line-height: 1.65; }
.nm-card__text p:last-child { margin-bottom: 0; }

.nm-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 20px;
	color: var(--nm-primary);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.nm-card__more .nm-icon { width: 16px; height: 16px; transition: transform .35s var(--nm-ease); }
.nm-card:hover .nm-card__more .nm-icon { transform: translateX(4px); }

/* Carosello servizi (home): schede compatte, frecce ai lati */
.nm-carousel { --nm-per: 4; --nm-gap: clamp(14px, 1.6vw, 20px); --nm-card-w: calc((100cqw - var(--nm-gap) * (var(--nm-per) - 1)) / var(--nm-per)); position: relative; container-type: inline-size; }
.nm-carousel__track {
	display: flex;
	gap: var(--nm-gap);
	margin: 0 -6px;
	padding: 6px 6px 14px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding: 0 6px;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
}
.nm-carousel__track::-webkit-scrollbar { display: none; }
.nm-carousel__track:focus-visible { outline-offset: 4px; }
.nm-carousel__track > .nm-card { flex: 0 0 calc((100% - var(--nm-gap) * (var(--nm-per) - 1)) / var(--nm-per)); scroll-snap-align: start; }

.nm-carousel .nm-card__media { aspect-ratio: 16 / 10; }
.nm-carousel .nm-card__body { padding: 16px 18px 18px; }
.nm-carousel .nm-card__title { margin-bottom: 8px; font-size: 1.06rem; }
.nm-carousel .nm-card__text {
	display: -webkit-box;
	overflow: hidden;
	font-size: 13.5px;
	line-height: 1.55;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}
.nm-carousel .nm-card__more { padding-top: 14px; font-size: 12px; }
.nm-carousel .nm-card:hover { transform: translateY(-4px); }

.nm-carousel__btn {
	position: absolute;
	/* a meta dell'immagine (16:10) della prima scheda */
	top: calc(6px + var(--nm-card-w) * .3125);
	z-index: 3;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-top: -23px;
	border: 1px solid var(--nm-line);
	border-radius: 50%;
	background: #fff;
	color: var(--nm-ink);
	box-shadow: var(--nm-shadow);
	cursor: pointer;
	transition: border-color .25s ease, color .25s ease, background-color .25s ease;
}
.nm-carousel__btn--prev { left: -23px; }
.nm-carousel__btn--next { right: -23px; }
.nm-carousel__btn:hover { border-color: var(--nm-primary); background: var(--nm-primary); color: #fff; }
.nm-carousel__btn .nm-icon { width: 20px; height: 20px; }

@media (max-width: 1180px) { .nm-carousel { --nm-per: 3; } }
@media (max-width: 860px) { .nm-carousel { --nm-per: 2; } }
@media (max-width: 640px) {
	.nm-carousel__track { margin: 0 calc(var(--nm-gutter) * -1); padding: 6px var(--nm-gutter) 14px; scroll-padding: 0 var(--nm-gutter); }
	.nm-carousel__track > .nm-card { flex-basis: 78%; }
	.nm-carousel { --nm-card-w: 78cqw; }
	/* Su mobile niente frecce: si scorre col dito */
	.nm-carousel__btn { display: none; }
}

/* Testo + immagine ------------------------------------------------------- */

.nm-split {
	display: grid;
	grid-template-columns: 1.05fr .95fr;
	align-items: center;
	gap: clamp(40px, 7vw, 104px);
}
.nm-split--wide-text { grid-template-columns: 1.35fr .65fr; }

.nm-photo {
	position: relative;
	margin: 0;
	border-radius: calc(var(--nm-radius) + 6px);
	overflow: hidden;
	box-shadow: var(--nm-shadow);
}
.nm-split__media.nm-photo { aspect-ratio: 4 / 5; }
.nm-photo img { width: 100%; height: 100%; object-fit: cover; }

.nm-emblem {
	position: relative;
	margin: 0;
	padding: clamp(24px, 4vw, 48px);
	border-radius: 50%;
	background: radial-gradient(circle at 50% 40%, #fff 0%, var(--nm-tint) 70%);
	box-shadow: inset 0 0 0 1px var(--nm-line), var(--nm-shadow-sm);
	aspect-ratio: 1;
}
.nm-emblem img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 860px) {
	/* Su mobile: titolo, foto, testo, pulsante. Il blocco di testo si
	   "scioglie" cosi la foto puo stare tra il titolo e il testo. */
	.nm-split, .nm-split--wide-text { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.nm-split__text { display: contents; }
	.nm-split .nm-head { order: 1; margin-bottom: 0; }
	.nm-split__media { order: 2; }
	.nm-split__text > :not(.nm-head) { order: 3; }
	.nm-split__media.nm-photo { aspect-ratio: 4 / 3; }
	.nm-emblem { max-width: 260px; }
	.nm-split .nm-prose + div { margin-top: 4px; }
}

/* Servizi esclusivi ------------------------------------------------------ */

.nm-features {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: clamp(20px, 2.4vw, 32px);
	margin-bottom: clamp(40px, 5vw, 56px);
}

.nm-feature {
	position: relative;
	padding: clamp(24px, 2.6vw, 32px);
	border: 1px solid var(--nm-line);
	border-radius: var(--nm-radius);
	background: linear-gradient(160deg, #fff 0%, #fff 55%, var(--nm-tint) 100%);
	box-shadow: var(--nm-shadow-sm);
	transition: transform .4s var(--nm-ease);
}
.nm-feature:hover { transform: translateY(-4px); box-shadow: var(--nm-shadow); }

.nm-feature__top {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 24px;
}
.nm-feature__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: linear-gradient(145deg, var(--nm-primary), var(--nm-secondary));
	color: #fff;
	box-shadow: 0 10px 20px -12px rgba(24, 0, 173, .7);
	transition: transform .5s var(--nm-ease);
}
.nm-feature__icon .nm-icon { width: 27px; height: 27px; }
.nm-feature:hover .nm-feature__icon { transform: translateY(-2px) rotate(-6deg); }
/* l'icona entra con un piccolo "pop" quando la scheda compare */
.js .nm-feature .nm-feature__icon { transform: scale(.7); opacity: 0; transition: transform .7s var(--nm-ease) calc(var(--d, 0ms) + 150ms), opacity .5s ease calc(var(--d, 0ms) + 150ms); }
.js .nm-feature.is-visible .nm-feature__icon { transform: none; opacity: 1; }
.js .nm-feature.is-visible:hover .nm-feature__icon { transform: translateY(-2px) rotate(-6deg); transition-delay: 0s; }
.nm-feature__num {
	display: block;
	margin-bottom: 0;
	color: var(--nm-accent);
	font-family: var(--nm-serif);
	font-size: 1.15rem;
	font-style: italic;
}
.nm-feature__title { font-size: clamp(1.3rem, 1.7vw, 1.5rem); margin: 0 0 12px; }
.nm-feature p { margin: 0; color: var(--nm-muted); }

/* Gallerie --------------------------------------------------------------- */

.nm-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr));
	gap: 12px;
	margin-bottom: clamp(32px, 4vw, 48px);
}

.nm-gallery__item {
	position: relative;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: var(--nm-radius-sm);
	background: var(--nm-tint);
}
.nm-gallery__item[hidden] { display: none; }
.nm-gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--nm-ease), filter .4s ease; }
.nm-gallery__item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 50%, rgba(11, 18, 64, .35));
	opacity: 0;
	transition: opacity .4s ease;
}
.nm-gallery__item:hover img, .nm-gallery__item:hover img.is-loaded { transform: scale(1.06); }
.nm-gallery__item:hover::after { opacity: 1; }

.nm-gallery--mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
.nm-gallery--mosaic .nm-gallery__item:nth-child(8n + 1) { grid-column: span 2; grid-row: span 2; }
.nm-gallery--mosaic .nm-gallery__item:nth-child(8n) { grid-column: span 2; aspect-ratio: auto; }

@media (max-width: 720px) {
	.nm-gallery--mosaic { grid-template-columns: repeat(2, 1fr); }
	.nm-gallery--mosaic .nm-gallery__item:nth-child(8n + 1) { grid-row: span 1; aspect-ratio: 16 / 10; }
}

.nm-gallery__more { text-align: center; margin: -8px 0 0; }

/* Documenti PTOF --------------------------------------------------------- */

.nm-docs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
	gap: clamp(16px, 2vw, 24px);
}

.nm-doc {
	position: relative;
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 22px 24px;
	border: 1px solid var(--nm-line);
	border-radius: var(--nm-radius);
	background: #fff;
	box-shadow: var(--nm-shadow-sm);
	color: var(--nm-ink);
	transition: transform .4s var(--nm-ease), border-color .3s ease;
}
.nm-doc:hover { transform: translateY(-4px); box-shadow: var(--nm-shadow); border-color: rgba(24, 0, 173, .2); color: var(--nm-ink); }

.nm-doc__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 54px;
	height: 54px;
	border-radius: 16px;
	background: linear-gradient(145deg, var(--nm-primary), var(--nm-secondary));
	color: #fff;
	box-shadow: 0 12px 24px -12px rgba(24, 0, 173, .7);
}
.nm-doc__icon .nm-icon { width: 28px; height: 28px; }

.nm-doc__body { flex: 1; min-width: 0; }
.nm-doc__kicker { display: block; margin-bottom: 4px; color: var(--nm-accent); font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.nm-doc__title { margin: 0; font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.25; }

.nm-doc__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex: none;
	color: var(--nm-primary);
	font-size: 14px;
	font-weight: 700;
}
.nm-doc__cta .nm-icon { width: 20px; height: 20px; transition: transform .35s var(--nm-ease); }
.nm-doc:hover .nm-doc__cta .nm-icon { transform: translateY(2px); }

@media (max-width: 560px) {
	.nm-doc { flex-wrap: wrap; }
	.nm-doc__cta { width: 100%; padding-top: 14px; border-top: 1px solid var(--nm-line); }
}

/* Contatti --------------------------------------------------------------- */

.nm-section--overlap { margin-top: -120px; padding-top: 0; z-index: 2; }

.nm-contacts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(14px, 1.8vw, 22px);
}
@media (max-width: 900px) { .nm-contacts { grid-template-columns: minmax(0, 1fr); } }

.nm-contact {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: clamp(22px, 2.4vw, 30px);
	border-radius: var(--nm-radius);
	background: #fff;
	box-shadow: var(--nm-shadow);
}

.nm-contact__top {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.nm-contact__icon {
	display: grid;
	place-items: center;
	flex: none;
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(24, 0, 173, .08);
	color: var(--nm-primary);
}
.nm-contact__icon .nm-icon { width: 20px; height: 20px; }

.nm-contact__label {
	margin: 0;
	color: var(--nm-muted);
	font-family: var(--nm-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.nm-contact__value {
	display: block;
	max-width: 100%;
	margin-bottom: 22px;
	color: var(--nm-ink);
	font-family: var(--nm-serif);
	font-size: clamp(1.25rem, 1.7vw, 1.45rem);
	line-height: 1.3;
}
.nm-contact__value:hover { color: var(--nm-primary); }

/* Gli indirizzi email lunghi vanno a capo invece di uscire dal box */
.nm-contact__value--email {
	font-family: var(--nm-sans);
	font-size: clamp(.98rem, 1.15vw, 1.05rem);
	font-weight: 600;
	overflow-wrap: anywhere;
}

.nm-contact .nm-btn { align-self: flex-start; margin-top: auto; }

.nm-sedi {
	display: grid;
	gap: clamp(18px, 2.2vw, 28px);
}

.nm-sede {
	display: grid;
	grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
	overflow: hidden;
	border: 1px solid var(--nm-line);
	border-radius: var(--nm-radius);
	background: #fff;
	box-shadow: var(--nm-shadow-sm);
}
.nm-sede__info { padding: clamp(24px, 3vw, 40px); align-self: center; }
.nm-sede__title { font-size: clamp(1.45rem, 2vw, 1.75rem); margin-bottom: 18px; }
.nm-sede__line { display: flex; gap: 12px; margin: 0 0 14px; }
.nm-sede__line .nm-icon { margin-top: .3em; color: var(--nm-primary); }
.nm-sede__line strong { color: var(--nm-ink); }
.nm-sede__caps { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.nm-sede__note {
	display: inline-block;
	margin: 4px 0 0;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(224, 57, 62, .08);
	color: #B3262B;
	font-size: 14px;
	font-weight: 600;
}

.nm-map { min-height: 300px; background: var(--nm-tint); }
.nm-map iframe { display: block; width: 100%; height: 100%; min-height: 300px; border: 0; }

@media (max-width: 860px) {
	.nm-sede { grid-template-columns: minmax(0, 1fr); }
	.nm-map, .nm-map iframe { min-height: 260px; }
}

/* Articolo / servizio ---------------------------------------------------- */

.nm-pagehero--article { padding-bottom: clamp(40px, 6vw, 72px); }

.nm-article__head {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
}
.nm-article__title { max-width: 20ch; font-size: clamp(2rem, 3.8vw, 3.1rem); }
.nm-article__cover { aspect-ratio: 4 / 3; }

.nm-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 22px;
	padding: 7px 14px 7px 10px;
	border: 1px solid var(--nm-line);
	border-radius: 999px;
	background: rgba(255, 255, 255, .7);
	color: var(--nm-ink);
	font-size: 13.5px;
	font-weight: 600;
}
.nm-back .nm-icon { width: 16px; height: 16px; }
.nm-back:hover { border-color: var(--nm-primary); color: var(--nm-primary); }

@media (max-width: 860px) {
	.nm-article__head { grid-template-columns: 1fr; }
}

/* Paginazione ------------------------------------------------------------ */

.nm-pagination ul { display: flex; justify-content: center; gap: 8px; margin: 48px 0 0; padding: 0; list-style: none; }
.nm-pagination a, .nm-pagination span {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 1px solid var(--nm-line);
	border-radius: 999px;
	background: #fff;
	color: var(--nm-ink);
	font-weight: 600;
}
.nm-pagination .current { background: var(--nm-primary); border-color: var(--nm-primary); color: #fff; }

/* Footer ----------------------------------------------------------------- */

.nm-footer {
	position: relative;
	overflow: hidden;
	padding: clamp(72px, 9vw, 112px) 0 0;
	background: var(--nm-ink);
	color: rgba(255, 255, 255, .72);
	font-size: 14px;
	isolation: isolate;
}

.nm-footer__glow {
	position: absolute;
	top: -260px;
	left: -160px;
	z-index: -1;
	width: 720px;
	height: 520px;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(24, 0, 173, .55), transparent);
	pointer-events: none;
}

.nm-footer__grid {
	display: grid;
	grid-template-columns: 1.1fr 1fr 1fr 1.25fr;
	gap: clamp(32px, 4vw, 56px);
}

.nm-footer__logo { width: 96px; height: auto; margin-bottom: 18px; }
.nm-footer__name { margin: 0; max-width: 24ch; color: #fff; font-family: var(--nm-serif); font-size: 1.12rem; line-height: 1.3; }

.nm-footer h3 {
	margin: 0 0 14px;
	color: #fff;
	font-family: var(--nm-sans);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.nm-footer h3:not(:first-child) { margin-top: 28px; }

.nm-footer__line { display: flex; gap: 10px; margin: 0; }
.nm-footer__line .nm-icon, .nm-footer__contacts .nm-icon { margin-top: .25em; color: var(--nm-sky); }
.nm-footer__line strong { color: #fff; }
.nm-footer__note { margin: 12px 0 0; color: #fff; font-weight: 600; font-size: 14px; }

.nm-footer__contacts { margin: 0; padding: 0; list-style: none; }
.nm-footer__contacts li + li { margin-top: 10px; }
.nm-footer__contacts a { display: flex; gap: 10px; color: rgba(255, 255, 255, .86); overflow-wrap: break-word; min-width: 0; }
.nm-footer__contacts span { min-width: 0; }
.nm-footer__contacts a:hover { color: #fff; }

.nm-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin-top: clamp(56px, 7vw, 88px);
	padding-top: 24px;
	padding-bottom: 28px;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: 13px;
	color: rgba(255, 255, 255, .5);
}
.nm-footer__bottom p { margin: 0; }
.nm-footer__bottom a { color: rgba(255, 255, 255, .7); }
.nm-footer__bottom a:hover { color: #fff; }

@media (max-width: 960px) {
	.nm-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.nm-footer__grid { grid-template-columns: 1fr; }
}

/* Lightbox --------------------------------------------------------------- */

.nm-lightbox {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(6, 9, 30, .95);
	animation: nm-fade .3s ease;
}
.nm-lightbox[hidden] { display: none; }

.nm-lightbox__figure { margin: 0; }
.nm-lightbox__figure img {
	max-width: min(92vw, 1400px);
	max-height: 84vh;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}

.nm-lightbox button {
	position: absolute;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	cursor: pointer;
	transition: background-color .25s ease;
}
.nm-lightbox button:hover { background: rgba(255, 255, 255, .22); }
.nm-lightbox__close { top: 20px; right: 20px; }
.nm-lightbox__nav--prev { left: 20px; top: 50%; margin-top: -26px; }
.nm-lightbox__nav--next { right: 20px; top: 50%; margin-top: -26px; }
.nm-lightbox__count { position: absolute; bottom: 18px; left: 0; right: 0; margin: 0; text-align: center; color: rgba(255, 255, 255, .7); font-size: 13px; letter-spacing: .1em; }

@media (max-width: 720px) {
	.nm-lightbox__nav--prev, .nm-lightbox__nav--next { top: auto; bottom: 56px; margin-top: 0; }
}

/* Animazioni leggere ----------------------------------------------------- */

.js [data-reveal] {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity .65s var(--nm-ease) var(--d, 0ms), transform .65s var(--nm-ease) var(--d, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* La transizione di uscita delle schede non deve ritardare l'hover */
.js .nm-card.is-visible, .js .nm-feature.is-visible, .js .nm-doc.is-visible { transition: transform .4s var(--nm-ease), border-color .3s ease, opacity .65s var(--nm-ease); }

@keyframes nm-hero-zoom { to { transform: scale(1); } }
@keyframes nm-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.js [data-reveal] { opacity: 1; transform: none; }
	.nm-hero__bg img { transform: none; }
}

/* Plugin: Complianz e vecchi stili WordPress ------------------------------ */

.nm-prose .cmplz-document { max-width: none; }
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 14px; color: var(--nm-muted); }

/* Respiro tra griglie e pulsante sotto */
.nm-cards + .nm-center { margin: clamp(32px, 4vw, 48px) 0 0; }

/* Apertura su due colonne (Chi siamo): introduzione + foto + invito a scorrere */
.nm-pagehero--split { padding-bottom: clamp(56px, 7vw, 88px); }
.nm-pagehero__split {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
}
.nm-pagehero__lead { max-width: 54ch; color: var(--nm-text); font-size: clamp(1.02rem, 1.4vw, 1.15rem); }
.nm-pagehero__media { aspect-ratio: 4 / 3.4; }

.nm-scrolldown {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-top: 30px;
	color: var(--nm-ink);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .02em;
}
.nm-scrolldown__icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--nm-line);
	border-radius: 50%;
	background: #fff;
	color: var(--nm-primary);
	transition: transform .35s var(--nm-ease), background-color .25s ease, color .25s ease, border-color .25s ease;
}
.nm-scrolldown__icon .nm-icon { width: 18px; height: 18px; }
.nm-scrolldown:hover { color: var(--nm-primary); }
.nm-scrolldown:hover .nm-scrolldown__icon { transform: translateY(3px); background: var(--nm-primary); border-color: var(--nm-primary); color: #fff; }

@media (max-width: 860px) {
	/* Su mobile: occhiello, titolo, introduzione, foto e infine "Continua a leggere" */
	.nm-pagehero__split { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.nm-pagehero__copy { display: contents; }
	.nm-pagehero__copy > * { order: 1; }
	.nm-pagehero__media { order: 2; aspect-ratio: 16 / 10; margin-top: 28px; }
	.nm-pagehero__copy > .nm-scrolldown { order: 3; justify-self: start; margin-top: 22px; }
}

.nm-section--white { background: #fff; }


/* ==========================================================================
   Caricamento rapido e animazioni leggere
   ========================================================================== */

/* Le aperture non aspettano lo script: animano subito in CSS, a cascata */
.js .nm-hero [data-reveal],
.js .nm-pagehero [data-reveal] {
	opacity: 1;
	transform: none;
	transition: none;
	animation: nm-rise .7s var(--nm-ease) both;
}
.nm-hero__payoff { animation-delay: .05s !important; }
.nm-hero__title { animation-delay: .12s !important; }
.nm-hero__actions { animation-delay: .22s !important; }
.js .nm-hero .nm-hero__emblem { animation: nm-emblem 1s var(--nm-ease) .18s both; }
.nm-pagehero .nm-eyebrow, .nm-pagehero .nm-back { animation-delay: .04s !important; }
.nm-pagehero__title { animation-delay: .1s !important; }
.nm-pagehero__text { animation-delay: .18s !important; }
.nm-pagehero .nm-scrolldown { animation-delay: .26s !important; }
.js .nm-pagehero .nm-pagehero__media,
.js .nm-pagehero .nm-article__cover { animation: nm-photo-in .9s var(--nm-ease) .14s both; }

/* Occhiello: la linea si disegna */
.nm-eyebrow::before { transform-origin: left center; animation: nm-line .8s var(--nm-ease) .3s both; }

/* Titoli di sezione: sottile accento rosso che si disegna all'ingresso */
.nm-head__title::after {
	content: "";
	display: block;
	width: 40px;
	height: 2px;
	margin-top: 16px;
	border-radius: 2px;
	background: var(--nm-accent);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .9s var(--nm-ease) .25s;
}
.nm-head--center .nm-head__title::after { margin-left: auto; margin-right: auto; transform-origin: center; }
.nm-head.is-visible .nm-head__title::after,
html:not(.js) .nm-head__title::after { transform: scaleX(1); }

/* Foto: compaiono con una dissolvenza e un leggero zoom appena caricate */
.js img.nm-fade {
	opacity: 0;
	transform: scale(1.04);
	transition: opacity .6s ease, transform 1.2s var(--nm-ease);
}
.js img.nm-fade.is-loaded { opacity: 1; transform: none; }
.nm-photo, .nm-emblem { background-color: var(--nm-tint); }

@keyframes nm-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes nm-emblem { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes nm-photo-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes nm-line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
