:root{color-scheme:light;--ink:#493e32;--muted:#8a7d6a;--paper:#f4efe4}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px Arial,sans-serif;overflow:hidden}button,a,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;font:inherit}header{height:100px;display:flex;align-items:center;justify-content:space-between;padding:0 4%;border-bottom:1px solid #dcd4c4;background:#f8f4eb}.brand{display:flex;gap:12px;align-items:center;text-decoration:none;color:#59674b;font:40px Georgia}.brand span{font:27px Georgia}.brand small{display:block;font:8px Arial;letter-spacing:2.2px;margin-top:7px;color:#8c806c}nav{display:flex;gap:6px;background:#eae5d9;border:1px solid #e0d7c6;padding:5px;border-radius:28px}nav button{border:0;background:transparent;padding:11px 22px;border-radius:22px;color:#776e5f;font-size:12px}nav button.active{background:#fdfaf2;box-shadow:0 2px 5px #493e3212;color:#4c6045}nav span{margin-left:8px;opacity:.6}.collection{font-size:11px;color:#8b816f}.intro{position:absolute;top:126px;left:0;right:0;text-align:center;pointer-events:none;z-index:2}.intro>span,.eyebrow{font-size:9px;letter-spacing:2.5px;color:#978063}h1{font:36px Georgia;margin:11px 0;color:#514a3b;font-weight:400}.intro p{font:13px Georgia;color:#938471;margin:0}main{position:relative;height:calc(100dvh - 160px);min-height:420px;background:radial-gradient(ellipse at 45% 30%,#fff9e9 0,#e8deca 85%)}#viewport{height:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;touch-action:pan-x;overscroll-behavior:none}#viewport::-webkit-scrollbar{display:none}#scene{width:2700px;height:100%;position:relative;padding-top:170px;background:repeating-linear-gradient(90deg,transparent 0 148px,#b39d7910 149px 150px)}#scene:after{content:'';position:absolute;bottom:0;left:0;right:0;height:85px;background:repeating-linear-gradient(0deg,#b9a28522 0 1px,transparent 1px 24px),linear-gradient(#c8b496,#dfcdb0);border-top:10px solid #a38a66;box-shadow:0 -5px 12px #75624420;z-index:0}#sections{display:flex;height:calc(100% - 85px);position:relative;padding:0 45px;gap:28px;z-index:1}.bay{width:850px;flex-shrink:0;position:relative;border-left:18px solid #a47d50;border-right:18px solid #b38b59;border-top:16px solid #bc9663;box-shadow:inset 6px 0 12px #644c3420,7px 0 9px #6b52351a;background:linear-gradient(90deg,#9a785016,#faedcd30,#99713d12)}.sign{position:absolute;top:-39px;left:50%;transform:translateX(-50%);background:#eee5d1;border:1px solid #baa17b;box-shadow:0 3px 5px #6b523521;padding:12px 35px;text-align:center;white-space:nowrap;border-radius:3px;z-index:2}.sign small{display:block;letter-spacing:2px;font:8px Arial;color:#9b8767;margin-bottom:5px}.sign strong{font:23px Georgia}.shelf{position:absolute;left:0;right:0;height:44%;display:flex;gap:16px;align-items:flex-end;padding:0 36px 19px;border-bottom:18px solid #ba8e58;box-shadow:0 8px 0 #8f663e,0 16px 17px #68503225,inset 0 -8px 12px #896d4420}.shelf.upper{top:0}.shelf.lower{top:47%}.book{position:relative;flex-shrink:0;width:var(--w);height:min(var(--h),95%);padding:17px 7px 14px;border:0;border-radius:3px 5px 2px 2px;background:linear-gradient(90deg,#0002,transparent 12%,#fff1 60%,#0002 100%),var(--color);box-shadow:3px 1px 3px #443b2c44,inset 1px 0 #fff5;color:#fff4d8;transition:transform .2s,opacity .2s;transform-origin:bottom;display:flex;align-items:center;justify-content:space-between;writing-mode:vertical-rl;text-align:left;font:15px Georgia;letter-spacing:.3px}.book:before,.book:after{content:'';position:absolute;left:6px;right:6px;height:3px;border-top:1px solid #fce8ba88;border-bottom:1px solid #fce8ba66;top:10px}.book:after{top:auto;bottom:9px}.book small{font:8px Arial;opacity:.85}.book:hover,.book:focus-visible{transform:translateY(-12px) rotate(-2deg);z-index:4}.book .tooltip{position:absolute;bottom:calc(100% + 15px);left:50%;transform:translateX(-50%);writing-mode:horizontal-tb;min-width:180px;max-width:240px;padding:12px;background:#fffaf0;color:#493e32;box-shadow:0 4px 18px #493e322b;border-radius:7px;font:13px Georgia;opacity:0;pointer-events:none;text-align:center}.book:hover .tooltip,.book:focus-visible .tooltip{opacity:1}.book.front{width:134px;writing-mode:horizontal-tb;flex-direction:column;text-align:center;padding:24px 14px;font-size:20px;box-shadow:5px 4px 4px #493e3238,inset 5px 0 #0002}.book.front small{font-size:9px}.book.front .ornament{font-size:42px;color:#e4cf9c}.book.taken{opacity:0;pointer-events:none}.decor{align-self:flex-end;display:flex;align-items:center;justify-content:center;min-width:95px;height:100px;color:#728061;font:72px Georgia;filter:drop-shadow(3px 4px 2px #493e3222)}.decor.vase{height:67px;width:60px;min-width:60px;border-radius:15% 15% 40% 40%;background:repeating-linear-gradient(90deg,transparent 0 7px,#fff2 8px 9px),#be8b68;font-size:75px;position:relative}.decor.vase:before{content:'♧';position:absolute;bottom:42px;color:#657657;transform:rotate(-15deg)}.bay-caption{position:absolute;bottom:2px;left:30px;right:30px;display:flex;justify-content:space-between;font:italic 12px Georgia;color:#8e785a}.arrow{position:absolute;top:60%;z-index:5;border:1px solid #b9a68880;background:#f9f4e6df;border-radius:50%;width:42px;height:42px;font-size:22px;box-shadow:0 3px 12px #493e3212}.previous{left:20px}.next{right:20px}footer{height:60px;display:flex;align-items:center;justify-content:space-between;padding:0 4%;font-size:11px;color:#8d806c;background:#f7f2e8}.hint{color:#6e755f}#scene-status{font:italic 12px Georgia}.page-count{letter-spacing:3px;font-size:10px}#avatar{position:absolute;bottom:26px;left:380px;width:84px;height:126px;z-index:4;transition:left .55s ease-in-out,bottom .35s ease;pointer-events:none}#avatar svg{width:100%;height:100%;overflow:visible}.leg{fill:none;stroke:#4b4338;stroke-width:10;stroke-linecap:round}.arm{fill:none;stroke:#ecc29a;stroke-width:10;stroke-linecap:round}.idle .person{animation:breathe 3s ease-in-out infinite}.walking .leg.left{animation:walk .22s alternate infinite}.walking .leg.right{animation:walk .22s alternate-reverse infinite}.taking .arm,.returning .arm{transform:translateY(-20px);transition:transform .2s}.held{display:none;position:absolute;width:23px;height:32px;left:32px;top:65px;background:var(--held-color);border:2px solid #e8d6ad;transform:rotate(-10deg)}.carrying .held,.returning .held{display:block}#ladder{position:absolute;z-index:3;bottom:49px;height:280px;width:60px;background:repeating-linear-gradient(0deg,transparent 0 30px,#b28b55 30px 38px);border-left:7px solid #9d7948;border-right:7px solid #9d7948;transform:skewX(-7deg);opacity:0;transition:left .55s,opacity .2s;pointer-events:none}#ladder.visible{opacity:1}.rug{position:absolute;width:520px;height:43px;bottom:13px;left:180px;background:repeating-linear-gradient(0deg,#b06e4e55 0 2px,transparent 2px 5px),#c59370;border-radius:50%;z-index:1;opacity:.6}dialog{border:1px solid #dacbb2;padding:38px;background:#fbf7ed;color:var(--ink);border-radius:15px;width:min(780px,94vw);max-height:90dvh;overflow:auto;box-shadow:0 30px 100px #322a2360}dialog::backdrop{background:#332c2370;backdrop-filter:blur(5px)}.close{position:absolute;right:15px;top:13px;width:33px;height:33px;border:1px solid #d8cebb;border-radius:50%;background:transparent}.detail-layout{display:grid;grid-template-columns:230px 1fr;gap:35px}.cover{padding:30px 23px;color:#fff0d1;background:var(--color);min-height:340px;align-self:start;text-align:center;border-radius:3px 8px 8px 3px;box-shadow:inset 7px 0 #0002,5px 6px 0 #e8ddc6,10px 12px 20px #493e3222}.cover small{font-size:8px;letter-spacing:2px}.cover h2{font:29px Georgia;margin-top:30px}.cover-art{font-size:85px;margin:25px 0}.cover p{font:13px Georgia}.detail-content h2{font:30px Georgia;margin:15px 0 5px}#book-author{color:#827663;font:15px Georgia}#description{line-height:1.7;font-size:13px;margin:23px 0}label{display:block;font-size:11px;letter-spacing:.3px}select,textarea{display:block;width:100%;margin:8px 0 20px;border:1px solid #d9cdb8;border-radius:5px;background:#fffdf6;color:#493e32;padding:11px;font:14px Arial}textarea{resize:vertical;line-height:1.5}fieldset{border:0;margin:0 0 20px;padding:0}legend{font-size:11px;margin-bottom:7px}#rating button{border:0;background:transparent;font-size:26px;color:#a18c6c;padding:0 7px 0 0}#rating button.chosen{color:#ac7638}#finished,#save-status{font-size:10px;line-height:1.6;color:#8b7d65}:focus-visible{outline:3px solid #586d51;outline-offset:5px}@keyframes breathe{50%{transform:translateY(-2px)}}@keyframes walk{to{transform:rotate(10deg) translateY(-3px)}}@media(min-height:850px){#scene{padding-top:190px}.book{height:calc(var(--h) * 1.15)}}@media(max-height:700px){.intro{top:112px}h1{font-size:28px}#scene{padding-top:135px}.book{height:min(calc(var(--h) * .8),94%)}.sign{padding:8px 30px}.sign strong{font-size:20px}}@media(max-width:700px){header{height:125px;align-items:flex-start;padding:18px 20px}.brand span{font-size:24px}.brand{font-size:32px}nav{position:absolute;top:76px;left:50%;transform:translateX(-50%);white-space:nowrap}nav button{padding:9px 15px}.collection{display:none}main{height:calc(100dvh - 180px);min-height:350px}.intro{top:145px;padding:0 16px}h1{font-size:25px}.intro>span{font-size:8px}.intro p{font-size:11px}#scene{padding-top:145px}.bay{width:700px}.shelf{padding-left:25px;gap:12px}#scene{width:2250px}.book{height:min(calc(var(--h) * .85),95%)}footer{height:55px;padding:0 18px;font-size:9px}#scene-status,.page-count{display:none}.arrow{width:33px;height:33px}.previous{left:8px}.next{right:8px}.detail-layout{grid-template-columns:1fr;gap:28px}.cover{width:150px;min-height:210px;justify-self:center;padding:20px 15px}.cover h2{font-size:22px;margin:18px 0}.cover-art{font-size:40px;margin:12px}.cover small{font-size:6px}.cover p{font-size:10px}dialog{padding:32px 24px}.detail-content h2{font-size:28px}#ladder{height:240px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep the introduction above the shelf signs at every viewport height. */
.intro{top:25px}.book{max-height:90%}@media(max-width:700px){.intro{top:20px}}@media(max-height:700px){.intro{top:15px}}
.flying-book{position:absolute;z-index:6;pointer-events:none;border-radius:3px;box-shadow:3px 3px 5px #493e3244;border-left:3px solid #ffffff33}
.returning .held{display:none}
.logo-symbol{display:inline-block;width:42px;height:50px;flex-shrink:0;background:url('logo-originale.png') no-repeat;background-size:784px 157px;background-position:-298px -49px;mix-blend-mode:multiply;vertical-align:middle}.brand>.logo-symbol{width:42px;height:50px}.book.front .ornament.logo-symbol{width:42px;height:50px;min-height:50px}.cover-art .logo-symbol{transform:scale(1.5)}.cover-art{display:flex;justify-content:center;align-items:center;min-height:90px}.collection{font-size:8px;letter-spacing:1.5px;color:#8a7d6a}.collection select{font-size:11px;padding:7px 9px;margin:6px 0 0;max-width:210px;background:#f8f4eb}.bay-caption{bottom:10px}.page-count{letter-spacing:1px}@media(max-width:900px) and (min-width:701px){header{padding:0 20px}.brand span:not(.logo-symbol){font-size:22px}nav button{padding:10px 13px}.collection select{max-width:145px;font-size:10px}}@media(max-width:700px){.collection{display:block;position:absolute;right:14px;top:18px;font-size:7px;letter-spacing:1px}.collection select{width:130px;font-size:9px;padding:5px}.brand>.logo-symbol{transform:scale(.8);margin-right:-6px}.brand{gap:6px}.brand span:not(.logo-symbol){font-size:20px}.brand small{font-size:6px;letter-spacing:1px}.book.front .ornament.logo-symbol{transform:scale(.8)}.cover-art{min-height:45px}.cover-art .logo-symbol{transform:scale(.9)}}
/* Each extra group adds a compact, full shelf rather than stretching it. */
.bay{width:680px}@media(max-width:700px){.bay{width:650px}.shelf{gap:12px}}
/* On phones the wall becomes a vertical succession of full-width bookcases. */
@media(max-width:700px){
 header{height:130px;padding:14px 16px;position:relative;z-index:7}
 .brand{max-width:calc(100% - 140px)}
 .brand span:not(.logo-symbol){font-size:20px;white-space:nowrap}
 .brand small{font-size:6px;letter-spacing:.6px}
 .collection{right:12px;top:19px}.collection select{width:125px;min-height:36px;margin-top:3px}
 nav{top:77px;max-width:calc(100% - 24px)}nav button{min-height:36px;padding:8px 20px}
 main{height:calc(100dvh - 180px);min-height:0;padding-top:110px}
 .intro{top:13px;padding:0 12px}h1{font-size:clamp(21px,5.9vw,29px);margin:10px 0}
 .intro p{font-size:12px}.intro>span{font-size:8px;letter-spacing:1.4px}
 #viewport{height:100%;overflow-x:hidden;overflow-y:auto;touch-action:pan-y;overscroll-behavior-y:contain;scroll-padding-block:30px 80px}
 #scene{width:100%;height:auto;min-height:100%;padding:30px 0 85px}
 #sections{height:auto;display:flex;flex-direction:column;gap:48px;padding:0 14px;align-items:center}
 .bay{width:100%;max-width:480px;height:465px;flex-shrink:0;border-width:12px;border-top-width:13px}
 .sign{top:-29px;padding:8px 20px}.sign strong{font-size:21px}.sign small{font-size:8px;letter-spacing:1px}
 .shelf{height:43%;padding:0 clamp(12px,6vw,38px) 15px;gap:clamp(14px,6vw,38px);justify-content:center;border-bottom-width:13px}
 .shelf.upper{top:4%}.shelf.lower{top:51%}
 .book{width:clamp(43px,var(--w),65px);height:min(calc(var(--h) * .85),92%);max-height:92%;font-size:14px;padding:16px 6px 13px;min-width:43px}
 .book.front{width:clamp(90px,28vw,125px);padding:18px 10px 13px;font-size:18px}
 .book.front small{font-size:8px}.book.front .ornament.logo-symbol{min-height:50px;transform:scale(.75)}
 .book .tooltip{display:none}.decor{display:none}
 .bay-caption{left:12px;right:12px;bottom:4px;font-size:10px}.bay-caption>span:first-child{display:none}.bay-caption>span:last-child{margin-left:auto}
 #avatar{width:64px;height:96px;bottom:auto;transition:left .4s ease,top .4s ease}
 #ladder{display:none}.rug{display:none}
 #scene:after{height:58px;border-top-width:7px}
 .arrow{top:auto;bottom:16px;width:38px;height:38px;font-size:20px;background:#fcf7ebe8}.previous{left:12px}.next{right:12px}
 footer{height:50px;padding:0 12px;gap:6px}.hint{font-size:9px}.page-count{display:block;font-size:8px;letter-spacing:0;white-space:nowrap}
 dialog{max-height:92dvh;width:calc(100% - 20px);padding:36px 22px 24px;overscroll-behavior:contain}
 .close{position:sticky;top:0;float:right;margin:-23px -10px 0 0;z-index:2;background:#fbf7ed;width:38px;height:38px}
 .detail-layout{clear:both}.detail-content h2{font-size:27px}
 #notes,#reading-status{font-size:16px}#rating button{min-width:40px;min-height:44px;padding:0}
}
@media(max-width:360px){.brand span:not(.logo-symbol){font-size:17px}.brand small{font-size:5px}.brand{gap:2px}.collection select{width:112px}.collection{right:10px}.brand>.logo-symbol{margin-left:-7px}.hint{font-size:8px}.page-count{font-size:7px}.shelf{gap:16px;padding-inline:14px}}
@media(max-width:700px){
 .book.front{height:178px;gap:5px;padding:13px 9px 10px;font-size:16px;line-height:1.1}
 .book.front .ornament.logo-symbol{width:30px;height:36px;min-height:36px;transform:none;background-size:560px 112px;background-position:-213px -35px}
 .book.front small{font-size:8px;line-height:1.15;flex-shrink:0}
}
.collection-summary{font:italic 12px Georgia;color:#8a7d6a;white-space:nowrap}
.book-facts{display:flex;flex-wrap:wrap;gap:20px 40px;margin:24px 0;padding:18px 0;border-block:1px solid #e2d8c6}.book-facts dt{font-size:10px;letter-spacing:.5px;color:#8a7d6a;margin-bottom:8px}.book-facts dd{margin:0;font-size:14px}#reading-status{display:inline-block;padding:6px 12px;border-radius:16px;background:#e8ecdf;color:#526045}#rating{color:#a87b40;font-size:23px;letter-spacing:3px;min-height:29px;display:flex;align-items:center}#rating[aria-label="Non ancora valutato"]{font:12px Georgia;letter-spacing:0;color:#8a7d6a}.personal-notes h3{font:17px Georgia;margin:22px 0 12px}.personal-notes #notes{font:14px Georgia;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 18px;padding:0;color:#65594b;border:0;background:transparent}.empty-notes{font-style:italic!important;color:#958772!important}
@media(max-width:900px){.collection-summary{font-size:10px}}
@media(max-width:700px){header{height:130px;justify-content:center}.brand{max-width:none;gap:8px}.brand span:not(.logo-symbol){font-size:25px}.brand small{font-size:7px;letter-spacing:1.6px}.collection-summary{display:none}nav{top:78px}.brand>.logo-symbol{margin-left:0;margin-right:0}.book-facts{gap:18px 30px}.personal-notes #notes{font-size:14px}.personal-notes h3{font-size:19px}}
.about-link{color:#657053;text-decoration:none;white-space:nowrap;font-size:11px;padding:10px 4px;text-underline-offset:4px}.about-link:hover{text-decoration:underline}footer{gap:16px}.page-count{min-width:36px;text-align:right}@media(max-width:700px){footer{gap:8px}.about-link{font-size:10px;padding:12px 0}.hint{flex:1;font-size:8px}.page-count{font-size:9px;min-width:30px}}@media(max-width:360px){.hint{max-width:175px;line-height:1.5}.about-link{font-size:9px}}
.book-link{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:12px 20px;margin:12px 0;background:#52684d;color:#fff9ed;border-radius:6px;text-decoration:none;font-size:13px;line-height:1.4}.book-link:hover{background:#3e5539}.book-link[hidden]{display:none}#affiliate-note{font-size:10px;line-height:1.6;color:#897c68;max-width:40em}#review{font:15px Georgia;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 18px;color:#65594b}
/* A few more books per shelf, without reducing the legibility of the spines. */
@media(min-width:701px){.shelf{gap:10px;padding-inline:24px}.book.front{width:120px;font-size:18px;padding-inline:12px}}
@media(max-width:700px){.shelf{gap:10px;padding-inline:12px}.book{width:clamp(40px,var(--w),55px);min-width:40px}.book.front{width:clamp(90px,25vw,108px);min-width:90px}}
.shelf-object{width:54px;height:100px;flex:0 0 54px;align-self:flex-end;pointer-events:none;filter:drop-shadow(3px 3px 2px #493e3222)}.shelf-object svg{display:block;width:100%;height:100%}
@media(min-width:701px){.shelf:has(.shelf-object){gap:8px}.shelf:has(.shelf-object) .book:not(.front){max-width:68px}}
@media(max-width:700px){.shelf-object{width:28px;height:65px;flex-basis:28px}.shelf:has(.shelf-object){gap:8px;padding-inline:10px}.shelf:has(.shelf-object) .book:not(.front){max-width:48px}}
.read-list-link{display:inline-block;pointer-events:auto;margin-top:12px;padding:5px 10px;color:#657053;font:11px Arial,sans-serif;text-decoration:underline;text-underline-offset:4px}.read-list-link:hover{color:#3f5339}.read-list-link[hidden]{display:none}@media(max-width:700px){main{padding-top:140px}.read-list-link{font-size:10px;margin-top:8px;padding:8px 6px}}@media(min-width:701px) and (max-height:700px){#scene{padding-top:170px}}
nav .newsletter-nav{display:inline-flex;align-items:center;padding:11px 18px;border-radius:22px;font-size:12px;color:#657053;text-decoration:none;white-space:nowrap}nav .newsletter-nav:hover{background:#f8f4e9;text-decoration:underline;text-underline-offset:4px}@media(max-width:700px){nav{gap:2px}nav button{padding:8px 12px}nav .newsletter-nav{padding:8px 12px;font-size:11px;min-height:36px}nav span{margin-left:5px}}
.header-tools{display:flex;align-items:center;gap:15px}.search-toggle{display:flex;gap:7px;align-items:center;background:#fdf9f0;border:1px solid #d9cfba;border-radius:25px;padding:9px 14px;font-size:11px;min-height:40px}.search-toggle>span:first-child{font:24px Georgia;line-height:20px}.search-toggle.has-filters{border-color:#7f906c;background:#e8eddf}.search-toggle.has-filters:after{content:'';width:6px;height:6px;border-radius:50%;background:#687d54}.book-tags{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0 20px}.category-tag{font-size:10px;border:1px solid #dad3bf;background:#efeddf;color:#687359;border-radius:20px;padding:6px 10px}.library-empty{position:absolute;left:20px;right:20px;top:45%;text-align:center;font:18px/1.8 Georgia;color:#82745c;z-index:5}.library-empty[hidden],.book-tags[hidden]{display:none}.arrow:disabled{opacity:.35;cursor:default}.search-dialog{width:min(670px,94vw);padding:30px;max-height:90dvh}.search-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.search-heading h2{font:32px Georgia;margin:10px 0 24px}.search-close{border:1px solid #d8cebb;background:transparent;border-radius:50%;width:40px;height:40px;flex-shrink:0;align-self:flex-start}.search-label{font-size:11px;color:#84775e}#search-input{width:100%;font:16px Arial;color:#493e32;border:1px solid #d4c9b4;border-radius:6px;background:#fffdf7;padding:14px;margin:9px 0 24px}.search-categories{margin:0;padding:0}.search-categories legend{font-size:11px;margin-bottom:4px}.search-instructions{font-size:10px;color:#94846b;margin:5px 0 13px}.search-tags{display:flex;gap:8px;flex-wrap:wrap}.tag-option{position:relative;cursor:pointer;font-size:11px}.tag-option input{position:absolute;opacity:0;width:1px;height:1px}.tag-option span{display:block;padding:9px 13px;border:1px solid #d9d1bc;border-radius:24px;background:#f5f0e4;color:#776d59}.tag-option input:checked+span{background:#e2ead9;border-color:#83946c;color:#4a603c}.tag-option input:checked+span:before{content:'✓ ';}.tag-option input:focus-visible+span{outline:3px solid #586d51;outline-offset:3px}.search-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0 8px;border-top:1px solid #e0d5bf;padding-top:15px}#search-count{font:italic 13px Georgia;color:#85765e;margin:0}#search-reset{border:0;background:transparent;text-decoration:underline;text-underline-offset:3px;font-size:11px;color:#6a7855;min-height:38px}.search-results{max-height:255px;overflow:auto;overscroll-behavior:contain;border-block:1px solid #e5dccb}.search-result{display:flex;text-align:left;gap:14px;align-items:center;width:100%;padding:12px 8px;border:0;border-bottom:1px solid #e9e1d2;background:transparent}.search-result:hover{background:#eeecde}.result-spine{width:15px;height:40px;flex-shrink:0;border-radius:2px;box-shadow:inset 3px 0 #0002,2px 2px 3px #0002}.search-result strong{display:block;font:16px Georgia}.search-result small{display:block;font:11px Arial;color:#8a7b64;margin-top:5px}.search-show{width:100%;margin-top:21px;padding:14px;background:#576d4d;color:#fff8e9;border:0;border-radius:6px;font-size:12px}.no-search-results{font:15px/1.7 Georgia;color:#8a795d;padding:20px 8px}.search-more{font-size:10px;color:#92836b;padding:10px 8px}.search-dialog::backdrop{background:#332c2370;backdrop-filter:blur(5px)}@media(max-width:1000px) and (min-width:701px){.header-tools .collection-summary{display:none}}@media(max-width:700px){.header-tools{position:absolute;right:12px;top:24px}.search-button-label{display:none}.search-toggle{padding:8px;width:38px;height:38px;justify-content:center;min-height:38px}.search-toggle.has-filters:after{position:absolute;right:4px;top:4px}.search-dialog{padding:24px 19px;width:calc(100% - 18px);max-height:94dvh}.search-heading h2{font-size:28px}.search-results{max-height:230px}.tag-option span{padding:9px 11px;font-size:10px}.tag-option{min-height:36px}.search-toolbar{gap:8px}#search-count{font-size:12px}.search-result strong{font-size:15px}.library-empty{top:50%;font-size:15px}.book-tags{margin-bottom:15px}}
/* Give the mobile navigation a clear lower margin before the next section. */
@media(max-width:700px){
 header{height:154px}
 nav{top:79px}
 main{height:calc(100dvh - 204px)}
 .intro{top:20px}
}
footer .read-list-link{margin:0;padding:10px 0;font-size:10px;white-space:nowrap}footer #scene-status{flex:1;text-align:center}@media(max-width:1100px) and (min-width:701px){footer #scene-status{display:none}footer .hint{flex:1}}@media(max-width:700px){footer{height:74px;display:grid;grid-template-columns:1fr auto;gap:2px 16px;padding:7px 12px}footer .hint{grid-column:1;grid-row:1;max-width:none}footer .page-count{grid-column:2;grid-row:1}footer .read-list-link{grid-column:1;grid-row:2;justify-self:start;font-size:9px;padding:7px 0}footer .about-link{grid-column:2;grid-row:2;font-size:9px;padding:7px 0}main{height:calc(100dvh - 228px)}.newsletter-page footer{display:flex;height:auto}.newsletter-page .newsletter-main{height:auto}}
.book-sharing{border-top:1px solid #ded4c1;margin-top:22px;padding-top:18px}#share-toggle{display:inline-flex;align-items:center;gap:9px;border:1px solid #cfc6b0;background:transparent;color:#667353;border-radius:6px;padding:11px 15px;font-size:12px;min-height:44px}#share-toggle:hover,#share-toggle[aria-expanded=true]{background:#e9eddf}#share-options{margin-top:17px}.share-description{font:13px/1.6 Georgia;color:#8a795f}.social-links{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.social-links a,#share-native{border:1px solid #d9d0bc;background:#f4f0e5;border-radius:20px;padding:9px 12px;font-size:11px;text-decoration:none;color:#60704e;min-height:36px;display:inline-flex;align-items:center}.social-links a:hover{background:#e6ecdc}#share-native[hidden]{display:none}.share-copy-row{display:flex;gap:8px;align-items:stretch}#share-url{width:100%;min-width:0;background:#fffdf6;border:1px solid #d9cdb8;border-radius:5px;padding:10px;color:#81725a;font:12px Arial}#share-copy{white-space:nowrap;border:1px solid #cfc6b0;border-radius:5px;background:#edeedc;padding:10px 13px;font-size:11px;color:#5c6b4b}#share-status{font-size:11px;line-height:1.5;color:#74815d;min-height:1em}@media(max-width:700px){#share-url{font-size:16px}.share-copy-row{flex-wrap:wrap}#share-copy{min-height:42px}.social-links a{min-height:40px}}
.book-sidebar{min-width:0;align-self:start}.book-sidebar .cover{width:100%}.book-sidebar-actions{margin-top:22px}.book-sidebar-actions .book-link{display:flex;width:100%;margin:0 0 12px;text-align:center}.book-sidebar-actions .book-link[hidden]{display:none}.book-sidebar-actions .book-sharing{margin-top:15px;padding-top:15px}.book-sidebar-actions #share-toggle{width:100%;justify-content:center}.book-sidebar-actions .social-links{gap:6px}.book-sidebar-actions .social-links a{font-size:10px;padding:8px 10px}.book-sidebar-actions .share-copy-row{flex-wrap:wrap}.book-sidebar-actions #share-copy{width:100%;min-height:40px}.book-sidebar-actions #affiliate-note{margin:10px 0 15px}.book-sidebar-actions .share-description{font-size:12px}@media(max-width:700px){.book-sidebar{width:100%;max-width:350px;justify-self:center}.book-sidebar .cover{width:150px;margin:0 auto}.book-sidebar-actions{margin-top:25px}.book-sidebar-actions .book-link{width:100%}.book-sidebar-actions .social-links a{font-size:11px;min-height:40px;padding:9px 12px}.book-sidebar-actions #share-url{width:100%}}

/* Banner cookie: link nel footer e colori di CookieConsent allineati al sito. */
.cookie-link{border:0;background:transparent;color:#657053;font:11px Arial,sans-serif;white-space:nowrap;padding:10px 4px;cursor:pointer;text-underline-offset:4px}.cookie-link:hover{text-decoration:underline}
#cc-main{--cc-font-family:Arial,sans-serif;--cc-bg:#fdfbf3;--cc-primary-color:#493e32;--cc-secondary-color:#7a6d58;--cc-btn-primary-bg:#576d4d;--cc-btn-primary-color:#fff8e9;--cc-btn-primary-border-color:#576d4d;--cc-btn-primary-hover-bg:#465a3e;--cc-btn-primary-hover-color:#fff8e9;--cc-btn-primary-hover-border-color:#465a3e;--cc-btn-secondary-bg:#efe8d8;--cc-btn-secondary-color:#493e32;--cc-btn-secondary-border-color:#ddd2bc;--cc-btn-secondary-hover-bg:#e5dcc8;--cc-btn-secondary-hover-color:#493e32;--cc-btn-secondary-hover-border-color:#d4c7ad;--cc-separator-border-color:#e5dccb;--cc-toggle-on-bg:#576d4d;--cc-toggle-off-bg:#b9ae98;--cc-cookie-category-block-bg:#f5f0e4;--cc-cookie-category-block-border:#e5dccb;--cc-cookie-category-block-hover-bg:#efe8d8;--cc-section-category-border:#e5dccb;--cc-footer-bg:#f5f0e4;--cc-footer-color:#7a6d58;--cc-link-color:#576d4d}
#cc-main .cm__title,#cc-main .pm__title{font-family:Georgia,serif;font-weight:400;font-size:20px}
@media(max-width:700px){footer{grid-template-columns:1fr auto auto}footer .page-count{grid-column:2/4;justify-self:end}footer .cookie-link{grid-column:2;grid-row:2;font-size:9px;padding:7px 0}footer .about-link{grid-column:3}}

/* Widget accessibilità (Sienna): su mobile, nella libreria, va in alto a sinistra nell'header libero. */
@media(max-width:700px){body:not(.newsletter-page) .asw-menu-btn{--asw-btn-size-mobile:32px;--asw-icon-size-mobile:22px;top:28px!important;bottom:auto!important;left:18px!important;right:auto!important}}
