/* Test "La tua azienda è al sicuro?" — colori del sito: bordeaux #c5313e, sabbia #d2ae96 */
.ts-section { padding: 90px 0 110px; background: #f5f5f5; }
.ts-wrap { max-width: 860px; margin: 0 auto; }
.ts-form, .ts-result { scroll-margin-top: 120px; }

.ts-intro { text-align: left; margin-bottom: 36px; }
.ts-eyebrow { color: #c5313e; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; font-size: 14px; margin-bottom: 8px; }
.ts-intro h2 { font-size: 40px; line-height: 1.1; margin-bottom: 14px; color: #222; }
.ts-intro p { font-size: 17px; line-height: 1.6; color: #555; }

.ts-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ts-item { background: #fff; border: 1px solid #e6e1dc; border-radius: 14px; padding: 20px 22px; transition: border-color .2s, box-shadow .2s; }
.ts-item.is-answered { border-color: #d2ae96; }
.ts-item fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ts-item legend { float: none; width: auto; font-size: 18px; line-height: 1.45; color: #222; font-weight: 500; margin: 0 0 14px; display: flex; gap: 14px; }
.ts-num { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #f3ece6; color: #c5313e; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }

.ts-choices { display: flex; gap: 10px; flex-wrap: wrap; padding-left: 46px; }
.ts-choice { position: relative; cursor: pointer; margin: 0; }
.ts-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ts-choice span { display: inline-block; padding: 10px 22px; border-radius: 999px; border: 1.5px solid #d9d2cb; font-weight: 600; font-size: 16px; color: #444; background: #fff; transition: all .15s; min-width: 92px; text-align: center; }
.ts-choice:hover span { border-color: #c5313e; }
.ts-choice input:focus-visible + span { outline: 3px solid rgba(197, 49, 62, .35); outline-offset: 2px; }
.ts-yes input:checked + span { background: #2e7d4f; border-color: #2e7d4f; color: #fff; }
.ts-no input:checked + span { background: #c5313e; border-color: #c5313e; color: #fff; }

.ts-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.ts-progress { margin: 0; color: #666; font-size: 16px; }
.ts-actions .theme-btn[disabled] { opacity: .45; cursor: not-allowed; }

.ts-result { background: #fff; border-radius: 18px; padding: 36px; border: 1px solid #e6e1dc; outline: none; }
.ts-score { display: flex; gap: 28px; align-items: center; padding-bottom: 26px; border-bottom: 1px solid #eee; }
.ts-score-num { flex: none; margin: 0; line-height: 1; font-weight: 700; color: #c5313e; font-family: 'Teko', sans-serif; white-space: nowrap; }
.ts-score-num #ts-score-value { font-size: 88px; line-height: 1; color: inherit; }
.ts-score-num .ts-score-tot { font-size: 40px; color: #999; }
.ts-score h2 { font-size: 30px; margin: 0 0 8px; color: #222; }
.ts-score p { margin: 0; font-size: 17px; line-height: 1.6; color: #555; }
.ts-result.is-ok .ts-score-num { color: #2e7d4f; }
.ts-result.is-mid .ts-score-num { color: #c27a1a; }

.ts-todo { padding: 26px 0; border-bottom: 1px solid #eee; }
.ts-todo h3, .ts-contact h3 { font-size: 24px; margin-bottom: 14px; color: #222; }
.ts-todo ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ts-todo li { background: #fbf7f4; border-radius: 10px; padding: 14px 16px; }
.ts-todo li strong { display: block; color: #222; font-weight: 600; margin-bottom: 4px; }
.ts-todo li span { color: #555; font-size: 15px; line-height: 1.5; }

.ts-contact { padding-top: 26px; }
.ts-contact > p { color: #555; font-size: 16px; line-height: 1.6; }
.ts-contact label { display: block; font-weight: 600; font-size: 15px; color: #333; margin-bottom: 6px; }
.ts-contact input[type=text], .ts-contact input[type=email], .ts-contact input[type=tel] { width: 100%; height: 50px; padding: 0 16px; border: 1px solid #ddd; border-radius: 8px; font-size: 16px; background: #fff; }
.ts-contact input:focus { border-color: #c5313e; outline: none; box-shadow: 0 0 0 3px rgba(197, 49, 62, .15); }
.ts-contact .form-group { margin-bottom: 16px; }
.ts-consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; line-height: 1.5; }
.ts-consent input { margin-top: 4px; flex: none; width: 18px; height: 18px; }
.ts-consent a { color: #c5313e; text-decoration: underline; }
.ts-note { font-size: 14px; color: #777; margin-bottom: 10px; }
.ts-msg { min-height: 1em; margin-bottom: 12px; font-size: 15px; }
.ts-msg.is-error { color: #c5313e; }
.ts-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.ts-restart { margin: 22px 0 0; text-align: center; }
.ts-link { background: none; border: 0; color: #c5313e; text-decoration: underline; font-size: 15px; cursor: pointer; }

@media (max-width: 767px) {
    .ts-section { padding: 50px 0 70px; }
    .ts-intro h2 { font-size: 30px; }
    .ts-item { padding: 16px; }
    .ts-item legend { font-size: 16px; gap: 10px; }
    .ts-choices { padding-left: 0; }
    .ts-choice { flex: 1; }
    .ts-choice span { width: 100%; }
    .ts-result { padding: 22px; }
    .ts-score { flex-direction: column; align-items: flex-start; gap: 12px; }
    .ts-actions .theme-btn { width: 100%; }
}
