/* Trova il tuo Cammino — styles. Every rule is scoped under .cq-root to win
   against theme / Elementor styles. Critical text colors are forced so the
   theme can't repaint buttons or links. */
.cq-root {
	--cq-blue: #223C9F;
	--cq-blue-dark: #1a2f7d;
	--cq-blue-soft: #eef1fb;
	--cq-blue-line: #d4ddf6;
	--cq-gold: #E9BF1E;
	--cq-ink: #1a1d29;
	--cq-ink-soft: #555c6e;
	--cq-paper: #ffffff;
	--cq-panel: #f6f7fb;
	--cq-line: #e2e5ef;
	--cq-shadow: 0 1px 2px rgba(26,29,41,.05), 0 10px 34px rgba(26,29,41,.08);

	max-width: 680px;
	margin: 2rem auto;
	font-family: ui-sans-serif, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--cq-ink);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-align: left;
}
.cq-root *, .cq-root *::before, .cq-root *::after { box-sizing: border-box; }

/* Defensive resets: neutralise theme styles that could break the widget. */
.cq-root a { color: inherit; text-decoration: none; box-shadow: none; }
.cq-root a:hover { text-decoration: none; }
.cq-root button {
	font-family: inherit; margin: 0; text-transform: none;
	background: none; border: none; box-shadow: none; line-height: normal;
}
.cq-root p { margin: 0 0 .6rem; }
.cq-root ul { margin: 0; }
.cq-root h2, .cq-root h3, .cq-root h4 { margin: 0; line-height: 1.25; }

.cq-root .cq-card {
	background: var(--cq-panel);
	border: 1px solid var(--cq-line);
	border-radius: 18px;
	padding: clamp(20px, 4vw, 34px);
	box-shadow: var(--cq-shadow);
	position: relative;
	overflow: hidden;
}
.cq-root .cq-card::before {
	content: "";
	position: absolute; inset: 0 0 auto 0; height: 5px;
	background: linear-gradient(90deg, var(--cq-blue) 0%, var(--cq-blue) 55%, var(--cq-gold) 100%);
}

/* Headings (editorial serif) */
.cq-root .cq-h2, .cq-root .cq-q, .cq-root .cq-rc-name, .cq-root .cq-res-title {
	font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
	letter-spacing: -.01em;
	color: var(--cq-ink);
}

.cq-root .cq-badge-top {
	display: inline-block;
	font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
	color: var(--cq-blue);
	background: var(--cq-blue-soft); border: 1px solid var(--cq-blue-line);
	padding: 5px 11px; border-radius: 999px; margin-bottom: 14px;
}
.cq-root .cq-h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); margin: 0 0 .5rem; }
.cq-root .cq-lead { color: var(--cq-ink-soft); font-size: 1.05rem; margin: 0 0 1.4rem; max-width: 46ch; }
.cq-root .cq-fineprint { color: var(--cq-ink-soft); font-size: .85rem; margin: .9rem 0 0; }

/* Progress */
.cq-root .cq-progress { height: 7px; background: #e7eaf3; border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.cq-root .cq-progress-bar { height: 100%; background: var(--cq-blue); border-radius: 999px; transition: width .35s ease; }
.cq-root .cq-step-no { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cq-blue); margin-bottom: 6px; }
.cq-root .cq-q { font-size: clamp(1.25rem, 3.6vw, 1.6rem); margin: 0 0 .35rem; }
.cq-root .cq-help { color: var(--cq-ink-soft); font-size: .92rem; margin: 0 0 1.1rem; }

/* Options */
.cq-root .cq-opts { display: grid; gap: 10px; margin: 6px 0 4px; }
.cq-root .cq-opt {
	display: flex; align-items: center; gap: 12px;
	width: 100%; text-align: left; cursor: pointer;
	background: var(--cq-paper); border: 1.5px solid var(--cq-line); border-radius: 13px;
	padding: 14px 16px; font-size: 1rem; color: var(--cq-ink);
	transition: border-color .15s, box-shadow .15s, background .15s, transform .05s;
}
.cq-root .cq-opt:hover { border-color: var(--cq-blue-line); box-shadow: 0 4px 14px rgba(34,60,159,.10); }
.cq-root .cq-opt:active { transform: translateY(1px); }
.cq-root .cq-opt.is-sel { border-color: var(--cq-blue); background: var(--cq-blue-soft); box-shadow: 0 0 0 3px rgba(34,60,159,.14); }
.cq-root .cq-opt-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cq-root .cq-opt-t { font-weight: 600; font-size: 1rem; color: var(--cq-ink); }
.cq-root .cq-opt-d { font-size: .85rem; color: var(--cq-ink-soft); }
.cq-root .cq-opt-mark {
	flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
	border: 2px solid #c7cdda; position: relative; transition: border-color .15s; background: transparent;
}
.cq-root .cq-opt.is-sel .cq-opt-mark { border-color: var(--cq-blue); }
.cq-root .cq-opt.is-sel .cq-opt-mark::after {
	content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--cq-blue);
}

/* Select (origin) */
.cq-root .cq-select {
	width: 100%; font-size: 1rem; font-family: inherit; color: var(--cq-ink);
	padding: 13px 15px; border: 1.5px solid var(--cq-line); border-radius: 13px;
	background: var(--cq-paper); cursor: pointer;
}
.cq-root .cq-select:focus { outline: none; border-color: var(--cq-blue); box-shadow: 0 0 0 3px rgba(34,60,159,.14); }

/* Buttons — colors forced so the theme can't override them */
.cq-root .cq-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	font-size: 1rem; font-family: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
	padding: 12px 20px; border-radius: 12px; border: 1.5px solid transparent;
	transition: background .15s, border-color .15s, color .15s, transform .05s, box-shadow .15s;
}
.cq-root .cq-btn:active { transform: translateY(1px); }
.cq-root .cq-btn-lg { padding: 14px 26px; font-size: 1.05rem; }

.cq-root .cq-btn-primary,
.cq-root a.cq-btn-primary { background: var(--cq-blue) !important; color: #ffffff !important; border-color: var(--cq-blue) !important; }
.cq-root .cq-btn-primary:hover,
.cq-root a.cq-btn-primary:hover { background: var(--cq-blue-dark) !important; color: #ffffff !important; border-color: var(--cq-blue-dark) !important; box-shadow: 0 6px 18px rgba(34,60,159,.22); }

.cq-root .cq-btn-ghost,
.cq-root a.cq-btn-ghost { background: transparent !important; color: var(--cq-ink) !important; border-color: #c7cdda !important; }
.cq-root .cq-btn-ghost:hover,
.cq-root a.cq-btn-ghost:hover { color: var(--cq-blue) !important; border-color: var(--cq-blue) !important; }

.cq-root .cq-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.cq-root .cq-nav .cq-btn-primary { margin-left: auto; }

/* Results */
.cq-root .cq-res-head { margin-bottom: 18px; }
.cq-root .cq-res-title { font-size: clamp(1.35rem, 4vw, 1.7rem); margin: 0 0 .3rem; }
.cq-root .cq-res-sub { color: var(--cq-ink-soft); margin: 0; }

.cq-root .cq-rc {
	background: var(--cq-paper); border: 1px solid var(--cq-line); border-radius: 15px;
	padding: 18px 18px 16px; margin-bottom: 16px;
}
.cq-root .cq-rc-best { border: 1.5px solid var(--cq-blue); box-shadow: 0 8px 26px rgba(34,60,159,.12); }
.cq-root .cq-rc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cq-root .cq-match { font-size: .73rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.cq-root .cq-match-best { background: var(--cq-gold); color: var(--cq-ink); }
.cq-root .cq-match-alt { background: var(--cq-blue-soft); color: var(--cq-blue); }
.cq-root .cq-rc-meta { font-size: .82rem; color: var(--cq-ink-soft); font-weight: 600; }
.cq-root .cq-rc-name { font-size: 1.3rem; margin: 0 0 .25rem; }
.cq-root .cq-rc-pitch { color: var(--cq-ink-soft); margin: 0 0 .8rem; }

.cq-root .cq-warn {
	background: #fdf6df; border: 1px solid #f0dca0; color: #7a5a06;
	font-size: .88rem; padding: 9px 12px; border-radius: 10px; margin: 0 0 12px;
}

.cq-root .cq-why { background: var(--cq-blue-soft); border-radius: 11px; padding: 12px 14px; margin-bottom: 12px; }
.cq-root .cq-why-h { font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--cq-blue); margin-bottom: 6px; }
.cq-root .cq-why-list { margin: 0; padding-left: 18px; color: var(--cq-ink); list-style: disc; }
.cq-root .cq-why-list li { margin: 3px 0; font-size: .95rem; color: var(--cq-ink); }

.cq-root .cq-tradeoff { font-size: .92rem; color: var(--cq-ink-soft); margin: 0 0 12px; }
.cq-root .cq-tradeoff strong { color: var(--cq-ink); }

/* Flight badge */
.cq-root .cq-flight { border: 1px dashed var(--cq-line); border-radius: 11px; padding: 11px 13px; margin-bottom: 14px; background: #fbfcff; }
.cq-root .cq-fl-label { font-size: .73rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--cq-ink-soft); margin-bottom: 7px; }
.cq-root .cq-fl-head { display: flex; align-items: center; gap: 9px; }
.cq-root .cq-dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; }
.cq-root .cq-dot-green { background: #2f9c4d; }
.cq-root .cq-dot-amber { background: #d99a23; }
.cq-root .cq-dot-red { background: #cc4329; }
.cq-root .cq-fl-acc { font-weight: 700; font-size: .95rem; color: var(--cq-ink); }
.cq-root .cq-fl-price { margin-left: auto; font-weight: 800; color: var(--cq-blue); letter-spacing: .06em; }
.cq-root .cq-fl-note { font-size: .85rem; color: var(--cq-ink-soft); margin: 7px 0 0; }
.cq-root .cq-fl-link { display: inline-block; margin-top: 7px; font-size: .85rem; font-weight: 700; color: var(--cq-blue); text-decoration: none; }
.cq-root .cq-fl-link:hover { text-decoration: underline; }

.cq-root .cq-rc-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.cq-root .cq-cta { flex: 1; min-width: 220px; }
.cq-root .cq-res-foot { text-align: center; margin-top: 6px; }

@media (max-width: 480px) {
	.cq-root { margin: 1.2rem auto; }
	.cq-root .cq-rc-ctas { flex-direction: column; }
	.cq-root .cq-cta { min-width: 0; }
}
