/* Palette e stili del sito */

:root {
    --site-bg: #edf0ed;
    --site-paper: #f5f8f5;
    --site-ink: #111817;
    --site-muted: #58635f;
    --site-line: #cbd2ce;
    --site-accent: #74795f;
    --site-accent-dark: #304844;
    --site-accent-red: #a61f24;
    --site-panel-dark: #17221d;
    --site-hover: #e5eae6;
}

/* Base */

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--site-bg);
    color: var(--site-ink);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.7;
}

.small-muted {
    color: var(--site-muted);
    font-size: 0.95rem;
}

/* Tipografia */

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    color: var(--site-ink);
}

h1 {
    font-size: clamp(2.4rem, 4.8vw, 4.25rem);
    max-width: 12ch;
    margin-bottom: 1.1rem;
}

h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    margin-bottom: 1.25rem;
}

.eyebrow {
    display: inline-block;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--site-accent-red);
    margin-bottom: 1rem;
    font-weight: 700;
}

.lead-custom {
    font-size: 1.08rem;
    color: var(--site-muted);
    max-width: 44rem;
    line-height: 1.8;
}

.section-intro {
    color: var(--site-muted);
    max-width: 48rem;
}

/* Header / Navbar */

.navbar {
    background-color: rgba(245, 248, 245, 0.96);
    border-bottom: 1px solid var(--site-line);
    backdrop-filter: blur(6px);
}

.navbar-brand,
.nav-link {
    color: var(--site-ink) !important;
}

.nav-link {
    font-size: 1rem;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--site-accent-dark) !important;
}

.nav-link.active {
    color: var(--site-accent-dark) !important;
    font-weight: 600;
}

.dropdown-toggle::after {
    margin-left: 0.45rem;
    vertical-align: 0.15em;
}

.dropdown-menu {
    background-color: var(--site-paper);
    border: 1px solid var(--site-line);
    border-radius: 0.75rem;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    padding: 0.45rem;
    min-width: 17rem;
}

.dropdown-item {
    color: var(--site-ink);
    border-radius: 0.55rem;
    padding: 0.65rem 0.85rem;
    white-space: normal;
    line-height: 1.4;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--site-hover);
    color: var(--site-accent-dark);
}

.dropdown-item.active,
.dropdown-item:active {
    background-color: rgba(38, 58, 55, 0.12);
    color: var(--site-accent-dark);
    font-weight: 600;
}

.brand-logo {
    display: inline-flex;
    text-decoration: none;
    color: var(--site-ink) !important;
}

.brand-logo:hover,
.brand-logo:focus {
    color: var(--site-ink) !important;
    text-decoration: none;
}

.brand-logo-stacked {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.22rem;
    line-height: 1.05;
}

.brand-logo-stacked .brand-main {
    font-size: 1.22rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.brand-logo-stacked .brand-sub {
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--site-muted);
    opacity: 0.85;
}

/* Hero */

.hero {
    padding: 8rem 0 4.75rem;
    background: linear-gradient(
        to bottom,
        rgba(245, 248, 245, 0.97),
        rgba(237, 240, 237, 0.97)
    );
}

.hero .fs-4 {
    font-size: clamp(1.1rem, 1.8vw, 1.45rem) !important;
    color: var(--site-accent-dark);
    margin-bottom: 1.6rem !important;
}

.meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    padding: 0;
    margin: 1.5rem 0 1.75rem;
    list-style: none;
    color: var(--site-muted);
    font-size: 0.98rem;
}

.meta-list li {
    border-left: 2px solid var(--site-line);
    padding-left: 0.75rem;
}

.hero-cover {
    background: var(--site-paper);
    border: 1px solid var(--site-line);
    border-radius: 0.9rem;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.hero-cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.45rem;
}

.hero-cover-figure {
    margin: 0;
    max-width: 360px;
    margin-left: auto;
}

.hero-cover-caption {
    margin-top: 0.75rem;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--site-muted);
    text-align: center;
}

/* Pulsanti */

.btn-site-primary,
.btn-site-secondary {
    padding: 0.8rem 1.3rem;
    border-radius: 0.6rem;
    font-weight: 600;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.btn-site-primary {
    background-color: var(--site-accent-dark);
    border: 1px solid var(--site-accent-dark);
    color: #fff;
}

.btn-site-primary:hover,
.btn-site-primary:focus {
    background-color: #192b29;
    border-color: #192b29;
    color: #fff;
    box-shadow: 0 10px 22px rgba(38, 58, 55, 0.24);
    transform: translateY(-1px);
}

.btn-site-secondary {
    background-color: transparent;
    border: 1px solid var(--site-accent-dark);
    color: var(--site-accent-dark);
}

.btn-site-secondary:hover,
.btn-site-secondary:focus {
    background-color: var(--site-accent-dark);
    color: #fff;
    box-shadow: 0 10px 22px rgba(38, 58, 55, 0.18);
    transform: translateY(-1px);
}

/* Sezioni e box */

.section-block {
    padding: 4.5rem 0;
    border-top: 1px solid var(--site-line);
}

.note-box,
.author-box,
.book-data-box,
.publisher-box {
    background-color: var(--site-paper);
    border: 1px solid var(--site-line);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.book-data-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.book-data-list li {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--site-line);
}

.book-data-list li:last-child {
    border-bottom: 0;
}

/* Card contenuti */

.card-document {
    height: 100%;
    background-color: var(--site-paper);
    border: 1px solid var(--site-line);
    border-radius: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-document:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.card-document .card-body {
    padding: 1.4rem;
}

.card-document h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
}

/* Editore */

.publisher-logo-panel {
    background-color: var(--site-panel-dark);
    border-radius: 0.75rem;
    padding: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    width: auto;
}

.publisher-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.publisher-logo {
    display: block;
    width: 100%;
    max-width: 130px;
    height: auto;
}

.publisher-text p {
    color: var(--site-ink);
}

.publisher-link {
    color: var(--site-accent-dark);
    font-weight: 600;
    text-decoration: none;
}

.publisher-link:hover,
.publisher-link:focus {
    text-decoration: underline;
}

.link-disabled {
    color: var(--site-muted);
    cursor: default;
}

/* Store */

.store-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}

.store-link {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 0.9rem 1rem;
    border: 1px solid var(--site-line);
    border-radius: 0.7rem;
    background-color: var(--site-paper);
    color: var(--site-ink);
    font-weight: 600;
}

.store-link:hover,
.store-link:focus {
    background-color: var(--site-hover);
    color: var(--site-accent-dark);
}

/* Video */

.video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 0.75rem;
    overflow: hidden;
    background-color: #000;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.source-external-box {
    height: 100%;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--site-paper);
    border: 1px solid var(--site-line);
    border-radius: 0.75rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.source-external-box__inner {
    padding: 1.5rem;
    text-align: center;
    max-width: 28rem;
}

.source-external-box__label {
    color: var(--site-muted);
    font-size: 0.95rem;
}

.video-list > .col-12 + .col-12 .source-card {
    border-top: 1px solid var(--site-line);
    padding-top: 1.75rem;
    margin-top: 0.25rem;
}

/* Gallery */

.gallery-entry {
    background-color: var(--site-paper);
    border: 1px solid var(--site-line);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.gallery-entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--site-muted);
    font-size: 0.92rem;
}

.gallery-entry-meta span {
    display: inline-flex;
    align-items: center;
}

.gallery-entry-meta span + span::before {
    content: "·";
    margin-right: 0.5rem;
    color: var(--site-line);
}

.gallery-thumb-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 220px;
    max-height: 360px;
    padding: 0.75rem;
    border: 1px solid var(--site-line);
    border-radius: 0.75rem;
    background-color: var(--site-hover);
    cursor: zoom-in;
    overflow: hidden;
}

.gallery-thumb-button picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.gallery-thumb {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 320px;
    height: auto;
    border-radius: 0.55rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-zoom-label {
    position: absolute;
    right: 0.9rem;
    bottom: 0.9rem;
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background-color: rgba(11, 17, 16, 0.84);
    color: #fff;
    font-size: 0.78rem;
    line-height: 1;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-thumb-button:hover .gallery-zoom-label,
.gallery-thumb-button:focus .gallery-zoom-label {
    opacity: 1;
    transform: translateY(0);
}

.gallery-modal-dialog {
    width: auto;
    max-width: calc(100vw - 2rem);
    margin: 1rem auto;
}

.gallery-modal-content {
    background-color: var(--site-paper);
    border: 1px solid var(--site-line);
    border-radius: 0.75rem;
    width: 100%;
    max-width: none;
}

.gallery-modal-body {
    padding: 0.75rem 0.75rem 1rem;
}

.gallery-modal-stage {
    display: block;
    width: 100%;
    max-height: 78vh;
    overflow: auto;
    text-align: center;
}

.gallery-modal-img {
    display: inline-block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 78vh;
    border-radius: 0.5rem;
    user-select: none;
    -webkit-user-drag: none;
    cursor: zoom-in;
    transition: width 0.2s ease, max-width 0.2s ease;
}

.gallery-modal-img.is-zoomed {
    cursor: zoom-out;
    max-width: none;
    max-height: none;
}

/* Tabelle del volume */

.tables-hero {
    padding: 8rem 0 4.25rem;
    background: linear-gradient(
        to bottom,
        rgba(245, 248, 245, 0.98),
        rgba(237, 240, 237, 0.98)
    );
}

.tables-hero h1 {
    max-width: none;
}

.table-reading-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    max-width: 62rem;
    padding: 1.25rem 1.4rem;
    border: 1px solid rgba(48, 72, 68, 0.28);
    border-left: 4px solid var(--site-accent-dark);
    border-radius: 0.75rem;
    background-color: var(--site-paper);
}

.table-reading-notice__icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background-color: var(--site-accent-dark);
    color: #fff;
    font-size: 1.2rem;
    line-height: 1;
}

.table-reading-notice h2 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.table-reading-notice p {
    margin: 0;
    color: var(--site-muted);
}

.tables-index h2 {
    margin-bottom: 1.25rem;
}

.tables-index-group {
    height: 100%;
    padding: 1.25rem;
    border: 1px solid var(--site-line);
    border-radius: 0.75rem;
    background-color: var(--site-paper);
}

.tables-index-group h3 {
    margin-bottom: 0.25rem;
    font-size: 1.15rem;
}

.tables-index-title {
    margin: 0 0 0.25rem;
    color: var(--site-ink);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.4;
}

.tables-index-count {
    margin: 0 0 0.75rem;
    color: var(--site-muted);
    font-size: 0.92rem;
}

.tables-index-link {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--site-accent-dark);
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
}

.tables-index-link:hover,
.tables-index-link:focus {
    color: var(--site-accent-red);
    text-decoration: underline;
}

.tables-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background-color: var(--site-hover);
    color: var(--site-muted);
    font-size: 0.78rem;
    font-weight: 600;
}

.tables-status--available {
    background-color: rgba(48, 72, 68, 0.12);
    color: var(--site-accent-dark);
}

.tables-content {
    overflow: hidden;
}

.tables-container {
    max-width: 1500px;
    padding-right: clamp(1rem, 3vw, 3rem);
    padding-left: clamp(1rem, 3vw, 3rem);
}

.book-table-entry {
    scroll-margin-top: 6rem;
}

.book-table-header {
    max-width: 64rem;
    margin-bottom: 1.5rem;
}

.book-table-location {
    display: inline-block;
    margin-bottom: 0.55rem;
    color: var(--site-accent-red);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.book-table-header h2 {
    margin-bottom: 0.75rem;
}

.book-table-intro {
    margin: 0;
    margin-bottom: 0.55rem;
    color: var(--site-muted);
    font-size: 1rem;
}

.table-scroll-hint {
    display: none;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.65rem;
    color: var(--site-muted);
    font-size: 0.86rem;
    font-weight: 600;
}

.table-scroll-hint span {
    color: var(--site-accent-red);
    font-size: 1.1rem;
}

.book-table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--site-line);
    border-radius: 0.75rem;
    background-color: var(--site-paper);
    box-shadow: 0 12px 30px rgba(17, 24, 23, 0.06);
    -webkit-overflow-scrolling: touch;
    scrollbar-color: var(--site-accent-dark) var(--site-hover);
    scrollbar-width: thin;
}

.book-table-scroll:focus {
    outline: 3px solid rgba(166, 31, 36, 0.22);
    outline-offset: 3px;
}

.book-table-scroll::-webkit-scrollbar {
    height: 11px;
}

.book-table-scroll::-webkit-scrollbar-track {
    background-color: var(--site-hover);
}

.book-table-scroll::-webkit-scrollbar-thumb {
    border: 2px solid var(--site-hover);
    border-radius: 999px;
    background-color: var(--site-accent-dark);
}

.book-table {
    width: 100%;
    min-width: 1180px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--site-ink);
    font-size: 0.94rem;
    line-height: 1.5;
}

.book-table col.book-table-col-date {
    width: 14%;
}

.book-table col.book-table-col-victims {
    width: 14%;
}

.book-table col.book-table-col-shots {
    width: 15%;
}

.book-table col.book-table-col-casings {
    width: 10%;
}

.book-table col.book-table-col-notes {
    width: 47%;
}

.book-table th,
.book-table td {
    padding: 1rem;
    border-right: 1px solid var(--site-line);
    border-bottom: 1px solid var(--site-line);
    vertical-align: middle;
}

.book-table th:last-child,
.book-table td:last-child {
    border-right: 0;
}

.book-table tbody tr:last-child td {
    border-bottom: 0;
}

.book-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background-color: var(--site-accent-dark);
    color: #fff;
    font-size: 0.92rem;
    line-height: 1.3;
    text-align: left;
}

.book-table thead th.book-table-heading-center {
    text-align: center;
}

.book-table tbody tr:nth-child(even) td {
    background-color: rgba(229, 234, 230, 0.55);
}

.book-table tbody tr:hover td {
    background-color: rgba(166, 31, 36, 0.08);
}

/*
 * Nella Tabella A2 il fondo grigio identifica le vittime maschili.
 * La classe esplicita gestisce correttamente anche il delitto di Giogoli,
 * nel quale entrambe le vittime erano uomini.
 */
.book-table--a2 tbody tr:nth-child(even) td,
.book-table--a2 tbody tr:nth-child(odd) td,
.book-table--a3 tbody tr:nth-child(even) td,
.book-table--a3 tbody tr:nth-child(odd) td,
.book-table--a4 tbody tr:nth-child(even) td,
.book-table--a4 tbody tr:nth-child(odd) td {
    background-color: var(--site-paper);
}

.book-table--a2 tbody tr.victim-male td,
.book-table--a3 tbody tr.victim-male td,
.book-table--a4 tbody tr.victim-male td {
    background-color: rgba(203, 210, 206, 0.58);
}

.book-table--a2 tbody tr:hover td,
.book-table--a2 tbody tr.victim-male:hover td,
.book-table--a3 tbody tr:hover td,
.book-table--a3 tbody tr.victim-male:hover td,
.book-table--a4 tbody tr:hover td,
.book-table--a4 tbody tr.victim-male:hover td {
    background-color: rgba(166, 31, 36, 0.08);
}

/*
 * Griglia completa della A2: i bordi sono dichiarati su ogni cella,
 * comprese le intestazioni articolate su due livelli e le celle unite.
 */
.book-table--a2,
.book-table--a3,
.book-table--a4,
.book-table--a5 {
    border-collapse: collapse;
}

.book-table--a2 th,
.book-table--a2 td,
.book-table--a2 th:last-child,
.book-table--a2 td:last-child,
.book-table--a2 tbody tr:last-child td,
.book-table--a3 th,
.book-table--a3 td,
.book-table--a3 th:last-child,
.book-table--a3 td:last-child,
.book-table--a3 tbody tr:last-child td,
.book-table--a4 th,
.book-table--a4 td,
.book-table--a4 th:last-child,
.book-table--a4 td:last-child,
.book-table--a4 tbody tr:last-child td,
.book-table--a5 th,
.book-table--a5 td,
.book-table--a5 th:last-child,
.book-table--a5 td:last-child,
.book-table--a5 tbody tr:last-child td {
    border: 1px solid var(--site-line);
}

.book-table--a3 ol,
.book-table--a4 ul {
    margin: 0;
    padding-left: 1.35rem;
}

.book-table--a3 li + li,
.book-table--a4 li + li {
    margin-top: 0.45rem;
}

.book-table-cell-note {
    margin: 1rem 0 0 !important;
    padding: 0.8rem 0.9rem;
    border-left: 3px solid var(--site-accent-dark);
    background-color: rgba(48, 72, 68, 0.08);
}

.book-table-notes-list {
    margin: 0;
    padding-left: 1.25rem;
}

.book-table-notes-list li + li {
    margin-top: 0.85rem;
}

.fatal-outcome {
    text-decoration: underline;
    text-underline-offset: 0.12em;
}

.book-table td p {
    margin: 0 0 0.65rem;
}

.book-table td p:last-child {
    margin-bottom: 0;
}

.book-table-number,
.book-table-text-value {
    text-align: center;
}

.book-table-number {
    font-size: 1.15rem;
    font-weight: 700;
}

.book-table-text-value {
    line-height: 1.35;
}

.book-table-notes {
    max-width: 68rem;
    margin-top: 2.5rem;
    padding: 1.5rem;
    border: 1px solid var(--site-line);
    border-radius: 0.75rem;
    background-color: var(--site-paper);
}

.book-table-notes > h3 {
    margin-bottom: 1.4rem;
    font-size: 1.35rem;
}

.book-table-note + .book-table-note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--site-line);
}

.book-table-note h4 {
    margin-bottom: 0.5rem;
    color: var(--site-accent-dark);
    font-size: 1.08rem;
    font-style: italic;
}

.book-table-note p {
    margin: 0;
}

.book-table-notes a {
    color: var(--site-accent-dark);
    font-weight: 600;
    text-underline-offset: 0.15em;
}

.book-table-notes a:hover,
.book-table-notes a:focus {
    color: var(--site-accent-red);
}

/* Documenti giudiziari e investigativi */

.documents-page .document-section {
    scroll-margin-top: 6rem;
}

.document-entry {
    background-color: var(--site-paper);
    border: 1px solid var(--site-line);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(17, 24, 23, 0.05);
}

.document-entry + .document-entry {
    margin-top: 1.5rem;
}

.document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    color: var(--site-muted);
    font-size: 0.92rem;
}

.document-meta span {
    display: inline-flex;
    align-items: center;
}

.document-meta span + span::before {
    content: "·";
    margin-right: 0.5rem;
    color: var(--site-line);
}

.document-subtitle {
    margin-bottom: 0.9rem;
    color: var(--site-accent-dark);
    font-weight: 600;
    line-height: 1.45;
}

.document-data-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    color: var(--site-muted);
    font-size: 0.94rem;
}

.document-data-list li {
    padding-left: 0.7rem;
    border-left: 2px solid var(--site-line);
}

.document-preview-link {
    position: relative;
    display: block;
    width: 100%;
    padding: 0.7rem;
    border: 1px solid var(--site-line);
    border-radius: 0.75rem;
    background-color: var(--site-hover);
    text-decoration: none;
    overflow: hidden;
}

.document-preview-link picture {
    display: block;
    width: 100%;
}

.document-preview-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    border-radius: 0.5rem;
    background-color: #fff;
    box-shadow: 0 10px 24px rgba(17, 24, 23, 0.08);
}

.document-preview-caption {
    position: absolute;
    right: 0.95rem;
    bottom: 0.95rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background-color: rgba(17, 24, 23, 0.84);
    color: #fff;
    font-size: 0.78rem;
    line-height: 1;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.document-preview-link:hover .document-preview-caption,
.document-preview-link:focus .document-preview-caption {
    opacity: 1;
    transform: translateY(0);
}

.document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.document-card-text {
    padding: 0.95rem 1rem;
    border-left: 3px solid var(--site-accent-dark);
    border-radius: 0 0.55rem 0.55rem 0;
    background-color: rgba(48, 72, 68, 0.08);
    color: var(--site-muted);
    font-size: 0.96rem;
    line-height: 1.6;
}

@media (max-width: 991.98px) {
    .document-preview-img {
        max-height: 520px;
    }
}

@media (max-width: 575.98px) {
    .document-entry {
        padding: 1.1rem;
    }

    .document-data-list {
        display: block;
    }

    .document-data-list li {
        margin-bottom: 0.45rem;
    }

    .document-preview-img {
        max-height: 440px;
    }

    .document-actions .btn {
        width: 100%;
    }
}

/* Footer */

footer {
    padding: 2.25rem 0 3rem;
    border-top: 1px solid var(--site-line);
    color: var(--site-muted);
    font-size: 0.95rem;
    background-color: transparent;
}

footer a {
    color: var(--site-accent-dark);
    text-decoration: none;
}

footer a:hover,
footer a:focus {
    text-decoration: underline;
}

/* UI flottante */

.go-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background-color: var(--site-accent-dark);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease,
        background-color 0.2s ease;
    z-index: 1030;
}

.go-top:hover,
.go-top:focus {
    background-color: #192b29;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.go-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.go-top-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.site-notice {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    width: min(960px, calc(100% - 2rem));
    z-index: 1040;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.site-notice.is-hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    pointer-events: none;
}

.site-notice__inner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: 0.85rem;
    /*background-color: rgba(11, 17, 16, 0.9);*/
    background-color: rgba(48, 72, 68, 0.9);
    color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(6px);
}

.site-notice__text {
    flex: 1 1 auto;
    font-size: 0.95rem;
    line-height: 1.55;
}

.site-notice__text strong {
    color: #fff;
}

.site-notice__close {
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.site-notice__close:hover,
.site-notice__close:focus {
    color: #fff;
}

/* Responsive */

@media (max-width: 991.98px) {
    .brand-logo-stacked .brand-sub {
        display: none;
    }

    .hero {
        padding-top: 6.5rem;
        padding-bottom: 4rem;
    }

    .tables-hero {
        padding-top: 6.5rem;
        padding-bottom: 3.5rem;
    }

    .table-scroll-hint {
        display: flex;
    }

    h1 {
        max-width: none;
    }

    .hero-cover-figure {
        max-width: 320px;
        margin-top: 2rem;
        margin-left: 0;
    }

    .publisher-logo-panel {
        min-height: auto;
    }

    .publisher-logo-wrap {
        justify-content: flex-start;
    }

    .dropdown-menu {
        border: 0;
        box-shadow: none;
        background-color: transparent;
        padding: 0.35rem 0 0.25rem 0.9rem;
        min-width: 0;
    }

    .dropdown-item {
        padding: 0.45rem 0;
        border-radius: 0;
    }

    .dropdown-item:hover,
    .dropdown-item:focus,
    .dropdown-item.active,
    .dropdown-item:active {
        background-color: transparent;
    }
}

@media (max-width: 575.98px) {
    .table-reading-notice {
        gap: 0.75rem;
        padding: 1rem;
    }

    .table-reading-notice__icon {
        width: 1.9rem;
        height: 1.9rem;
        font-size: 1rem;
    }

    .tables-container {
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .book-table {
        min-width: 1080px;
        font-size: 0.9rem;
    }

    .book-table th,
    .book-table td {
        padding: 0.85rem;
    }

    .book-table-notes {
        padding: 1.15rem;
    }

    .go-top {
        right: 1rem;
        bottom: 1rem;
        width: 40px;
        height: 40px;
    }

    .publisher-box {
        padding: 1.4rem;
    }

    .publisher-logo {
        max-width: 130px;
    }

    .site-notice {
        width: calc(100% - 1rem);
        bottom: 0.75rem;
    }

    .site-notice__inner {
        padding: 0.9rem 0.95rem;
        gap: 0.75rem;
    }

    .site-notice__text {
        font-size: 0.9rem;
    }

    .gallery-modal-dialog {
        max-width: calc(100vw - 1rem);
        margin: 0.5rem auto;
    }

    .gallery-modal-stage {
        max-height: 72vh;
    }

    .gallery-modal-img {
        max-height: 72vh;
    }
}