:root {
  --paper: #f3ecdc;
  --blue: #102749;
  --electric: #2458ff;
  --orange: #ee5d2a;
  --mint: #b9edcf;
  --line: rgba(16, 39, 73, .25);
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--blue); font-family: Arial, Helvetica, sans-serif; line-height: 1.55; }
a { color: inherit; }
button, textarea, input { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; top: .6rem; left: .6rem; padding: .7rem 1rem; background: var(--mint); transform: translateY(-170%); transition: transform .2s; }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { width: min(calc(100% - 2rem), var(--max)); min-height: 76px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; border-bottom: 1px solid var(--line); }
.eva-link { justify-self: start; display: inline-flex; align-items: center; gap: .55rem; font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-decoration: none; }
.eva-link span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; }
nav { display: flex; gap: 1.4rem; }
nav a { font-size: .74rem; text-decoration: none; border-bottom: 1px solid transparent; }
nav a:hover { border-color: currentColor; }
.room-code { justify-self: end; font-family: ui-monospace, monospace; font-size: .72rem; }

main > section { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.hero { position: relative; min-height: 720px; display: grid; align-items: center; overflow: hidden; }
.hero-grid { position: absolute; inset: 2.5rem 0; border: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 9vw 9vw; opacity: .65; }
.hero-grid::before, .hero-grid::after { content: ""; position: absolute; background: var(--paper); }
.hero-grid::before { width: 34%; height: 62%; left: 33%; top: 12%; border: 2px solid var(--blue); }
.hero-grid::after { width: 14%; height: 25%; right: 5%; bottom: 5%; border: 2px solid var(--orange); }
.door, .window { position: absolute; z-index: 1; display: block; border: 2px solid var(--blue); background: var(--paper); }
.door-one { width: 70px; height: 120px; left: 11%; bottom: 0; border-bottom: 0; }
.door-two { width: 100px; height: 140px; right: 23%; top: 12%; border-top-left-radius: 100px; }
.window-one { width: 80px; height: 80px; right: 6%; top: 12%; background: var(--mint); }
.window-two { width: 55px; height: 55px; left: 4%; top: 16%; border-radius: 50%; background: var(--orange); }
.hero-copy { position: relative; z-index: 2; max-width: 930px; margin: 0 auto; padding: 7rem 1rem; text-align: center; }
.kicker, .section-label { margin: 0 0 1.2rem; font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(4.6rem, 10vw, 9.5rem); line-height: .78; letter-spacing: -.065em; }
h1 span { display: inline-block; color: var(--electric); font-style: italic; }
.lead { max-width: 620px; margin: 2rem auto 0; font-family: Georgia, serif; font-size: clamp(1.3rem, 2.6vw, 2rem); }
.round-cta { width: 100px; height: 100px; margin: 2rem auto 0; padding: 1rem; border-radius: 50%; display: flex; align-items: center; justify-content: space-between; background: var(--orange); color: white; text-decoration: none; transition: transform .25s; }
.round-cta:hover { transform: rotate(-7deg) scale(1.04); }
.hero-note { position: absolute; right: 1.2rem; bottom: 4.5rem; z-index: 2; max-width: 230px; margin: 0; padding: .6rem; background: var(--paper); font-size: .72rem; }

.intro, .materials, .faq { padding: clamp(5rem, 10vw, 9rem) 0; display: grid; grid-template-columns: minmax(160px, .35fr) minmax(0, 1fr); gap: 2rem; border-top: 1px solid var(--line); }
h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 400; line-height: .94; letter-spacing: -.045em; }
.large-copy { max-width: 850px; margin: 2rem 0 1rem; font-family: Georgia, serif; font-size: clamp(1.3rem, 2.5vw, 2rem); }
.intro div > p:last-child { max-width: 720px; }

.experience { width: 100%; max-width: none; padding: clamp(5rem, 9vw, 8rem) max(1rem, calc((100vw - var(--max)) / 2)); background: var(--blue); color: var(--paper); }
.experience-head { max-width: 750px; }
.experience-head p:last-child { color: #c7d3e3; }
.room-form { margin-top: 3rem; }
.room-plan { position: relative; margin: 0; padding: 1px; border: 1px solid rgba(243,236,220,.45); display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(243,236,220,.35); }
.room-plan input { position: absolute; opacity: 0; pointer-events: none; }
.room { position: relative; min-height: 230px; padding: 1.4rem; display: flex; flex-direction: column; justify-content: flex-end; background: var(--blue); cursor: pointer; transition: color .2s, background .2s; }
.room:hover { background: #173965; }
.room strong { font-family: Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 400; }
.room small { color: #b9c5d6; }
.room-number { position: absolute; top: 1rem; right: 1rem; font-family: ui-monospace, monospace; font-size: .7rem; }
.room-plan input:focus-visible + .room { outline: 3px solid var(--orange); outline-offset: -6px; }
.room-plan input:checked + .room { background: var(--mint); color: var(--blue); }
.room-plan input:checked + .room small { color: var(--blue); }
.room-plan input:checked + .room::after { content: "STANZA SCELTA"; position: absolute; top: 1rem; left: 1rem; padding: .25rem .45rem; background: var(--orange); color: white; font-size: .58rem; letter-spacing: .12em; }
.threshold { display: grid; grid-template-columns: 1fr 1fr; margin-top: 3rem; border: 1px solid rgba(243,236,220,.45); }
.threshold-copy, .answer { min-width: 0; padding: clamp(1.4rem, 4vw, 3rem); }
.threshold-copy { border-right: 1px solid rgba(243,236,220,.45); }
.threshold-copy > label { display: block; max-width: 540px; margin-bottom: 1rem; font-family: Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; }
textarea { width: 100%; min-height: 140px; resize: vertical; border: 1px solid rgba(243,236,220,.45); border-radius: 0; padding: 1rem; background: transparent; color: var(--paper); font-family: Georgia, serif; font-size: 1.15rem; }
textarea::placeholder { color: #9eacbf; }
.field-note { display: flex; justify-content: space-between; gap: 1rem; margin: .6rem 0 1.2rem; color: #aeb9c8; font-size: .68rem; }
.primary-button, .outline-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: space-between; gap: 2rem; padding: .75rem 1rem; text-decoration: none; cursor: pointer; }
.primary-button { border: 1px solid var(--orange); background: var(--orange); color: white; }
.primary-button:hover { background: #ff7342; }
.answer { background: var(--paper); color: var(--blue); }
.answer h3 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 400; line-height: 1; }
.answer blockquote { min-height: 130px; margin: 1.5rem 0; font-family: Georgia, serif; font-size: clamp(1.25rem, 2.3vw, 1.8rem); font-style: italic; }
.answer-action { padding-top: 1rem; border-top: 1px solid var(--line); }
.answer-tools { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.4rem; }
.answer-tools button { min-height: 38px; padding: .45rem .7rem; border: 1px solid var(--blue); background: transparent; color: var(--blue); cursor: pointer; }
.answer-tools button:hover:not(:disabled) { background: var(--mint); }
.answer-tools button:disabled { opacity: .45; cursor: not-allowed; }
.live-status { min-height: 1.5em; color: var(--electric); font-size: .72rem; }

.protocol { width: 100%; max-width: none; padding: clamp(5rem, 9vw, 8rem) max(1rem, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 7vw, 7rem); background: var(--orange); color: white; }
.protocol-title { align-self: start; position: sticky; top: 2rem; }
.protocol-title p:last-child { max-width: 440px; }
.protocol ol { list-style: none; padding: 0; margin: 0; }
.protocol li { display: grid; grid-template-columns: 60px 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.45); }
.protocol li:last-child { border-bottom: 1px solid rgba(255,255,255,.45); }
.protocol li > span { font-family: ui-monospace, monospace; }
.protocol h3 { margin: 0; font-family: Georgia, serif; font-size: 1.55rem; font-weight: 400; }
.protocol li p { margin: .3rem 0 0; color: #ffe7de; }
.material-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 2rem 0; background: var(--line); border: 1px solid var(--line); }
.material-grid article { min-height: 210px; padding: 1.3rem; background: var(--paper); }
.material-grid article > span { font-size: 2.5rem; color: var(--electric); }
.material-grid h3 { margin: 1.5rem 0 .3rem; font-family: Georgia, serif; font-size: 1.4rem; font-weight: 400; }
.inactive { color: rgba(16,39,73,.72); font-size: .78rem; }
.care { width: 100%; max-width: none; display: grid; grid-template-columns: .75fr 1.25fr; gap: 3rem; align-items: center; padding: clamp(5rem, 9vw, 8rem) max(1rem, calc((100vw - var(--max)) / 2)); background: var(--mint); }
.care-mark { aspect-ratio: 1; max-width: 420px; display: grid; grid-template-columns: 1fr 1fr; border: 2px solid var(--blue); border-radius: 50%; overflow: hidden; }
.care-mark span { border: 1px solid var(--blue); }
.care-mark span:nth-child(2), .care-mark span:nth-child(3) { background: var(--orange); }
.care div:last-child p { max-width: 740px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { padding: 1.15rem 2rem 1.15rem 0; cursor: pointer; font-weight: 700; }
.faq details p { max-width: 720px; }
.closing { padding: clamp(6rem, 12vw, 11rem) 0; text-align: center; }
.closing h2 { max-width: 900px; margin-inline: auto; }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 2rem; }
.outline-button { border: 1px solid var(--blue); }
.outline-button:hover { background: var(--mint); }
footer { width: min(calc(100% - 2rem), var(--max)); margin: 0 auto; padding: 1.5rem 0 2.5rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); font-size: .7rem; }
footer p { margin: 0; }

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .intro, .materials, .faq, .protocol, .care { grid-template-columns: 1fr; }
  .protocol-title { position: static; }
  .threshold { grid-template-columns: 1fr; }
  .threshold-copy { border-right: 0; border-bottom: 1px solid rgba(243,236,220,.45); }
  .care-mark { max-width: 280px; }
}
@media (max-width: 560px) {
  .hero { min-height: 650px; }
  h1 { font-size: clamp(4rem, 21vw, 6.3rem); }
  .hero-note { left: 1rem; right: auto; }
  .room-plan, .material-grid { grid-template-columns: 1fr; }
  .room { min-height: 170px; }
  .field-note, footer { flex-direction: column; }
  .primary-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
