/* ============================================================
   release.css - stile per le note di rilascio B4WRent PMS
   Palette allineata al Desktop moderno: navy #0e1e36 / accent #a91917
   ============================================================ */

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #2c3e50;
    background: #f4f6fa;
}

a { color: #a91917; text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Header (stesso stile del compact header admin) --- */
.rn-header {
    background: #0e1e36;
    color: #ffffff;
    border-bottom: 3px solid #a91917;
    height: 48px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}
.rn-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    position: relative;
}
.rn-brand {
    display: inline-block;
    vertical-align: middle;
    line-height: 48px;
}
.rn-brand-mark {
    display: inline-block;
    vertical-align: middle;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 4px;
    background: #a91917;
    position: relative;
}
.rn-brand-mark::after {
    content: 'B';
    position: absolute;
    inset: 0;
    text-align: center;
    line-height: 24px;
    font-weight: 800;
    color: #ffffff;
    font-size: 14px;
}
.rn-brand-name {
    display: inline-block;
    vertical-align: middle;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.rn-header-title {
    display: inline-block;
    margin-left: 24px;
    padding-left: 24px;
    border-left: 1px solid rgba(255,255,255,0.18);
    vertical-align: middle;
    line-height: 48px;
    color: #c4ccda;
    font-size: 13px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* --- Layout principale --- */
.rn-wrap {
    max-width: 1100px;
    margin: 24px auto 40px auto;
    padding: 0 20px;
}

.rn-intro {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    padding: 22px 26px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(14,30,54,0.05);
}
.rn-intro h1 {
    margin: 0 0 8px 0;
    font-size: 22px;
    color: #0e1e36;
    letter-spacing: 0.2px;
}
.rn-intro p {
    margin: 0;
    color: #55606f;
}

/* --- Elenco release (index) --- */
.rn-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.rn-list-item {
    margin-bottom: 14px;
}
.rn-card {
    display: block;
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-left: 4px solid #a91917;
    border-radius: 8px;
    padding: 16px 20px;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(14,30,54,0.05);
    transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
    position: relative;
    padding-left: 118px;
    min-height: 88px;
}
.rn-card:hover {
    border-left-color: #0e1e36;
    box-shadow: 0 6px 16px rgba(14,30,54,0.12);
    transform: translateY(-1px);
    text-decoration: none;
}
.rn-card-date {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 86px;
    text-align: center;
    padding: 10px 0;
    background: #f7f9fc;
    border: 1px solid #e3e8ef;
    border-radius: 6px;
}
.rn-card-day {
    font-size: 26px;
    font-weight: 800;
    color: #0e1e36;
    line-height: 1;
}
.rn-card-monyear {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #a91917;
    letter-spacing: 0.5px;
}
.rn-card-body h2 {
    margin: 0 0 6px 0;
    font-size: 16px;
    color: #0e1e36;
    font-weight: 700;
}
.rn-card-body p {
    margin: 0 0 10px 0;
    color: #55606f;
    font-size: 13px;
}

/* --- Tags --- */
.rn-tags { margin-top: 6px; }
.rn-tag {
    display: inline-block;
    vertical-align: middle;
    padding: 3px 9px;
    margin-right: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-radius: 20px;
    border: 1px solid #cdd3db;
    background: #f7f9fc;
    color: #55606f;
}
.rn-tag-feature  { background: #e8f5e9; border-color: #27ae60; color: #1e8449; }
.rn-tag-fix      { background: #fff4e0; border-color: #f39c12; color: #a46100; }
.rn-tag-security { background: #fde8e7; border-color: #a91917; color: #7f1311; }
.rn-tag-ux       { background: #e8f1fb; border-color: #3498db; color: #1f5d8a; }

/* --- Dettaglio release (pagina singola) --- */
.rn-release-header {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    padding: 22px 26px;
    margin-bottom: 22px;
    border-top: 4px solid #a91917;
    box-shadow: 0 2px 8px rgba(14,30,54,0.05);
}
.rn-release-header .rn-version {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    background: #0e1e36;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-right: 8px;
}
.rn-release-header .rn-date {
    color: #7b8794;
    font-size: 13px;
}
.rn-release-header h1 {
    margin: 10px 0 6px 0;
    font-size: 24px;
    color: #0e1e36;
    letter-spacing: 0.2px;
}
.rn-release-header .rn-summary {
    margin: 6px 0 0 0;
    color: #55606f;
}
.rn-release-header .rn-back {
    display: inline-block;
    margin-top: 14px;
    padding: 5px 12px;
    border: 1px solid #cdd3db;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #55606f;
    background: #ffffff;
}
.rn-release-header .rn-back:hover {
    background: #eef2f7;
    border-color: #0e1e36;
    color: #0e1e36;
    text-decoration: none;
}

/* --- Sezioni argomento --- */
.rn-section {
    background: #ffffff;
    border: 1px solid #e3e8ef;
    border-radius: 10px;
    padding: 22px 26px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(14,30,54,0.05);
}
.rn-section-head {
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e3e8ef;
    position: relative;
    padding-left: 44px;
}
.rn-section-head .rn-section-icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    border-radius: 7px;
    background: #0e1e36;
    color: #ffffff;
    text-align: center;
    line-height: 34px;
    font-size: 16px;
    font-weight: 800;
}
.rn-section-head h2 {
    margin: 0;
    font-size: 17px;
    color: #0e1e36;
    font-weight: 700;
    line-height: 34px;
}
.rn-section-head .rn-section-sub {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #7b8794;
    margin-top: 2px;
    line-height: 1.3;
}

.rn-section h3 {
    margin: 18px 0 8px 0;
    font-size: 14px;
    color: #0e1e36;
    font-weight: 700;
    letter-spacing: 0.2px;
}
.rn-section h3:first-child { margin-top: 0; }

.rn-section p,
.rn-section li {
    color: #2c3e50;
    font-size: 13.5px;
}
.rn-section ul {
    margin: 6px 0 12px 0;
    padding-left: 22px;
}
.rn-section li { margin-bottom: 5px; }
.rn-section li b { color: #0e1e36; }

.rn-section code {
    background: #f7f9fc;
    border: 1px solid #e6eaf0;
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 12px;
    color: #a91917;
    font-family: Consolas, Menlo, monospace;
}

/* Callout box (warning / info / success) */
.rn-callout {
    margin: 12px 0;
    padding: 10px 14px 10px 42px;
    border-radius: 6px;
    border: 1px solid;
    font-size: 13px;
    position: relative;
}
.rn-callout::before {
    position: absolute;
    left: 12px;
    top: 10px;
    font-weight: 800;
    font-size: 16px;
    width: 20px;
    height: 20px;
    text-align: center;
    border-radius: 50%;
}
.rn-callout-info    { background: #e8f1fb; border-color: #3498db; color: #1f5d8a; }
.rn-callout-info::before    { content: 'i'; background: #3498db; color: #ffffff; }
.rn-callout-warn    { background: #fff4e0; border-color: #f39c12; color: #7a4908; }
.rn-callout-warn::before    { content: '!'; background: #f39c12; color: #ffffff; }
.rn-callout-success { background: #e8f5e9; border-color: #27ae60; color: #1e5c36; }
.rn-callout-success::before { content: '\2713'; background: #27ae60; color: #ffffff; }
.rn-callout-security { background: #fde8e7; border-color: #a91917; color: #7f1311; }
.rn-callout-security::before { content: '\2691'; background: #a91917; color: #ffffff; }

/* Lista TOC in alto */
.rn-toc {
    background: #f7f9fc;
    border: 1px solid #e3e8ef;
    border-radius: 8px;
    padding: 12px 18px;
    margin-bottom: 22px;
}
.rn-toc-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #7b8794;
    margin-bottom: 6px;
}
.rn-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 2;
    column-gap: 24px;
}
.rn-toc li {
    padding: 3px 0;
    font-size: 13px;
    break-inside: avoid;
}
.rn-toc a { color: #0e1e36; font-weight: 600; }
.rn-toc a::before {
    content: '\203A';
    color: #a91917;
    margin-right: 6px;
    font-weight: 800;
}

/* Footer */
.rn-footer {
    padding: 24px 0;
    background: #ffffff;
    border-top: 1px solid #e3e8ef;
    text-align: center;
    color: #7b8794;
    font-size: 12px;
}
.rn-footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Responsive */
@media (max-width: 720px) {
    .rn-card { padding-left: 16px; min-height: 0; }
    .rn-card-date {
        position: static;
        transform: none;
        margin-bottom: 10px;
        width: auto;
        display: inline-block;
    }
    .rn-toc ul { columns: 1; }
    .rn-section { padding: 18px 16px; }
    .rn-section-head { padding-left: 42px; }
    .rn-header-title { display: none; }
}

/* Screenshot */
.rn-screenshot {
    text-align: center;
    margin: 20px 0 28px;
}
.rn-screenshot img {
    max-width: 320px;
    width: 100%;
    height: auto;
    border: 1px solid #dde;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.rn-screenshot-wide img {
    max-width: 100%;
    border-radius: 8px;
}

/* --- Navigazione: bottone "torna su" + link indice in fondo --- */
.rn-topbtn {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #0e1e36;
    color: #ffffff;
    border: none;
    font-size: 20px;
    line-height: 44px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, background 0.15s ease;
}
.rn-topbtn:hover { background: #a91917; color: #ffffff; text-decoration: none; }
.rn-topbtn.is-visible { opacity: 1; visibility: visible; }

.rn-endnav { text-align: center; margin: 8px 0 30px 0; }
