.elj-wrap {
	--elj-accent: var(--elj-btn, #1e5eff);
	--elj-tint: #f4f6fb;
	--elj-tint: color-mix(in srgb, var(--elj-accent) 8%, #fff);
	--elj-ink: #1b2430;
	--elj-muted: #5b6573;
	max-width: 820px;
	margin: 0 auto;
	color: var(--elj-ink);
	line-height: 1.65;
	font-size: 1.05rem;
}

/* ---- Elenco offerte ---- */
.elj-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.elj-card {
	background: #fff;
	border: 1px solid #e5e8ee;
	border-left: 5px solid var(--elj-accent);
	border-radius: 12px;
	padding: 1.5rem 1.75rem;
	box-shadow: 0 2px 10px rgba(20, 30, 50, .05);
	transition: transform .15s ease, box-shadow .15s ease;
}
.elj-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20, 30, 50, .10); }
.elj-card-title { margin: 0 0 .6rem; font-size: 1.45rem; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.elj-card-title a { color: var(--elj-ink); text-decoration: none; }
.elj-card-title a:hover { color: var(--elj-accent); }
.elj-excerpt { margin: .75rem 0 1.1rem; color: var(--elj-muted); }
.elj-spontanea-link { margin-top: 2rem; padding: 1.1rem 1.4rem; background: var(--elj-tint); border-radius: 10px; }
.elj-spontanea-link a { font-weight: 700; color: var(--elj-accent); }

/* ---- Dati principali (sede, contratto, modalità) ---- */
.elj-wrap .elj-meta { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .4rem; font-size: .98rem; }
.elj-wrap .elj-meta li {
	display: grid;
	grid-template-columns: 11rem 1fr;
	gap: 0 .75rem;
	margin: 0;
	padding: .5rem .9rem;
	background: #eef1f6;
	background: color-mix(in srgb, var(--elj-accent) 8%, #fff);
	border-radius: 8px;
	color: var(--elj-ink);
}
.elj-wrap .elj-meta li::before { content: none; }
.elj-wrap .elj-meta-label { font-weight: 700; color: var(--elj-accent); }
@media (max-width: 600px) { .elj-wrap .elj-meta li { grid-template-columns: 1fr; gap: 0; } }

/* ---- Pagina dell'offerta ---- */
.elj-back { display: inline-block; margin-bottom: .5rem; color: var(--elj-muted); text-decoration: none; font-size: .95rem; }
.elj-back:hover { color: var(--elj-accent); }
.elj-title { margin: .25rem 0 .9rem; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.elj-content { margin: 1.5rem 0 2.5rem; }
.elj-section { margin: 0 0 2rem; }
.elj-section p { margin: 0 0 1rem; }
.elj-section-title {
	margin: 0 0 .8rem;
	padding-left: .8rem;
	border-left: 4px solid var(--elj-accent);
	font-size: 1.35rem;
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: -.01em;
}
.elj-section-list, .elj-rich ul { margin: 0 0 1rem; padding: 0; list-style: none; }
.elj-rich ol { margin: 0 0 1rem 1.4rem; padding: 0; }
.elj-rich ol li { margin: 0 0 .5rem; }
.elj-section-list li, .elj-rich ul li { position: relative; margin: 0 0 .65rem; padding-left: 1.6rem; }
.elj-section-list li::before, .elj-rich ul li::before {
	content: "";
	position: absolute;
	left: .15rem;
	top: .6em;
	width: .55rem;
	height: .55rem;
	border-radius: 50%;
	background: var(--elj-accent);
}
.elj-section-list strong, .elj-rich strong { color: var(--elj-ink); }
.elj-section-chisiamo,
.elj-section-offriamo { padding: 1.4rem 1.6rem; background: var(--elj-tint); border-radius: 12px; }

/* ---- Pulsanti ---- */
.elj-btn {
	display: inline-block;
	background: var(--elj-btn, #1e5eff);
	color: var(--elj-btn-text, #fff);
	border: 0;
	border-radius: 8px;
	padding: .8rem 1.6rem;
	cursor: pointer;
	text-decoration: none;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: .01em;
	box-shadow: 0 2px 6px rgba(20, 30, 50, .15);
	transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.elj-btn:hover { opacity: .92; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(20, 30, 50, .2); color: var(--elj-btn-text, #fff); }
.elj-btn:disabled { opacity: .5; cursor: default; transform: none; }

/* ---- Form ---- */
.elj-apply-title { margin: 3rem 0 1rem; font-size: 1.7rem; font-weight: 800; letter-spacing: -.01em; }
.elj-form { padding: 1.75rem; background: var(--elj-tint); border-radius: 14px; }
.elj-spontanea .elj-form { margin-top: 0; }
.elj-form p { margin: 0 0 1.1rem; }
.elj-form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.elj-form input[type=text], .elj-form input[type=email], .elj-form input[type=tel], .elj-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: .75rem .9rem;
	background: #fff;
	border: 1px solid #cfd5df;
	border-radius: 8px;
	font: inherit;
	color: var(--elj-ink);
}
.elj-form input:focus, .elj-form textarea:focus {
	outline: none;
	border-color: var(--elj-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--elj-accent) 25%, transparent);
}
.elj-form input[type=file] { width: 100%; padding: .6rem; background: #fff; border: 1px dashed #aab3c2; border-radius: 8px; box-sizing: border-box; }
.elj-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.elj-row-3 { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 600px) {
	.elj-row, .elj-row-3 { grid-template-columns: 1fr; }
	.elj-form { padding: 1.25rem; }
	.elj-card { padding: 1.25rem; }
}
.elj-req { color: #d63638; }
.elj-consent label { font-weight: 400; font-size: .9rem; color: var(--elj-muted); }
.elj-consent a { color: var(--elj-accent); }
.elj-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.elj-msg { margin-top: .75rem; font-weight: 600; }
.elj-ok { color: #1a7f37; }
.elj-err { color: #d63638; }
.elj-empty { padding: 1.5rem; background: var(--elj-tint); border-radius: 12px; text-align: center; }

/* ---- Posizioni assegnate / avvisi ---- */
.elj-card-closed { border-left-color: #b8bfca; background: #f7f8fa; box-shadow: none; }
.elj-card-closed:hover { transform: none; box-shadow: none; }
.elj-card-closed .elj-card-title { color: var(--elj-muted); }
.elj-badge { display: inline-block; margin: 0 0 .25rem; padding: .25rem .8rem; background: #e3e6ec; color: #3c4655; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.elj-notice { margin: 0 0 1rem; padding: 1rem 1.25rem; background: #fff4e5; border-left: 4px solid #f0a020; border-radius: 8px; font-weight: 600; }
.elj-spontanea-box { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid #e5e8ee; }
.elj-spontanea-box .elj-apply-title { margin-top: 1rem; }

/* ---- Fisarmonica (come le FAQ) ---- */
.elj-acc { display: grid; gap: .75rem; margin-bottom: 1.5rem; }
.elj-item { background: #fff; border: 1px solid #e5e8ee; border-left: 5px solid var(--elj-accent); border-radius: 12px; box-shadow: 0 2px 10px rgba(20, 30, 50, .05); overflow: hidden; }
.elj-item[open] { box-shadow: 0 8px 22px rgba(20, 30, 50, .10); }
.elj-item > summary {
	display: flex; align-items: center; justify-content: space-between; gap: 1rem;
	padding: 1.1rem 1.5rem; cursor: pointer; list-style: none;
	font-size: 1.25rem; font-weight: 700; line-height: 1.3; letter-spacing: -.01em;
}
.elj-item > summary::-webkit-details-marker { display: none; }
.elj-item > summary::after {
	content: ""; flex: 0 0 auto; width: .6rem; height: .6rem;
	border-right: 3px solid var(--elj-accent); border-bottom: 3px solid var(--elj-accent);
	transform: rotate(45deg); transition: transform .2s ease; margin-right: .3rem;
}
.elj-item[open] > summary::after { transform: rotate(-135deg); }
.elj-item > summary:hover .elj-item-title { color: var(--elj-accent); }
.elj-item-body { padding: .25rem 1.5rem 1.75rem; border-top: 1px solid #eef0f4; }
.elj-item-body > .elj-meta { margin-top: 1rem; }
.elj-item-body .elj-apply-title { margin-top: 2rem; font-size: 1.4rem; }
.elj-item-closed { border-left-color: #b8bfca; background: #f7f8fa; box-shadow: none; }
.elj-item-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.1rem 1.5rem; }
.elj-item-closed .elj-item-title { font-size: 1.25rem; font-weight: 700; color: var(--elj-muted); }
.elj-item-closed .elj-badge { margin: 0; }
.elj-item-spontanea { margin-top: 1.5rem; border-left-color: var(--elj-accent); background: var(--elj-tint); }
@media (max-width: 600px) { .elj-item > summary, .elj-item-head { padding: 1rem 1.1rem; } .elj-item-body { padding: .25rem 1.1rem 1.4rem; } }

.elj-rich > :last-child { margin-bottom: 0; }
.elj-rich a { color: var(--elj-accent); }

/* Consenso privacy: checkbox affiancata al testo e spazio prima del pulsante */
.elj-form .elj-consent { margin: 1.4rem 0 1.6rem; }
.elj-form .elj-consent label { display: flex; align-items: flex-start; gap: .65rem; line-height: 1.5; }
.elj-form .elj-consent input[type=checkbox] { flex: 0 0 auto; margin: .25rem 0 0; }
.elj-form .elj-consent a { margin: 0 .15em; }

/* ---- Condividi con ---- */
.elj-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1.5rem 0 0; padding-top: 1.1rem; border-top: 1px solid #eef0f4; }
.elj-share-label { font-weight: 700; margin-right: .25rem; }
.elj-share-btn {
	display: inline-block; padding: .4rem .9rem; background: #fff; color: var(--elj-accent); cursor: pointer;
	border: 1px solid var(--elj-accent); border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.3; text-decoration: none;
	transition: background .12s ease, color .12s ease;
}
.elj-share-btn:hover { background: var(--elj-accent); color: var(--elj-btn-text, #fff); }
