/* ================================================================ */
/*  VARIOglide — tema "pannello strumenti"                          */
/*  Palette scura blu-notte derivata dal logo (azzurro cielo)       */
/* ================================================================ */

:root {
    /* Superfici */
    --bg: #0F141E;
    --bg-top: #141B29;
    --surface: #171F2E;
    --surface-2: #1E2839;
    --surface-3: #253147;
    --line: #2A3650;
    --line-soft: rgba(148, 170, 206, 0.12);

    /* Testo */
    --text: #DFE6F1;
    --text-dim: #8DA0BC;

    /* Accenti (dal logo + semantica variometro) */
    --sky: #4AB3F4;
    --sky-soft: rgba(74, 179, 244, 0.12);
    --sky-deep: #1E62D0;
    --climb: #39D98A;
    --climb-soft: rgba(57, 217, 138, 0.10);
    --warn: #F2B33D;
    --warn-soft: rgba(242, 179, 61, 0.10);
    --danger: #E5604C;

    /* Tipografia */
    --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;

    --radius: 12px;
    --radius-sm: 8px;
    --nav-height: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 480px);
    background-repeat: no-repeat;
    min-height: 100vh;
}

::selection { background: var(--sky-deep); color: #fff; }

a { color: var(--sky); }

:focus-visible {
    outline: 2px solid var(--sky);
    outline-offset: 2px;
    border-radius: 2px;
}

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

/* ================================================================ */
/*  Nastro a tacche (firma grafica)                                 */
/* ================================================================ */

.vario-tape {
    height: 12px;
    background-image: repeating-linear-gradient(90deg,
        var(--line) 0, var(--line) 2px, transparent 2px, transparent 14px);
    position: relative;
    margin: 0 auto;
    max-width: 420px;
}

.vario-tape::after {
    content: '';
    position: absolute;
    left: 50%;
    top: -4px;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 7px solid var(--sky);
}

/* ================================================================ */
/*  NAVBAR                                                          */
/* ================================================================ */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 20, 30, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line-soft);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.nav-inner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-brand img {
    height: 38px;
    width: auto;
}

.nav-brand span {
    font-family: var(--font-display);
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1em;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--line-soft);
}

.nav-links a.active {
    color: var(--sky);
    background: var(--sky-soft);
}

/* Tasto Acquista (link esterno eBay) */
.nav-links a.buy {
    color: var(--sky);
    border: 1px solid var(--sky-deep);
}

.nav-links a.buy:hover {
    background: var(--sky-soft);
    color: var(--sky);
}

/* Hamburger */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

/* Menu mobile */
.nav-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 14, 0.6);
    z-index: 998;
}

.nav-mobile-overlay.open {
    display: block;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 0;
    right: -290px;
    width: 290px;
    height: 100%;
    background: var(--surface);
    border-left: 1px solid var(--line);
    z-index: 999;
    padding: 24px;
    transition: right 0.3s ease;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
}

.nav-mobile.open {
    display: block;
    right: 0;
}

.nav-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.nav-mobile-header span {
    font-family: var(--font-mono);
    font-size: 0.72em;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.nav-mobile-close {
    background: none;
    border: none;
    font-size: 1.4em;
    color: var(--text-dim);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.nav-mobile a {
    display: block;
    text-decoration: none;
    font-size: 0.95em;
    font-weight: 500;
    color: var(--text);
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
    transition: color 0.2s;
}

.nav-mobile a:last-child {
    border-bottom: none;
}

.nav-mobile a:hover {
    color: var(--sky);
}

.nav-mobile a.active {
    color: var(--sky);
}

/* Selettore lingua */
.lang-toggle {
    display: flex;
    align-items: center;
    margin-left: 16px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--line);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.68em;
    font-weight: 600;
    color: var(--text-dim);
    padding: 6px 10px;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
    letter-spacing: 0.5px;
    line-height: 1;
}

.lang-btn:first-child {
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    border-right: none;
}

.lang-btn:not(:first-child):not(:last-child) {
    border-radius: 0;
    border-right: none;
}

.lang-btn:last-child {
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.lang-btn .lang-flag {
    width: 16px;
    height: 11px;
    margin-right: 5px;
    vertical-align: middle;
    border-radius: 1px;
    opacity: 0.9;
}

.lang-btn.active {
    background: var(--sky-soft);
    color: var(--sky);
    border-color: var(--sky-deep);
}

.lang-btn:not(.active):hover {
    color: var(--text);
    border-color: var(--text-dim);
}

@media (max-width: 900px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }
    .lang-toggle { margin-left: auto; margin-right: 12px; }
}

/* Solo screen reader */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ================================================================ */
/*  HOMEPAGE                                                        */
/* ================================================================ */

.hero {
    text-align: center;
    padding: 0 24px 48px;
    max-width: 720px;
    margin: 0 auto;
}

/* L'immagine hero "pende" dalla navbar: i laccetti sono tagliati al bordo alto.
   Il PNG ha ~38% di trasparenza in basso: il margine negativo la compensa. */
.hero-img {
    display: block;
    margin: 0 auto -145px;
    max-height: 470px;
    max-width: 100%;
    width: auto;
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.45));
}

.hero-logo {
    display: block;
    margin: 0 auto 32px;
    max-width: 210px;
    width: 55%;
    filter: drop-shadow(0 8px 28px rgba(74, 179, 244, 0.18));
}

/* Card di navigazione */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 640px;
    margin: 40px auto 0;
    padding: 0 24px 72px;
}

.home-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 18px;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    min-height: 130px;
}

.home-card:hover {
    border-color: var(--sky);
    background: var(--surface-2);
    transform: translateY(-2px);
}

.home-card .card-icon {
    font-size: 1.5em;
    margin-bottom: 10px;
    line-height: 1;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Chip chiaro dietro i loghi, altrimenti quelli scuri spariscono sul fondo */
.home-card .card-icon img {
    height: 30px;
    width: auto;
    vertical-align: middle;
    background: #DFE6F1;
    border-radius: 8px;
    padding: 6px 12px;
    box-sizing: content-box;
}

.home-card .card-title {
    font-family: var(--font-display);
    font-size: 1.05em;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 4px;
}

.home-card .card-desc {
    font-size: 0.78em;
    color: var(--text-dim);
    line-height: 1.5;
}

.home-card.full-width {
    grid-column: 1 / -1;
}

@media (max-width: 480px) {
    .home-grid { grid-template-columns: 1fr; }
    .hero { padding: 0 24px 32px; }
    .hero-img { max-height: 380px; margin-bottom: -118px; }
    .hero-logo { max-width: 180px; }
}

/* ================================================================ */
/*  PRESENTAZIONE PRODOTTO (homepage)                               */
/* ================================================================ */

.product {
    max-width: 1000px;
    margin: 0 auto;
    padding: 56px 24px 72px;
}

.product-hero {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    margin-bottom: 24px;
}

.product-title {
    font-family: var(--font-display);
    font-size: 1.7em;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 16px;
}

.product-copy p {
    color: var(--text-dim);
    font-size: 0.95em;
    margin-bottom: 12px;
}

.product-copy strong {
    color: var(--text);
    font-weight: 600;
}

/* Carosello */
.carousel {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.carousel-slide {
    min-width: 100%;
}

.carousel-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(15, 20, 30, 0.65);
    color: var(--text);
    font-size: 0.9em;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.carousel-btn:hover {
    background: rgba(15, 20, 30, 0.85);
    border-color: var(--sky);
    color: var(--sky);
}

.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.carousel-dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: rgba(15, 20, 30, 0.55);
    box-shadow: inset 0 0 0 1px rgba(223, 230, 241, 0.5);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.carousel-dots button.active {
    background: var(--sky);
    box-shadow: none;
}

/* Sottotitoli di sezione */
.product-sub {
    font-family: var(--font-mono);
    font-size: 0.72em;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--sky);
    margin: 48px 0 18px;
}

/* Caratteristiche principali */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px;
}

.feature-head {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.05em;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 10px;
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--sky-soft);
    border: 1px solid var(--sky-deep);
    color: var(--sky);
    flex-shrink: 0;
}

.feature p {
    font-size: 0.83em;
    line-height: 1.6;
    color: var(--text-dim);
    margin: 0;
}

/* Specifiche tecniche */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.spec-tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 12px;
    text-align: center;
}

.spec-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85em;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 6px;
}

.spec-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1em;
    font-weight: 600;
    color: var(--sky);
    line-height: 1.4;
}

/* Elenchi con spunta */
.checks {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 24px;
}

.checks li {
    position: relative;
    padding-left: 26px;
    font-size: 0.88em;
    line-height: 1.55;
    color: var(--text-dim);
}

.checks li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 5px;
    width: 5px;
    height: 10px;
    border-right: 2px solid var(--climb);
    border-bottom: 2px solid var(--climb);
    transform: rotate(45deg);
}

/* Confezione e software */
.kit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
}

.kit-box {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
}

.kit-box .checks {
    grid-template-columns: 1fr;
}

.kit-title {
    font-family: var(--font-display);
    font-size: 1.05em;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text);
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--sky-deep);
}

@media (max-width: 900px) {
    .product-hero {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .carousel { max-width: 480px; margin: 0 auto; width: 100%; }

    .feature-grid { grid-template-columns: 1fr; }
    .spec-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
    .checks { grid-template-columns: 1fr; }
    .kit-grid { grid-template-columns: 1fr; }
}

/* Card risorse dentro il layout con indice */
.guide-main .home-grid {
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Componenti prodotto dentro il layout tipo manuale */
.guide-main .carousel {
    max-width: 480px;
    margin: 24px auto 8px;
}

.feature-grid + .checks {
    margin-top: 24px;
}

.guide-main .kit-grid {
    margin-top: 0;
}

/* ================================================================ */
/*  PAGINA MANUALE                                                  */
/* ================================================================ */

.guide-wrapper {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px 72px;
    min-height: calc(100vh - var(--nav-height));
}

.guide-header {
    text-align: center;
    padding: 56px 0 36px;
    margin-bottom: 24px;
}

.guide-header img {
    max-width: 240px;
    width: 60%;
    margin-bottom: 18px;
}

.guide-header h1 {
    font-family: var(--font-display);
    font-size: 2em;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.guide-header .subtitle {
    font-family: var(--font-mono);
    font-size: 0.78em;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    margin-bottom: 28px;
}

.guide-header .vario-tape { max-width: 320px; }

/* Layout a due colonne: indice + contenuto */
.guide-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 56px;
    align-items: start;
}

.guide-side {
    position: sticky;
    top: calc(var(--nav-height) + 28px);
}

.guide-toc {
    border-left: 2px solid var(--line);
    padding-left: 0;
}

.guide-toc .toc-title {
    font-family: var(--font-mono);
    font-size: 0.7em;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--text-dim);
    padding: 2px 0 10px 18px;
}

.guide-toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc;
}

.guide-toc li {
    counter-increment: toc;
}

.guide-toc a {
    position: relative;
    display: block;
    padding: 7px 8px 7px 18px;
    font-size: 0.85em;
    line-height: 1.45;
    color: var(--text-dim);
    text-decoration: none;
    border-left: 2px solid transparent;
    margin-left: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.guide-toc a::before {
    content: counter(toc, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 0.78em;
    color: var(--line);
    margin-right: 8px;
    transition: color 0.15s;
}

.guide-toc a:hover {
    color: var(--text);
}

.guide-toc a.active {
    color: var(--sky);
    border-left-color: var(--sky);
}

.guide-toc a.active::before {
    color: var(--sky);
}

/* Contenuto */
.guide-main {
    max-width: 720px;
}

.guide-section-divider {
    border: none;
    height: 10px;
    margin: 64px 0 0;
    background-image: repeating-linear-gradient(90deg,
        var(--line) 0, var(--line) 2px, transparent 2px, transparent 14px);
    opacity: 0.55;
}

.guide-main > .guide-section-divider:first-child,
.guide-layout .guide-main .guide-section-divider:first-of-type {
    display: none;
}

.guide-main h2 {
    font-family: var(--font-display);
    font-size: 1.7em;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text);
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 14px;
    scroll-margin-top: calc(var(--nav-height) + 24px);
}

.guide-main h2 .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    background: var(--sky-soft);
    border: 1px solid var(--sky-deep);
    color: var(--sky);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.55em;
    letter-spacing: 0;
    flex-shrink: 0;
}

.guide-main h3 {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text);
    margin: 30px 0 10px;
}

.guide-main p {
    margin-bottom: 14px;
    color: var(--text-dim);
}

.guide-main p strong,
.guide-main li strong {
    color: var(--text);
    font-weight: 600;
}

.guide-main code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    background: var(--surface-2);
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    padding: 1px 6px;
    color: var(--sky);
}

.guide-main ul {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}

.guide-main ul li {
    padding: 5px 0 5px 22px;
    position: relative;
    color: var(--text-dim);
}

.guide-main ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 13px;
    width: 7px;
    height: 7px;
    background: var(--sky);
    border-radius: 1px;
    transform: rotate(45deg);
    opacity: 0.8;
}

.guide-main ul ul { margin: 4px 0 0; }

.guide-main ol {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
    counter-reset: steps;
}

.guide-main ol li {
    padding: 10px 0 10px 46px;
    position: relative;
    counter-increment: steps;
    color: var(--text-dim);
}

.guide-main ol li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 9px;
    width: 30px;
    height: 30px;
    background: var(--surface-2);
    border: 1px solid var(--sky-deep);
    color: var(--sky);
    border-radius: 50%;
    text-align: center;
    line-height: 28px;
    font-family: var(--font-mono);
    font-size: 0.8em;
    font-weight: 600;
}

/* Le liste annidate dentro i passi tornano a puntini */
.guide-main ol li ul li {
    counter-increment: none;
    padding: 4px 0 4px 22px;
}

.guide-main ol li ul li::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--sky);
    border: none;
    border-radius: 1px;
    transform: rotate(45deg);
    left: 4px;
    top: 12px;
    line-height: normal;
    opacity: 0.8;
}

/* Tabelle */
.guide-main table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.88em;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.guide-main thead th {
    background: var(--surface-2);
    color: var(--text-dim);
    font-family: var(--font-display);
    font-size: 1em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--line);
}

.guide-main tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-soft);
    color: var(--text-dim);
    vertical-align: top;
}

.guide-main tbody tr:last-child td { border-bottom: none; }

.guide-main tbody tr:hover td {
    background: rgba(148, 170, 206, 0.04);
}

.guide-main td strong { color: var(--text); }

/* Scroll orizzontale tabelle su schermi stretti */
.table-scroll {
    overflow-x: auto;
}

/* Mockup */
.mockup {
    text-align: center;
    margin: 30px 0;
}

.mockup img {
    max-width: 300px;
    width: 100%;
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.45));
}

.mockup .caption {
    font-family: var(--font-mono);
    font-size: 0.72em;
    color: var(--text-dim);
    letter-spacing: 0.5px;
    margin-top: 12px;
}

/* Callout */
.callout {
    background: var(--sky-soft);
    border: 1px solid rgba(74, 179, 244, 0.25);
    border-left: 3px solid var(--sky);
    padding: 14px 18px;
    margin: 18px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.9em;
    color: var(--text-dim);
}

.callout strong { color: var(--sky); }

.callout.warning {
    background: var(--warn-soft);
    border-color: rgba(242, 179, 61, 0.25);
    border-left-color: var(--warn);
}

.callout.warning strong { color: var(--warn); }

.callout.success {
    background: var(--climb-soft);
    border-color: rgba(57, 217, 138, 0.25);
    border-left-color: var(--climb);
}

.callout.success strong { color: var(--climb); }

/* Disclaimer */
.disclaimer {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 18px 22px;
    margin: 24px 0;
    font-size: 0.83em;
    color: var(--text-dim);
    line-height: 1.65;
}

.disclaimer strong {
    color: var(--text);
}

.platform-note {
    background: var(--sky-soft);
    border: 1px solid rgba(74, 179, 244, 0.2);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 0.9em;
    text-align: center;
    color: var(--text-dim);
}

.platform-note strong { color: var(--sky); }

.guide-footer {
    text-align: center;
    padding: 36px 0 0;
    margin-top: 56px;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.72em;
    letter-spacing: 1px;
    color: var(--text-dim);
    line-height: 2;
}

/* Manuale su schermi stretti: indice in testa, non sticky */
@media (max-width: 980px) {
    .guide-layout {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .guide-side {
        position: static;
    }

    .guide-toc {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 18px 20px 12px;
    }

    .guide-toc .toc-title { padding-left: 0; }

    .guide-toc a {
        padding-left: 0;
        border-left: none;
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .guide-wrapper { padding: 0 16px 48px; }
    .guide-header img { max-width: 200px; }
    .guide-main h2 { font-size: 1.4em; }
    .mockup img { max-width: 260px; }

    /* Le tabelle larghe scorrono orizzontalmente invece di rompere il layout */
    .guide-main table {
        display: block;
        overflow-x: auto;
    }
}

/* ================================================================ */
/*  FOOTER SITO                                                     */
/* ================================================================ */

.site-footer {
    text-align: center;
    padding: 28px 24px;
    border-top: 1px solid var(--line-soft);
    font-family: var(--font-mono);
    font-size: 0.72em;
    letter-spacing: 1px;
    color: var(--text-dim);
}

/* ================================================================ */
/*  STAMPA (il manuale si stampa in chiaro)                         */
/* ================================================================ */

@media print {
    body {
        background: #fff !important;
        color: #111;
    }

    .site-nav, .nav-mobile, .nav-mobile-overlay, .guide-side { display: none !important; }

    .guide-layout { display: block; }
    .guide-wrapper { padding: 0; max-width: 100%; }
    .guide-main { max-width: 100%; }
    .guide-header { padding: 20px 0 16px; }
    .guide-header img { max-width: 200px; }

    .guide-main h2, .guide-main h3, .guide-header h1 { color: #111; }
    .guide-main p, .guide-main li, .guide-main td, .disclaimer, .callout { color: #333; }
    .guide-main h2 .num { background: #eee; border-color: #999; color: #333; }
    .guide-main table, .disclaimer { background: #fff; border-color: #ccc; }
    .guide-main thead th { background: #f0f0f0; color: #333; border-color: #ccc; }
    .callout { background: #f7f7f7; border-color: #ccc; }
    .callout strong, .callout.warning strong, .callout.success strong { color: #111; }
    .guide-footer { color: #666; border-color: #ccc; }

    h2 { break-after: avoid; }
    .mockup img { max-width: 240px; filter: none; }
    .callout, .disclaimer { break-inside: avoid; }
    table { break-inside: avoid; }
    .guide-section-divider { margin: 28px 0 0; opacity: 0.3; }
}
