/* La Mappa del Sonno is intentionally self-contained. The shared site stylesheet loads first. */
.test-page {
  --night: #07191d;
  --night-deep: #071217;
  --panel: #102329;
  --line: rgba(182, 207, 207, .22);
  --moon: #f1f0ea;
  --muted: #aebbc0;
  --cool: #a5cbd0;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
  background: var(--night);
  color: var(--moon);
  font-family: var(--sans);
  min-width: 280px;
  margin: 0;
}
.test-page *, .test-page *::before, .test-page *::after { box-sizing: border-box; }
.test-page [hidden] { display: none !important; }
.test-page .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.test-page .skip-link { position: absolute; top: -80px; left: 16px; z-index: 100; padding: 12px 18px; background: var(--moon); color: var(--night); }
.test-page .skip-link:focus { top: 12px; }
.test-page a { color: inherit; }
.test-page button { font: inherit; }
.test-page :focus-visible { outline: 2px solid #c9ebea; outline-offset: 5px; }

.test-header { width: min(100% - 64px, 1400px); margin: 0 auto; min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.test-wordmark { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: var(--moon); font: 600 .83rem/1.2 var(--sans); letter-spacing: .2em; white-space: nowrap; }
.test-logo, .footer-ring { flex: none; width: 29px; height: 29px; border: 1.5px solid var(--cool); border-right-color: transparent; border-radius: 50%; transform: rotate(-35deg); }
.test-header nav { display: flex; gap: clamp(14px, 2vw, 30px); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.test-header nav a { color: #b8c1c3; text-decoration: none; font: 500 .73rem/1.5 var(--sans); letter-spacing: .13em; text-transform: uppercase; transition: color .35s ease; }
.test-header nav a:hover, .test-header nav a[aria-current="page"] { color: var(--moon); }
.test-header nav a[aria-current="page"] { border-bottom: 1px solid var(--cool); padding-bottom: 5px; }
.test-main { overflow: hidden; }
.test-stage { width: min(100% - 80px, 1280px); margin: 0 auto; }
.stage-marker, .test-eyebrow, .section-index { color: var(--cool); font: 600 .7rem/1.5 var(--sans); letter-spacing: .21em; text-transform: uppercase; }
.stage-marker { display: flex; gap: 18px; align-items: center; margin: 55px 0 65px; }
.marker-line { width: 34px; border-top: 1px solid var(--cool); }
.test-page h1, .test-page h2 { color: var(--moon); font-family: var(--serif); font-weight: 400; }
.test-page h1 { font-size: clamp(4.2rem, 9.8vw, 9.8rem); line-height: .97; letter-spacing: -.075em; margin: 25px 0 36px; }
.test-page h1 em { font-weight: 400; color: #cad5d2; }
.test-page h2 { letter-spacing: -.035em; }
.test-intro { min-height: 750px; padding-bottom: 115px; }
.intro-grid { display: grid; grid-template-columns: 1fr .55fr; align-items: center; gap: 35px; position: relative; }
.test-lead { max-width: 570px; font-size: clamp(1.15rem, 2.2vw, 1.55rem); line-height: 1.48; color: #d3dddc; margin: 0 0 45px; }
.intro-manifesto { max-width: 460px; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.9rem); line-height: 1.35; color: var(--moon); margin: 0 0 48px; }
.test-button { border: 1px solid var(--cool); min-height: 58px; padding: 14px 24px; background: transparent; color: var(--moon); display: inline-flex; justify-content: space-between; align-items: center; gap: 38px; font-size: .82rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .35s ease, color .35s ease, border-color .35s ease; }
.test-button:hover:not(:disabled) { background: #d6e8e6; border-color: #d6e8e6; color: var(--night); }
.test-button:disabled { opacity: .38; cursor: not-allowed; }
.test-button-primary { background: var(--cool); color: var(--night); }
.test-button-primary:hover:not(:disabled) { background: #d6e8e6; }
.test-button-quiet { color: #b5c1c3; border-color: var(--line); }
.test-microcopy, .privacy-inline { color: var(--muted); font-size: .82rem; line-height: 1.5; margin-top: 18px; }
.intro-symbol { width: min(100%, 440px); aspect-ratio: 1; border: 1px solid rgba(170, 203, 207, .32); border-right-color: transparent; border-radius: 50%; transform: rotate(-32deg); position: relative; pointer-events: none; box-shadow: 0 0 0 38px rgba(107, 136, 147, .025), 0 0 0 80px rgba(107, 136, 147, .02); }
.intro-symbol::before, .intro-symbol::after { content: ""; position: absolute; border-radius: 50%; }
.intro-symbol::before { inset: 13%; border: 1px solid rgba(170, 203, 207, .17); border-bottom-color: transparent; }
.intro-symbol::after { inset: 31%; border: 1px solid rgba(170, 203, 207, .12); border-left-color: transparent; }
.intro-symbol-center { position: absolute; inset: 49%; border-radius: 50%; background: #c8dfe0; box-shadow: 0 0 38px 15px rgba(143, 188, 196, .11); }
.intro-boundary { max-width: 850px; margin-top: 110px; border-top: 1px solid var(--line); padding-top: 25px; display: grid; grid-template-columns: .55fr 1fr; gap: 30px; color: var(--muted); font-size: .93rem; line-height: 1.55; }
.intro-boundary strong { color: var(--moon); font-weight: 600; }

.question-stage { min-height: calc(100vh - 110px); padding-top: 50px; padding-bottom: 45px; }
.question-topline { display: flex; justify-content: space-between; color: var(--cool); letter-spacing: .16em; text-transform: uppercase; font-size: .75rem; font-weight: 600; }
.progress-track { margin-top: 18px; height: 2px; width: 100%; background: rgba(175, 204, 206, .18); }
.progress-track span { display: block; height: 100%; width: 0; background: var(--cool); transition: width .7s ease; }
.question-inner { width: min(100%, 760px); margin: clamp(90px, 10vw, 145px) auto 60px; }
.question-stage h2 { font-size: clamp(2.5rem, 5vw, 5rem); line-height: 1.08; margin: 14px 0 24px; }
.question-context { color: #b8c6c8; font-size: 1rem; line-height: 1.55; margin-bottom: 35px; }
.answer-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.answer-options { display: grid; gap: 10px; }
.answer-option { display: flex; align-items: center; gap: 16px; min-height: 67px; padding: 16px 19px; border: 1px solid var(--line); color: #dfe5e3; cursor: pointer; transition: background .3s ease, border-color .3s ease; }
.answer-option:hover, .answer-option:focus-within { border-color: #a5cbd0; background: rgba(139, 179, 183, .07); }
.answer-option:has(input:checked) { border-color: var(--cool); background: rgba(139, 179, 183, .11); }
.answer-option input { appearance: none; margin: 0; width: 20px; height: 20px; flex: none; border: 1px solid #9bb6b9; border-radius: 50%; background: transparent; }
.answer-option input:checked { background: var(--cool); box-shadow: inset 0 0 0 5px var(--night); }
.answer-option input:focus-visible { outline-offset: 4px; }
.answer-option span { font-size: 1rem; line-height: 1.4; }
.question-safety { color: #ebdcbb; border-left: 2px solid #c8aa79; background: rgba(171, 133, 74, .08); padding: 15px 19px; margin-top: 20px; line-height: 1.6; }
.question-actions { margin-top: 35px; display: flex; justify-content: space-between; gap: 18px; }
.question-actions .test-button { min-width: 160px; }
.privacy-inline { text-align: center; }

.result-stage { padding-bottom: 120px; }
.result-stage .test-eyebrow { margin: 0; }
.test-page #result-title { font-size: clamp(3.6rem, 8vw, 8rem); line-height: .97; letter-spacing: -.075em; margin: 15px 0 36px; }
.result-intro { max-width: 760px; font-size: clamp(1.08rem, 1.7vw, 1.35rem); color: #c6d1d1; line-height: 1.6; }
.safety-result { margin: 50px 0; padding: 30px 34px; border: 1px solid rgba(207, 176, 119, .45); background: #232524; color: #f2e8d8; }
.safety-result h2 { margin: 0 0 12px; font-size: 1.8rem; }
.safety-result p { line-height: 1.65; max-width: 850px; }
.safety-result a { text-underline-offset: 4px; }
.safety-sources { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 18px; }
.profile-grid { display: grid; grid-template-columns: minmax(340px, .9fr) 1fr; align-items: center; gap: clamp(40px, 8vw, 130px); margin: 85px 0 100px; }
.profile-visual { width: min(100%, 450px); aspect-ratio: 1; position: relative; margin-inline: auto; }
.orbit { position: absolute; border-radius: 50%; --ring-color: #374950; background: conic-gradient(from -60deg, var(--ring-color) 0deg 294deg, transparent 294deg 360deg); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
.orbit:nth-child(1) { inset: 0; }
.orbit:nth-child(2) { inset: 22px; transform: rotate(19deg); }
.orbit:nth-child(3) { inset: 44px; transform: rotate(-24deg); }
.orbit:nth-child(4) { inset: 66px; transform: rotate(33deg); }
.orbit:nth-child(5) { inset: 88px; transform: rotate(-40deg); }
.orbit[data-state="focus"] { --ring-color: #a5cbd0; filter: drop-shadow(0 0 5px rgba(165, 203, 208, .4)); }
.orbit[data-state="observe"] { --ring-color: #789ba2; }
.orbit[data-state="quiet"] { --ring-color: #4c6269; }
.orbit[data-state="unknown"] { --ring-color: #35444a; }
.orbit[data-state="warning"] { --ring-color: #d0b080; }
.profile-core { position: absolute; inset: 32%; display: grid; place-items: center; text-align: center; color: #becdd0; font-size: .62rem; line-height: 1.7; letter-spacing: .17em; }
.profile-grid h2 { font-size: clamp(2rem, 3vw, 3rem); margin: 0 0 12px; }
.profile-key { color: #9facaf; font-size: .88rem; line-height: 1.5; }
.profile-list { list-style: none; margin: 35px 0 0; padding: 0; }
.profile-list li { display: grid; grid-template-columns: 17px 1fr auto; gap: 17px; align-items: center; border-top: 1px solid var(--line); padding: 18px 0; color: #dfe5e3; }
.profile-list li:last-child { border-bottom: 1px solid var(--line); }
.profile-dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid #61777b; }
.profile-dot.focus { background: #a5cbd0; border-color: #a5cbd0; }
.profile-dot.observe { background: #789ba2; border-color: #789ba2; }
.profile-dot.warning { background: #d0b080; border-color: #d0b080; }
.profile-list strong { font-weight: 500; }
.profile-list small { color: #aebbc0; text-align: right; font-size: .77rem; }
.result-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 55px 0 65px; }
.result-block h2, .reading-chamber h2 { font-size: clamp(2rem, 3vw, 3.3rem); margin: 14px 0 20px; }
.result-block p:last-child { color: #c0ccce; line-height: 1.75; max-width: 510px; }
.reading-chamber { padding: 85px 0 105px; }
.reading-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.reading-link { display: block; border: 1px solid var(--line); padding: 27px; min-height: 138px; text-decoration: none; transition: border-color .3s ease, background .3s ease; }
.reading-link:hover { border-color: var(--cool); background: rgba(168, 203, 208, .07); }
.reading-link span { display: block; color: var(--cool); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 17px; }
.reading-link strong { font: 400 1.45rem/1.3 var(--serif); }
.observation-prompt { border-left: 1px solid var(--cool); padding-left: 25px; max-width: 760px; color: #c4d1d1; line-height: 1.7; margin-top: 38px; }
.bioage-chamber { background: #e4e7e1; color: #17272a; padding: clamp(38px, 7vw, 85px); border: 1px solid #e4e7e1; }
.bioage-chamber .section-index { color: #4e7177; }
.bioage-manifesto { font: 400 clamp(2.5rem, 5.5vw, 5.8rem)/1.06 var(--serif); letter-spacing: -.055em; margin: 70px 0 55px; max-width: 900px; }
.bioage-chamber h2 { color: #17272a; font: 600 .78rem/1.4 var(--sans); letter-spacing: .23em; margin: 0 0 10px; }
.bioage-chamber p:not(.section-index):not(.bioage-manifesto) { line-height: 1.65; max-width: 620px; }
.test-button-light { margin-top: 28px; color: #17272a; border-color: #385960; }
.test-button-light:hover { background: #17272a !important; color: #f1f0ea !important; }
.result-end { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-top: 60px; }
.result-end a { color: #c4d5d6; text-underline-offset: 5px; }
.test-footer { border-top: 1px solid var(--line); padding: 55px max(40px, calc((100vw - 1280px) / 2)); color: #9eafb1; font-size: .8rem; line-height: 1.6; }
.test-footer > div { display: flex; align-items: center; gap: 12px; color: #d9e3e2; font-size: .78rem; letter-spacing: .16em; margin-bottom: 24px; }
.test-footer .footer-ring { width: 23px; height: 23px; }
.test-footer p { max-width: 850px; }

@media (max-width: 900px) {
  .test-header { width: min(100% - 36px, 1400px); padding: 24px 0; min-height: 0; flex-direction: column; align-items: flex-start; }
  .test-header nav { justify-content: flex-start; row-gap: 12px; }
  .test-stage { width: min(100% - 44px, 1280px); }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-symbol { position: absolute; top: 20px; right: -10%; width: 40vw; opacity: .28; }
  .profile-grid { grid-template-columns: 1fr; gap: 50px; }
  .profile-visual { width: min(80vw, 420px); }
}
@media (max-width: 600px) {
  .test-header nav { gap: 10px 16px; }
  .test-header nav a { font-size: .65rem; }
  .test-wordmark { font-size: .72rem; }
  .stage-marker { margin: 34px 0 62px; }
  .test-page h1 { font-size: clamp(3.6rem, 15vw, 6rem); }
  .test-intro { min-height: 0; padding-bottom: 75px; }
  .intro-symbol { display: none; }
  .intro-boundary { display: block; margin-top: 80px; }
  .intro-boundary strong { display: block; margin-bottom: 9px; }
  .question-stage { min-height: calc(100vh - 150px); padding-top: 32px; }
  .question-inner { margin: 80px auto 45px; }
  .question-stage h2 { font-size: clamp(2.25rem, 10vw, 3.5rem); }
  .question-actions .test-button { min-width: 0; padding-inline: 17px; gap: 8px; }
  .profile-grid { margin: 55px 0 75px; }
  .profile-visual { width: min(88vw, 390px); }
  .orbit:nth-child(2) { inset: 18px; }
  .orbit:nth-child(3) { inset: 36px; }
  .orbit:nth-child(4) { inset: 54px; }
  .orbit:nth-child(5) { inset: 72px; }
  .result-columns, .reading-links { grid-template-columns: 1fr; gap: 30px; }
  .reading-chamber { padding: 75px 0; }
  .bioage-manifesto { margin: 45px 0 40px; }
  .result-end { flex-direction: column; align-items: flex-start; }
  .test-footer { padding: 45px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .test-page *, .test-page *::before, .test-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
