/* Gramsci – Biblioteca digitale */
.gtbd-intro { font-size: 1.2em; line-height: 1.5; color: #2A2626; }
.wp-block-group.is-style-gtbd-nota { background: #F3F0ED; padding: 22px 28px; }
.wp-block-group.is-style-gtbd-nota > * { margin: 0; }
.gtbd-note { font-size: 15px; color: #6B625C; }
h4.gtbd-anno { margin: 28px 0 12px; font-size: 20px; color: #2A2626; border-bottom: 1px solid #E6E2DE; padding-bottom: 6px; }

ul.is-style-gtbd-fascicoli, ul.gtbd-fascicoli {
	list-style: none !important; padding: 0 !important; margin: 0 0 32px; border: 0 !important;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px;
}
ul.is-style-gtbd-fascicoli > li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
ul.is-style-gtbd-fascicoli > li::before { content: none !important; }
.gtbd-f__link, .gtbd-f.is-missing { display: flex; flex-direction: column; gap: 8px; height: 100%; text-decoration: none !important; color: #2A2626; }
.gtbd-f__cover { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: contain; background: #F3F0ED; border: 1px solid #E6E2DE; transition: box-shadow .2s, transform .2s; }
.gtbd-f__cover--none { display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(135deg, #EFEBE7 0 10px, #E8E3DE 10px 20px); }
.gtbd-f__cover--none span { font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: #fff; background: #8E1012; padding: 4px 8px; }
.gtbd-f__label { font-size: 15px; line-height: 1.35; }
.gtbd-f__cta { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8E1012; margin-top: auto; }
.gtbd-f__link:hover .gtbd-f__cover { box-shadow: 0 8px 20px rgba(30, 20, 20, .15); transform: translateY(-2px); }
.gtbd-f__link:hover .gtbd-f__label { color: #8E1012; }
.gtbd-f.is-missing { color: #9A8F88; }
.gtbd-f.is-missing .gtbd-f__cover { opacity: .5; }
.gtbd-f.is-missing .gtbd-f__cta { color: #9A8F88; }

.wp-block-group.is-style-gtbd-monografia { border: 1px solid #E6E2DE; border-left: 4px solid #8E1012; padding: 22px 26px; margin-bottom: 18px; }
.wp-block-group.is-style-gtbd-monografia > * { margin: 0 0 10px; }
.wp-block-group.is-style-gtbd-monografia > *:last-child { margin-bottom: 0; }
.wp-block-group.is-style-gtbd-monografia h3 { margin-top: 0; }
.wp-block-group.is-style-gtbd-monografia p { font-size: 16px; color: #6B625C; }
.gtbd-link .wp-block-button__link { background: transparent; color: #8E1012; border: 1.5px solid #8E1012; border-radius: 0; text-decoration: none; }
.gtbd-link .wp-block-button__link:hover { background: #F6F2EF; color: #5E0A0C; }

.gtbd-viewer { width: min(1100px, 94vw); height: 90vh; padding: 0; border: 0; overflow: hidden; background: #2A2626; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.gtbd-viewer::backdrop { background: rgba(20, 16, 16, .75); }
.gtbd-viewer__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 16px; color: #fff; font-size: 15px; }
.gtbd-viewer__bar a { color: #fff; text-decoration: underline; }
.gtbd-viewer__bar button { background: none; border: 1px solid rgba(255, 255, 255, .6); color: #fff; padding: 6px 12px; cursor: pointer; font: inherit; }
.gtbd-viewer iframe { width: 100%; height: calc(100% - 52px); border: 0; background: #fff; display: block; }

@media (max-width: 760px) {
	ul.is-style-gtbd-fascicoli { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.gtbd-f__label { font-size: 14px; }
}
