/* Copertine intere e schede coerenti con la Biblioteca AD ASTRA. */
.books-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.book-card{grid-template-columns:140px minmax(0,1fr);gap:24px;align-items:start;min-width:0}
.book-cover{width:140px;height:210px;padding:0;object-fit:contain;background:transparent;border-radius:3px;box-shadow:none}
.book-open{max-width:100%}.cover-button{align-self:start}.book-info{min-width:0;padding:0}
.book-title{font-size:1.16rem;line-height:1.35;margin:8px 0;overflow-wrap:anywhere}
.book-author{font-size:.92rem}.book-note{font-size:.94rem;line-height:1.65;margin:12px 0}
.book-category{display:flex;gap:7px;align-items:center;font-size:.7rem;letter-spacing:.045em;line-height:1.5}
.lib-icon{width:19px;height:19px;flex-shrink:0;vertical-align:middle}
.book-level{display:flex;gap:7px;align-items:center;font-size:.8rem;line-height:1.5;margin:12px 0}
.detail-button{color:#2461d7;font-weight:700;border-bottom:1px solid #b8cdef;padding:8px 0;font-size:.92rem;margin-top:6px}
.book-open:focus-visible,.book-links a:focus-visible,.modal-close:focus-visible{outline:3px solid #2461d7;outline-offset:4px;border-radius:3px}
.library-rating-note{max-width:1180px;width:92%;margin:0 auto 50px;font-size:.8rem;color:#607086;line-height:1.7}
.book-modal{z-index:12000;overscroll-behavior:contain}.book-modal-window{position:relative;max-height:90dvh;overflow:auto;padding:38px;overscroll-behavior:contain;scrollbar-gutter:stable}
.modal-close{position:sticky;top:0;margin-left:auto;display:block;z-index:2;background:#eef3fb;color:#123458;box-shadow:0 2px 8px #1232}
.modal-grid{grid-template-columns:190px minmax(0,1fr);align-items:start;gap:30px}.modal-cover{width:auto;height:auto;display:block;background:transparent;padding:0;box-shadow:none;color:#66778c}
.modal-cover img{width:100%;max-height:300px;object-fit:contain;object-position:top}.modal-cover small{display:block;font-size:.7rem;font-weight:400;line-height:1.6;margin-top:12px;text-align:left}.modal-cover a{text-decoration:underline}
.modal-title{font-size:1.65rem;line-height:1.3;overflow-wrap:anywhere}.modal-content p{margin:12px 0;text-align:justify;hyphens:auto}.modal-content h3{margin-top:26px;font-size:1.05rem}
.modal-content a{color:#245fb8;text-decoration:underline;text-underline-offset:3px}.book-links{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.book-links a{padding:9px 12px;background:#edf3fe;border:1px solid #ccd9ef;border-radius:5px;text-decoration:none;font-size:.88rem}
.modal-content .editorial-note{font-size:.77rem;color:#65758b;text-align:left}.modal-content small{font-size:.8rem}.modal-data-row span{overflow-wrap:anywhere}
@media(max-width:1100px){.book-card{grid-template-columns:112px minmax(0,1fr);gap:18px}.book-cover{width:112px;height:168px}}
@media(max-width:760px){.books-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.book-card{padding:20px;grid-template-columns:90px minmax(0,1fr);gap:16px}.book-cover{width:90px;height:140px}.book-title{font-size:1.06rem}.book-category{font-size:.65rem}.book-modal{padding:10px}.book-modal-window{padding:18px;max-height:94dvh}.modal-grid{grid-template-columns:minmax(0,1fr);gap:20px}.modal-cover{max-width:150px;margin:auto}.modal-cover img{max-height:205px}.modal-title{font-size:1.35rem}.modal-data-row{grid-template-columns:1fr}.modal-content p{font-size:.95rem}.book-level{font-size:.74rem}}
@media(prefers-reduced-motion:reduce){.book-cover{transition:none!important}.book-open:hover .book-cover{transform:none}}
/* Accesso alla Biblioteca online: immagine concettuale e testo HTML. */
.portal-section{padding:54px 0;background:#f7f9fc;border-top:1px solid #dce6f1}
.portal-banner{position:relative;isolation:isolate;overflow:hidden;min-height:365px;border:1px solid #c5d6eb;border-radius:17px;background:#eef4fb}
.portal-visual{position:absolute;inset:0 auto 0 0;width:45%;overflow:hidden;z-index:-1;mask-image:linear-gradient(90deg,#000 66%,transparent 100%)}
.portal-visual img{width:235%;max-width:none;height:100%;object-fit:cover;object-position:left center}
.portal-copy{padding:40px 36px 34px;margin-left:43%}
.portal-eyebrow{color:#2863d8;font-size:.69rem;font-weight:700;letter-spacing:.19em;margin-bottom:12px;line-height:1.6}
.portal-copy h2{font-size:clamp(25px,2.6vw,39px);line-height:1.15;letter-spacing:-.025em;color:#102342;margin:0 0 10px}
.portal-subtitle{font-size:clamp(18px,1.6vw,24px);line-height:1.35;margin-bottom:17px}
.portal-description{font-size:.95rem;line-height:1.7;margin-bottom:21px;color:#324965}
.portal-cta{display:inline-flex;align-items:center;gap:16px;padding:12px 21px;background:#2863d8;color:#fff;border-radius:7px;font-weight:700;font-size:.94rem;line-height:1.5;transition:background .2s}
.portal-cta:hover{background:#174eaf}.portal-cta:focus-visible{outline:3px solid #102342;outline-offset:4px}
.portal-topics{margin-top:16px;font-size:.73rem;line-height:1.7;color:#53677f}.portal-topics span{padding:0 7px}
.online-intro{padding:45px 0;background:#eef4fb}.online-intro nav{margin-bottom:35px;font-size:.88rem}.online-intro nav a{text-decoration:underline}.online-intro nav span{margin:0 10px}
.online-intro h1{font-size:clamp(29px,4vw,46px);line-height:1.2;margin-bottom:20px}.online-intro p:not(.portal-eyebrow){max-width:900px;line-height:1.8}.catalog-status{margin-top:24px;padding:18px 22px;border-left:3px solid #3263c5;background:#fff;font-size:.9rem}
.online-portals{padding:48px 0 65px}.online-guidance{margin:14px 0 28px;max-width:880px;color:#516780}.institution-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.institution-grid article{padding:27px;background:#fff;border:1px solid #d5e1ef;border-radius:10px;display:flex;flex-direction:column;align-items:flex-start}.institution-grid h3{font-size:1.4rem;margin-bottom:12px}.institution-grid small{display:block;color:#64768c;margin:15px 0}.institution-grid a{margin-top:auto;color:#245fb8;font-weight:700;text-decoration:underline}.online-back{display:inline-block;margin-top:32px;color:#245fb8;text-decoration:underline}
@media(max-width:900px){.portal-copy{padding:30px 25px;margin-left:38%}.portal-visual{width:41%}.portal-visual img{width:265%}.portal-description{font-size:.89rem}}
@media(max-width:600px){.portal-section{padding:30px 0}.portal-banner{min-height:0}.portal-visual{position:relative;width:100%;height:195px;mask-image:linear-gradient(#000 55%,transparent 100%)}.portal-visual img{width:240%;height:auto;min-height:100%;object-position:left top;transform:translateY(-9%)}.portal-copy{margin:0;padding:0 23px 27px}.portal-copy h2{font-size:27px}.portal-description{font-size:.94rem}.portal-eyebrow{font-size:.62rem}.portal-topics{font-size:.7rem}.portal-cta{padding:12px 16px;font-size:.88rem}.institution-grid{grid-template-columns:minmax(0,1fr)}.institution-grid article{padding:22px}}

.author-profile-trigger {
  border: 0;
  padding: .1em 0;
  background: transparent;
  color: #815411;
  font: inherit;
  font-size: 1.13em;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}
.author-profile-trigger:hover { color: #523400; }
.author-profile-trigger:focus-visible { outline: 2px solid #815411; outline-offset: 4px; }
.author-profile {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
  box-sizing: border-box;
  width: min(46rem, calc(100% - 2rem));
  max-height: 85dvh;
  padding: clamp(1rem, 4vw, 2rem);
  border: 2px solid #b58a44;
  border-radius: 1.25rem;
  background: #fffdf8;
  color: #192b40;
  box-shadow: 0 1rem 4rem #07142655;
  overflow: auto;
}
.author-profile::backdrop { background: #071426a3; }
.author-profile form { display: flex; justify-content: flex-end; }
.author-profile form button {
  border: 1px solid #b58a44;
  border-radius: .5rem;
  padding: .4rem .8rem;
  background: #fff8eb;
  color: #523400;
  font: inherit;
  cursor: pointer;
}
.author-profile h2 { margin: .35rem 0; }
.author-profile h3 { clear: both; }
.author-profile-role { margin-top: 0; color: #70501d; }
.author-profile img {
  float: left;
  width: min(42%, 15rem);
  height: auto;
  margin: .2rem 1.15rem .65rem 0;
  border-radius: .75rem;
}
.author-profile img[hidden] { display: none; }
.author-profile-bio, .author-profile li { line-height: 1.6; }
@media (max-width: 480px) {
  .author-profile img { float: none; width: min(100%, 15rem); margin: .35rem 0; }
}
