/*
Theme Name: CMB Codex Theme
Theme URI: https://dati.cmbcasa.it/
Author: King On Web
Description: Tema WordPress custom per dashboard e report CMB Codex.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: cmb-codex-theme
*/

:root {
    --cmb-page: #f3f4f6;
    --cmb-surface: #ffffff;
    --cmb-ink: #171b22;
    --cmb-muted: #68717d;
    --cmb-line: #e2e6eb;
    --cmb-blue: #0f75bb;
    --cmb-orange: #f28d22;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--cmb-page);
    color: var(--cmb-ink);
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--cmb-blue);
}

.cmb-theme-header {
    align-items: center;
    background: var(--cmb-surface);
    border-bottom: 1px solid var(--cmb-line);
    display: flex;
    gap: 28px;
    justify-content: space-between;
    min-height: 76px;
    padding: 0 48px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.cmb-theme-brand {
    align-items: center;
    display: flex;
    gap: 12px;
    font-size: 20px;
    font-weight: 800;
}

.cmb-theme-brand__mark {
    align-items: center;
    background: linear-gradient(135deg, var(--cmb-blue), #39a9dc);
    border-radius: 4px;
    color: #ffffff;
    display: inline-flex;
    font-size: 13px;
    height: 32px;
    justify-content: center;
    width: 42px;
}

.cmb-theme-nav {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: flex-end;
}

.cmb-theme-nav ul {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cmb-theme-nav a,
.cmb-theme-nav .current-menu-item > a {
    color: var(--cmb-muted);
    font-size: 15px;
    font-weight: 700;
}

.cmb-theme-nav .current-menu-item > a,
.cmb-theme-nav a:hover {
    color: var(--cmb-ink);
}

.cmb-theme-main {
    min-height: calc(100vh - 132px);
}

.cmb-theme-content {
    margin: 0 auto;
    max-width: 1180px;
    padding: 48px 24px;
}

.cmb-theme-content--full {
    max-width: none;
    padding: 0;
}

.cmb-theme-title {
    font-size: 44px;
    line-height: 1.08;
    margin: 0 0 28px;
}

.cmb-theme-content--full .cmb-theme-title {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.cmb-theme-footer {
    align-items: center;
    background: var(--cmb-surface);
    border-top: 1px solid var(--cmb-line);
    color: var(--cmb-muted);
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 48px;
}

.cmb-theme-footer strong {
    color: var(--cmb-blue);
}

body.page-slug-codex .cmb-theme-main,
body.page-slug-codex .cmb-theme-content {
    background: #ececec;
}

body.page-slug-codex .cmb-theme-content {
    max-width: none;
    padding: 0;
}

body.page-slug-codex .cmb-codex {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

@media (max-width: 760px) {
    .cmb-theme-header,
    .cmb-theme-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 18px 20px;
    }

    .cmb-theme-content {
        padding: 32px 16px;
    }

    .cmb-theme-title {
        font-size: 34px;
    }
}
