/* ============================================
   PUBDSU — Prodotti Editoriali CSS
   File unico per archive-prodotto e single-prodotto
   ============================================ */


/* ============================================
   SHARED (entrambe le viste)
   ============================================ */

/* 1. Color Variables */
.prodotti-bs5,
.prodotto-single-bs5 {
    --bs-primary: #052B56;
    --bs-primary-rgb: 5, 43, 86;
    --bs-secondary: #E89C3B;
    --bs-secondary-rgb: 232, 156, 59;
}

.prodotti-bs5 {
    --bs-light: #f8f9fa;
    --bs-dark: #19191a;
    --bs-body-font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 2. Buttons */
.prodotti-bs5 .btn-primary,
.prodotto-single-bs5 .btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.prodotti-bs5 .btn-primary:hover,
.prodotto-single-bs5 .btn-primary:hover {
    background-color: #041f40;
    border-color: #041f40;
}

.prodotti-bs5 .btn-outline-primary {
    color: var(--bs-dark);
    border-color: var(--bs-primary);
}

.prodotti-bs5 .btn-outline-primary:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.prodotti-bs5 .btn-outline-secondary {
    color: #6c757d;
    border-color: #dee2e6;
    background: #fff;
}

.prodotti-bs5 .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.prodotti-bs5 .btn-download {
    background: var(--bs-secondary);
    border-color: var(--bs-secondary);
    color: var(--bs-primary);
}

.prodotto-single-bs5 .btn-download {
    background: var(--bs-secondary);
    border-color: var(--bs-secondary);
    color: var(--bs-primary);
    font-weight: 600;
}

.prodotti-bs5 .btn-download:hover,
.prodotto-single-bs5 .btn-download:hover {
    background: #f3a445;
    border-color: #f3a445;
}

/* 3. Text & Badge utilities */
.prodotti-bs5 .text-primary,
.prodotto-single-bs5 .text-primary {
    color: var(--bs-primary) !important;
}

.prodotti-bs5 .badge {
    font-weight: 500;
    padding: 0.25em 0.6em;
}

.prodotto-single-bs5 .badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.prodotti-bs5 .badge.bg-success {
    background-color: #198754 !important;
}

.prodotto-single-bs5 .badge.bg-success {
    background-color: #198754 !important;
}

.prodotti-bs5 .badge.bg-warning {
    background-color: #ffc107 !important;
}

/* 4. Focus Enhancement (WCAG) */
.prodotti-bs5 a:focus-visible,
.prodotti-bs5 button:focus-visible,
.prodotti-bs5 input:focus-visible,
.prodotto-single-bs5 a:focus-visible,
.prodotto-single-bs5 button:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(5, 43, 86, 0.15);
}

/* 5. Relevanssi Search Highlighting */
.prodotti-bs5 .relevanssi-highlight,
.prodotto-single-bs5 .relevanssi-highlight {
    background-color: #fff3cd;
    color: #000;
    font-weight: 600;
    padding: 0.1em 0.25em;
    border-radius: 3px;
    border-bottom: 2px solid #e89c3b;
}

/* 6. PUBDSU Branding */
.pub-dsu-link {
    text-decoration: none;
    display: inline-flex;
    align-items: flex-end;
    gap: 0;
    line-height: 1;
}

.pub-dsu-link:hover {
    text-decoration: none;
}

.pub-dsu-pub {
    color: #052B56;
    letter-spacing: 0.04em;
    font-family: 'Lora',Georgia,serif;
    font-weight: normal;
}

.pub-dsu-dsu {
    color: #E89C3B;
    letter-spacing: 0.04em;
    font-weight: normal;
    border-radius: 0.15em;
    margin-left: 0.05em;
    font-family: 'Lora',Georgia,serif;
}

.pub-dsu-beta {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #495867;
    padding-bottom: 0.5em;
}

/* Brand grande (hero archivio principale) */
.pub-dsu-link-lg {
    font-size: 3.5rem;
}

.pub-dsu-link-lg .pub-dsu-beta {
    font-size: 0.7rem;
}

/* Brand piccolo (taxonomy, single) */
.pub-dsu-link-sm {
    font-size: 1.4rem;
}

.pub-dsu-link-sm .pub-dsu-beta {
    font-size: 0.5rem;
}

/* Sub-brand sopra h1 nelle viste secondarie */
.pub-dsu-subbrand {
    display: block;
    margin-bottom: 0.5rem;
}

.prodotto-single-bs5 .pub-dsu-subbrand {
    margin-bottom: 0.75rem;
}

/* 7. Skip Link (WCAG) */
.skip-link {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bs-primary);
    color: #fff !important;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 8px 8px;
    z-index: 99999;
    transition: top 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
}


/* ============================================
   ARCHIVE ONLY (.prodotti-bs5)
   ============================================ */

/* 10. Hero Section — Archive */
.prodotti-bs5 .prodotti-hero {
    background: #fafbfc;
    border-bottom: 1px solid #dee2e6;
    padding: 4rem 0;
}


.prodotti-bs5 .prodotti-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

.prodotti-bs5 .page-intro {
    color: var(--bs-dark);
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
}

/* 11. Search Wrapper & Results */
.prodotti-bs5 .prodotti-search-wrapper {
    max-width: 640px;
    margin: 0 auto;
    position: relative;
}

.prodotti-bs5 .prodotti-spinner {
    position: absolute;
    right: 90px;
    top: 30%;
    z-index: 10;
    width: 1rem;
    height: 1rem;
    color: #9ca3af;
    border-width: 0.15rem;
}

/* Search button */
.prodotti-bs5 #prodotti-search-btn {
    text-transform: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0;
}

.prodotti-bs5 .prodotti-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1050;
    display: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.prodotti-bs5 .prodotti-results.show {
    display: block;
}

.prodotti-bs5 .search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    text-decoration: none;
    color: var(--bs-dark);
    border-bottom: 1px solid #f1f3f5;
    transition: background-color 0.15s ease;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.prodotti-bs5 .search-result-item:last-child {
    border-bottom: none;
}

.prodotti-bs5 .search-result-item:hover,
.prodotti-bs5 .search-result-item[aria-selected="true"] {
    background-color: #f8f9fa;
    text-decoration: none;
    color: var(--bs-dark);
}

.prodotti-bs5 .search-result-item .flex-grow-1 {
    min-width: 0;
    overflow: hidden;
}

.prodotti-bs5 .search-result-item .flex-grow-1 > * {
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
}

.prodotti-bs5 .input-group {
    align-items: stretch;
}

.prodotti-bs5 .input-group-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 0.875rem;
    border: 1px solid #86929e !important;
    background: #fff;
}

.prodotti-bs5 .input-group-text i {
    font-size: 1.125rem;
    line-height: 1;
}

.prodotti-bs5 #prodotti-search-input {
    padding: 0.625rem 2.5rem 0.625rem 0.875rem;
    border: 1px solid #86929e;
    font-size: 1rem;
    line-height: 1.5;
    height: auto;
}

.prodotti-bs5 .search-result-thumb {
    width: 40px;
    height: 56px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
    background: #edf0f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prodotti-bs5 .search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prodotti-bs5 .search-results-footer {
    padding: 0.75rem 1.25rem;
    text-align: center;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.prodotti-bs5 .search-results-status {
    padding: 1rem 1.25rem;
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
}

/* 12. Product Cards & Ribbons */
.prodotti-bs5 .prodotto-card {
    transition: box-shadow 0.25s ease;
    cursor: pointer;
    border: 1px solid #b0b8c1;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.prodotti-bs5 .prodotto-card::after,
.prodotti-bs5 .prodotto-card::before {
    display: none !important;
}

.prodotti-bs5 .prodotto-card:hover {
    box-shadow: 0 8px 24px rgba(5, 43, 86, 0.15);
    border-color: #c5cdd4;
}

.prodotti-bs5 .prodotto-card .card-header {
    padding: 1rem !important;
    background: #fff;
}

.prodotti-bs5 .prodotto-card .card-body {
    padding: 0.75rem 1rem !important;
    flex-grow: 1;
}

.prodotti-bs5 .prodotto-card .card-footer {
    padding: 1rem !important;
    background: #fafbfc;
    margin-top: 0;
    border-top: 1px solid #eef1f4;
}

.prodotti-bs5 .prodotto-card .card-title {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 0.25rem !important;
    font-weight: 600;
    color: var(--bs-primary);
}

.prodotti-bs5 .prodotto-tipologia {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #495057;
    margin-bottom: 0.5rem;
}

.prodotti-bs5 .prodotto-thumb-col {
    flex: 0 0 auto;
    width: 80px;
}

.prodotti-bs5 .prodotto-thumb-col img,
.prodotti-bs5 .prodotto-thumb-col > div {
    width: 100%;
    aspect-ratio: 85/120;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.prodotti-bs5 .card-text-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--bs-dark);
}

.prodotti-bs5 .ribbon-nuovo {
    position: absolute;
    top: 12px;
    right: -32px;
    background: #198754;
    color: #fff;
    padding: 0.25rem 2.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(45deg);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    letter-spacing: 0.05em;
}

.prodotti-bs5 .ribbon-bozza {
    position: absolute;
    top: 12px;
    left: -32px;
    background: #ffc107;
    color: #000;
    padding: 0.25rem 2.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    transform: rotate(-45deg);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    letter-spacing: 0.05em;
}

.prodotti-bs5 .prodotto-card a:not(.stretched-link) {
    position: relative;
    z-index: 2;
}

/* 13. Filter Navigation */
.prodotti-bs5 .filter-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.prodotti-bs5 .filter-link {
    padding: 0.5rem 0.75rem;
    color: #495867;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 1rem;
    border-bottom: 2px solid transparent;
    display: inline-block;
}

.prodotti-bs5 .filter-link:hover {
    color: var(--bs-primary);
    text-decoration: none;
}

.prodotti-bs5 .filter-link.active {
    color: var(--bs-primary);
    border-bottom-color: var(--bs-primary);
    font-weight: 600;
}

.prodotti-bs5 .filter-separator {
    color: #dee2e6;
    user-select: none;
    font-weight: 300;
}

.prodotti-bs5 .dropdown .filter-link {
    cursor: pointer;
}

.prodotti-bs5 .dropdown .filter-link::after {
    content: '';
    display: inline-block;
    margin-left: 0.3em;
    vertical-align: 0.15em;
    border-top: 0.3em solid currentColor;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
}

body.archive article, body.search article {
    padding: 0 !important;
}

.prodotti-bs5 .dropdown-menu {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.prodotti-bs5 .dropdown-menu::before {
    content: '';
    position: absolute;
    left: 24px;
    width: 12px;
    height: 12px;
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    border-left: 1px solid #dee2e6;
    transform: rotate(45deg);
    z-index: -1;
}

.prodotti-bs5 .dropdown-menu[data-popper-placement^="bottom"]::before {
    top: -6px;
}

.prodotti-bs5 .dropdown-menu[data-popper-placement^="top"]::before {
    bottom: -6px;
    top: auto;
    border-top: none;
    border-bottom: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-left: none;
}

.prodotti-bs5 .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: #5c6f82;
    transition: background-color 0.15s ease;
}

.prodotti-bs5 .dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--bs-primary);
}

.prodotti-bs5 .dropdown-item.active {
    background-color: var(--bs-primary);
    color: #fff;
}

/* 14. Pagination */
.prodotti-bs5 .pagination .page-link {
    color: var(--bs-primary);
}

.prodotti-bs5 .pagination .page-item.active .page-link {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

/* 15. Button sizing */
.prodotti-bs5 .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

.prodotti-bs5 .card-footer .btn {
    white-space: nowrap;
}

body.archive article {
    padding: 0;
}

/* 16. Taxonomy & Extended Descriptions */
.prodotti-bs5 .taxonomy-description-section {
    background: #fff;
    border-bottom: 1px solid #dee2e6;
}

.prodotti-bs5 .taxonomy-description {
    font-size: 1.2rem;
    line-height: 1.5;
    color: var(--bs-dark);
}

.prodotti-bs5 .taxonomy-description p:last-child {
    margin-bottom: 0;
}

.prodotti-bs5 .descrizione-estesa-section {
    background: #f8f9fa;
    border-top: 2px solid var(--bs-primary);
}

.prodotti-bs5 .descrizione-estesa-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--bs-dark);
}

.prodotti-bs5 .descrizione-estesa-content h2,
.prodotti-bs5 .descrizione-estesa-content h3,
.prodotti-bs5 .descrizione-estesa-content h4 {
    color: var(--bs-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prodotti-bs5 .descrizione-estesa-content ul,
.prodotti-bs5 .descrizione-estesa-content ol {
    padding-left: 1.5rem;
}

.prodotti-bs5 .descrizione-estesa-content a {
    color: var(--bs-primary);
    text-decoration: underline;
}

.prodotti-bs5 .descrizione-estesa-content a:hover {
    color: #041f40;
}

/* 17. Responsive — Archive */
@media (max-width: 768px) {
    .prodotti-bs5 .prodotti-hero {
        padding: 1.75rem 0 1.5rem;
    }

    .prodotti-bs5 .prodotti-hero h1 {
        font-size: 1.5rem;
    }

    .prodotti-bs5 .prodotto-thumb-col {
        width: 70px;
    }

    .prodotti-bs5 .card-title {
        font-size: 0.9rem;
    }

    .prodotti-bs5 .ribbon-nuovo,
    .prodotti-bs5 .ribbon-bozza {
        padding: 0.2rem 2rem;
        font-size: 0.75rem;
    }

}


/* ============================================
   SINGLE ONLY (.prodotto-single-bs5)
   ============================================ */

/* 20. Hero Section — Single */
.prodotto-single-bs5 .prodotto-hero {
    background: linear-gradient(135deg, #fafbfc 0%, #f0f2f5 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 2.5rem 0 2rem;
}

.prodotto-single-bs5 .prodotto-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

/* 21. Tipologia Badge */
.prodotto-single-bs5 .tipologia-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--bs-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    min-height: 24px;
    background: var(--bs-secondary);
    border: 1px solid var(--bs-secondary);
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-bottom: 1rem;
}

/* 22. Authors List */
.prodotto-single-bs5 .authors-list {
    font-size: 1.125rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* 23. Main Content & Sections */
.prodotto-single-bs5 .prodotto-content {
    padding: 3rem 0;
    background: #fff;
}

.prodotto-single-bs5 .content-section {
    margin-bottom: 3rem;
}

.prodotto-single-bs5 .content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #dee2e6;
}

.prodotto-single-bs5 .abstract {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #495057;
}

/* 24. Sidebar & Meta Table */
.prodotto-single-bs5 .sidebar-card {
    background: #fff;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.prodotto-single-bs5 .sidebar-sticky {
    position: sticky;
    top: 2rem;
}

.prodotto-single-bs5 .sidebar-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

.prodotto-single-bs5 .thumbnail-wrapper {
    margin-bottom: 1.5rem;
}

.prodotto-single-bs5 .thumbnail-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 0px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.prodotto-single-bs5 .placeholder-thumb {
    width: 100%;
    aspect-ratio: 85/120;
    background: #eef1f4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #9ca3af;
}

.prodotto-single-bs5 .meta-table {
    width: 100%;
    font-size: 0.9rem;
}

.prodotto-single-bs5 .meta-table th {
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eef1f4;
    vertical-align: top;
    width: 35%;
}

.prodotto-single-bs5 .meta-table td {
    color: #212529;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eef1f4;
    word-break: break-word;
}

.prodotto-single-bs5 .meta-table tr:last-child th,
.prodotto-single-bs5 .meta-table tr:last-child td {
    border-bottom: none;
}

.prodotto-single-bs5 .meta-table a {
    color: var(--bs-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prodotto-single-bs5 .meta-table a:hover {
    text-decoration: underline;
}

/* 25. Authors Detail */
.prodotto-single-bs5 .authors-detail {
    background: #fafbfc;
    border-left: 4px solid var(--bs-primary);
    border-radius: 8px;
    padding: 1.5rem;
}

.prodotto-single-bs5 .author-item {
    padding: 1rem 0;
    border-bottom: 1px solid #dee2e6;
}

.prodotto-single-bs5 .author-item:last-child {
    border-bottom: none;
}

.prodotto-single-bs5 .author-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--bs-primary);
    margin-bottom: 0.25rem;
}

.prodotto-single-bs5 .author-affiliation {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.25rem;
}

/* 26. Citation Box */
.prodotto-single-bs5 .citation-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #495057;
    position: relative;
}

.prodotto-single-bs5 .citation-copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 0.85rem;
    min-height: 24px;
    min-width: 24px;
    font-size: 0.8rem;
}

/* 27. Action Buttons */
.prodotto-single-bs5 .action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.prodotto-single-bs5 .action-buttons .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* 28. Related Products */
.prodotto-single-bs5 .related-product-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.2s ease;
    background: #fff;
    height: 100%;
}

.prodotto-single-bs5 .related-product-card:hover {
    box-shadow: 0 4px 12px rgba(5, 43, 86, 0.1);
    border-color: var(--bs-primary);
}

.prodotto-single-bs5 .related-product-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

.prodotto-single-bs5 .related-product-card a {
    text-decoration: none;
    color: inherit;
}

/* 29. Info Alert */
.prodotto-single-bs5 .info-alert {
    background: #e7f3ff;
    border-left: 4px solid #0d6efd;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #004085;
}

/* 30. Responsive — Single */
@media (max-width: 768px) {
    .prodotto-single-bs5 .prodotto-hero {
        padding: 1.75rem 0 1.5rem;
    }

    .prodotto-single-bs5 .prodotto-hero h1 {
        font-size: 1.5rem;
    }

    .prodotto-single-bs5 .sidebar-sticky {
        position: static;
    }

    .prodotto-single-bs5 .action-buttons {
        flex-direction: column;
    }

    .prodotto-single-bs5 .action-buttons .btn {
        width: 100%;
    }

    .prodotto-single-bs5 .meta-table th {
        font-size: 0.7rem;
    }
}

/* ============================================
   31. WCAG 2.2 — Focus Not Obscured (2.4.11)
   Prevent sticky sidebar from covering focused elements
   ============================================ */
.prodotto-single-bs5 .col-lg-8 a:focus,
.prodotto-single-bs5 .col-lg-8 button:focus,
.prodotto-single-bs5 .col-lg-8 input:focus {
    scroll-margin-top: 2rem;
}

/* ============================================
   32. WCAG 2.2 — Target Size Minimum (2.5.8)
   Ensure interactive elements meet 24×24px minimum
   ============================================ */
.prodotti-bs5 .breadcrumb-item a,
.prodotto-single-bs5 .breadcrumb-item a {
    display: inline-block;
    min-height: 24px;
    line-height: 24px;
}

.prodotto-single-bs5 .badge {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
}

/* ============================================
   33. Reduced Motion (prefers-reduced-motion)
   Disable transitions for users who prefer reduced motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .skip-link,
    .prodotto-card,
    .prodotti-bs5 .filter-link,
    .prodotti-bs5 .search-result-item,
    .prodotti-bs5 .dropdown-item,
    .prodotti-bs5 .btn-download,
    .prodotto-single-bs5 .btn-download,
    .prodotto-single-bs5 .related-product-card,
    .prodotto-single-bs5 .tipologia-badge {
        transition: none !important;
    }
}
