/*
© 2026 Antonio Tutino - SubApp.it - Tutti i diritti riservati.
Questo software, l'algoritmo di scraping, le logiche di aggregazione dati
e l'architettura del simulatore dei ribassi sono di proprietà esclusiva
dell'autore. È tassativamente vietata la riproduzione, la distribuzione,
la modifica, la decompilazione o la rivendita totale o parziale del codice
senza esplicito consenso scritto del titolare dei diritti.
Prodotto protetto ai sensi delle leggi vigenti sul Diritto d'Autore (U.E.).
*/

/* Shared stylesheet for public SEO pages (guides, landings, tools).
   Palette aligned with public-home-v2.html. No external CSS framework. */

:root {
    --navy: #10243d;
    --blue: #1f5f99;
    --blue-soft: #e8f1fb;
    --ink: #1d2939;
    --muted: #667085;
    --paper: #f5f7fb;
    --line: #d9e0ea;
    --green: #0f7a55;
    --green-soft: #e8f6ef;
    --amber: #b66a00;
    --amber-soft: #fff4df;
    --shadow-sm: 0 2px 8px rgba(16, 36, 61, .06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    color: var(--ink);
    background: var(--paper);
    font-family: "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); }
a:hover { color: var(--navy); }
img { display: block; max-width: 100%; }

.shell { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

/* Topbar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; }
.brand-name { font-size: 22px; font-weight: 900; letter-spacing: -.03em; color: var(--navy); }
.brand-name span { color: #4da6e0; }
.nav-actions { display: flex; gap: 8px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { border-color: #b0bac8; color: var(--ink); }
.btn.primary {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--navy));
}
.btn.primary:hover { color: #fff; opacity: .93; }

/* Breadcrumb */
.breadcrumb { padding: 18px 0 0; font-size: 14px; color: var(--muted); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "\203A"; margin-right: 6px; }
.breadcrumb a { color: var(--muted); }

/* Article */
.page { padding: 18px 0 56px; }
.article {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    padding: clamp(22px, 4vw, 44px);
}
.article > * + * { margin-top: 18px; }
.eyebrow {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--blue);
}
h1 {
    font-size: clamp(28px, 4.2vw, 40px);
    line-height: 1.18;
    letter-spacing: -.02em;
    color: var(--navy);
}
.lead { font-size: 19px; color: #475467; }
.meta { font-size: 14px; color: var(--muted); }
h2 {
    margin-top: 38px !important;
    font-size: clamp(21px, 2.6vw, 26px);
    line-height: 1.3;
    color: var(--navy);
    scroll-margin-top: 84px;
}
h3 { margin-top: 24px !important; font-size: 19px; color: var(--navy); }
ul, ol { padding-left: 22px; }
li + li { margin-top: 6px; }
.article strong { color: var(--navy); }
.cta strong { color: #fff; }

.box {
    border-radius: 12px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: var(--blue-soft);
    border-left: 5px solid var(--blue);
}
.box.warn { background: var(--amber-soft); border-left-color: var(--amber); }
.box.ok { background: var(--green-soft); border-left-color: var(--green); }
.box > * + * { margin-top: 10px; }
.box-title { font-weight: 900; color: var(--navy); }

.toc {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px 20px;
    background: var(--paper);
}
.toc-title { font-weight: 900; color: var(--navy); margin-bottom: 6px; }
.toc ol { columns: 2 260px; column-gap: 28px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { background: var(--paper); color: var(--navy); font-weight: 800; }
tr:last-child td { border-bottom: 0; }
td code, .code { font-family: Consolas, "Courier New", monospace; font-weight: 700; color: var(--navy); white-space: nowrap; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 18px; background: #fff; }
.card h3 { margin-top: 0 !important; font-size: 17px; }
.card p { margin-top: 6px; font-size: 15.5px; color: #475467; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: #fff; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 800; color: var(--navy); }
details[open] summary { margin-bottom: 8px; }

/* CTA */
.cta {
    margin-top: 36px !important;
    border-radius: 16px;
    padding: 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--navy));
}
.cta h2 { margin-top: 0 !important; color: #fff; }
.cta p { margin-top: 8px; color: #dbe7f5; }
.cta .actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.cta .btn { border-color: transparent; }
.cta .btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }

/* Related links */
.related { margin-top: 28px; }
.related h2 { margin-top: 0 !important; font-size: 20px; }
.related ul { list-style: none; padding: 0; margin-top: 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.related li + li { margin-top: 0; }
.related a {
    display: block;
    height: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    font-weight: 800;
    color: var(--navy);
}
.related a span { display: block; margin-top: 4px; font-weight: 400; font-size: 14.5px; color: var(--muted); }
.related a:hover { border-color: var(--blue); }
.related a[aria-current="page"] { border-color: var(--blue); background: var(--blue-soft); }

/* CPV / SOA tool */
.tool {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px;
    background: var(--paper);
}
.tool label { display: block; font-weight: 800; color: var(--navy); }
.tool-row { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 10px; }
.tool input[type="search"], .tool select {
    flex: 1 1 260px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #b0bac8;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    color: var(--ink);
}
.tool select { flex: 0 1 220px; }
.tool input:focus, .tool select:focus { outline: 3px solid rgba(31, 95, 153, .25); border-color: var(--blue); }
.tool-status { margin-top: 10px; font-size: 14.5px; color: var(--muted); }
.tool-results { margin-top: 12px; }
.tool-results .table-wrap { background: #fff; max-height: 520px; overflow: auto; }
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    background: var(--blue-soft);
    color: var(--blue);
    white-space: nowrap;
}
.badge.lav { background: var(--amber-soft); color: var(--amber); }
.badge.ser { background: var(--green-soft); color: var(--green); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 26px 0; font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 10px; }
.site-footer nav a { color: var(--ink); text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; }
.site-footer p + p { margin-top: 4px; }

@media (max-width: 560px) {
    body { font-size: 16px; }
    .topbar-inner { gap: 8px; }
    .brand { gap: 6px; flex-shrink: 0; }
    .brand img { width: 38px; height: 38px; border-radius: 10px; }
    .brand-name { font-size: 18px; }
    .nav-actions { gap: 6px; min-width: 0; justify-content: flex-end; }
    .nav-actions .btn { padding: 0 10px; font-size: 13px; white-space: nowrap; }
    th, td { padding: 9px 10px; }
    .site-footer nav a { display: inline-block; padding: 6px 0; }
    .cpv-table thead { display: none; }
    .cpv-table tr {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 4px 10px;
        padding: 10px 12px;
        border-bottom: 1px solid var(--line);
    }
    .cpv-table td { padding: 0; border: 0; }
    .cpv-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
    .cpv-table td:nth-child(3) { justify-self: end; }
}
@media (max-width: 380px) {
    .brand img { width: 34px; height: 34px; }
    .brand-name { font-size: 17px; }
    .nav-actions .btn { padding: 0 8px; font-size: 12.5px; }
}
@media (max-width: 359px) {
    .brand { flex-shrink: 0; }
    .brand img { width: 32px; height: 32px; }
    .brand-name { font-size: 16px; }
    .nav-actions { gap: 4px; min-width: 0; justify-content: flex-end; }
    .nav-actions .btn { padding: 0 8px; font-size: 12px; white-space: normal; text-align: center; line-height: 1.2; }
}
