/* ==========================================================================
   Cold Car — Vulnerability Disclosure Policy (pagina pubblica)
   --------------------------------------------------------------------------
   Foglio di stile autonomo: la pagina non passa dal layout Metronic del
   backoffice e non ha una pipeline di build, quindi qui dentro c'e' tutto.

   Palette e stilemi presi dal sito istituzionale coldcar.com — titoli in Teko
   maiuscolo, grigio-azzurro #a4abb5, filetti #e7e7e7 — con i valori scuriti
   dove servivano per il contrasto (#a4abb5 su bianco sta a 2,3:1).
   ========================================================================== */

:root {
    --cc-ink: #2f3b47;
    --cc-slate: #3c4a59;
    --cc-brand: #6b7d92;
    --cc-brand-soft: #a4abb5;
    --cc-body: #454b54;
    --cc-muted: #6c757d;
    --cc-line: #e3e7ec;
    --cc-bg: #f4f6f8;
    --cc-tint: #edf7f9;
    --cc-red: #ed1c24;
    --cc-green: #00a650;

    --cc-serif: 'Teko', 'Oswald', 'Haettenschweiler', 'Arial Narrow', sans-serif;
    --cc-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, 'Noto Sans', sans-serif;

    --cc-shell: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: #fff;
    font-family: var(--cc-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--cc-body);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--cc-brand); }

.vdp-shell {
    width: 100%;
    max-width: var(--cc-shell);
    margin: 0 auto;
    padding: 0 24px;
}

.vdp-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 12px 20px;
    background: var(--cc-ink);
    color: #fff;
    text-decoration: none;
}

.vdp-skip:focus {
    left: 0;
}


/* Barra superiore e testata
   ------------------------------------------------------------ */

.vdp-topbar {
    background: var(--cc-ink);
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vdp-topbar .vdp-shell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 40px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.vdp-topbar__note {
    font-weight: 600;
}

.vdp-lang {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vdp-lang__label {
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.1em;
}

.vdp-lang a {
    display: block;
    padding: 3px 9px;
    border: 1px solid transparent;
    border-radius: 2px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s linear, border-color 0.15s linear, background-color 0.15s linear;
}

.vdp-lang a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.vdp-lang [aria-current='true'] {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
}

.vdp-header {
    border-bottom: 1px solid var(--cc-line);
    background: #fff;
}

.vdp-header .vdp-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.vdp-header__logo img {
    display: block;
    width: 72px;
}

.vdp-header__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    font-family: var(--cc-serif);
    font-size: 19px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.vdp-header__links a {
    color: var(--cc-brand);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s linear, border-color 0.15s linear;
}

.vdp-header__links a:hover {
    color: var(--cc-slate);
    border-bottom-color: var(--cc-brand-soft);
}


/* Fascia fotografica
   ------------------------------------------------------------ */

.vdp-hero {
    position: relative;
    background: var(--cc-ink) url('/assets/common/coldcar/hero-officina.jpg') no-repeat center 42%;
    background-size: cover;
    overflow: hidden;
}

.vdp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(24, 32, 40, 0.92) 0%,
        rgba(35, 45, 56, 0.80) 42%,
        rgba(47, 59, 71, 0.42) 100%
    );
}

/* Filetto tricolore, citazione del marchio Cold Car. */
.vdp-hero::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        to right,
        var(--cc-green) 0 33.333%,
        #fff 33.333% 66.666%,
        var(--cc-red) 66.666% 100%
    );
}

.vdp-hero .vdp-shell {
    position: relative;
    z-index: 2;
    padding-top: 62px;
    padding-bottom: 66px;
}

.vdp-hero__eyebrow {
    display: inline-block;
    padding: 5px 14px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 2px;
    font-family: var(--cc-serif);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
}

.vdp-hero__title {
    max-width: 22ch;
    margin: 0;
    font-family: var(--cc-serif);
    font-size: 62px;
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.vdp-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 30px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.vdp-hero__meta li {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.74);
}

.vdp-hero__meta li::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 9px;
    vertical-align: 2px;
    background: var(--cc-brand-soft);
}


/* Corpo: documento + colonna laterale
   ------------------------------------------------------------ */

.vdp-main {
    padding: 56px 0 72px;
}

.vdp-main .vdp-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.vdp-side {
    position: sticky;
    top: 28px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.vdp-card {
    padding: 22px 24px;
    border: 1px solid var(--cc-line);
    border-top: 3px solid var(--cc-brand-soft);
    background: #fff;
}

.vdp-card--tint {
    background: var(--cc-tint);
    border-color: #d7e6ec;
    border-top-color: var(--cc-brand);
}

.vdp-card__title {
    margin: 0 0 14px;
    font-family: var(--cc-serif);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cc-brand);
}

/* Sommario */
.vdp-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: vdp-toc;
    font-size: 14px;
    line-height: 1.45;
}

.vdp-toc li + li {
    margin-top: 2px;
}

.vdp-toc a {
    display: block;
    padding: 7px 10px 7px 12px;
    border-left: 2px solid var(--cc-line);
    color: var(--cc-body);
    text-decoration: none;
    transition: color 0.15s linear, border-color 0.15s linear, background-color 0.15s linear;
}

.vdp-toc a:hover {
    border-left-color: var(--cc-brand-soft);
    background: #f7f9fb;
    color: var(--cc-slate);
}

.vdp-toc a.is-current {
    border-left-color: var(--cc-brand);
    background: #f2f5f8;
    color: var(--cc-slate);
    font-weight: 600;
}

/* Contatti */
.vdp-contact {
    margin: 0;
    font-size: 14px;
}

.vdp-contact dt {
    margin-bottom: 3px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cc-brand);
}

.vdp-contact dd {
    margin: 0 0 16px;
    line-height: 1.5;
    word-break: break-word;
}

.vdp-contact dd:last-child {
    margin-bottom: 0;
}

.vdp-contact a {
    color: var(--cc-slate);
    text-decoration: none;
    border-bottom: 1px solid var(--cc-brand-soft);
}

.vdp-contact a:hover {
    color: var(--cc-brand);
    border-bottom-color: var(--cc-brand);
}


/* Il documento
   ------------------------------------------------------------ */

.vdp-doc {
    max-width: 74ch;
    font-size: 16.5px;
}

.vdp-doc > :first-child {
    margin-top: 0;
}

.vdp-doc h2,
.vdp-doc h3,
.vdp-doc h4 {
    margin: 52px 0 14px;
    font-family: var(--cc-serif);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--cc-brand);
    scroll-margin-top: 24px;
}

.vdp-doc h2 { font-size: 40px; }
.vdp-doc h3 { font-size: 33px; }
.vdp-doc h4 { font-size: 26px; }

/* Filetto a sinistra dei titoli di sezione, come i box del sito Cold Car. */
.vdp-doc h3 {
    position: relative;
    padding-left: 20px;
}

.vdp-doc h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.18em;
    bottom: 0.22em;
    width: 4px;
    background: var(--cc-brand-soft);
}

.vdp-doc p {
    margin: 0 0 18px;
}

.vdp-doc a {
    color: var(--cc-slate);
    text-decoration: none;
    border-bottom: 1px solid var(--cc-brand-soft);
    transition: color 0.15s linear, border-color 0.15s linear;
}

.vdp-doc a:hover {
    color: var(--cc-brand);
    border-bottom-color: var(--cc-brand);
}

.vdp-doc strong {
    font-weight: 700;
    color: var(--cc-ink);
}

.vdp-doc ul,
.vdp-doc ol {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.vdp-doc ul > li,
.vdp-doc ol > li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
}

.vdp-doc ul > li::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 0.62em;
    width: 7px;
    height: 7px;
    background: var(--cc-brand-soft);
}

.vdp-doc ol {
    counter-reset: vdp-ol;
}

.vdp-doc ol > li {
    counter-increment: vdp-ol;
}

.vdp-doc ol > li::before {
    content: counter(vdp-ol) '.';
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--cc-brand);
}

.vdp-doc hr {
    height: 1px;
    margin: 40px 0;
    border: 0;
    background: var(--cc-line);
}

.vdp-doc blockquote {
    margin: 24px 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid var(--cc-brand-soft);
    font-style: normal;
    color: var(--cc-ink);
}

.vdp-doc table {
    width: 100%;
    margin-bottom: 24px;
    border-collapse: collapse;
    font-size: 15px;
}

.vdp-doc th,
.vdp-doc td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--cc-line);
    text-align: left;
    vertical-align: top;
}

.vdp-doc th {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cc-brand);
}

.vdp-doc code {
    padding: 2px 6px;
    background: var(--cc-bg);
    border: 1px solid var(--cc-line);
    border-radius: 2px;
    font-size: 0.88em;
}

/* Le tabelle larghe scorrono da sole invece di allargare la pagina. */
.vdp-doc .vdp-scroll-x {
    overflow-x: auto;
}


/* Pie' di pagina
   ------------------------------------------------------------ */

.vdp-footer {
    border-top: 4px solid var(--cc-brand-soft);
    background: var(--cc-ink);
    color: rgba(255, 255, 255, 0.68);
    font-size: 13.5px;
}

.vdp-footer .vdp-shell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 22px 40px;
    padding-top: 34px;
    padding-bottom: 34px;
}

.vdp-footer__brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.vdp-footer__brand-logo {
    flex: 0 0 auto;
    display: block;
    line-height: 0;
    opacity: 0.9;
    transition: opacity 0.15s linear;
}

.vdp-footer__brand-logo:hover,
.vdp-footer__brand-logo:focus {
    opacity: 1;
}

.vdp-footer__brand img {
    width: 58px;
}

.vdp-footer__brand p {
    margin: 0;
    line-height: 1.55;
}

.vdp-footer__brand strong {
    display: block;
    font-family: var(--cc-serif);
    font-size: 21px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #fff;
}

.vdp-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 26px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vdp-footer__links a {
    color: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.15s linear, border-color 0.15s linear;
}

.vdp-footer__links a:hover {
    color: #fff;
    border-bottom-color: var(--cc-brand-soft);
}


/* Adattamenti
   ------------------------------------------------------------ */

@media (max-width: 1099.98px) {
    .vdp-main .vdp-shell {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 40px;
    }

    .vdp-hero__title { font-size: 52px; }
}

/* Sotto i 900px il sommario diventa un blocco in testa al documento. */
@media (max-width: 899.98px) {
    .vdp-main .vdp-shell {
        display: block;
    }

    .vdp-side {
        position: static;
        margin-bottom: 40px;
    }

    .vdp-doc {
        max-width: none;
    }

    .vdp-hero .vdp-shell {
        padding-top: 46px;
        padding-bottom: 50px;
    }

    .vdp-hero__title { font-size: 44px; }
}

@media (max-width: 575.98px) {
    body { font-size: 15.5px; }

    .vdp-shell { padding: 0 18px; }

    .vdp-topbar .vdp-shell {
        justify-content: center;
        text-align: center;
    }

    .vdp-topbar__note { display: none; }

    .vdp-header .vdp-shell {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .vdp-hero__title { font-size: 36px; }
    .vdp-hero__eyebrow { font-size: 15px; }

    .vdp-doc { font-size: 16px; }
    .vdp-doc h2 { font-size: 32px; }
    .vdp-doc h3 { font-size: 27px; margin-top: 40px; }
    .vdp-doc h4 { font-size: 22px; }

    .vdp-footer .vdp-shell {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}


/* Stampa: la policy va spesso allegata a un documento
   ------------------------------------------------------------ */

@media print {
    .vdp-topbar,
    .vdp-side,
    .vdp-hero::before,
    .vdp-hero::after,
    .vdp-skip {
        display: none !important;
    }

    .vdp-hero {
        background: none;
        border-bottom: 2px solid #999;
    }

    .vdp-hero__title,
    .vdp-hero__eyebrow,
    .vdp-hero__meta li {
        color: #000;
        text-shadow: none;
    }

    .vdp-hero__eyebrow { border-color: #999; }

    .vdp-main .vdp-shell { display: block; }

    .vdp-doc { max-width: none; font-size: 11pt; }

    .vdp-doc h3 { page-break-after: avoid; }

    .vdp-doc a::after {
        content: ' (' attr(href) ')';
        font-size: 9pt;
        color: #555;
    }

    .vdp-footer {
        background: none;
        color: #000;
        border-top: 1px solid #999;
    }
}
