/* Lavora Con Noi page */

.bfz-lavora {
	position: relative;
	overflow: hidden;
	background: #f7f8fb;
	color: var(--bfz-text);
	padding-bottom: 0;
}

.bfz-lavora .container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

.bfz-lavora-hero {
	position: relative;
	overflow: hidden;
	padding: 0;
	background: #0c4d98;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	min-height: clamp(440px, 62vw, 640px);
	display: flex;
	align-items: center;
}

.bfz-lavora-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(340deg, rgba(12, 77, 152, 0.82), rgba(0, 107, 169, 0.55));
	pointer-events: none;
	z-index: 1;
}

.bfz-lavora-hero-copy-wrapper {
	position: relative;
	z-index: 2;
	width: 100%;
	display: flex;
	align-items: center;
}

.bfz-lavora-hero-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: clamp(40px, 6vw, 78px) clamp(20px, 3vw, 40px);
	max-width: 620px;
}

.bfz-lavora-section-kicker {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.78);
	color: var(--bfz-blue-dark);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	box-shadow: 0 8px 20px rgba(17, 38, 72, 0.08);
}

.bfz-lavora-hero-title {
	margin: 0;
	max-width: 14ch;
	color: var(--bfz-white);
	font-size: clamp(2.4rem, 5.2vw, 4.85rem);
	line-height: 0.98;
	letter-spacing: -0.03em;
	font-weight: 900;
}

.bfz-lavora-hero-desc {
	margin: 4px 0 0;
	max-width: 44ch;
	color: rgba(255, 255, 255, 0.88);
	font-size: clamp(1rem, 1.45vw, 1.22rem);
	line-height: 1.5;
}

.bfz-lavora-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 10px;
}

.bfz-lavora-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 18px;
	border-radius: 999px;
	font-size: 0.92rem;
	font-weight: 800;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.bfz-lavora-btn:hover,
.bfz-lavora-btn:focus-visible {
	transform: translateY(-1px);
	text-decoration: none;
}

.bfz-lavora-btn--primary {
	background: var(--bfz-yellow);
	color: var(--bfz-blue-dark);
	box-shadow: 0 14px 28px rgba(220, 178, 0, 0.24);
}

.bfz-lavora-btn--ghost {
	background: var(--bfz-blue);
	color: var(--bfz-yellow);
	border: 1px solid rgba(0, 107, 169, 0.16);
}

.bfz-lavora-services {
	position: relative;
	z-index: 1;
	margin-top: 0;
	padding: clamp(34px, 4vw, 54px) 0 clamp(54px, 6vw, 86px);
}

.bfz-lavora-intro {
	position: relative;
	padding: clamp(54px, 6vw, 86px) 0;
	background: #f7f8fb;
}

.bfz-lavora-intro-head {
	max-width: 900px;
	margin: 0 auto clamp(32px, 4vw, 48px);
	text-align: center;
}

.bfz-lavora-intro-head h2 {
	margin: 0;
	color: var(--bfz-blue);
	font-size: clamp(1.8rem, 3.5vw, 2.8rem);
	line-height: 1.12;
	font-weight: 900;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.bfz-lavora-intro-head p {
	margin: 14px auto 0;
	max-width: 72ch;
	color: rgba(31, 42, 68, 0.84);
	font-size: 1rem;
	line-height: 1.7;
}

.bfz-lavora-intro-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.bfz-lavora-intro-card {
	position: relative;
	padding: 22px 20px 20px;
	border-radius: 22px;
	background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
	border: 1px solid rgba(0, 107, 169, 0.1);
	box-shadow: 0 18px 36px rgba(26, 47, 88, 0.08);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bfz-lavora-intro-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 48px rgba(26, 47, 88, 0.12);
}

.bfz-lavora-intro-card-index {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--bfz-yellow);
	color: var(--bfz-blue-dark);
	font-size: 0.95rem;
	font-weight: 900;
	letter-spacing: 0.04em;
}

.bfz-lavora-intro-card h3 {
	margin: 14px 0 8px;
	color: var(--bfz-blue-dark);
	font-size: 1.06rem;
	line-height: 1.25;
	font-weight: 900;
	text-transform: uppercase;
}

.bfz-lavora-intro-card p {
	margin: 0;
	color: rgba(31, 42, 68, 0.82);
	font-size: 0.98rem;
	line-height: 1.6;
}

.bfz-lavora-section-head {
	max-width: 900px;
	margin: 0 auto clamp(22px, 3vw, 32px);
	text-align: center;
}

.bfz-lavora-section-title {
	margin: 14px 0 0;
	color: var(--bfz-blue);
	font-size: clamp(1.55rem, 3vw, 2.6rem);
	line-height: 1.08;
	font-weight: 900;
	letter-spacing: -0.02em;
	text-transform: uppercase;
}

.bfz-lavora-section-desc {
	margin: 14px auto 0;
	max-width: 68ch;
	color: rgba(31, 42, 68, 0.84);
	font-size: 1rem;
	line-height: 1.6;
}

.bfz-lavora-offers {
	position: relative;
	padding: clamp(42px, 5vw, 64px) 0 clamp(52px, 5vw, 82px);
	background: #ffffff;
}

.bfz-lavora-offers-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.bfz-lavora-offer-card {
	position: relative;
	padding: 22px 20px 20px;
	border-radius: 22px;
	background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
	border: 1px solid rgba(0, 107, 169, 0.1);
	box-shadow: 0 18px 36px rgba(26, 47, 88, 0.08);
	transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bfz-lavora-offer-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 24px 48px rgba(26, 47, 88, 0.12);
}

.bfz-lavora-offer-card h3 {
	margin: 0 0 8px;
	color: var(--bfz-blue-dark);
	font-size: 1.06rem;
	line-height: 1.25;
	font-weight: 900;
	text-transform: uppercase;
}

.bfz-lavora-offer-card p {
	margin: 0;
	color: rgba(31, 42, 68, 0.82);
	font-size: 0.98rem;
	line-height: 1.6;
}

.bfz-lavora-fade {
	position: relative;
	height: 120px;
	background: linear-gradient(180deg, #ffffff 0%, #0c4d98 100%);
	pointer-events: none;
}

.bfz-lavora-contact {
	position: relative;
	padding: clamp(70px, 9vw, 120px) 0 clamp(70px, 9vw, 120px);
	overflow: hidden;
	background: #0c4d98;
}

.bfz-lavora-contact-card {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
	gap: clamp(22px, 4vw, 56px);
	align-items: start;
	padding: clamp(26px, 4vw, 40px);
	border-radius: 28px;
	background: #ffffff;
	box-shadow: 0 32px 64px rgba(17, 38, 72, 0.28), 0 8px 16px rgba(17, 38, 72, 0.12);
}

.bfz-lavora-contact-copy h2 {
	margin: 14px 0 10px;
	color: var(--bfz-blue-dark);
}

.bfz-lavora-contact-copy .bfz-lavora-section-kicker {
	background: rgba(0, 107, 169, 0.12);
	color: var(--bfz-blue-dark);
	box-shadow: none;
	border: 1px solid rgba(0, 107, 169, 0.2);
}

.bfz-lavora-contact-copy p {
	margin: 0;
	color: rgba(31, 42, 68, 0.8);
	font-size: 1rem;
	line-height: 1.7;
	max-width: 34ch;
}

.bfz-lavora-contact .bfz-lavora-contact-copy {
	padding: clamp(24px, 3vw, 32px);
	border-radius: 22px;
	background: rgba(0, 107, 169, 0.08);
	border: 1px solid rgba(0, 107, 169, 0.12);
	box-shadow: inset 0 2px 8px rgba(0, 107, 169, 0.08);
}

.bfz-lavora-contact .bfz-lavora-contact-copy h2 {
	color: var(--bfz-blue-dark);
	font-size: clamp(1.5rem, 2.5vw, 2.35rem);
	line-height: 1.08;
	text-transform: uppercase;
}

.bfz-cf7-wrap {
	display: block;
	color: var(--bfz-text);
	padding: clamp(18px, 2vw, 24px);
	border-radius: 20px;
	background: rgba(0, 107, 169, 0.04);
	border: 1px solid rgba(0, 107, 169, 0.08);
}

.bfz-cf7-wrap .wpcf7,
.bfz-cf7-wrap form {
	display: block;
}

.bfz-cf7-wrap label {
	display: block;
	margin-bottom: 8px;
	color: var(--bfz-blue-dark);
	font-size: 0.84rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.bfz-cf7-wrap .wpcf7-form-control-wrap {
	margin-bottom: 18px;
}

.bfz-cf7-wrap .wpcf7-form-control-wrap:last-of-type {
	margin-bottom: 0;
}

.bfz-cf7-wrap input[type="text"],
.bfz-cf7-wrap input[type="email"],
.bfz-cf7-wrap input[type="tel"],
.bfz-cf7-wrap input[type="url"],
.bfz-cf7-wrap input[type="date"],
.bfz-cf7-wrap input[type="file"],
.bfz-cf7-wrap textarea,
.bfz-cf7-wrap select {
	width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid rgba(0, 107, 169, 0.2);
	border-radius: 14px;
	background: #ffffff;
	color: var(--bfz-text);
	font: inherit;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	box-shadow: 0 2px 8px rgba(0, 107, 169, 0.06);
}

.bfz-cf7-wrap textarea {
	min-height: 140px;
	resize: vertical;
}

.bfz-cf7-wrap input[type="text"]:focus,
.bfz-cf7-wrap input[type="email"]:focus,
.bfz-cf7-wrap input[type="tel"]:focus,
.bfz-cf7-wrap input[type="url"]:focus,
.bfz-cf7-wrap input[type="date"]:focus,
.bfz-cf7-wrap input[type="file"]:focus,
.bfz-cf7-wrap textarea:focus,
.bfz-cf7-wrap select:focus {
	outline: none;
	border-color: rgba(0, 107, 169, 0.48);
	box-shadow: 0 0 0 4px rgba(0, 107, 169, 0.08);
}

.bfz-cf7-wrap input[type="submit"],
.bfz-cf7-wrap button[type="submit"],
.bfz-cf7-wrap .btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: var(--bfz-yellow);
	color: var(--bfz-blue-dark);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	box-shadow: 0 14px 28px rgba(220, 178, 0, 0.26);
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.bfz-cf7-wrap input[type="submit"]:hover,
.bfz-cf7-wrap button[type="submit"]:hover,
.bfz-cf7-wrap .btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 18px 34px rgba(220, 178, 0, 0.3);
}

.bfz-sticky-cta {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0 18px;
	border-radius: 999px;
	background: var(--bfz-yellow);
	color: var(--bfz-blue-dark);
	text-decoration: none;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	box-shadow: 0 18px 36px rgba(17, 38, 72, 0.22);
	border: 0;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	cursor: pointer;
}

.bfz-sticky-cta:hover,
.bfz-sticky-cta:focus-visible {
	transform: translateY(-2px);
	text-decoration: none;
	box-shadow: 0 22px 40px rgba(17, 38, 72, 0.28);
}

.bfz-sticky-cta:focus-visible {
	outline: 3px solid rgba(255, 255, 255, 0.8);
	outline-offset: 3px;
}

/* Modal System */
.bfz-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	padding: 20px;
	animation: fadeIn 0.3s ease;
}

.bfz-modal.active {
	display: flex;
}

@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes slideIn {
	from { transform: translateY(-50px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.bfz-modal-content {
	background: #ffffff;
	border-radius: 22px;
	max-width: 550px;
	max-height: 80vh;
	overflow-y: auto;
	padding: clamp(28px, 3.5vw, 48px);
	position: relative;
	width: 100%;
	animation: slideIn 0.3s cubic-bezier(0.23, 1, 0.32, 1);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.bfz-modal-close {
	position: absolute;
	right: 20px;
	top: 16px;
	font-size: 2rem;
	cursor: pointer;
	color: #8b96a8;
	line-height: 1;
	transition: all 0.2s ease;
	padding: 0;
	width: auto;
	height: auto;
	background: none;
	border: none;
}

.bfz-modal-close:hover {
	color: #1d4f96;
	transform: rotate(90deg);
}

.bfz-modal-content h2 {
	font-size: clamp(1.2rem, 2vw, 1.5rem);
	color: var(--bfz-blue-dark);
	margin: 0 0 12px 0;
	font-weight: 700;
	padding-right: 40px;
}

.bfz-modal-content p {
	font-size: 0.9rem;
	color: #586d85;
	line-height: 1.6;
	margin: 0 0 20px 0;
}

.bfz-modal-content ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.bfz-modal-content li {
	font-size: 0.9rem;
	color: #386b89;
	line-height: 1.8;
	padding-left: 24px;
	position: relative;
	margin-bottom: 8px;
}

.bfz-modal-content li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	color: var(--bfz-blue-dark);
	font-weight: 700;
}

/* File input styling */
.bfz-cf7-wrap input[type="file"]::file-selector-button {
	padding: 6px 14px;
	margin-right: 8px;
	background: var(--bfz-blue);
	color: white;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.78rem;
	transition: all 0.2s ease;
}

.bfz-cf7-wrap input[type="file"]::file-selector-button:hover {
	background: var(--bfz-blue-dark);
}

/* Response Messages */
.bfz-cf7-wrap .wpcf7-response-output {
	margin: 20px 0;
	padding: 16px 20px;
	border-radius: 14px;
	font-size: 0.95rem;
	border-left: 4px solid;
}

.bfz-cf7-wrap .wpcf7-mail-sent-ok {
	background: #ecfdf5;
	color: #065f46;
	border-left-color: #10b981;
}

.bfz-cf7-wrap .wpcf7-mail-sent-ng {
	background: #fef2f2;
	color: #7f1d1d;
	border-left-color: #ef4444;
}

.bfz-cf7-wrap .wpcf7-spinner {
	display: inline-block;
	margin-left: 10px;
}

/* Responsive */
@media (max-width: 1199.98px) {
	.bfz-lavora-hero {
		min-height: auto;
	}

	.bfz-lavora-hero-copy {
		padding: clamp(32px, 5vw, 54px) 20px;
	}

	.bfz-lavora-hero-title {
		max-width: 100%;
	}

	.bfz-lavora-intro-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.bfz-lavora-contact-card {
		grid-template-columns: 1fr;
	}

	.bfz-lavora-contact-copy p {
		max-width: 100%;
	}
}

@media (max-width: 767.98px) {
	.bfz-lavora .container {
		padding: 0 16px;
	}

	.bfz-lavora-hero {
		min-height: auto;
	}

	.bfz-lavora-hero-copy {
		padding: clamp(28px, 5vw, 40px) 16px;
	}

	.bfz-lavora-hero-title {
		font-size: clamp(2.1rem, 10vw, 3.45rem);
	}

	.bfz-lavora-hero-desc {
		font-size: 0.98rem;
	}

	.bfz-lavora-hero-actions {
		gap: 8px;
	}

	.bfz-lavora-btn {
		min-height: 38px;
		padding: 0 14px;
		font-size: 0.8rem;
	}

	.bfz-lavora-intro-head h2 {
		font-size: clamp(1.5rem, 6vw, 2.2rem);
	}

	.bfz-lavora-intro-head p {
		font-size: 0.95rem;
	}

	.bfz-lavora-intro-card {
		padding: 18px 16px;
	}

	.bfz-lavora-intro-grid {
		grid-template-columns: 1fr;
	}

	.bfz-lavora-offers-grid {
		grid-template-columns: 1fr;
	}

	.bfz-lavora-contact {
		padding: 56px 0 64px;
	}

	.bfz-lavora-contact-card {
		padding: 18px;
		border-radius: 22px;
	}

	.bfz-sticky-cta {
		right: 12px;
		bottom: 12px;
		min-height: 44px;
		padding: 0 16px;
	}
}

@media (max-width: 479.98px) {
	.bfz-lavora-hero-actions {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.bfz-lavora-hero-copy {
		padding: 24px 16px;
	}

	.bfz-lavora-btn {
		width: auto;
		flex: 0 1 auto;
	}

	.bfz-lavora-intro-card {
		padding: 16px 14px;
	}

	.bfz-cf7-wrap input[type="submit"],
	.bfz-cf7-wrap button[type="submit"],
	.bfz-cf7-wrap .btn-primary {
		width: 100%;
	}

	.bfz-sticky-cta {
		width: 56px;
		height: 56px;
		min-height: 56px;
		padding: 0;
		border-radius: 50%;
	}

	.bfz-sticky-cta .bfz-cta-text {
		display: none;
	}

	.bfz-sticky-cta::after {
		content: "\2191";
		font-size: 1.5rem;
		line-height: 1;
		font-weight: 900;
	}

	.bfz-lavora-intro-card,
	.bfz-lavora-offer-card,
	.bfz-lavora-contact-card {
		border-radius: 18px;
	}
}

/* ============================================================
 * Form candidature (gestione diretta, no CF7)
 * ============================================================ */

.bfz-candidatura-form {
	display: block;
}

.bfz-candidatura-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 18px;
}

.bfz-field {
	position: relative;
	margin-bottom: 18px;
}

.bfz-field .bfz-req {
	color: #d6452f;
	font-weight: 900;
}

.bfz-field .bfz-opt,
.bfz-field .bfz-field-hint {
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
	color: rgba(17, 38, 72, 0.55);
	font-size: 0.78rem;
}

/* Campo Citta' + predittore */
.bfz-field--citta {
	position: relative;
}

.bfz-citta-suggest {
	list-style: none;
	margin: 6px 0 0;
	padding: 6px;
	position: absolute;
	z-index: 30;
	left: 0;
	right: 0;
	background: #ffffff;
	border: 1px solid rgba(0, 107, 169, 0.2);
	border-radius: 14px;
	box-shadow: 0 18px 36px rgba(17, 38, 72, 0.16);
	max-height: 260px;
	overflow-y: auto;
}

.bfz-citta-suggest[hidden] {
	display: none;
}

.bfz-citta-suggest-item {
	padding: 10px 12px;
	border-radius: 10px;
	cursor: pointer;
	color: var(--bfz-text);
	font-size: 0.95rem;
}

.bfz-citta-suggest-item:hover,
.bfz-citta-suggest-item.is-active {
	background: rgba(0, 107, 169, 0.1);
	color: var(--bfz-blue-dark);
}

/* Checkbox privacy */
.bfz-field--checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	text-transform: none;
	letter-spacing: 0;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--bfz-text);
	margin-bottom: 0;
}

.bfz-field--checkbox input[type="checkbox"] {
	width: auto;
	margin: 3px 0 0;
	flex: 0 0 auto;
}

.bfz-field--checkbox a {
	color: var(--bfz-blue);
	text-decoration: underline;
}

/* Honeypot: nascosto ai visitatori, presente nel DOM per i bot */
.bfz-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Azioni */
.bfz-candidatura-actions {
	margin-top: 6px;
}

.bfz-candidatura-form #bfz-cand-submit.is-loading {
	opacity: 0.7;
	cursor: progress;
	pointer-events: none;
}

/* Feedback esito invio */
.bfz-candidatura-feedback {
	margin-top: 18px;
	padding: 14px 16px;
	border-radius: 14px;
	font-size: 0.95rem;
}

.bfz-candidatura-feedback[hidden] {
	display: none;
}

.bfz-candidatura-feedback ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bfz-candidatura-feedback li + li {
	margin-top: 6px;
}

.bfz-candidatura-feedback--success {
	background: rgba(26, 127, 55, 0.1);
	border: 1px solid rgba(26, 127, 55, 0.3);
	color: #1a7f37;
}

.bfz-candidatura-feedback--error {
	background: rgba(214, 69, 47, 0.08);
	border: 1px solid rgba(214, 69, 47, 0.3);
	color: #b32d2e;
}

@media (max-width: 640px) {
	.bfz-candidatura-row {
		grid-template-columns: 1fr;
		gap: 0;
	}
}
