/***********************************************************
* Copyright (C) 2007-2026 Renato Brunetti - Tutti i diritti riservati
* Nome file  : app.css
* Descrizione: Tema responsive Bootstrap 5 delle superfici pubbliche del Glossario OCEWeb.
* Autore     : Renato Brunetti
* Sito web   : https://www.renato-brunetti.it
* E-mail     : sviluppo@oceweb.it
************************************************************
* Data creazione: 29/07/2026
* Data modifica : 14/08/2026
***********************************************************/

:root {
    --oce-blue: #076af1;
    --oce-blue-dark: #0054c7;
    --oce-navy: #061b4f;
    --oce-text: #243b69;
    --oce-muted: #7181a2;
    --oce-line: #e2ebf7;
    --oce-soft: #f5f9ff;
    --oce-cyan: #0bbbc0;
    --oce-purple: #6947f5;
    --oce-orange: #ff7a18;
    --oce-red: #ff3155;
    --oce-green: #0caf61;
    --oce-shadow: 0 8px 28px rgba(17, 49, 104, .08);
    --oce-shadow-hover: 0 14px 34px rgba(17, 49, 104, .14);
    --oce-serif: Georgia, "Times New Roman", serif;
    --oce-ui: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif
}

* {
    box-sizing: border-box
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: #fff;
    color: var(--oce-text);
    font-family: var(--oce-ui);
    font-size: 15px;
    line-height: 1.55
}

a {
    color: var(--oce-blue)
}

a:hover {
    color: var(--oce-blue-dark)
}

button,
input,
select {
    font: inherit
}

.ui-icon {
    display: inline-flex;
    width: 1.25em;
    min-width: 1.25em;
    height: 1.25em;
    align-items: center;
    justify-content: center;
    line-height: 1
}

.skip-link {
    position: fixed;
    z-index: 1100;
    top: -72px;
    left: 16px;
    padding: 11px 16px;
    border-radius: 8px;
    background: var(--oce-navy);
    color: #fff;
    transition: top .16s ease
}

.skip-link:focus {
    top: 16px
}

:focus-visible {
    outline: 3px solid rgba(7, 106, 241, .42);
    outline-offset: 3px
}

.site-header {
    position: relative;
    z-index: 100;
    min-height: 78px;
    background: #fff;
    box-shadow: 0 2px 9px rgba(9, 39, 86, .05)
}

.site-header .navbar {
    min-height: 78px;
    padding: 0
}

.brand {
    margin-right: 20px;
    line-height: 1
}

.brand-logo {
    display: block;
    width: 210px;
    height: 70px;
    object-fit: contain
}

.navbar-toggler {
    width: 46px;
    height: 46px;
    border-color: var(--oce-line)
}

.top-nav {
    gap: 16px
}

.top-nav .nav-link {
    display: flex;
    min-height: 78px;
    align-items: center;
    padding: 0 14px !important;
    border-bottom: 3px solid transparent;
    color: #111827;
    font-size: 15px;
    white-space: nowrap
}

.top-nav .nav-link:hover,
.top-nav .nav-link.active,
.top-nav .show > .nav-link {
    border-bottom-color: var(--oce-blue);
    color: var(--oce-blue)
}

.top-nav .nav-link.active {
    font-weight: 700
}

.category-menu-panel {
    width: min(630px, calc(100vw - 32px));
    padding: 12px;
    border: 1px solid var(--oce-line);
    border-radius: 12px;
    box-shadow: var(--oce-shadow);
    columns: 2
}

.category-menu-panel li {
    break-inside: avoid
}

.category-menu-panel .dropdown-item {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 11px;
    border-radius: 8px;
    color: var(--oce-navy);
    white-space: normal
}

.category-menu-panel .dropdown-item:hover,
.category-menu-panel .dropdown-item:focus {
    background: var(--oce-soft);
    color: var(--oce-blue)
}

.category-menu-panel small {
    color: var(--oce-muted);
    font-size: 12px;
    white-space: nowrap
}

.header-search {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    border: 1px solid var(--oce-line);
    border-radius: 50%;
    background: #fff;
    color: var(--oce-navy);
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(17, 49, 104, .07)
}

.header-search:hover {
    border-color: var(--oce-blue);
    background: var(--oce-soft);
    color: var(--oce-blue)
}

main {
    min-height: calc(100vh - 78px)
}

.site-footer {
    padding: 18px 0 20px;
    background: var(--oce-navy);
    color: rgba(255, 255, 255, .72)
}

.footer-copy {
    margin: 0;
    letter-spacing: .5px;
    line-height: 1.7;
    text-align: center
}

.footer-link {
    text-decoration: none;
    transition: color .16s ease
}

.footer-link:hover,
.footer-link:focus-visible {
    color: #fff !important;
    text-decoration: underline
}

.surface {
    border: 1px solid var(--oce-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--oce-shadow)
}

.section-title {
    margin: 0;
    color: var(--oce-navy);
    font-size: 16px;
    font-weight: 750
}

.section-title .ui-icon,
.section-title > .ui-icon {
    margin-right: 7px;
    color: var(--oce-blue)
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.section-heading h2,
.section-heading .section-title {
    margin: 0;
    color: var(--oce-navy)
}

.section-heading > span {
    color: var(--oce-muted);
    font-size: 12px
}

.more-link {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none
}

.home-page {
    padding-top: 34px;
    padding-bottom: 64px
}

.hero-home {
    position: relative;
    padding: 18px 0 22px
}

.hero-copy h1,
.page-heading h1,
.category-hero h1,
.results-heading h1,
.term-heading h1 {
    margin: 0;
    color: var(--oce-navy);
    font-family: var(--oce-serif);
    font-weight: 700;
    letter-spacing: -1.5px;
    line-height: .98
}

.hero-copy h1 {
    max-width: 650px;
    font-size: clamp(43px, 5vw, 68px)
}

.hero-copy p {
    max-width: 600px;
    margin: 23px 0 0;
    color: #4c638f;
    font-size: clamp(16px, 1.5vw, 19px)
}

.hero-illustration {
    position: relative;
    min-height: 230px
}

.hero-illustration .orb {
    position: absolute;
    border-radius: 50%;
    background: #e9f7ff
}

.orb-one {
    top: 20px;
    left: 36%;
    width: 145px;
    height: 145px
}

.orb-two {
    bottom: 18px;
    left: 17%;
    width: 76px;
    height: 76px
}

.mini-card {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border: 1px solid var(--oce-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, .94);
    color: #58a8ff;
    font-size: 26px;
    font-weight: 700;
    box-shadow: var(--oce-shadow)
}

.code-card {
    top: 16px;
    left: 18%;
    transform: rotate(6deg)
}

.aa-card {
    top: 48px;
    right: 18%
}

.book-art {
    position: absolute;
    z-index: 1;
    right: 24%;
    bottom: 12px;
    display: flex;
    width: 190px;
    height: 86px;
    filter: drop-shadow(0 8px 12px rgba(7, 106, 241, .14))
}

.book-art i {
    width: 50%;
    border: 4px solid #4cacfa;
    background: repeating-linear-gradient(#fff 0 11px, #d7e8fb 12px 14px)
}

.book-art i:first-child {
    border-radius: 14px 0 8px 5px;
    transform: skewY(6deg)
}

.book-art i:last-child {
    border-radius: 0 14px 5px 8px;
    transform: skewY(-6deg)
}

.magnifier-art {
    position: absolute;
    right: 7%;
    bottom: 42px;
    width: 58px;
    height: 58px;
    border: 7px solid #78c8ff;
    border-radius: 50%
}

.magnifier-art::after {
    position: absolute;
    right: -30px;
    bottom: -22px;
    width: 38px;
    height: 7px;
    border-radius: 5px;
    background: #78c8ff;
    content: "";
    transform: rotate(48deg)
}

.search-bar {
    display: flex;
    min-height: 58px;
    align-items: center;
    gap: 13px;
    padding: 6px 7px 6px 20px;
    border: 1px solid #dbe7f6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 7px 22px rgba(17, 49, 104, .1)
}

.search-bar > .ui-icon {
    color: var(--oce-navy);
    font-size: 20px
}

.search-bar input {
    min-width: 0;
    height: 44px;
    flex: 1;
    border: 0;
    outline: 0;
    color: var(--oce-navy);
    font-size: 16px
}

.search-bar input::placeholder {
    color: #8290ac
}

.search-bar .btn {
    min-width: 108px;
    min-height: 46px;
    border-radius: 11px;
    background: var(--oce-blue);
    font-weight: 700
}

.hero-search {
    position: relative;
    z-index: 3;
    width: min(860px, 100%);
    margin: 5px auto 0
}

.alphabet-surface,
.category-surface,
.list-surface {
    margin-top: 18px;
    padding: 18px
}

.alphabet {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px
}

.alphabet a {
    display: inline-flex;
    min-width: 38px;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid var(--oce-line);
    border-radius: 8px;
    background: #fff;
    color: var(--oce-blue);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease
}

.alphabet a:hover,
.alphabet a.active {
    border-color: var(--oce-blue);
    background: var(--oce-blue);
    color: #fff;
    transform: translateY(-1px)
}

.alphabet .alphabet-all {
    min-width: 66px
}

.category-surface .row {
    margin-top: 2px
}

.category-card {
    --category-color: var(--oce-blue);
    display: flex;
    min-height: 128px;
    height: 100%;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 12px;
    border: 1px solid var(--oce-line);
    border-radius: 12px;
    background: #fff;
    color: var(--oce-navy);
    text-align: center;
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease
}

.category-card:hover {
    border-color: color-mix(in srgb, var(--category-color), white 42%);
    color: var(--oce-navy);
    box-shadow: var(--oce-shadow-hover);
    transform: translateY(-3px)
}

.category-card > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px
}

.category-card b {
    font-size: 14px;
    line-height: 1.25
}

.category-card small {
    color: var(--oce-muted);
    font-size: 12px
}

.category-icon,
.term-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--category-color), white 88%);
    color: var(--category-color);
    font-size: 22px
}

.category-intelligenza-artificiale,
.category-software,
.category-sistemi-operativi {
    --category-color: var(--oce-purple)
}

.category-programmazione,
.category-gestione-it {
    --category-color: var(--oce-green)
}

.category-reti-internet,
.category-sviluppo-web,
.category-informatica-generale {
    --category-color: var(--oce-blue)
}

.category-sicurezza-informatica {
    --category-color: var(--oce-red)
}

.category-hardware,
.category-tecnologie-storiche {
    --category-color: var(--oce-orange)
}

.category-dati-database-analytics,
.category-cloud-virtualizzazione {
    --category-color: var(--oce-cyan)
}

.category-grafica-audio-video,
.category-standard-protocolli-formati {
    --category-color: #f054a8
}

.home-lists {
    margin-top: 2px
}

.ranking-list,
.updates-list {
    margin: 10px 0 0;
    padding: 0;
    list-style: none
}

.ranking-list li,
.updates-list li {
    display: flex;
    min-height: 43px;
    align-items: center;
    gap: 11px;
    border-bottom: 1px solid var(--oce-line)
}

.ranking-list li:last-child,
.updates-list li:last-child {
    border-bottom: 0
}

.ranking-list li > span {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    border-radius: 50%;
    background: var(--oce-soft);
    color: var(--oce-muted);
    font-size: 11px
}

.ranking-list a,
.updates-list a {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    color: var(--oce-navy);
    font-weight: 650;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap
}

.ranking-list small,
.updates-list small {
    color: var(--oce-muted);
    font-variant-numeric: tabular-nums;
    white-space: nowrap
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 25px
}

.page-heading h1 {
    font-size: clamp(42px, 5vw, 64px)
}

.page-heading p {
    margin: 13px 0 0;
    color: var(--oce-muted);
    font-size: 17px
}

.page-count,
.period-label {
    display: flex;
    min-width: 210px;
    min-height: 66px;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--oce-line);
    border-radius: 12px;
    background: #fff;
    color: var(--oce-blue);
    box-shadow: var(--oce-shadow)
}

.page-count > .ui-icon,
.period-label > .ui-icon {
    font-size: 22px
}

.page-count b {
    color: var(--oce-navy);
    font-size: 23px
}

.page-count span {
    color: var(--oce-muted);
    font-size: 12px
}

.period-label span {
    display: flex;
    flex-direction: column;
    color: var(--oce-muted);
    font-size: 11px
}

.period-label b {
    color: var(--oce-navy);
    font-size: 13px
}

.index-page,
.popular-page,
.category-page,
.search-page,
.term-page {
    padding-top: 34px;
    padding-bottom: 64px
}

.index-table-surface,
.statistics-table {
    overflow: hidden
}

.glossary-table {
    margin: 0;
    color: var(--oce-text);
    font-size: 14px
}

.glossary-table > :not(caption) > * > * {
    padding: 15px 18px;
    border-color: var(--oce-line)
}

.glossary-table thead th {
    border-bottom-width: 1px;
    background: #fbfdff;
    color: var(--oce-navy);
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap
}

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

.glossary-table tbody tr:hover td {
    background: #fbfdff
}

.glossary-table a {
    color: var(--oce-navy);
    text-decoration: none
}

.term-table-link {
    display: inline-flex;
    align-items: center;
    gap: 11px
}

.term-table-link .ui-icon {
    color: var(--oce-blue);
    font-size: 18px
}

.level-badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e9f3ff;
    color: #0961ce;
    font-size: 11px;
    font-weight: 700;
    text-transform: capitalize
}

.level-intermedio {
    background: #e5f8f0;
    color: #087448
}

.level-avanzato {
    background: #fff0e6;
    color: #a94a00
}

.pagination {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 26px 0 0
}

.pagination .page-link {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--oce-line);
    border-radius: 8px;
    color: var(--oce-blue);
    text-decoration: none;
    box-shadow: none
}

.pagination .page-link:hover,
.pagination .page-link.active {
    border-color: var(--oce-blue);
    background: var(--oce-blue);
    color: #fff
}

.page-gap {
    color: var(--oce-muted)
}

.stats-grid {
    margin-bottom: 24px
}

.kpi-card {
    display: flex;
    min-height: 102px;
    align-items: center;
    gap: 14px;
    padding: 18px
}

.kpi-card > .ui-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex: 0 0 48px;
    border-radius: 12px;
    background: #edf6ff;
    color: var(--oce-blue);
    font-size: 20px
}

.kpi-card span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: var(--oce-muted);
    font-size: 12px
}

.kpi-card b {
    overflow: hidden;
    color: var(--oce-navy);
    font-size: clamp(18px, 2vw, 24px);
    text-overflow: ellipsis;
    white-space: nowrap
}

.chart-grid {
    margin-bottom: 24px
}

.chart-card {
    height: 100%;
    padding: 20px
}

.chart-card h2,
.statistics-table h2 {
    margin: 0;
    color: var(--oce-navy);
    font-size: 17px;
    font-weight: 750
}

.chart-frame {
    position: relative;
    height: 340px;
    margin-top: 20px
}

.chart-frame-bar {
    height: 390px
}

.chart-frame canvas {
    max-width: 100%
}

.chart-data-fallback {
    margin-top: 14px;
    border-top: 1px solid var(--oce-line)
}

.chart-data-fallback summary {
    min-height: 44px;
    padding: 12px 2px 0;
    color: var(--oce-blue);
    font-size: 13px;
    font-weight: 650;
    cursor: pointer
}

.chart-data-fallback .table-responsive {
    max-height: 300px;
    margin-top: 8px;
    overflow: auto;
    border: 1px solid var(--oce-line);
    border-radius: 10px
}

.statistics-table h2 {
    padding: 19px 19px 5px
}

.breadcrumbs {
    margin-bottom: 20px
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    color: var(--oce-muted);
    font-size: 13px;
    list-style: none
}

.breadcrumbs li {
    display: flex;
    align-items: center;
    gap: 7px
}

.breadcrumbs a {
    color: var(--oce-muted);
    text-decoration: none
}

.breadcrumbs .ui-icon {
    font-size: 10px
}

.category-hero {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 5px 0 22px
}

.category-hero-icon {
    display: inline-flex;
    width: 132px;
    height: 132px;
    align-items: center;
    justify-content: center;
    flex: 0 0 132px;
    border: 1px solid var(--oce-line);
    border-radius: 22px;
    background: #fff;
    color: var(--oce-purple);
    font-size: 63px;
    box-shadow: var(--oce-shadow)
}

.category-hero h1 {
    font-size: clamp(42px, 5vw, 63px)
}

.category-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: #4f6590;
    font-size: 17px
}

.category-metrics {
    margin-bottom: 24px
}

.category-metrics .col-sm-4 > div {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 13px;
    padding: 14px 17px;
    border: 1px solid var(--oce-line);
    border-radius: 12px;
    background: #fff
}

.category-metrics .ui-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    border-radius: 10px;
    background: var(--oce-soft);
    color: var(--oce-blue)
}

.category-metrics span {
    display: flex;
    flex-direction: column;
    color: var(--oce-muted);
    font-size: 11px
}

.category-metrics b {
    color: var(--oce-navy);
    font-size: 18px
}

.category-index {
    margin-bottom: 18px;
    padding: 18px
}

.category-terms {
    overflow: hidden
}

.category-terms > .section-heading {
    padding: 20px 22px 11px
}

.category-terms h2 {
    margin: 0;
    color: var(--oce-navy);
    font-size: 24px;
    font-weight: 750
}

.category-terms .section-heading p {
    margin: 4px 0 0;
    color: var(--oce-muted);
    font-size: 13px
}

.category-term-row {
    display: flex;
    min-height: 122px;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    border-top: 1px solid var(--oce-line)
}

.category-term-row:hover {
    background: #fbfdff
}

.category-term-copy {
    min-width: 0;
    flex: 1
}

.category-term-copy h3 {
    margin: 0;
    font-family: var(--oce-serif);
    font-size: 20px
}

.category-term-copy h3 a {
    color: var(--oce-navy);
    text-decoration: none
}

.category-term-copy p {
    max-width: 690px;
    margin: 6px 0 9px;
    color: #536a93;
    font-size: 13px
}

.term-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    color: var(--oce-muted);
    font-size: 11px
}

.term-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px
}

.row-chevron {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 50%;
    color: var(--oce-blue);
    text-decoration: none
}

.row-chevron:hover {
    background: var(--oce-soft)
}

.category-empty {
    margin: 0;
    padding: 46px 24px;
    text-align: center
}

.category-empty > span {
    display: inline-flex;
    width: 70px;
    height: 70px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 50%;
    background: #edf6ff;
    color: var(--oce-blue);
    font-family: var(--oce-serif);
    font-size: 36px
}

.category-empty h3 {
    max-width: 650px;
    margin: 0 auto;
    color: var(--oce-navy);
    font-size: 20px
}

.category-empty p {
    margin: 10px auto 18px;
    color: var(--oce-muted)
}

.category-sidebar {
    position: sticky;
    top: 96px;
    padding: 18px
}

.category-sidebar nav {
    margin-top: 11px
}

.category-sidebar a {
    display: flex;
    min-height: 49px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 7px;
    border-bottom: 1px solid var(--oce-line);
    color: var(--oce-text);
    text-decoration: none
}

.category-sidebar a:last-child {
    border-bottom: 0
}

.category-sidebar a:hover,
.category-sidebar a.active {
    color: var(--oce-blue)
}

.category-sidebar a > span {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px
}

.category-sidebar a > span .ui-icon {
    color: var(--oce-blue)
}

.category-sidebar small {
    margin-left: auto;
    color: var(--oce-muted)
}

.category-sidebar > nav > a > .ui-icon {
    font-size: 10px
}

.search-page-bar {
    margin-bottom: 28px
}

.filters,
.summary-surface,
.suggestions,
.quick-info,
.related-surface,
.sources-surface {
    padding: 18px
}

.filter-heading,
.results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px
}

.filter-heading {
    margin-bottom: 18px;
    color: var(--oce-navy)
}

.filter-heading a {
    font-size: 12px;
    text-decoration: none
}

.filters h2 {
    margin: 18px 0 8px;
    color: var(--oce-navy);
    font-size: 13px
}

.filter-option {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 8px;
    color: var(--oce-text);
    font-size: 12px;
    text-decoration: none
}

.filter-option small {
    margin-left: auto;
    color: var(--oce-muted)
}

.fake-check {
    width: 16px;
    height: 16px;
    border: 1px solid #bac8da;
    border-radius: 4px
}

.filter-option.selected .fake-check {
    border-color: var(--oce-blue);
    background: var(--oce-blue);
    box-shadow: inset 0 0 0 3px #fff
}

.compact-alphabet a {
    min-width: 31px;
    min-height: 31px;
    font-size: 11px
}

.results-heading {
    margin-bottom: 14px
}

.results-heading h1 {
    font-size: 36px
}

.results-heading p {
    margin: 6px 0 0;
    color: var(--oce-muted)
}

.sort-form {
    display: flex;
    align-items: center;
    gap: 8px
}

.sort-form label {
    color: var(--oce-muted);
    font-size: 12px
}

.results-surface {
    overflow: hidden
}

.result-row {
    display: flex;
    min-height: 126px;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--oce-line)
}

.result-row:last-child {
    border-bottom: 0
}

.result-copy {
    min-width: 0;
    flex: 1
}

.result-copy h2 {
    margin: 0;
    font-family: var(--oce-serif);
    font-size: 20px
}

.result-copy h2 a {
    color: var(--oce-navy);
    text-decoration: none
}

.result-copy p {
    margin: 5px 0 8px;
    color: #536a93;
    font-size: 13px
}

.result-copy small {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--oce-muted)
}

.result-copy small i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #aab8cc
}

.result-metric {
    display: flex;
    width: 70px;
    flex-direction: column;
    align-items: center;
    color: var(--oce-blue)
}

.result-metric b {
    color: var(--oce-navy)
}

.result-metric small {
    color: var(--oce-muted);
    font-size: 10px
}

.summary-surface > div,
.quick-info > div {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--oce-line)
}

.summary-surface > div:last-child,
.quick-info > div:last-child {
    border-bottom: 0
}

.summary-surface span,
.quick-info span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: var(--oce-muted);
    font-size: 11px
}

.summary-surface b,
.quick-info b {
    overflow-wrap: anywhere;
    color: var(--oce-navy);
    font-size: 13px
}

.suggestions {
    margin-top: 16px
}

.suggestions p {
    color: var(--oce-muted)
}

.suggestions a {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 7px;
    text-decoration: none
}

.term-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px
}

.term-heading h1 {
    font-size: clamp(40px, 5vw, 58px)
}

.term-heading p {
    margin: 7px 0 0;
    color: var(--oce-muted)
}

.term-logo {
    display: inline-flex;
    width: 78px;
    height: 78px;
    align-items: center;
    justify-content: center;
    flex: 0 0 78px;
    border-radius: 18px;
    background: var(--oce-soft);
    color: var(--oce-blue);
    font-size: 32px
}

.share-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--oce-line);
    border-radius: 10px;
    background: #fff;
    color: var(--oce-blue)
}

.metadata-row {
    margin-bottom: 18px
}

.metadata-row .col-sm > div {
    display: flex;
    min-height: 72px;
    align-items: center;
    gap: 9px;
    padding: 12px;
    border: 1px solid var(--oce-line);
    border-radius: 11px
}

.metadata-row span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    color: var(--oce-muted);
    font-size: 10px
}

.metadata-row b {
    overflow: hidden;
    color: var(--oce-navy);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap
}

.quick-definition {
    margin-bottom: 18px;
    padding: 22px;
    border-left: 4px solid var(--oce-blue);
    border-radius: 0 12px 12px 0;
    background: var(--oce-soft)
}

.quick-definition h2,
.term-detail h2 {
    color: var(--oce-navy);
    font-size: 17px
}

.quick-definition p,
.term-detail p {
    margin-bottom: 0
}

.term-article {
    padding: 24px
}

.term-detail {
    padding: 0 0 22px;
    border-bottom: 1px solid var(--oce-line)
}

.term-detail + .term-detail {
    padding-top: 22px
}

.term-detail:last-child {
    padding-bottom: 0;
    border-bottom: 0
}

.term-detail.warning {
    color: #854d0e
}

.related-surface,
.sources-surface {
    margin-top: 16px
}

.related-surface a,
.sources-surface a {
    display: flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--oce-line);
    color: var(--oce-text);
    font-size: 12px;
    text-decoration: none
}

.related-surface a:last-child,
.sources-surface a:last-child {
    border-bottom: 0
}

.related-surface a .ui-icon:last-child {
    margin-left: auto
}

.sources-surface span {
    display: flex;
    flex-direction: column
}

.sources-surface small {
    color: var(--oce-muted)
}

.empty-state {
    color: var(--oce-muted)
}

.btn-primary {
    --bs-btn-bg: var(--oce-blue);
    --bs-btn-border-color: var(--oce-blue);
    --bs-btn-hover-bg: var(--oce-blue-dark);
    --bs-btn-hover-border-color: var(--oce-blue-dark)
}

.btn-outline-primary {
    --bs-btn-color: var(--oce-blue);
    --bs-btn-border-color: var(--oce-blue);
    --bs-btn-hover-bg: var(--oce-blue);
    --bs-btn-hover-border-color: var(--oce-blue)
}

@media (max-width: 991.98px) {
    .site-header,
    .site-header .navbar {
        min-height: 70px
    }

    .navbar-collapse {
        margin: 0 -12px;
        padding: 10px 12px 16px;
        border-top: 1px solid var(--oce-line);
        background: #fff
    }

    .top-nav {
        gap: 0
    }

    .top-nav .nav-link {
        min-height: 48px;
        padding: 0 10px !important;
        border-bottom: 0;
        border-left: 3px solid transparent
    }

    .top-nav .nav-link:hover,
    .top-nav .nav-link.active,
    .top-nav .show > .nav-link {
        border-bottom: 0;
        border-left-color: var(--oce-blue);
        background: var(--oce-soft)
    }

    .category-menu-panel {
        width: 100%;
        max-height: 50vh;
        overflow-y: auto;
        columns: 1;
        box-shadow: none
    }

    .header-search {
        width: 100%;
        height: 44px;
        border-radius: 10px
    }

    .category-sidebar {
        position: static
    }

    .search-page aside {
        order: 2
    }

    .search-page section.col-lg-7 {
        order: 1
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 14px
    }

    .brand {
        margin-right: 10px
    }

    .brand-logo {
        width: 170px;
        height: auto
    }

    .home-page,
    .index-page,
    .popular-page,
    .category-page,
    .search-page,
    .term-page {
        padding-top: 24px;
        padding-bottom: 42px
    }

    .hero-home {
        padding-top: 4px
    }

    .hero-copy h1 {
        font-size: 43px
    }

    .hero-copy p {
        margin-top: 16px;
        font-size: 16px
    }

    .hero-search {
        margin-top: 22px
    }

    .search-bar {
        min-height: 56px;
        padding-left: 14px
    }

    .search-bar input {
        font-size: 16px
    }

    .search-bar .btn {
        min-width: 82px;
        padding-inline: 12px
    }

    .alphabet-surface,
    .category-surface,
    .list-surface {
        padding: 15px
    }

    .alphabet {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 7px
    }

    .alphabet a {
        min-width: 0;
        min-height: 42px;
        padding: 0
    }

    .alphabet .alphabet-all {
        grid-column: span 2
    }

    .category-card {
        min-height: 142px;
        flex-direction: column;
        gap: 8px;
        padding: 13px 8px
    }

    .category-card b {
        font-size: 12px
    }

    .category-card small {
        font-size: 10px
    }

    .category-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
        font-size: 20px
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px
    }

    .page-heading h1 {
        font-size: 43px
    }

    .page-heading p {
        font-size: 15px
    }

    .page-count,
    .period-label {
        width: 100%;
        min-width: 0
    }

    .kpi-card {
        min-height: 116px;
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 14px
    }

    .kpi-card > .ui-icon {
        width: 39px;
        height: 39px;
        flex-basis: 39px
    }

    .kpi-card b {
        font-size: 18px
    }

    .chart-card {
        padding: 15px
    }

    .chart-frame,
    .chart-frame-bar {
        height: 300px
    }

    .table-responsive {
        overflow: visible
    }

    .glossary-table,
    .glossary-table tbody {
        display: block
    }

    .glossary-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap
    }

    .glossary-table tbody tr {
        display: block;
        margin: 12px;
        padding: 12px 14px;
        border: 1px solid var(--oce-line);
        border-radius: 11px;
        background: #fff;
        box-shadow: 0 4px 16px rgba(17, 49, 104, .05)
    }

    .glossary-table tbody tr:hover td {
        background: transparent
    }

    .glossary-table tbody td {
        display: flex;
        min-height: 38px;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 7px 0;
        border-bottom: 1px solid var(--oce-line)
    }

    .glossary-table tbody td:last-child {
        border-bottom: 0
    }

    .glossary-table tbody td::before {
        flex: 0 0 42%;
        color: var(--oce-muted);
        content: attr(data-label);
        font-size: 11px;
        font-weight: 650
    }

    .glossary-table tbody td[colspan] {
        display: block;
        border-bottom: 0;
        text-align: center
    }

    .glossary-table tbody td[colspan]::before {
        content: none
    }

    .term-table-link {
        text-align: right
    }

    .category-hero {
        align-items: flex-start;
        gap: 15px
    }

    .category-hero-icon {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
        border-radius: 16px;
        font-size: 35px
    }

    .category-hero h1 {
        font-size: 36px
    }

    .category-hero p {
        margin-top: 8px;
        font-size: 13px
    }

    .category-term-row,
    .result-row {
        align-items: flex-start;
        gap: 12px;
        padding: 16px
    }

    .category-term-row .term-icon,
    .result-row .term-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 17px
    }

    .category-term-copy p,
    .result-copy p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3
    }

    .term-meta {
        gap: 8px
    }

    .row-chevron {
        display: none
    }

    .results-heading {
        align-items: flex-start;
        flex-direction: column
    }

    .sort-form {
        width: 100%
    }

    .sort-form select {
        flex: 1
    }

    .result-metric {
        display: none
    }

    .term-heading {
        align-items: flex-start;
        flex-wrap: wrap
    }

    .term-heading h1 {
        font-size: 38px
    }

    .term-logo {
        width: 58px;
        height: 58px;
        flex-basis: 58px
    }

    .share-button {
        width: 100%;
        justify-content: center;
        margin-left: 0 !important
    }

    .pagination {
        flex-wrap: wrap
    }

    .pagination .page-link {
        min-width: 44px;
        min-height: 44px
    }

    #btnRbcRiapriPreferenze.rbc-riapri-preferenze {
        position: fixed;
        right: 10px !important;
        bottom: 10px !important;
        width: 48px !important;
        min-width: 48px !important;
        height: 48px !important;
        overflow: hidden;
        padding: 0 !important;
        border-radius: 50% !important;
        font-size: 0 !important;
        text-indent: -9999px
    }

    #btnRbcRiapriPreferenze.rbc-riapri-preferenze::before {
        position: absolute;
        inset: 0;
        display: grid;
        place-items: center;
        color: #fff;
        content: "\\f3ed";
        font-family: "Font Awesome 7 Free";
        font-size: 17px;
        font-weight: 900;
        text-indent: 0
    }
}

@media (max-width: 389.98px) {
    .alphabet {
        grid-template-columns: repeat(6, minmax(0, 1fr))
    }

    .search-bar > .ui-icon {
        display: none
    }

    .category-hero {
        flex-direction: column
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important
    }
}
