body{margin:0;padding:0;overflow:hidden}.container{display:contents;overflow-y:auto}.chapter-container{display:flex;flex-direction:column}.event-description{padding-bottom:5vh;margin-bottom:5vh}*{margin:0;padding:0;box-sizing:border-box}body{font-family:Georgia,serif;line-height:1.6;color:#2c3e50;background:linear-gradient(135deg,#1e3a5f,#2d5f7f);min-height:100vh;overflow-y:auto}nav{background:linear-gradient(135deg,#1e3a5f,#2d5f7f);padding:1rem;position:fixed;top:0;left:0;right:0;z-index:1000;box-shadow:0 2px 10px #0000004d;display:flex;justify-content:space-around;flex-wrap:wrap;gap:.5rem}nav span{color:#fff;cursor:pointer;padding:.5rem 1rem;border-radius:8px;transition:all .3s ease;font-weight:500;text-align:center;flex:1;min-width:120px}nav span:hover{background:#fff3;transform:translateY(-2px)}.main-container{max-width:900px;margin:0 auto;padding:1rem;padding-top:80px}section{background:#fff;border-radius:15px;padding:2rem;margin-bottom:2rem;box-shadow:0 5px 20px #0003;scroll-margin-top:80px}h1{color:#2d5f7f;margin-bottom:1rem;font-size:2.5rem;text-align:center}h2{color:#1e3a5f;margin-bottom:1rem;font-size:2rem;border-bottom:3px solid #2d5f7f;padding-bottom:.5rem}h3{color:#2d5f7f;margin-top:1.5rem;margin-bottom:.5rem;font-size:1.5rem}p{margin-bottom:1rem;text-align:justify}.italic-section{font-style:italic;background:#f8f9fa;padding:1.5rem;border-left:4px solid #2d5f7f;border-radius:8px;margin:1rem 0}strong{color:#1e3a5f;font-weight:700}.badge{display:inline-block;background:#2d5f7f;color:#fff;padding:.25rem .75rem;border-radius:20px;font-size:.9rem;margin-left:.5rem}ul{list-style:none;padding:0}ul li{margin:.5rem 0}ul li a{display:block;padding:1rem;background:linear-gradient(135deg,#1e3a5f,#2d5f7f);color:#fff;text-decoration:none;border-radius:10px;transition:all .3s ease;font-weight:700}ul li a:hover{transform:translate(10px);box-shadow:0 5px 15px #0000004d}ul li:not(#chapters li):before{content:"\2192";position:absolute;left:0;color:#2d5f7f;font-weight:700}@media (max-width: 768px){nav{padding:.75rem .5rem}nav span{font-size:.85rem;padding:.4rem .5rem;min-width:80px}.main-container{padding:.5rem;padding-top:100px}section{padding:1.5rem;scroll-margin-top:100px}h1{font-size:1.8rem}h2{font-size:1.5rem}h3{font-size:1.2rem}p{text-align:left}.italic-section{padding:1rem}}@media (max-width: 480px){nav span{font-size:.75rem;padding:.3rem .4rem;min-width:70px}h1{font-size:1.5rem}section{padding:1rem}}.chapter-container{width:100%;height:100vh;overflow-x:auto;overflow-y:hidden;position:relative;background:#1a1a1a;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}.chapter-container::-webkit-scrollbar{height:8px}.chapter-container::-webkit-scrollbar-track{background:#0000004d}.chapter-container::-webkit-scrollbar-thumb{background:#2d5f7f99;border-radius:4px}.chapter-container::-webkit-scrollbar-thumb:hover{background:#2d5f7fcc}.chapter-container svg{display:block;height:100vh}.chapter-container svg text,.chapter-container svg circle{-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}@media (max-width: 767px){.chapter-container{transform:translateZ(0);-webkit-transform:translateZ(0)}.chapter-container::-webkit-scrollbar{height:4px}}@media (min-width: 768px) and (max-width: 1023px){.chapter-container::-webkit-scrollbar{height:6px}}#event-details{animation:slideIn .3s ease-out}@keyframes slideIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@supports (-webkit-touch-callout: none){.chapter-container{height:-webkit-fill-available}}:host{position:fixed;inset:0;background:#000000b3;display:flex;justify-content:center;align-items:center;z-index:9999;padding:1rem;animation:fadeIn .3s ease-out}.event-details{background:#fff;border-radius:15px;box-shadow:0 10px 40px #0000004d;max-width:600px;width:100%;max-height:85vh;display:flex;flex-direction:column;animation:slideUp .3s ease-out;overflow:hidden}@keyframes slideUp{0%{transform:translateY(50px);opacity:0}to{transform:translateY(0);opacity:1}}.event-title{background:linear-gradient(135deg,#1e3a5f,#2d5f7f);color:#fff;padding:1.5rem;font-size:1.5rem;font-weight:700;text-align:center;flex-shrink:0;display:flex;align-content:center;justify-content:center}.event-title .close-button{width:10%;cursor:pointer}.event-title span{width:90%;align-content:center}.event-details>div:last-of-type{overflow-y:auto;padding:1.5rem;flex:1;-webkit-overflow-scrolling:touch}.event-causes,.event-effects,.event-players,.event-description{margin-bottom:1.5rem}.event-causes p,.event-effects p,.event-players p{font-weight:700;color:#1e3a5f;font-size:1.2rem;margin-bottom:.5rem}ul{list-style:none;padding:0;margin:0}ul li{padding:.5rem 0 .5rem 1.5rem;position:relative;line-height:1.5}.event-description{background:#f8f9fa;padding:1rem;border-radius:8px;border-left:4px solid #2d5f7f;line-height:1.6;text-align:justify}button{background:linear-gradient(135deg,#1e3a5f,#2d5f7f);color:#fff;border:none;padding:.75rem 1.5rem;border-radius:8px;font-weight:700;font-size:1rem;cursor:pointer;margin-top:1rem;width:100%;transition:all .3s ease;box-shadow:0 4px 10px #2d5f7f4d}button:hover{transform:translateY(-2px);box-shadow:0 6px 15px #2d5f7f80}button:active{transform:translateY(0)}.event-details>div:last-of-type::-webkit-scrollbar{width:8px}.event-details>div:last-of-type::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px}.event-details>div:last-of-type::-webkit-scrollbar-thumb{background:#2d5f7f;border-radius:10px}.event-details>div:last-of-type::-webkit-scrollbar-thumb:hover{background:#1e3a5f}@media (max-width: 767px){:host{padding:0;align-items:stretch}.event-details{border-radius:0;max-height:100vh;height:100vh;max-width:100%;animation:slideUpMobile .3s ease-out}@keyframes slideUpMobile{0%{transform:translateY(100%)}to{transform:translateY(0)}}.event-title{font-size:1.3rem;padding:1.25rem 1rem}.event-details>div:last-of-type{padding:1rem}.event-causes p,.event-effects p,.event-players p{font-size:1.1rem}ul li{font-size:.95rem}.event-description{text-align:left;font-size:.95rem}button{padding:1rem;font-size:1.1rem;position:sticky;bottom:0;margin-top:1.5rem}}@media (min-width: 768px) and (max-width: 1023px){.event-details{max-width:500px;max-height:80vh}.event-title{font-size:1.4rem}}@media (max-width: 767px){.event-details>div:last-of-type:after{content:"";position:fixed;bottom:0;left:0;right:0;height:40px;background:linear-gradient(to top,white,transparent);pointer-events:none;opacity:0;transition:opacity .3s}.event-details>div:last-of-type:not(:hover):after{opacity:1}}@supports (-webkit-touch-callout: none){@media (max-width: 767px){.event-details{height:-webkit-fill-available}}}:host{position:fixed;inset:0;background:#000000d9;display:flex;justify-content:center;align-items:center;z-index:10000;padding:1rem;animation:fadeIn .3s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.subscription-form{background:#fff;border-radius:15px;box-shadow:0 10px 40px #0006;padding:2rem;max-width:450px;width:100%;animation:scaleIn .3s ease-out;position:relative}@keyframes scaleIn{0%{transform:scale(.9);opacity:0}to{transform:scale(1);opacity:1}}.subscription-form:before{content:"Iscriviti all'evento";display:block;font-size:1.5rem;font-weight:700;color:#1e3a5f;margin-bottom:1.5rem;text-align:center;padding-bottom:1rem;border-bottom:2px solid #e0e0e0}input[type=text],input[type=email],input[type=tel]{width:100%;padding:.875rem 1rem;margin-bottom:1rem;border:2px solid #e0e0e0;border-radius:8px;font-size:1rem;transition:all .3s ease;box-sizing:border-box;font-family:inherit}input[type=text]:focus,input[type=email]:focus,input[type=tel]:focus{outline:none;border-color:#2d5f7f;box-shadow:0 0 0 3px #2d5f7f1a}input[type=text]::placeholder,input[type=email]::placeholder,input[type=tel]::placeholder{color:#999}.button-group{display:flex;gap:.75rem;margin-top:1.5rem}button{flex:1;padding:.875rem 1.5rem;border:none;border-radius:8px;font-weight:700;font-size:1rem;cursor:pointer;transition:all .3s ease;font-family:inherit}button:first-of-type{background:linear-gradient(135deg,#1e3a5f,#2d5f7f);color:#fff;box-shadow:0 4px 10px #2d5f7f4d}button:first-of-type:hover{transform:translateY(-2px);box-shadow:0 6px 15px #2d5f7f80}button:first-of-type:active{transform:translateY(0)}button:first-of-type:disabled{opacity:.6;cursor:not-allowed;transform:none}button:last-of-type{background:#f5f5f5;color:#666;border:2px solid #e0e0e0}button:last-of-type:hover{background:#e8e8e8;border-color:#ccc}button:last-of-type:active{background:#d8d8d8}input.error{border-color:#e74c3c;animation:shake .3s}@keyframes shake{0%,to{transform:translate(0)}25%{transform:translate(-10px)}75%{transform:translate(10px)}}@media (max-width: 767px){:host{padding:0;align-items:flex-end}.subscription-form{border-radius:15px 15px 0 0;max-width:100%;width:100%;padding:1.5rem;animation:slideUpMobile .3s ease-out}@keyframes slideUpMobile{0%{transform:translateY(100%)}to{transform:translateY(0)}}.subscription-form:before{font-size:1.3rem;margin-bottom:1.25rem}input[type=text],input[type=email],input[type=tel]{padding:1rem;font-size:16px}.button-group{flex-direction:column;gap:.5rem}button{width:100%;padding:1rem;font-size:1.05rem}}@media (min-width: 768px) and (max-width: 1023px){.subscription-form{max-width:400px}}button:first-of-type.loading{position:relative;color:transparent;pointer-events:none}button:first-of-type.loading:after{content:"";position:absolute;width:20px;height:20px;top:50%;left:50%;margin-left:-10px;margin-top:-10px;border:3px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@supports (-webkit-touch-callout: none){input[type=text],input[type=email],input[type=tel]{font-size:16px}}
