/* Pagine degli esempi (site2024/esempi): stili comuni a tutte, IT ed EN.
   Testata, riquadri e CTA sono quelli delle pagine dei moduli; qui in più lo
   schema a passi, il racconto a blocchi, i conti e i riquadri della testata
   disegnati in HTML (non sono immagini: niente testo da tradurre in un file). */

/* ── Testata ── */
.module-hero {
	background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
	padding: 100px 0 80px;
	color: #fff;
}
.module-tag {
	display: inline-block;
	background: rgba(102,126,234,0.25);
	border: 1px solid rgba(102,126,234,0.5);
	color: #a0b4ff;
	font-size: 13px;
	font-weight: 600;
	padding: 5px 14px;
	border-radius: 20px;
	margin-bottom: 20px;
	letter-spacing: 0.5px;
}
.module-hero h1 {
	font-size: 40px;
	font-weight: 800;
	line-height: 1.2;
	margin-bottom: 20px;
	color: #fff;
}
.module-hero p {
	font-size: 18px;
	color: rgba(255,255,255,0.8);
	line-height: 1.8;
	margin-bottom: 24px;
	max-width: 560px;
}
.hero-mods { font-size: 15px; color: rgba(255,255,255,0.6); margin-bottom: 32px; }
.hero-mods a {
	display: inline-block;
	margin: 4px 6px 4px 0;
	padding: 4px 12px;
	border-radius: 14px;
	border: 1px solid rgba(255,255,255,0.3);
	color: #fff;
	font-size: 14px;
	text-decoration: none;
}
.hero-mods a:hover { background: rgba(255,255,255,0.1); }

/* ── Riquadro della testata (commessa, ticket, verifica, campagna) ── */
.job-card {
	background: #fff;
	color: #333;
	border-radius: 12px;
	padding: 22px 24px;
	box-shadow: 0 20px 45px rgba(0,0,0,0.4);
	max-width: 420px;
	margin: 0 auto;
}
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.job-num { font-size: 13px; color: #888; font-weight: 600; }
.job-title { font-size: 18px; font-weight: 700; }
.job-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; padding: 7px 0; border-bottom: 1px solid #f0f1f5; }
.job-row:last-child { border-bottom: 0; }
.job-row > span:first-child { color: #777; }
.job-row.big b { font-size: 18px; color: #1a7a40; }
.job-card .val { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px 8px; text-align: right; }
.job-bar { height: 8px; border-radius: 4px; background: #eef0f5; margin: 2px 0 10px; overflow: hidden; }
.job-bar span { display: block; height: 100%; background: #f5b041; }
.job-bar.blue span { background: #667eea; }
.job-foot { font-size: 13px; color: #888; margin-top: 12px; line-height: 1.5; }
.job-foot i { color: #764ba2; margin-right: 4px; }

/* ── Stati: i colori della web app ── */
.status-chip {
	display: inline-block;
	border-radius: 20px;
	padding: 4px 14px;
	font-size: 13px;
	font-weight: 700;
	border: 1px solid transparent;
	white-space: nowrap;
}
.status-chip.sm { padding: 2px 10px; font-size: 12px; }
.chip-draft { background: #f1f3f5; color: #555; border-color: #dee2e6; }
.chip-live { background: #e8eeff; color: #3a5be0; border-color: #c7d4ff; }
.chip-good { background: #e6f9ee; color: #1a7a40; border-color: #b7e6ca; }
.chip-bad { background: #fff0f0; color: #c0392b; border-color: #f5c6c6; }
.chip-warn { background: #fff7e6; color: #b26a00; border-color: #ffe0a3; }
.chip-orange { background: #fff1e8; color: #d35400; border-color: #f8cfb3; }

/* ── Com'è oggi ── */
.problem-section { padding: 70px 0; background: #fff; }
.problem-lead {
	font-size: 20px;
	color: #444;
	line-height: 1.8;
	max-width: 750px;
	margin: 0 auto 50px;
	text-align: center;
}
.anomaly-pill {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 20px;
	border-radius: 10px;
	background: #f8f9ff;
	margin-bottom: 16px;
	height: calc(100% - 16px);
}
.anomaly-pill .pill-icon {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #fff;
	flex-shrink: 0;
}
.anomaly-pill h5 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.anomaly-pill p { font-size: 15px; color: #666; margin: 0; line-height: 1.6; }

/* ── Lo schema: i passi in colonna ── */
.flow { max-width: 820px; margin: 0 auto; }
.flow-step { display: flex; gap: 20px; position: relative; padding-bottom: 28px; }
.flow-step:not(:last-child)::before {
	content: "";
	position: absolute;
	left: 21px;
	top: 46px;
	bottom: 4px;
	width: 2px;
	background: #dcd6f0;
}
.flow-num {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.flow-body { flex: 1; background: #fff; border-radius: 10px; padding: 16px 20px; box-shadow: 0 3px 15px rgba(0,0,0,0.06); }
.flow-body h5 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.flow-body p { font-size: 15px; color: #555; line-height: 1.7; margin: 0; }
.flow-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 10px; }
.flow-who { font-size: 13px; color: #999; }
.flow-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* Pulsante verso la pagina del modulo: deve sembrare cliccabile, non un'etichetta */
.mod-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #764ba2;
	background: #fff;
	border: 1px solid #c9b8e8;
	border-radius: 6px;
	padding: 5px 12px;
	text-decoration: none;
	transition: background 0.15s, color 0.15s;
}
.mod-link:hover { background: #764ba2; border-color: #764ba2; color: #fff; text-decoration: none; }
.mod-link i { font-size: 14px; }

/* ── Il racconto: blocchi in fila, frasi corte ── */
.tl {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 36px 44px;
	max-width: 1120px;
	margin: 0 auto;
}
.tl-step {
	position: relative;
	background: #fff;
	border-radius: 12px;
	padding: 18px 18px 16px;
	box-shadow: 0 3px 15px rgba(0,0,0,0.07);
	border-top: 4px solid #667eea;
}
.tl-step::after {
	content: "\2192";
	position: absolute;
	right: -32px;
	top: 50%;
	transform: translateY(-50%);
	color: #b9b0d9;
	font-size: 22px;
	font-weight: 700;
}
.tl-step:nth-child(4n)::after,
.tl-step:last-child::after { display: none; }
.tl-when {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #764ba2;
	margin-bottom: 6px;
}
.tl-step h5 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.tl-step p { font-size: 15px; color: #555; line-height: 1.6; margin: 0; }
.tl-step.warn { border-top-color: #f5b041; }
.tl-step.warn .tl-when { color: #b26a00; }
.tl-step.good { border-top-color: #1a7a40; }
.tl-step.good .tl-when { color: #1a7a40; }
.tl-step.bad { border-top-color: #c0392b; }
.tl-step.bad .tl-when { color: #c0392b; }

/* ── I conti ── */
.bill-box {
	background: #f8f9ff;
	border-left: 4px solid #764ba2;
	border-radius: 10px;
	padding: 26px 30px;
	max-width: 620px;
	margin: 0 auto;
}
.bill-box h4 { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.bill-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; padding: 8px 0; border-bottom: 1px solid #e6e8f2; }
.bill-row span:first-child { color: #555; }
.bill-row.total { font-weight: 700; }
.bill-row.margin { font-weight: 800; font-size: 18px; color: #1a7a40; }
.bill-row.last { border-bottom: 0; }
.bill-note { font-size: 14px; color: #777; line-height: 1.7; margin: 14px 0 0; }

/* ── Da sapere ── */
.know p { font-size: 17px; color: #555; line-height: 1.8; }
.example-note { font-size: 14px; color: #999; font-style: italic; margin-top: 24px; }

/* ── Altri esempi ── */
.other-card {
	display: block;
	background: #fff;
	border-radius: 12px;
	padding: 22px 22px;
	height: 100%;
	box-shadow: 0 3px 15px rgba(0,0,0,0.07);
	color: #333;
	text-decoration: none;
	transition: transform 0.2s;
}
.other-card:hover { transform: translateY(-3px); text-decoration: none; color: #333; }
.other-card h5 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.other-card p { font-size: 14px; color: #666; line-height: 1.6; margin: 0; }
.other-card .go { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 700; color: #764ba2; }

/* ── CTA ── */
.cta-section {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 70px 0;
	text-align: center;
	color: #fff;
}
.cta-section h2 { font-size: 30px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.cta-section p { font-size: 17px; color: rgba(255,255,255,0.9); margin-bottom: 30px; }
.cta-btn-white {
	display: inline-block;
	background: #fff;
	color: #764ba2 !important;
	padding: 14px 36px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	transition: opacity 0.2s;
}
.cta-btn-white:hover { opacity: 0.9; text-decoration: none; }

/* ── Comuni ── */
.section-padding { padding: 70px 0; }
.bg-grey { background: #f8f9fa; }
.sub-title { font-size: 20px !important; letter-spacing: 1px; }

@media (max-width: 991px) {
	.tl { grid-template-columns: repeat(2, 1fr); }
	.tl-step:nth-child(4n)::after { display: block; }
	.tl-step:nth-child(2n)::after,
	.tl-step:last-child::after { display: none; }
}
@media (max-width: 575px) {
	.module-hero h1 { font-size: 32px; }
	.flow-step { gap: 14px; }
	.bill-box { padding: 22px 18px; }
	.tl { grid-template-columns: 1fr; gap: 38px; }
	.tl-step::after,
	.tl-step:nth-child(4n)::after,
	.tl-step:nth-child(2n)::after {
		display: block;
		content: "\2193";
		right: auto;
		left: 50%;
		top: auto;
		bottom: -33px;
		transform: translateX(-50%);
	}
	.tl-step:last-child::after { display: none; }
}

/* ── Pagina indice: le schede degli esempi ── */
.ex-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	border-top: 4px solid #667eea;
	padding: 26px 24px;
	height: 100%;
	box-shadow: 0 3px 15px rgba(0,0,0,0.07);
	color: #333;
	text-decoration: none;
	transition: transform 0.2s;
}
.ex-card:hover { transform: translateY(-3px); color: #333; text-decoration: none; }
.ex-icon {
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
}
.ex-card h4 { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.ex-card p { font-size: 15px; color: #666; line-height: 1.7; margin-bottom: 14px; }
.ex-mods { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ex-mods span { font-size: 12px; font-weight: 600; color: #555; background: #f1f3f5; border-radius: 12px; padding: 3px 10px; }
.ex-card .go { margin-top: auto; font-size: 15px; font-weight: 700; color: #764ba2; }
