/* Tutti gli stili dell’app sono circoscritti a .cq; nessun font o foglio remoto. */
.cq-page { margin: 0; background: #fbf6e9; }
.cq {
  --cq-navy: #232831; --cq-blue: #765a27; --cq-accent: #c9a45a;
  --cq-accent-hover: #ab8640; --cq-text: #171716; --cq-muted: #5e574d;
  --cq-line: #d8ccb4; --cq-soft: #fbf6e9; --cq-white: #fffaf0;
  --cq-radius: 24px; --cq-font: Arial, Helvetica, sans-serif;
  color: var(--cq-text); background: var(--cq-soft); font: 400 16px/1.6 var(--cq-font);
  width: 100%; min-width: 0; padding: 0 28px; box-sizing: border-box;
  -webkit-font-smoothing: antialiased; text-align: left;
}
.cq *, .cq *::before, .cq *::after { box-sizing: border-box; }
.cq [hidden] { display: none !important; }
.cq h1, .cq h2, .cq h3, .cq p, .cq ul, .cq ol { margin: 0; }
.cq h1, .cq h2, .cq h3 { color: var(--cq-navy); line-height: 1.15; letter-spacing: -.035em; font-weight: 650; }
.cq h1 { font-size: clamp(2.5rem, 4.7vw, 4.5rem); }
.cq h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.cq h3 { font-size: 1.125rem; letter-spacing: -.015em; }
.cq a { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.cq button, .cq input, .cq textarea { font: inherit; }
.cq button, .cq a { -webkit-tap-highlight-color: transparent; }
.cq button { cursor: pointer; }
.cq button:disabled { cursor: not-allowed; opacity: .48; }
.cq :focus-visible { outline: 3px solid var(--cq-blue); outline-offset: 5px; }
.cq [tabindex="-1"]:focus { outline: none; }
.cq .cq-icon { display: block; width: 24px; height: 24px; flex: 0 0 auto; }
.cq .cq-header { max-width: 1200px; margin: auto; min-height: 112px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.cq .cq-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cq-navy); }
.cq .cq-wordmark { font-size: 1.75rem; font-weight: 750; letter-spacing: -.08em; }
.cq .cq-brand-dot { color: var(--cq-accent); }
.cq .cq-brand img { display: block; max-width: 170px; max-height: 52px; object-fit: contain; }
.cq .cq-brand-description { border-left: 1px solid #cbbd9f; padding-left: 16px; line-height: 1.3; color: var(--cq-muted); font-size: .875rem; }
.cq .cq-backsite { font-size: .875rem; text-decoration: none; display: flex; gap: 8px; align-items: center; min-height: 44px; }
.cq .cq-backsite .cq-icon { width: 16px; height: 16px; }
.cq .cq-body { max-width: 1200px; margin: auto; }
.cq .cq-eyebrow { font-size: .8125rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: var(--cq-blue); line-height: 1.6; }
.cq .cq-intro { box-shadow: 0 22px 60px rgba(79,63,32,.10); display: grid; grid-template-columns: 1.18fr 1fr; min-height: 600px; background: var(--cq-white); border: 1px solid var(--cq-line); border-radius: var(--cq-radius); overflow: hidden; }
.cq .cq-intro-copy { padding: clamp(28px, 4vw, 58px); display: flex; flex-direction: column; align-items: flex-start; }
.cq .cq-intro-title { margin-top: 22px; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(2.5rem, 4vw, 3.8rem); line-height: 1.08; letter-spacing: -.04em; }
.cq .cq-intro-title span { color: var(--cq-blue); }
.cq .cq-description { color: var(--cq-muted); font-size: 1.0625rem; line-height: 1.7; margin-top: 24px; max-width: 490px; }
.cq .cq-intro .cq-btn { margin-top: 32px; }
.cq .cq-btn { display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid transparent; border-radius: 999px; padding: 16px 24px; min-height: 56px; color: var(--cq-text); background: linear-gradient(135deg,var(--cq-accent),#d9bb74); text-decoration: none; font-weight: 800; line-height: 1.4; transition: background .15s, transform .15s; }
.cq .cq-btn:hover { background: linear-gradient(135deg,#bf974c,#d9bb74); box-shadow: 0 14px 28px rgba(79,63,32,.16); transform: translateY(-1px); }
.cq .cq-btn .cq-icon { width: 20px; height: 20px; }
.cq .cq-btn-secondary { color: #fffaf0; background: var(--cq-navy); border-color: var(--cq-navy); }
.cq .cq-btn-secondary:hover { background: #343a43; }
.cq .cq-smallprint { margin-top: 18px; font-size: .875rem; color: var(--cq-muted); }
.cq .cq-trust { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--cq-muted); font-size: .875rem; }
.cq .cq-trust span { display: flex; align-items: center; gap: 7px; }
.cq .cq-trust .cq-icon { width: 17px; height: 17px; color: var(--cq-blue); }
.cq .cq-overview { margin: 14px; margin-left: 0; padding: 42px 36px; background: var(--cq-navy); color: #f3ead5; border-radius: 17px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.cq .cq-overview::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(#ffffff06 1px, transparent 1px), linear-gradient(90deg, #ffffff06 1px, transparent 1px); background-size: 38px 38px; pointer-events: none; }
.cq .cq-overview > * { position: relative; }
.cq .cq-overview .cq-eyebrow { color: #dfc792; }
.cq .cq-big-six { display: flex; gap: 18px; align-items: center; margin: 26px 0 34px; }
.cq .cq-big-six strong { font-size: 7rem; line-height: .9; font-weight: 400; letter-spacing: -.07em; color: white; }
.cq .cq-big-six span { font-size: 1.5rem; line-height: 1.35; color: white; letter-spacing: -.02em; }
.cq .cq-journey { list-style: none; padding: 0; }
.cq .cq-journey li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 21px 0; border-top: 1px solid #ffffff26; }
.cq .cq-journey li > span { font-size: .8125rem; color: #dfc792; padding-top: 3px; }
.cq .cq-journey strong { color: #fff; display: block; font-weight: 600; margin-bottom: 3px; }
.cq .cq-journey p { font-size: .9375rem; line-height: 1.55; }
.cq .cq-overview-note { font-size: .875rem; color: #dfc792; margin-top: auto; padding-top: 20px; }
.cq .cq-footer { max-width: 1200px; margin: auto; padding: 28px 0; display: flex; justify-content: space-between; gap: 15px; color: var(--cq-muted); font-size: .8125rem; }
.cq .cq-workspace { display: grid; grid-template-columns: 270px 1fr; border: 1px solid var(--cq-line); background: white; border-radius: var(--cq-radius); overflow: hidden; }
.cq .cq-sidebar { background: #f3ead5; padding: 36px 28px; border-right: 1px solid var(--cq-line); }
.cq .cq-sidebar h2 { font-size: 1.6rem; margin: 12px 0 28px; }
.cq .cq-steps { list-style: none; padding: 0; }
.cq .cq-steps li { display: flex; align-items: center; gap: 12px; padding: 14px 0; color: var(--cq-muted); font-size: .875rem; }
.cq .cq-step-number { border: 1px solid #bfaf8e; border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 28px; font-size: .8125rem; }
.cq .cq-step-number .cq-icon { width: 16px; height: 16px; }
.cq .cq-steps [aria-current="step"] { color: var(--cq-navy); font-weight: 650; }
.cq .cq-steps [aria-current="step"] .cq-step-number { background: var(--cq-navy); color: white; border-color: var(--cq-navy); }
.cq .cq-step-done .cq-step-number { border-color: var(--cq-blue); color: var(--cq-blue); }
.cq .cq-question-panel { padding: 34px 40px; min-width: 0; }
.cq .cq-progress-heading { display: flex; justify-content: space-between; gap: 15px; font-size: .875rem; color: var(--cq-muted); margin-bottom: 10px; }
.cq .cq-progress { width: 100%; height: 4px; appearance: none; border: 0; display: block; margin-bottom: 32px; background: #e9dfc8; border-radius: 8px; overflow: hidden; }
.cq .cq-progress::-webkit-progress-bar { background: #e9dfc8; }
.cq .cq-progress::-webkit-progress-value { background: var(--cq-blue); }
.cq .cq-progress::-moz-progress-bar { background: var(--cq-blue); }
.cq .cq-question-title { margin-bottom: 14px; font-size: clamp(1.75rem, 3vw, 2.5rem); }
.cq .cq-hint { color: var(--cq-muted); font-size: .9375rem; margin-top: 12px; }
.cq .cq-fieldset { border: 0; margin: 25px 0 0; padding: 0; min-width: 0; }
.cq .cq-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cq .cq-options-single-column { grid-template-columns: 1fr; }
.cq .cq-option { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 104px; padding: 20px 16px; border: 1px solid var(--cq-line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.cq .cq-option:hover { border-color: #b39762; background: #fffaf0; }
.cq .cq-option:has(input:checked) { border: 2px solid var(--cq-blue); background: #f6ecd5; padding: 19px 15px; }
.cq .cq-option:has(input:focus-visible) { outline: 3px solid var(--cq-blue); outline-offset: 3px; }
.cq .cq-option > .cq-icon { color: var(--cq-blue); width: 23px; height: 23px; margin-top: 2px; }
.cq .cq-option-copy { flex: 1; min-width: 0; }
.cq .cq-option-copy strong { display: block; font-weight: 600; line-height: 1.4; }
.cq .cq-option-copy small { display: block; color: var(--cq-muted); font-size: .875rem; margin-top: 5px; line-height: 1.5; }
.cq .cq-option input { appearance: auto; accent-color: var(--cq-blue); width: 18px; height: 18px; margin: 3px 0 0; flex: 0 0 18px; }
.cq .cq-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--cq-line); }
.cq .cq-text-button { padding: 10px 0; border: 0; background: none; color: var(--cq-muted); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; }
.cq .cq-feedback { color: #804022; font-size: .875rem; min-height: 24px; margin-top: 12px; }
.cq .cq-results-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 25px; margin: 12px 0 28px; }
.cq .cq-result-title { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(2rem, 3.8vw, 3.4rem); margin-top: 12px; }
.cq .cq-results-heading p { color: var(--cq-muted); margin-top: 15px; max-width: 800px; }
.cq .cq-result-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.cq .cq-scorecard { background: var(--cq-navy); color: #f3ead5; padding: 32px; border-radius: var(--cq-radius); }
.cq .cq-scorecard h2 { color: white; font-size: 1.5rem; letter-spacing: -.02em; }
.cq .cq-scorecard > p { font-size: .875rem; margin-top: 9px; }
.cq .cq-radar { display: block; width: 100%; max-width: 390px; margin: 12px auto; overflow: visible; }
.cq .cq-radar text { fill: #f3ead5; font-family: var(--cq-font); font-size: 14px; }
.cq .cq-meters { display: grid; gap: 17px; }
.cq .cq-meter-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; font-size: .875rem; margin-bottom: 7px; }
.cq .cq-meter-heading strong { font-weight: 550; color: #fff; }
.cq .cq-meter { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.cq .cq-meter span { height: 5px; border-radius: 2px; background: #ffffff20; }
.cq .cq-meter span.cq-filled { background: #c9a45a; }
.cq .cq-meter-primary span.cq-filled { background: #f3d790; }
.cq .cq-chart-note { border-top: 1px solid #ffffff26; margin-top: 24px; padding-top: 18px; color: #e0d1b1; font-size: .8125rem; }
.cq .cq-reasons { background: white; border: 1px solid var(--cq-line); padding: 32px; border-radius: var(--cq-radius); }
.cq .cq-reasons > h2 { font-size: 1.5rem; margin-bottom: 6px; }
.cq .cq-reasons-list { list-style: none; padding: 0; }
.cq .cq-reasons-list li { display: grid; grid-template-columns: 32px 1fr; gap: 15px; padding: 22px 0; border-bottom: 1px solid var(--cq-line); }
.cq .cq-reasons-list li:last-child { border-bottom: none; padding-bottom: 0; }
.cq .cq-reason-n { font-size: .8125rem; color: var(--cq-blue); padding-top: 3px; }
.cq .cq-reasons-list p { margin-top: 8px; font-size: .9375rem; color: var(--cq-muted); }
.cq .cq-callout { grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; border: 1px solid #d8ccb4; border-radius: var(--cq-radius); padding: 34px 38px; background: #f3ead5; }
.cq .cq-callout h2 { font-size: 1.75rem; }
.cq .cq-callout p { color: var(--cq-muted); margin-top: 12px; }
.cq .cq-cta-column { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.cq .cq-cta-column small { font-size: .8125rem; color: var(--cq-muted); }
.cq .cq-summary { margin-top: 24px; border: 1px solid var(--cq-line); border-radius: 16px; background: white; padding: 20px 24px; }
.cq .cq-summary summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.cq .cq-summary dl { display: grid; grid-template-columns: 1fr 1.5fr; font-size: .9375rem; margin: 18px 0; gap: 10px 24px; }
.cq .cq-summary dt { color: var(--cq-muted); }
.cq .cq-summary dd { margin: 0; }
.cq .cq-summary .cq-hint { margin-bottom: 10px; }
.cq .cq-form-section { background: white; border: 1px solid var(--cq-line); border-radius: var(--cq-radius); padding: 32px; margin-top: 24px; }
.cq .cq-form-section > p { color: var(--cq-muted); margin: 14px 0 24px; }
.cq .cq-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cq .cq-field { display: flex; flex-direction: column; gap: 7px; font-size: .9375rem; font-weight: 550; }
.cq .cq-field-full { grid-column: 1 / -1; }
.cq .cq-field input, .cq .cq-field textarea { width: 100%; padding: 12px 14px; border: 1px solid #b8a783; border-radius: 9px; color: var(--cq-text); background: white; font-weight: 400; }
.cq .cq-field textarea { resize: vertical; min-height: 110px; }
.cq .cq-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; font-weight: 400; }
.cq .cq-consent input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--cq-blue); flex: 0 0 18px; }
.cq .cq-form-status { margin-top: 16px; font-size: .9375rem; }
.cq .cq-form-status[data-state="error"] { color: #a03120; }
.cq .cq-form-status[data-state="success"] { color: #21653e; }
.cq .cq-form-section .cq-btn { margin-top: 22px; }
.cq .cq-copy-fallback { display: block; width: 100%; margin: 12px 0; padding: 14px; border: 1px solid var(--cq-line); border-radius: 9px; color: var(--cq-text); background: var(--cq-soft); font: inherit; resize: vertical; }
.cq .cq-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cq .cq-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cq .cq-fallback { max-width: 700px; margin: auto; padding: 80px 10px; }
.cq .cq-view { animation: cq-appear .22s ease-out; }
@keyframes cq-appear { from { opacity: .5; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (min-width: 1600px) { .cq .cq-header { min-height: 132px; } }
@media (max-width: 1000px) {
  .cq .cq-intro { grid-template-columns: 1.1fr 1fr; }
  .cq .cq-overview { padding: 32px 25px; }
  .cq .cq-workspace { grid-template-columns: 215px 1fr; }
  .cq .cq-sidebar { padding: 30px 20px; }
  .cq .cq-question-panel { padding: 28px; }
  .cq .cq-options { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cq { padding: 0 16px; }
  .cq .cq-header { min-height: 88px; }
  .cq .cq-brand-description { display: none; }
  .cq .cq-intro { grid-template-columns: 1fr; min-height: auto; }
  .cq .cq-intro-copy { padding: 30px 26px; }
  .cq .cq-intro-title { font-size: clamp(2.5rem, 9vw, 4rem); }
  .cq .cq-overview { margin: 0 12px 12px; padding: 28px; }
  .cq .cq-big-six { margin: 22px 0 26px; }
  .cq .cq-big-six strong { font-size: 5rem; }
  .cq .cq-journey li { padding: 16px 0; }
  .cq .cq-footer { flex-direction: column; padding: 24px 0; gap: 6px; }
  .cq .cq-workspace { grid-template-columns: 1fr; }
  .cq .cq-sidebar { display: none; }
  .cq .cq-question-panel { padding: 26px 22px; }
  .cq .cq-progress { margin-bottom: 25px; }
  .cq .cq-option { min-height: 88px; }
  .cq .cq-results-heading { flex-direction: column; gap: 8px; }
  .cq .cq-results-heading .cq-text-button { align-self: flex-start; }
  .cq .cq-result-grid { grid-template-columns: 1fr; gap: 18px; }
  .cq .cq-scorecard, .cq .cq-reasons { padding: 26px; }
  .cq .cq-callout { grid-template-columns: 1fr; padding: 28px 24px; gap: 24px; }
  .cq .cq-summary dl { grid-template-columns: 1fr; gap: 4px; }
  .cq .cq-summary dd { margin-bottom: 13px; }
  .cq .cq-form-section { padding: 26px; }
  .cq .cq-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .cq { padding: 0 10px; }
  .cq .cq-intro-copy, .cq .cq-question-panel, .cq .cq-reasons, .cq .cq-scorecard { padding: 24px 18px; }
  .cq .cq-btn { padding: 14px 16px; gap: 10px; }
  .cq .cq-backsite { font-size: .8125rem; }
  .cq .cq-progress-heading { flex-direction: column; gap: 1px; }
}
@media (prefers-reduced-motion: reduce) {
  .cq *, .cq *::before, .cq *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Intestazione e footer sono quelli del sito nelle pagine integrate. */
.cq.cq-integrated { padding: 0; background: transparent; }
.cq .cq-body, .cq .cq-form-section { scroll-margin-top: 112px; }
.cq .cq-callout { background: linear-gradient(135deg,#f2e5c8,#fffaf0); }
.cq .cq-question-title { font-weight: 800; }
.cq .cq-contact-note { margin-top: 20px; color: var(--cq-muted); font-size: .9375rem; }
.cq .cq-contact-help .cq-field { margin: 14px 0; }
.cq .cq-contact-help input { width: 100%; min-width: 0; }
@media(max-width:600px){ .cq .cq-body, .cq .cq-form-section { scroll-margin-top: 92px; } }
