/* Novanta9 — landing campagne, direzione "Vetrina dei siti" (.impeccable/surfaces/landing-build-siti-b2b-php.md).
   I mockup sono il soggetto; le foto di produzione (assets/img) sono solo fondi in bicromia.
   Palette e font: brand/colori-font.md. Elementi WPBakery nativi con classi n9-*. */
:root {
	--n9-ink: #171717;
	--n9-paper: #ffffff;
	--n9-paper-dim: #ededed;
	--n9-line: #d4d4d4;
	--n9-text: #4e4e4e;
	--n9-accent: #117d7c;
	--n9-accent-hover: #0d6463;
	--n9-signal: #acd2d1;
	--n9-on-petrol: #e3f1f0;
	--n9-font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
	--n9-font-body: 'Work Sans', Arial, sans-serif;
	--n9-ease: cubic-bezier(.16, 1, .3, 1);
	--n9-win: clamp(300px, 32vw, 470px);
}

/* Foto di produzione: solo fondi decorativi */
.n9-photo-cnc { --n9-photo: url(img/foto-cnc.jpg); }
.n9-photo-saldatura { --n9-photo: url(img/foto-saldatura.jpg); }
.n9-photo-robot { --n9-photo: url(img/foto-robot.jpg); }
.n9-photo-cilindri { --n9-photo: url(img/foto-cilindri.jpg); }
.n9-photo-pompa { --n9-photo: url(img/foto-pompa.jpg); }

/* --- Superfici del browser --- */
.n9-landing ::selection { background: var(--n9-accent); color: #fff; }
.n9-landing { caret-color: var(--n9-accent); scrollbar-color: var(--n9-accent) #e6e6e6; }
.n9-landing :focus-visible { outline: 2px solid var(--n9-accent); outline-offset: 3px; }
.n9-landing .n9-petrol :focus-visible { outline-color: #fff; }
.n9-landing a { text-underline-offset: 3px; }

/* --- Base --- */
.n9-landing .wd-page-content, .n9-landing .main-page-wrapper { padding-top: 0; background: var(--n9-paper); }
.n9-landing .wd-content-layout { padding-block: 0; }
.n9-landing .wpb_content_element { margin-bottom: 0; }
.n9-landing p { font-size: 17px; line-height: 1.6; color: var(--n9-text); margin-bottom: 0; }
.n9-landing strong { color: var(--n9-ink); font-weight: 600; }

.n9-sec { position: relative; padding: clamp(64px, 7.5vw, 108px) 0; overflow: hidden; }
.n9-white { background: var(--n9-paper); }
.n9-dim { background: var(--n9-paper-dim); }
.n9-petrol { background: var(--n9-accent); }
.n9-band { background: var(--n9-ink); padding: clamp(64px, 8vw, 104px) 0; }

/* --- Tipografia --- */
.n9-h1 {
	font-family: var(--n9-font-display) !important; font-weight: 400 !important; color: var(--n9-ink) !important;
	font-size: clamp(52px, 6.6vw, 94px) !important; line-height: .9 !important; letter-spacing: .005em;
	margin: 0 0 26px !important; text-wrap: balance;
}
.n9-h2 {
	font-family: var(--n9-font-display) !important; font-weight: 400 !important; color: var(--n9-ink) !important;
	font-size: clamp(38px, 4.4vw, 60px) !important; line-height: .96 !important; margin: 0 0 22px !important; text-wrap: balance;
}
.n9-h3 {
	font-family: var(--n9-font-body) !important; font-weight: 600 !important; text-transform: none !important;
	font-size: 19px !important; line-height: 1.3 !important; color: var(--n9-ink) !important; margin: 0 0 8px !important;
}
.n9-lead p { font-size: 19px; line-height: 1.55; max-width: 60ch; }
.n9-note p { font-size: 14px !important; color: #6d6d6d !important; margin-top: 14px; }
.n9-trust p { font-size: 13px !important; font-weight: 600; color: var(--n9-ink) !important; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--n9-line); }

/* --- Pulsanti --- */
.n9-btn { display: inline-block; margin: 28px 0 0 !important; }
.n9-btn .vc_btn3.vc_btn3-style-custom {
	font-family: var(--n9-font-body); font-weight: 600; font-size: 16px; letter-spacing: .01em;
	padding: 18px 30px; border-radius: 2px !important; background-image: none !important;
	box-shadow: 0 12px 24px -14px rgba(17,125,124,.85);
	transition: background-color .25s var(--n9-ease), transform .25s var(--n9-ease);
}
.n9-btn .vc_btn3.vc_btn3-style-custom:hover { background-color: var(--n9-accent-hover) !important; transform: translateY(-1px); }
.n9-btn--small { margin: 0 !important; }
.n9-btn--small .vc_btn3.vc_btn3-style-custom { padding: 11px 18px !important; font-size: 14px !important; box-shadow: none; }

/* --- Apertura: copy a sinistra, palco petrolio con foto in bicromia e mockup a destra --- */
.n9-hero { padding-top: 26px; padding-bottom: clamp(80px, 9vw, 128px); }
.n9-head { margin-bottom: clamp(36px, 6vw, 80px); }
.n9-head .vc_column-inner { padding-top: 0 !important; }
.n9-logo img { width: 150px; height: auto; }
.n9-head-cta { text-align: right; }
.n9-hero-copy { position: relative; z-index: 2; }
.n9-stage { position: relative; }
.n9-stage::before, .n9-stage::after { content: ""; position: absolute; z-index: 0; top: -6%; bottom: -22%; left: 16%; right: -50vw; }
.n9-stage::before { background: var(--n9-accent) var(--n9-photo) center / cover no-repeat; background-blend-mode: luminosity; }
.n9-stage::after { background: linear-gradient(100deg, rgba(17,125,124,.92) 0%, rgba(17,125,124,.55) 55%, rgba(23,23,23,.35) 100%); }
.n9-hero-mock { position: relative; z-index: 1; }
.n9-hero-mock img { width: 112%; max-width: none; height: auto; display: block; margin-left: -8%; filter: drop-shadow(0 30px 40px rgba(0,0,0,.28)); }

/* --- Elenchi con filetti --- */
.n9-list ul { list-style: none; margin: 0; padding: 0; }
.n9-list li { padding: 18px 0; border-top: 1px solid var(--n9-line); }
.n9-list li strong { display: block; font-size: 18px; margin-bottom: 4px; }
.n9-list li span { display: block; font-size: 16px; line-height: 1.55; color: var(--n9-text); }
.n9-list--grid ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
.n9-white .n9-list { margin-top: 30px; }

/* Momenti */
.n9-moments { margin-top: clamp(48px, 6vw, 80px); }
.n9-moment > .vc_column-inner > .wpb_wrapper { border-top: 2px solid var(--n9-accent); padding-top: 18px; }

/* --- Fascia citazione: antracite, foto di saldatura sfumata a destra --- */
.n9-band::before {
	content: "" !important; display: block !important; position: absolute; top: 0; bottom: 0; right: 0; width: 52%;
	background: var(--n9-accent) var(--n9-photo) center / cover no-repeat; background-blend-mode: luminosity; opacity: .55;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 60%); mask-image: linear-gradient(90deg, transparent 0%, #000 60%);
}
.n9-quote { position: relative; z-index: 1; }
.n9-quote p { font-family: var(--n9-font-display); font-size: clamp(34px, 4vw, 58px); line-height: 1; color: #fff; max-width: 20ch; text-wrap: balance; }

/* --- Metodo --- */
.n9-side { position: relative; }
.n9-side::before {
	content: ""; position: absolute; z-index: 0; top: 4%; bottom: 4%; left: 22%; right: -50vw;
	background: var(--n9-accent) var(--n9-photo) center / cover no-repeat; background-blend-mode: luminosity;
}
.n9-side-mock { position: relative; z-index: 1; }
.n9-side-mock img { width: 118%; max-width: none; height: auto; display: block; margin-left: -6%; filter: drop-shadow(0 26px 36px rgba(0,0,0,.25)); }
.n9-fasi-title { margin-top: clamp(64px, 8vw, 104px) !important; }
.n9-fasi ol { list-style: none; margin: 22px 0 0; padding: 30px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; position: relative; }
.n9-fasi ol::before {
	content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px;
	border-left: 1px solid var(--n9-accent); border-right: 1px solid var(--n9-accent);
	background: linear-gradient(var(--n9-accent), var(--n9-accent)) 0 50% / 100% 1px no-repeat;
}
.n9-fasi li { position: relative; padding-top: 4px; }
.n9-fasi li::before { content: ""; position: absolute; left: 0; top: -26px; width: 1px; height: 13px; background: var(--n9-accent); }
.n9-fasi .n9-fase-n { display: block; font-family: var(--n9-font-display); font-size: 34px; line-height: 1; color: var(--n9-accent); margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.n9-fasi strong { display: block; font-size: 17px; margin-bottom: 6px; }
.n9-fasi .n9-fase-t { display: block; font-size: 15px; line-height: 1.5; color: var(--n9-text); }
.n9-duo { margin-top: clamp(56px, 7vw, 88px); border-top: 1px solid var(--n9-line); padding-top: 32px; }

/* --- Lavori: finestre del browser con la home che scorre --- */
.n9-case { margin-top: clamp(72px, 9vw, 120px); }
.n9-browser { position: relative; }
.n9-browser::before {
	content: ""; position: absolute; z-index: 0; top: 14%; bottom: -12%; left: -50vw; right: 26%;
	background: var(--n9-accent) var(--n9-photo) center / cover no-repeat; background-blend-mode: luminosity;
}
.n9-case--flip .n9-browser::before { left: 26%; right: -50vw; }
.n9-browser > .vc_column-inner > .wpb_wrapper { position: relative; z-index: 1; box-shadow: 0 30px 50px -24px rgba(0,0,0,.45); border-radius: 8px; }
.n9-urlbar p {
	display: flex; align-items: center; justify-content: center; height: 34px; background: #efefef; border-radius: 8px 8px 0 0;
	font-size: 12px !important; color: #6d6d6d !important; letter-spacing: .02em; border-bottom: 1px solid #dcdcdc;
}
.n9-scroll .vc_single_image-wrapper { display: block; height: var(--n9-win); overflow: hidden; background: #fff; border-radius: 0 0 8px 8px; }
.n9-scroll img { width: 100%; height: auto; display: block; transform: translateY(0); transition: transform 9s cubic-bezier(.45, 0, .25, 1); }
.n9-browser:hover .n9-scroll img, .n9-browser:focus-within .n9-scroll img { transform: translateY(calc(-100% + var(--n9-win))); }
.n9-case-data > .vc_column-inner { padding-left: clamp(16px, 3vw, 48px) !important; }
.n9-case--flip .n9-case-data > .vc_column-inner { padding-left: 15px !important; padding-right: clamp(16px, 3vw, 48px) !important; }
.n9-case-name { font-family: var(--n9-font-display) !important; font-weight: 400 !important; font-size: clamp(38px, 3.6vw, 52px) !important; line-height: 1 !important; margin-bottom: 6px !important; }
.n9-case-act { padding-bottom: 22px; }
.n9-case-act p { font-size: 16px; color: var(--n9-text); }
.n9-cifre ul { list-style: none; margin: 0; padding: 0; }
.n9-cifre li { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-top: 1px solid var(--n9-line); font-size: 15px; color: var(--n9-text); }
.n9-cifre li:last-child { border-bottom: 1px solid var(--n9-line); }
.n9-num { font-family: var(--n9-font-display); font-size: 40px; line-height: 1; color: var(--n9-accent); min-width: 4.2ch; font-variant-numeric: tabular-nums; }
.n9-case-duo { margin-top: clamp(72px, 9vw, 120px); }
/* Casi affiancati: finestra più piccola senza fondo decorativo, dati sotto */
.n9-browser--plain::before { content: none !important; }
.n9-browser--plain > .vc_column-inner > .wpb_wrapper { box-shadow: none; border-radius: 0; }
.n9-case-mini { --n9-win: clamp(260px, 24vw, 360px); }
.n9-case-mini .n9-urlbar, .n9-case-mini .n9-scroll { box-shadow: 0 30px 50px -28px rgba(0,0,0,.45); }
.n9-case-mini .n9-case-name { margin-top: 30px !important; }
/* Parete di siti a tutta larghezza */
.n9-parete { background: #3a3a3a; }
.n9-parete-img img { width: 100%; height: auto; display: block; }
.n9-case-duo .n9-case-data > .vc_column-inner { padding-left: 15px !important; }
.n9-photo-valvola-side > .vc_column-inner > .wpb_wrapper { position: relative; padding-right: 40%; }
.n9-photo-valvola-side > .vc_column-inner > .wpb_wrapper::after {
	content: ""; position: absolute; right: -4%; top: 50%; width: 44%; aspect-ratio: 4 / 3; transform: translateY(-50%);
	background: url(img/foto-valvola.jpg) center / cover no-repeat; mix-blend-mode: multiply;
}
.n9-gal-title { margin-top: clamp(72px, 9vw, 120px) !important; }
.n9-gallery { margin-top: 18px; }
.n9-gal-img img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: #f4f4f4; }
.n9-gal-cap p { font-size: 14px !important; line-height: 1.45; margin-top: 10px; }
.n9-gal-cap strong { display: block; }

/* --- Domande (vc_toggle) --- */
.n9-faq-mock img { width: 100%; height: auto; display: block; margin-top: 28px; }
.n9-faq .vc_toggle { border-bottom: 1px solid #cfcfcf; margin: 0; padding: 20px 0; }
.n9-faq .vc_toggle:first-of-type { border-top: 1px solid #cfcfcf; }
.n9-faq .vc_toggle_title > h4 { font-family: var(--n9-font-body) !important; font-weight: 600 !important; font-size: 18px !important; color: var(--n9-ink) !important; text-transform: none !important; }
.n9-faq .vc_toggle_icon { border-color: var(--n9-accent) !important; }
.n9-faq .vc_toggle_icon::before, .n9-faq .vc_toggle_icon::after { background: var(--n9-accent) !important; border-color: var(--n9-accent) !important; }
.n9-faq .vc_toggle_content { margin: 12px 0 0 !important; }
.n9-faq .vc_toggle_content p { font-size: 16px; max-width: 64ch; }

/* --- Richiesta: campo petrolio --- */
.n9-petrol::before {
	content: "" !important; display: block !important; position: absolute; left: 0; bottom: 0; width: 46%; height: 70%;
	background: var(--n9-ink) var(--n9-photo) center / cover no-repeat; background-blend-mode: luminosity; opacity: .22;
	-webkit-mask-image: linear-gradient(20deg, #000 10%, transparent 70%); mask-image: linear-gradient(20deg, #000 10%, transparent 70%);
}
.n9-petrol .vc_row_inner { position: relative; z-index: 1; }
.n9-petrol .n9-h2 { color: #fff !important; }
.n9-petrol .n9-lead p { color: var(--n9-on-petrol); }
.n9-list--facts { margin-top: 28px; }
.n9-list--facts li { border-color: rgba(255,255,255,.28); display: flex; gap: 18px; }
.n9-list--facts li strong { color: #fff; font-size: 16px; min-width: 9em; margin: 0; }
.n9-list--facts li span { color: var(--n9-on-petrol); }
.n9-form-card > .vc_column-inner > .wpb_wrapper { background: var(--n9-paper); padding: clamp(22px, 3vw, 36px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.n9-form .wpcf7-form p { margin-bottom: 14px; color: var(--n9-text); font-size: 14px; }
.n9-form label { font-size: 13px; font-weight: 600; color: var(--n9-ink); display: block; letter-spacing: .01em; }
.n9-form input[type="text"], .n9-form input[type="email"], .n9-form input[type="tel"], .n9-form input[type="url"], .n9-form textarea {
	width: 100%; border: 0; border-bottom: 1px solid #8f8f8f; border-radius: 0; padding: 10px 0; font-size: 16px;
	margin-top: 2px; background: transparent; color: var(--n9-ink); box-shadow: none; transition: border-color .2s var(--n9-ease);
}
.n9-form input:hover, .n9-form textarea:hover { border-bottom-color: var(--n9-ink); }
.n9-form input:focus, .n9-form textarea:focus { border-bottom: 2px solid var(--n9-accent); outline: none; padding-bottom: 9px; }
.n9-form textarea { height: 96px; resize: vertical; }
.n9-form .n9-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.n9-form .wpcf7-acceptance label { font-weight: 400; font-size: 13px; display: inline; }
.n9-form .wpcf7-acceptance input { accent-color: var(--n9-accent); width: 16px; height: 16px; vertical-align: -3px; }
.n9-form .wpcf7 input[type="submit"].wpcf7-submit {
	width: 100%; background: var(--n9-accent) !important; color: #fff !important; border: 0 !important; border-radius: 2px !important;
	padding: 18px 20px !important; font-family: var(--n9-font-body); font-weight: 600; font-size: 17px; text-transform: none !important;
	box-shadow: none !important; cursor: pointer; margin-top: 6px; transition: background-color .25s var(--n9-ease);
}
.n9-form .wpcf7 input[type="submit"].wpcf7-submit:hover { background: var(--n9-accent-hover) !important; }
.n9-form .wpcf7 input[type="submit"].wpcf7-submit:disabled { background: #6f9e9d !important; cursor: not-allowed; }
.n9-form .wpcf7-not-valid-tip { font-size: 13px; color: #b3261e; margin-top: 4px; }
.n9-form .wpcf7-not-valid { border-bottom-color: #b3261e !important; }
.n9-form .wpcf7-response-output { margin: 12px 0 0 !important; padding: 12px 14px !important; font-size: 14px; border-radius: 0; }
.n9-form .n9-form-small { font-size: 12px !important; color: #6d6d6d !important; }

/* --- Footer --- */
.n9-footer { padding: 30px 0; background: var(--n9-ink); }
.n9-footer p { font-size: 13px; color: #9a9a9a; }
.n9-footer a { color: #d6d6d6; }

/* --- Movimento: su touch la home scorre una volta quando la finestra entra in vista (landing.js) --- */
@keyframes n9-peek {
	0%, 8% { transform: translateY(0); }
	50%, 58% { transform: translateY(calc(-100% + var(--n9-win))); }
	100% { transform: translateY(0); }
}
@media (hover: none) and (prefers-reduced-motion: no-preference) {
	.n9-js .n9-browser.is-drawn .n9-scroll img { animation: n9-peek 14s cubic-bezier(.45, 0, .25, 1) .4s 1; }
}
@media (prefers-reduced-motion: reduce) {
	.n9-scroll img { transition: none !important; }
	.n9-browser:hover .n9-scroll img { transform: none; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
	.n9-fasi ol { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
	.n9-list--grid ul { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
	.n9-head .vc_row_inner { display: flex; align-items: center; }
	.n9-head .vc_column_container { width: 50%; }
	.n9-logo img { width: 116px; }
	.n9-btn--small .vc_btn3.vc_btn3-style-custom { padding: 10px 12px !important; font-size: 13px !important; white-space: nowrap; }
	.n9-stage { margin-top: 48px; }
	.n9-stage::before, .n9-stage::after { left: 10%; right: -30px; top: 6%; bottom: -10%; }
	.n9-hero-mock img { width: 104%; margin-left: -4%; }
	.n9-side { margin-top: 40px; }
	.n9-side::before { left: 14%; right: -30px; }
	.n9-side-mock img { width: 104%; margin-left: 0; }
	.n9-moment { margin-bottom: 22px; }
	.n9-band::before { width: 100%; opacity: .3; }
	.n9-case-data > .vc_column-inner, .n9-case--flip .n9-case-data > .vc_column-inner { padding: 30px 15px 0 !important; }
	.n9-case--flip { display: flex; flex-direction: column-reverse; }
	.n9-browser::before, .n9-case--flip .n9-browser::before { left: -30px; right: 18%; top: 18%; bottom: 10%; }
	.n9-case-duo .vc_column_container + .vc_column_container { margin-top: 40px; }
	.n9-case-mini { --n9-win: 300px; }
	.n9-gallery .vc_column_container { width: 50%; }
	.n9-gallery { display: flex; flex-wrap: wrap; }
	.n9-gal-cap p { margin-bottom: 20px; }
	.n9-fasi ol { grid-template-columns: 1fr; padding: 0 0 0 26px; }
	.n9-fasi ol::before {
		width: 9px; height: auto; top: 0; bottom: 0; left: 0; right: auto;
		border: 0; border-top: 1px solid var(--n9-accent); border-bottom: 1px solid var(--n9-accent);
		background: linear-gradient(var(--n9-accent), var(--n9-accent)) 50% 0 / 1px 100% no-repeat;
	}
	.n9-fasi li::before { left: -26px; top: 12px; width: 13px; height: 1px; }
	.n9-list--facts li { display: block; }
	.n9-form .n9-form-row { grid-template-columns: 1fr; }
	.n9-form-card { margin-top: 36px; }
}

/* --- /grazie/ --- */
.n9-grazie { min-height: 70vh; }
.n9-grazie .n9-logo img { margin-bottom: clamp(48px, 8vw, 96px); }
.n9-grazie .n9-h1 { max-width: 14ch; }
