/* ============================================================================
   VIMM Landing — main stylesheet
   ============================================================================ */

:root {
	--vimm-navy: #2d3149;
	--vimm-navy-dark: #232742;
	--vimm-navy-light: #3a3f5c;
	--vimm-magenta: #d6256a;
	--vimm-magenta-hover: #b91d59;
	--vimm-cream: #fbe9e1;
	--vimm-cream-soft: #fdf3ee;
	--vimm-grey-bg: linear-gradient(180deg, #ececec 0%, #ffffff 100%);
	--vimm-text: #1f2230;
	--vimm-text-muted: #5e6275;
	--vimm-text-on-dark: #ffffff;
	--vimm-text-on-dark-muted: rgba(255,255,255,0.78);
	--vimm-card-bg: #ffffff;
	--vimm-card-shadow: 0 8px 30px rgba(0,0,0,0.06);
	--vimm-radius-lg: 16px;
	--vimm-radius-md: 10px;
	--vimm-radius-sm: 6px;
	--vimm-radius-pill: 999px;
	--vimm-container: 1180px;
	--vimm-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ---- Reset minimo ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--vimm-font);
	color: var(--vimm-text);
	background: #fff;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vimm-magenta); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.2; color: inherit; }
p { margin: 0 0 1em; }

.screen-reader-text {
	clip: rect(1px,1px,1px,1px);
	position: absolute !important;
	height: 1px; width: 1px;
	overflow: hidden;
	word-wrap: normal;
}
.screen-reader-text:focus {
	background: #fff;
	clip: auto !important;
	padding: 15px 23px 14px;
	top: 5px; left: 5px;
	z-index: 100000;
}

/* ---- Header — logo centrato ---- */
.vimm-header {
	background: #fff;
	border-bottom: 1px solid rgba(0,0,0,0.04);
	padding: 18px 16px;
}
.vimm-header__inner {
	max-width: var(--vimm-container);
	margin: 0 auto;
	display: flex;
	justify-content: center;
	align-items: center;
}
.vimm-logo { display: inline-flex; align-items: center; }
.vimm-logo__img { max-height: 56px; width: auto; }
.vimm-logo__text {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--vimm-navy);
}

/* ---- Buttons ---- */
.vimm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	font-size: 16px;
	padding: 14px 36px;
	border-radius: var(--vimm-radius-pill);
	border: none;
	transition: background 0.15s ease, transform 0.1s ease;
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
}
.vimm-btn:hover { text-decoration: none; transform: translateY(-1px); }
.vimm-btn--primary {
	background: var(--vimm-magenta);
	color: #fff;
}
.vimm-btn--primary:hover { background: var(--vimm-magenta-hover); color: #fff; }

/* ---- Hero foto-piena + overlay scuro per leggibilità ---- */
.vimm-hero {
	position: relative;
	background-color: var(--vimm-navy);
	background-image: var(--vimm-hero-bg, none);
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	color: var(--vimm-text-on-dark);
	overflow: hidden;
	padding: 90px 16px 110px;
}
.vimm-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(45,49,73,0.85) 0%, rgba(45,49,73,0.55) 55%, rgba(45,49,73,0.30) 100%);
	pointer-events: none;
	z-index: 0;
}
.vimm-hero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--vimm-container);
	margin: 0 auto;
}
.vimm-hero__title {
	font-size: clamp(34px, 4.6vw, 56px);
	font-weight: 800;
	letter-spacing: -0.02em;
	max-width: 720px;
	margin: 0 0 18px;
}
.vimm-hero__subtitle {
	font-size: 19px;
	color: var(--vimm-text-on-dark-muted);
	max-width: 600px;
	margin: 0 0 32px;
	white-space: pre-line;
}

/* ---- Sezione algoritmo con pattern dot/network ---- */
.vimm-algo {
	position: relative;
	background: #fff;
	padding: 90px 16px 80px;
	overflow: hidden;
}
.vimm-algo::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--vimm-algo-pattern, none);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	opacity: 0.85;
	pointer-events: none;
}
.vimm-algo__inner {
	position: relative;
	max-width: var(--vimm-container);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 60px;
	align-items: center;
	z-index: 1;
}
.vimm-algo__copy h2 {
	color: var(--vimm-magenta);
	font-size: clamp(28px, 3.2vw, 40px);
	font-weight: 800;
	margin-bottom: 18px;
}
.vimm-algo__intro {
	font-size: 17px;
	color: var(--vimm-text);
	margin: 16px 0 28px;
}
.vimm-checklist {
	list-style: none;
	padding: 0;
	margin: 24px 0 0;
}
.vimm-checklist li {
	position: relative;
	padding-left: 38px;
	margin-bottom: 14px;
	font-size: 16px;
}
.vimm-checklist li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: -1px;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #14b886;
	color: #fff;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}
.vimm-algo__art {
	display: flex;
	justify-content: center;
	align-items: center;
}
.vimm-algo__art img,
.vimm-algo__art svg {
	max-width: 360px;
	width: 100%;
	height: auto;
}

/* ---- CTA centrale (banda chiara tra algoritmo e form) ---- */
.vimm-cta-band {
	background: linear-gradient(180deg, #f6f6f8 0%, #ffffff 100%);
	padding: 60px 16px;
	text-align: center;
	border-top: 1px solid rgba(0,0,0,0.04);
}
.vimm-cta-band h2 {
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 700;
	color: var(--vimm-text);
	margin-bottom: 12px;
}
.vimm-cta-band p {
	max-width: 620px;
	margin: 0 auto 24px;
	color: var(--vimm-text-muted);
}

/* ---- Sezione form contatto ---- */
.vimm-contact {
	position: relative;
	background: var(--vimm-navy);
	color: var(--vimm-text-on-dark);
	padding: 90px 16px;
	overflow: hidden;
}
.vimm-contact--with-image::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: var(--vimm-form-image, none);
	background-size: cover;
	background-position: left center;
	background-repeat: no-repeat;
	opacity: 0.45;
	pointer-events: none;
}
.vimm-contact__inner {
	position: relative;
	max-width: var(--vimm-container);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	z-index: 1;
}
.vimm-contact__title {
	font-size: clamp(24px, 2.8vw, 34px);
	font-weight: 800;
	color: var(--vimm-magenta);
	margin-bottom: 16px;
}
.vimm-contact__copy {
	font-size: 16px;
	color: var(--vimm-text-on-dark-muted);
}
.vimm-contact__copy p { margin-bottom: 1em; }
.vimm-contact__copy strong { color: #fff; }
.vimm-contact__link { color: #fff; text-decoration: underline; }
.vimm-contact__link:hover { color: #fff; opacity: 0.85; }

.vimm-contact__form-wrap {
	background: #fff;
	color: var(--vimm-text);
	border-radius: var(--vimm-radius-lg);
	padding: 32px;
	box-shadow: var(--vimm-card-shadow);
}
.vimm-contact__form-title {
	color: var(--vimm-magenta);
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 14px;
}

/* ---- Pagine interne (card bianca) ---- */
.vimm-page {
	padding: 60px 16px 100px;
	min-height: 60vh;
	background: var(--vimm-grey-bg);
}
.vimm-card {
	max-width: var(--vimm-container);
	margin: 0 auto;
	background: var(--vimm-card-bg);
	border-radius: var(--vimm-radius-lg);
	padding: 56px 48px;
	box-shadow: var(--vimm-card-shadow);
}
.vimm-card h1 {
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 700;
	margin-bottom: 16px;
}
.vimm-card h2 {
	font-size: 22px;
	font-weight: 700;
	margin-top: 32px;
	margin-bottom: 12px;
}
.vimm-card .vimm-card__title-magenta {
	color: var(--vimm-magenta);
}

/* Risultato valutazione */
.vimm-result { text-align: center; }
.vimm-result__label {
	font-size: 14px;
	color: var(--vimm-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	margin-bottom: 8px;
}
.vimm-result__value h1 {
	font-size: clamp(32px, 5vw, 48px);
	color: var(--vimm-navy);
	margin: 0 0 32px;
	letter-spacing: -0.01em;
}
.vimm-result__unavailable {
	font-size: 17px;
	color: var(--vimm-text-muted);
	background: var(--vimm-cream-soft);
	border: 1px solid rgba(0,0,0,0.04);
	border-radius: var(--vimm-radius-md);
	padding: 24px 28px;
	margin: 0 0 32px;
	line-height: 1.5;
}

/* Errore */
.vimm-error h1 { color: var(--vimm-text); }
.vimm-error__subtitle {
	color: var(--vimm-magenta);
	font-size: 24px;
	font-weight: 700;
	margin: 8px 0 28px;
}

/* ---- Footer ---- */
.vimm-footer {
	background: var(--vimm-navy-dark);
	color: var(--vimm-text-on-dark-muted);
	font-size: 14px;
	line-height: 1.6;
}
.vimm-footer__inner {
	max-width: var(--vimm-container);
	margin: 0 auto;
	padding: 56px 24px 40px;
	display: grid;
	grid-template-columns: 1.2fr 1fr 1fr;
	gap: 48px;
	align-items: start;
}
.vimm-footer__col { min-width: 0; }
.vimm-footer__logo { display: inline-block; }
.vimm-footer__logo img {
	max-height: 64px;
	width: auto;
	filter: brightness(1.02);
}
.vimm-footer__brand {
	display: inline-block;
	font-size: 22px;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.01em;
}
.vimm-footer__tagline {
	margin: 14px 0 0;
	color: var(--vimm-text-on-dark-muted);
	font-size: 14px;
	max-width: 320px;
}
.vimm-footer__title {
	margin: 0 0 18px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #fff;
	opacity: 0.85;
}
.vimm-footer__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-style: normal;
	padding: 0;
	margin: 0;
	list-style: none;
}
.vimm-footer__item { display: block; }
.vimm-footer__label {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.55);
	margin-right: 6px;
}
.vimm-footer__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	transition: color .15s ease, transform .15s ease;
}
.vimm-footer__link:hover {
	color: var(--vimm-magenta);
	transform: translateX(2px);
}
.vimm-footer__link::before {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	background: rgba(255,255,255,0.06);
	font-size: 14px;
	line-height: 1;
	transition: background .15s ease, color .15s ease;
}
.vimm-footer__link:hover::before {
	background: var(--vimm-magenta);
	color: #fff;
}
.vimm-footer__link--phone::before    { content: "\260E"; /* ☎ */ font-size: 14px; }
.vimm-footer__link--whatsapp::before { content: "WA"; font-size: 10px; font-weight: 700; letter-spacing: 0; }
.vimm-footer__link--email::before    { content: "\2709"; /* ✉ */ font-size: 14px; }

/* ---- Footer bottom bar ---- */
.vimm-footer__bottom {
	border-top: 1px solid rgba(255,255,255,0.08);
	font-size: 13px;
}
.vimm-footer__bottom-inner {
	max-width: var(--vimm-container);
	margin: 0 auto;
	padding: 18px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
}
.vimm-footer__copy {
	color: rgba(255,255,255,0.55);
}
.vimm-footer__legal {
	color: rgba(255,255,255,0.75);
	text-decoration: none;
	font-weight: 500;
	transition: color .15s ease;
}
.vimm-footer__legal:hover { color: #fff; }

/* ---- FluentForm overrides (minimal — il plugin ha già stili) ---- */
.ff-default .ff-el-input--label label { font-weight: 600; }
.ff-default .ff-el-form-control,
.ff-default input[type="text"],
.ff-default input[type="email"],
.ff-default input[type="tel"] {
	border-radius: var(--vimm-radius-sm);
	border: 1px solid #d8d8e0;
	padding: 12px 14px;
}
.ff-default .ff-btn-submit,
.ff-default button[type="submit"] {
	background: var(--vimm-magenta) !important;
	border-color: var(--vimm-magenta) !important;
	color: #fff !important;
	border-radius: var(--vimm-radius-pill) !important;
	padding: 12px 28px !important;
	font-weight: 600;
}
.ff-default .ff-btn-submit:hover,
.ff-default button[type="submit"]:hover {
	background: var(--vimm-magenta-hover) !important;
	border-color: var(--vimm-magenta-hover) !important;
}

/* ---- Multi-step buttons (Avanti / Indietro) ---- */
.ff-default .ff-btn-next,
.ff-default .ff-btn-prev,
.ff-default button[data-action="next"],
.ff-default button[data-action="prev"] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: var(--vimm-radius-pill) !important;
	padding: 11px 26px !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: background .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
	border: 1.5px solid var(--vimm-magenta) !important;
	line-height: 1.2 !important;
}

/* Avanti = primary filled */
.ff-default .ff-btn-next,
.ff-default button[data-action="next"] {
	background: var(--vimm-magenta) !important;
	color: #fff !important;
	box-shadow: 0 1px 0 rgba(var(--vimm-magenta-rgb, 214,37,106), .15), 0 4px 12px rgba(var(--vimm-magenta-rgb, 214,37,106), .18);
}
.ff-default .ff-btn-next:hover,
.ff-default button[data-action="next"]:hover {
	background: var(--vimm-magenta-hover) !important;
	border-color: var(--vimm-magenta-hover) !important;
	transform: translateY(-1px);
	box-shadow: 0 1px 0 rgba(var(--vimm-magenta-rgb, 214,37,106), .20), 0 6px 16px rgba(var(--vimm-magenta-rgb, 214,37,106), .25);
}

/* Indietro = bianco filled con ombra (card-button) */
.ff-default .ff-btn-prev,
.ff-default button[data-action="prev"] {
	background: #ffffff !important;
	color: var(--vimm-magenta) !important;
	box-shadow: 0 1px 0 rgba(15,23,42,.04), 0 4px 14px rgba(15,23,42,.08) !important;
}
.ff-default .ff-btn-prev:hover,
.ff-default button[data-action="prev"]:hover {
	background: var(--vimm-cream-soft) !important;
	color: var(--vimm-magenta-hover) !important;
	border-color: var(--vimm-magenta-hover) !important;
	transform: translateY(-1px);
	box-shadow: 0 2px 0 rgba(15,23,42,.05), 0 8px 20px rgba(15,23,42,.10) !important;
}

/* Icone freccia via pseudo-element (no SVG da caricare) */
.ff-default .ff-btn-next::after,
.ff-default button[data-action="next"]::after {
	content: "→";
	font-size: 17px;
	line-height: 1;
	display: inline-block;
	transform: translateY(-1px);
	transition: transform .15s ease;
}
.ff-default .ff-btn-next:hover::after,
.ff-default button[data-action="next"]:hover::after { transform: translate(2px, -1px); }
.ff-default .ff-btn-prev::before,
.ff-default button[data-action="prev"]::before {
	content: "←";
	font-size: 17px;
	line-height: 1;
	display: inline-block;
	transform: translateY(-1px);
	transition: transform .15s ease;
}
.ff-default .ff-btn-prev:hover::before,
.ff-default button[data-action="prev"]:hover::before { transform: translate(-2px, -1px); }

/* Layout: Indietro a sx, Avanti a dx, gap consistente */
.ff-default .ff-el-group:has(> .ff-btn-prev + .ff-btn-next),
.ff-default .ff-t-cell.ff-el-form-control:has(.ff-btn-prev),
.ff-default .step-nav,
.ff-default .ff_step_btn_pos {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center;
	gap: 12px;
	margin-top: 20px;
}
.ff-default .ff-btn-prev { margin-right: auto !important; }
.ff-default .ff-btn-next.ff-float-right,
.ff-default .ff-btn-next { margin-left: auto !important; }

/* Submit step finale stessa famiglia */
.ff-default .ff-btn-submit::after,
.ff-default button[type="submit"]::after {
	content: "→";
	margin-left: 6px;
	display: inline-block;
	transition: transform .15s ease;
}
.ff-default .ff-btn-submit:hover::after,
.ff-default button[type="submit"]:hover::after { transform: translateX(3px); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
	.vimm-algo__inner,
	.vimm-contact__inner {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.vimm-checklist { text-align: left; }
	.vimm-hero { padding: 60px 16px 80px; }
	.vimm-card { padding: 40px 24px; }
	.vimm-algo__art img,
	.vimm-algo__art svg { max-width: 240px; }

	.vimm-footer__inner {
		grid-template-columns: 1fr;
		gap: 36px;
		padding: 44px 24px 32px;
	}
	.vimm-footer__bottom-inner {
		justify-content: center;
		text-align: center;
	}
}
