@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=DM+Serif+Display:ital@0;1&display=swap');
:root{color-scheme:light;--ink:#1d2e29;--muted:#66766d;--accent:#b2c393;--cream:#f5f3ec;--deep:#132923}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:'DM Sans',sans-serif}button,input{font:inherit}button{cursor:pointer}.topbar{height:85px;max-width:1430px;margin:auto;padding:0 6.2%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #d9dfd5}.brand{display:flex;gap:11px;align-items:center}.mark{height:37px;width:37px;border:1px solid #7e9680;border-radius:50%;display:grid;place-items:center;font-family:'DM Serif Display',serif;font-size:23px}.brand strong,.brand small{display:block;letter-spacing:.17em}.brand strong{font-size:11px}.brand small{font-size:8px;color:#78877e;margin-top:4px}.topnote{font-size:11px;font-weight:600;color:#718177;letter-spacing:.04em}.topnote i{display:inline-block;width:7px;height:7px;background:#99ad7e;border-radius:50%;margin-right:8px}main{max-width:1430px;margin:auto;padding:0 6.2%}.intro{display:flex;justify-content:space-between;align-items:end;padding:76px 0 49px;gap:30px}.eyebrow{margin:0 0 18px;font-size:10px;font-weight:700;letter-spacing:.19em;color:#7c9278}.intro h1,.detail-intro h2{font-family:'DM Serif Display',serif;letter-spacing:-.035em;font-weight:400;line-height:1.02;margin:0}.intro h1{font-size:clamp(54px,6.2vw,86px)}em{font-weight:400;color:#779175}.intro-copy{max-width:520px;font-size:15px;line-height:1.7;color:#6c796f;margin:22px 0 0}.intro-side{display:flex;align-items:flex-start;gap:16px;width:220px;color:#7b8a7e;font-size:12px;line-height:1.6}.intro-side p{margin:0}.side-line{width:30px;height:1px;background:#a7b8a5;margin-top:9px;flex:none}.viewer-card{background:#182e28;border-radius:5px;overflow:hidden;box-shadow:0 18px 40px #233a2724}.viewer-head{padding:25px 30px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:#f1f2e9}.viewer-head h2{font-family:'DM Serif Display',serif;font-size:26px;font-weight:400;margin:0}.eyebrow.light{color:#a7bda0;margin-bottom:8px;font-size:9px}.view-selector{display:flex;border:1px solid #5a6f60;border-radius:4px;padding:3px;gap:3px}.view-button{border:0;color:#c2d0bf;background:transparent;border-radius:2px;padding:11px 15px;font-size:12px;font-weight:700}.view-button span{font-size:10px;font-weight:400;opacity:.8;margin-left:4px}.view-button.active{background:#d9e5ce;color:#24382b}.stage{height:min(60vw,640px);min-height:420px;position:relative;background:#9caa92;overflow:hidden}#canvas-container{position:absolute;inset:0;touch-action:none}#canvas-container canvas{width:100%;height:100%;display:block}.stage-gradient{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#142f2d49,transparent 20%,transparent 75%,#152b28a8)}.stage-top,.stage-bottom{position:absolute;left:28px;right:28px;display:flex;align-items:center;justify-content:space-between;color:white;pointer-events:none}.stage-top{top:20px}.compass{display:flex;flex-direction:column;align-items:center;gap:0;color:#f1f4e7;font-size:11px}.compass span{font-size:20px;line-height:1}.stage-label{font-size:9px;letter-spacing:.14em;font-weight:700;background:#1f3a3199;padding:8px 11px;border-radius:2px}.stage-bottom{bottom:20px;gap:15px}.interaction{font-size:11px;color:#f1f2e9;text-shadow:0 1px 3px #233a2e}.interaction span{margin:0 4px;opacity:.5}.reset{pointer-events:auto;background:#f5f7ed;border:0;border-radius:3px;padding:11px 14px;color:#263d31;font-size:11px;font-weight:700;white-space:nowrap}.reset span{font-size:17px;vertical-align:-1px;margin-right:5px}.loading{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:#fff;background:#20352ee8;border-radius:3px;padding:14px 18px;display:flex;align-items:center;gap:10px;font-size:12px;max-width:80%;line-height:1.5}.loading.hidden{display:none}.spinner{width:14px;height:14px;border:2px solid #8ca591;border-top-color:#fff;border-radius:50%;animation:spin 1s linear infinite;flex:none}@keyframes spin{to{transform:rotate(360deg)}}.control-bar{display:grid;grid-template-columns:1.4fr 1fr 1fr;align-items:center;gap:40px;padding:22px 30px 25px;color:#dce8d9}.control-title{display:flex;gap:12px;align-items:center}.sun-icon{font-size:31px;color:#b7ccaa}.control-title strong,.control-title small{display:block}.control-title strong{font-size:12px}.control-title small{font-size:10px;color:#9bafa0;margin-top:4px}.control-bar label{font-size:11px;font-weight:600;color:#cfddce}.control-bar output{float:right;color:#a5b9a8}input[type=range]{display:block;width:100%;height:3px;margin-top:12px;accent-color:#c2d9b1}.details{display:grid;grid-template-columns:1fr 1.3fr;gap:90px;padding:100px 0 110px}.detail-intro h2{font-size:clamp(38px,4vw,53px)}.detail-intro>p:last-child{color:#78857b;font-size:13px;line-height:1.7;max-width:330px;margin-top:20px}.detail-list article{display:grid;grid-template-columns:35px 1fr;gap:14px;border-top:1px solid #d7ded2;padding:20px 0}.detail-list article>span{font-family:'DM Serif Display',serif;color:#9eae9b;font-size:15px}.detail-list h3{font-size:14px;margin:0 0 8px}.detail-list p{color:#718075;font-size:12px;line-height:1.7;margin:0}footer{border-top:1px solid #d9dfd5;max-width:1430px;margin:auto;padding:28px 6.2% 35px;display:flex;justify-content:space-between;gap:15px;font-size:9px;font-weight:700;letter-spacing:.08em;color:#859387}footer a{color:#617b67;text-decoration:none}footer a:hover{text-decoration:underline}@media(max-width:700px){.topbar{height:68px;padding:0 5%}.topnote{font-size:0}.topnote i{font-size:initial}main{padding:0 5%}.intro{padding:54px 0 35px}.intro h1{font-size:52px}.intro-side{display:none}.intro-copy{font-size:13px}.viewer-head{padding:20px;align-items:flex-start;flex-direction:column}.viewer-head h2{font-size:23px}.view-selector{width:100%}.view-button{flex:1;padding:10px 5px}.stage{height:500px;min-height:0}.stage-top,.stage-bottom{left:16px;right:16px}.interaction{font-size:10px;max-width:180px;line-height:1.5}.control-bar{grid-template-columns:1fr 1fr;gap:22px;padding:20px}.control-title{grid-column:1/-1}.details{grid-template-columns:1fr;gap:35px;padding:70px 0}.detail-intro h2{font-size:42px}footer{flex-direction:column;line-height:1.8;padding:25px 5%}.loading{width:max-content;max-width:85%}}

/* Atlas: points are positioned in the stage's screen coordinates by the viewer. */
#marker-layer{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}
.village-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 30px;background:#e6e6d6;color:#263d30}.village-bar>div{margin-right:auto}.village-bar strong,.village-bar span{display:block}.village-bar strong{font-size:10px;letter-spacing:.12em}.village-bar span{font-size:11px;color:#6e7a69;margin-top:4px}.village-bar button{border:1px solid #50695a;border-radius:3px;padding:9px 12px;font-size:11px;font-weight:700;background:#203d31;color:white}.village-bar #village-toggle{background:transparent;color:#263d30}.village-bar #village-toggle.active{background:#d0dec3}.village-bar button:disabled{opacity:.55}@media(max-width:700px){.village-bar{padding:13px 20px}.village-bar>div{width:100%}.village-bar button{flex:1}}
.atlas-toolbar{padding:12px 30px;background:#203a31;color:#b6c7b4;display:flex;align-items:center;gap:18px;flex-wrap:wrap}.atlas-toolbar>span{font-size:9px;letter-spacing:.13em;font-weight:700}.theme-selector{display:flex;gap:5px;flex-wrap:wrap}.theme-button,.layer-toggle{color:#d5e4d2;border:1px solid #5f7666;background:transparent;border-radius:30px;padding:6px 13px;font-size:11px}.theme-button.active,.layer-toggle.active{background:#d8e8ce;color:#243d2d;border-color:#d8e8ce}.layer-toggle{margin-left:auto}.map-marker[hidden],.place-item[hidden]{display:none!important}@media(max-width:700px){.atlas-toolbar{padding:12px 20px;gap:10px}.layer-toggle{margin-left:0}}
.atlas-toolbar .layer-toggle + .layer-toggle{margin-left:0}.layer-note{margin:0;padding:9px 30px;background:#2a4539;color:#e5efdb;font-size:11px;line-height:1.5}.layer-note[hidden]{display:none}
.map-marker[hidden]{display:none}
.spot-popover{position:absolute;left:24px;bottom:72px;z-index:4;max-width:280px;padding:15px 36px 15px 17px;background:#f7f7eef2;color:#20382d;border-radius:3px;box-shadow:0 5px 22px #10271f55;font-size:11px;line-height:1.45}.spot-popover[hidden]{display:none}.spot-popover span{display:block;color:#718a70;font-size:8px;letter-spacing:.12em;font-weight:700}.spot-popover strong{display:block;margin-top:5px;font-size:14px}.spot-popover p{margin:5px 0;color:#526859}.spot-popover a{color:#355f40;font-weight:700}.spot-popover #spot-close{position:absolute;right:9px;top:6px;border:0;background:transparent;color:#345040;font-size:20px}
.map-marker{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;border:1px solid #f7f6e8;border-radius:50%;width:33px;height:33px;display:grid;place-items:center;background:#203d32;color:#f7f6e8;font-weight:700;font-size:11px;box-shadow:0 2px 10px #0f211d80;transition:background .2s,color .2s,box-shadow .2s,scale .2s}
.map-marker:hover,.map-marker:focus-visible,.map-marker.active{background:#e4eace;color:#203d32;box-shadow:0 0 0 5px #eef5d454,0 2px 12px #10271f99;scale:1.1;outline:none}
.places{padding:105px 0 12px}.places-head{display:flex;align-items:end;justify-content:space-between;gap:40px;margin-bottom:38px}.places-head h2{font-family:'DM Serif Display',serif;font-size:clamp(38px,4vw,53px);font-weight:400;letter-spacing:-.035em;line-height:1.04;margin:0}.places-head>p{max-width:270px;color:#718075;line-height:1.7;font-size:13px;margin:0 0 3px}.places-body{display:grid;grid-template-columns:1.12fr 1fr;gap:44px}.places-list{border-top:1px solid #d7ded2}.place-item{background:transparent;border:0;border-bottom:1px solid #d7ded2;width:100%;display:flex;align-items:center;text-align:left;gap:15px;min-height:57px;padding:12px 8px;color:#24372e;font-size:13px;font-weight:700;transition:background .2s,padding .2s}.place-item:hover,.place-item:focus-visible,.place-item.active{background:#e5eadc;padding-left:14px;outline:none}.place-number{color:#92a58c;font-family:'DM Serif Display',serif;font-size:15px;font-weight:400;min-width:25px}.place-item::after{content:'↗';margin-left:auto;font-size:16px;color:#91a28f}.place-detail{min-height:220px;background:#e4eadb;padding:30px 34px;color:#263d31;border-left:3px solid #a9bd99}.place-detail .detail-kicker{font-size:9px;letter-spacing:.16em;font-weight:700;color:#718a70}.place-detail h3{font-family:'DM Serif Display',serif;font-size:28px;font-weight:400;line-height:1.15;margin:16px 0 12px}.place-detail p{font-size:13px;color:#65766a;line-height:1.7;max-width:50ch}.place-detail a{color:#3f6a4b;text-underline-offset:3px;font-size:12px;font-weight:700}.place-detail a:hover{text-decoration-thickness:2px}
@media(max-width:700px){.places{padding:72px 0 0}.places-head{align-items:flex-start;flex-direction:column;gap:18px;margin-bottom:26px}.places-head h2{font-size:42px}.places-body{grid-template-columns:1fr;gap:20px}.place-detail{padding:25px;min-height:190px}.map-marker{width:30px;height:30px;font-size:10px}}

/* Self-contained point cards: the map remains visible and source notes stay inside the atlas. */
.spot-popover{width:min(360px,calc(100% - 40px));max-width:none;max-height:calc(100% - 100px);overflow:auto;overscroll-behavior:contain;padding:19px 20px 17px;border-radius:5px;background:#f7f7f0f5;box-shadow:0 9px 32px #10271f60;scrollbar-width:thin;scrollbar-color:#9bb096 transparent}
.spot-popover #spot-close{position:absolute;right:11px;top:8px;width:30px;height:30px;border-radius:50%;font-size:22px;line-height:1;display:grid;place-items:center}.spot-popover #spot-close:hover,.spot-popover #spot-close:focus-visible{background:#dce7d8;outline:2px solid #769273;outline-offset:1px}
.spot-heading{padding-right:22px}.spot-heading #spot-theme{font-size:9px;letter-spacing:.14em;color:#5c7a63}.spot-heading #spot-title{font-family:'DM Serif Display',serif;font-size:23px;line-height:1.12;font-weight:400;color:#193a2d;margin:7px 0}.spot-heading #spot-description{font-size:12px;line-height:1.55;color:#475c50;margin:0 0 11px}
.spot-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(85px,1fr));gap:5px;margin:0 0 9px}.spot-fact{padding:8px 9px;background:#e4ecdf;border-radius:3px;min-width:0}.spot-popover .spot-fact-label{display:block;color:#66806c;font-size:8px;letter-spacing:.1em;text-transform:uppercase;line-height:1.25}.spot-popover .spot-fact-value{display:block;color:#254634;font-size:12px;font-weight:700;letter-spacing:0;line-height:1.35;margin-top:3px}
.spot-popover .spot-story{font-size:12px;line-height:1.55;color:#465b4f;margin:9px 0}.spot-sources{border-top:1px solid #d6e1d4;margin-top:10px;padding-top:7px;color:#657e68;font-size:10px}.spot-sources summary{cursor:pointer;font-weight:700}.spot-popover .spot-sources p{font-size:10px;line-height:1.5;color:#61766a;margin:7px 0 0;overflow-wrap:anywhere}
.place-item::after{content:'→'}
@media(max-width:700px){.spot-popover{left:14px;bottom:65px;width:min(360px,calc(100% - 28px));max-height:calc(100% - 95px);padding:16px 17px}.spot-heading #spot-title{font-size:21px}.spot-popover .spot-story{font-size:11px}}

.spot-photo{margin:0 0 10px}.spot-photo img{display:block;width:100%;height:180px;object-fit:contain;object-position:center;background:#e4ecdf;border-radius:3px}.spot-photo figcaption{margin-top:5px;font-size:9px;line-height:1.4;color:#5d7163;overflow-wrap:anywhere}

/* Identità del progetto: caratteri locali in stile macchina da scrivere. */
.intro h1{font-family:"American Typewriter","Courier New",monospace;font-size:clamp(35px,4.5vw,64px);font-weight:600;letter-spacing:-.045em;line-height:1.12}.intro h1 span{color:#779175}.atlas-version{font-family:"American Typewriter","Courier New",monospace;font-size:12px;letter-spacing:.12em;color:#6c806e;margin:13px 0 0}.brand strong,.brand small{font-family:"American Typewriter","Courier New",monospace;letter-spacing:.08em}@media(max-width:700px){.intro h1{font-size:clamp(30px,8.3vw,48px);line-height:1.16}.brand strong{font-size:10px}.brand small{font-size:8px}}

.intro h1{word-spacing:.12em}
#water-markers{position:absolute;inset:0;pointer-events:none;z-index:3;overflow:hidden}.stage.water-mode-active #marker-layer{display:none}.water-map-marker{position:absolute;transform:translate(-50%,-50%);width:31px;height:31px;border-radius:50%;border:2px solid #f1fffa;background:#187e83;color:#fff;box-shadow:0 2px 12px #143e49a0;pointer-events:auto;font-size:18px;line-height:1}.water-map-marker[hidden],.water-point-popup[hidden]{display:none}.water-point-popup{position:absolute;right:20px;top:58px;z-index:6;width:min(290px,calc(100% - 40px));padding:17px 20px;background:#f6faf5;color:#244c49;border:1px solid #bdd8cf;box-shadow:0 12px 30px #1c3b3a66;border-radius:5px}.water-point-popup small,.water-point-popup strong{display:block}.water-point-popup small{font-size:9px;letter-spacing:.1em;color:#568880;font-weight:700;margin:0 25px 7px 0}.water-point-popup strong{font-family:Georgia,serif;font-size:20px;font-weight:400}.water-point-popup p{font-size:11px;line-height:1.55;color:#52716b}.water-point-popup .water-point-source{font-size:9px}.water-point-close{float:right;border:0;border-radius:50%;background:#e1eee7;color:#244c49;font-size:19px;width:26px;height:26px}
