/* ============================================================
   stile-costruisci-le-discontinuita.css
   Pagina "Costruisci le discontinuità" (v3): base come le altre pagine
   v3, piu' il pannello scuro del laboratorio (grafico, sintesi, dimostrazione).
   Prefisso delle classi del widget: cd-
   ============================================================ */


:root {
    --green: #009966;
    --green-dk: #00754d;
    --green-lt: #e6f5ee;
    --orange: #ff9800;
    --orange-dk: #e68a00;
    --border: #e0e0e0;
    --muted: #777;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 10px;
    background-color: #f8f9fa;
    color: #2c3e50;
}

.page-wrap {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 20px;
}

h1, h2, h3 { text-align: center; }

/* ---------- Header v3 (dashed border, logo, breadcrumb) ---------- */
.header-box {
    border: 2px dashed var(--green);
    padding: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    row-gap: 8px;
    background-color: #ffffff;
    cursor: pointer;
    margin-bottom: 15px;
    border-radius: 6px;
}
.header-box .brand-left,
.header-box .brand-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.header-box img { height: 50px; width: auto; }
.header-box .site-url { font-size: 0.85rem; color: #555; font-weight: 600; }
.header-box .logo-block { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.header-box .since { font-size: 0.72rem; color: #999; font-style: italic; }

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #666;
}
.breadcrumb a {
    color: var(--green);
    text-decoration: none;
    font-weight: 600;
}

.main-menu {
    background-color: #f4f7f5;
    border: 1px solid #009900;
    border-radius: 8px;
    margin-bottom: 25px;
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}
.main-menu a {
    display: inline-block;
    padding: 10px 20px;
    color: #2c3e50;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.main-menu a:hover, .main-menu a.current {
    background-color: var(--green);
    color: #ffffff;
}

.main-page-title {
    color: var(--green);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.sottotitolo {
    text-align: center;
    color: var(--muted);
    font-size: 1.05rem;
    font-style: italic;
    margin-top: 0;
    margin-bottom: 20px;
}

.page-intro {
    background-color: #eaf3fb;
    border: 1px solid var(--border);
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---------- Barra di collegamento rapido a pagine correlate ---------- */
.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0 0 30px;
    padding: 10px;
    background-color: #eaf7f1;
    border: 1px solid var(--green);
    border-radius: 8px;
}
.quick-links a {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2c3e50;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f4f7f5;
    border: 1.5px solid #a8d9c4;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.quick-links a:hover {
    background: #eaf3fb;
    border-color: #3b82c4;
    color: #3b82c4;
}


/* ---------- Footer v3 ---------- */
footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.88rem;
    color: #555;
}
.license-box {
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #777;
}
.footer-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.footer-nav-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.footer-nav-btn.btn-index { background-color: #7b1f2e; }
.footer-nav-btn.btn-index:hover { background-color: #5a1722; }

p.contatore {
    margin-top: 12px;
    font-size: 0.8rem;
    color: #aaa;
    font-style: italic;
}
.validation-link {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #999;
}
.validation-link a {
    color: #999;
    text-decoration: none;
}
.validation-link a:hover {
    text-decoration: underline;
}

/* ---- Bottone torna su (flottante, appare dopo 300px di scroll) ---- */
#btn-top {
    position: fixed;
    bottom: 20px;
    right: 4px;
    background: #9C27B0;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: background 0.2s;
}
#btn-top:hover { background: #7a00cc; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

@media print {
    #btn-top, .main-menu, footer {
        display: none !important;
    }
}

@media (max-width: 420px) {
    .header-box img { height: 36px; }
    .header-box .site-url { font-size: 0.75rem; }
}


/* ============================================================ */
/* STUDIO INTERATTIVO DEGLI ASINTOTI                             */
/* ============================================================ */
.cd-section { margin-bottom: 26px; }
.cd-section h2 {
    margin: 10px 0 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--green);
    font-size: 1.35rem;
    color: var(--green-dk);
}

/* Parte chiara: coefficienti ed esempi */
.cd-controls { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.cd-card {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 10px;
    padding: 16px;
}
.cd-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.cd-card h3 { margin: 0; text-align: left; font-size: 1.02rem; color: #0056b3; }
.cd-link-btn {
    background: transparent; border: none; padding: 4px 2px; cursor: pointer;
    color: #b02a37; font-size: 0.85rem; font-weight: 700; font-family: inherit;
}
.cd-link-btn:hover { text-decoration: underline; }

.cd-formula { margin-top: 10px; background: #fff; border: 1px solid #d0e3ff; border-radius: 8px; padding: 8px 10px; text-align: center; overflow-x: auto; }
.cd-formula mjx-container[display="true"] { margin: 0.4em 0 !important; }

.cd-presets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cd-preset {
    background: #fff; color: #2c3e50; border: 1px solid #cbd5e1; border-radius: 6px;
    padding: 8px 10px; text-align: left; cursor: pointer; font-family: inherit;
    font-size: 0.86rem; font-weight: 700; line-height: 1.25;
}
.cd-preset span { display: block; font-size: 0.75rem; font-weight: 400; color: #5b6676; margin-top: 2px; }
.cd-preset:hover { background: #f1f5f9; border-color: #0056b3; }
.cd-preset.is-on { border-color: var(--green); background: var(--green-lt); }
.cd-preset:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Pannello scuro del laboratorio */
.cd-lab {
    --lab-bg: #0f172a;
    --lab-card: #172033;
    --lab-line: #334155;
    --lab-text: #e2e8f0;
    --lab-muted: #a8b4c7;
    --c-curve: #a5b4fc;
    --c-v: #f87171;
    --c-h: #60a5fa;
    --c-o: #34d399;
    --c-j: #fbbf24;
    background: var(--lab-bg);
    color: var(--lab-text);
    border-radius: 12px;
    border: 1px solid var(--lab-line);
    padding: 18px;
    margin-bottom: 20px;
}
.cd-lab h2 {
    margin: 0 0 12px; padding-bottom: 6px; border-bottom: 2px solid var(--c-o);
    font-size: 1.35rem; color: #fff;
}
.cd-lab h3 { text-align: left; color: #fff; font-size: 1.02rem; margin: 20px 0 10px; }
.cd-lab a { color: #93c5fd; }
.cd-lab :focus-visible { outline: 3px solid #fbbf24; outline-offset: 2px; }

.cd-lab-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cd-lab-head h3 { margin: 0; }
.cd-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.82rem; color: var(--lab-muted); align-items: center; }
.cd-lg { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 24px; height: 0; border-top: 3px solid; }
.sw-curve { border-color: var(--c-curve); }
.sw-v { border-color: var(--c-v); border-top-style: dashed; }
.sw-j { border-color: var(--c-j); border-top-style: dotted; }
.sw-hole { width: 11px; height: 11px; border: 2px solid var(--c-curve); border-radius: 50%; }
.sw-full { width: 11px; height: 11px; border: 2px solid var(--c-curve); background: var(--c-curve); border-radius: 50%; }

.cd-tools { display: flex; gap: 6px; }
.cd-tool {
    width: 38px; height: 38px; border-radius: 6px; border: 1px solid #475569;
    background: #1e293b; color: #fff; font-size: 1.15rem; font-weight: 700; cursor: pointer; font-family: inherit;
}
.cd-tool:hover { background: #334155; }

.cd-canvas-box { border: 1px solid var(--lab-line); border-radius: 8px; overflow: hidden; background: var(--lab-bg); }
.cd-canvas-box canvas { display: block; width: 100%; cursor: grab; touch-action: pan-y; }
.cd-canvas-box canvas.is-drag { cursor: grabbing; }
.cd-coord { margin: 6px 0 0; font-size: 0.82rem; color: var(--lab-muted); text-align: center; min-height: 1.3em; }

/* Sintesi */
.cd-synth { display: flex; flex-direction: column; gap: 8px; }
.cd-pill {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 14px;
    padding: 10px 14px; border-radius: 6px; font-size: 0.95rem;
    background: var(--lab-card); border-left: 5px solid var(--lab-line); color: var(--lab-text);
}
.cd-pill b { font-size: 1.02rem; color: #fff; }
.cd-pill-1 { border-left-color: var(--c-j); }
.cd-pill-2 { border-left-color: var(--c-v); }
.cd-pill-3 { border-left-color: var(--c-curve); }
.cd-pill-c { border-left-color: var(--c-o); }
.cd-pill-none { border-left-color: #64748b; color: var(--lab-muted); }
.cd-pill-err { border-left-color: #fbbf24; color: #fde68a; }

/* Dimostrazione */
.cd-steps { display: flex; flex-direction: column; gap: 12px; }
.cd-step { background: var(--lab-card); border: 1px solid var(--lab-line); border-radius: 8px; padding: 12px 16px; font-size: 0.96rem; line-height: 1.6; }
.cd-step h4 { margin: 0 0 6px; font-size: 1rem; color: #fff; text-align: left; }
.cd-step p { margin: 6px 0; }
.cd-step .cd-res { margin: 8px 0 2px; padding: 6px 12px; border-left: 4px solid var(--c-o); background: rgba(52, 211, 153, 0.10); font-weight: 600; }
.cd-step .cd-res-1 { border-left-color: var(--c-j); background: rgba(251, 191, 36, 0.10); }
.cd-step .cd-res-2 { border-left-color: var(--c-v); background: rgba(248, 113, 113, 0.10); }
.cd-step .cd-res-3 { border-left-color: var(--c-curve); background: rgba(165, 180, 252, 0.10); }
.cd-step mjx-container { color: var(--lab-text); }
.cd-step mjx-container[display="true"] { margin: 0.5em 0 !important; overflow-x: auto; overflow-y: hidden; }

@media (max-width: 800px) {
    .cd-controls { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .cd-lab { padding: 12px; }
                .cd-presets { grid-template-columns: 1fr; }
}
@media print {
    .cd-lab { background: #fff; color: #000; border-color: #999; }
    .cd-step, .cd-pill { background: #fff; color: #000; }
}
.cd-step .cd-nota { color: var(--lab-muted); font-size: 0.88rem; }

/* Prova tu */
.cd-mode { margin-top: 12px; }
.cd-check { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; color: var(--lab-text); cursor: pointer; }
.cd-check input { width: 18px; height: 18px; accent-color: #34d399; }
.cd-try { margin-top: 6px; }
.cd-try-intro { color: var(--lab-muted); font-size: 0.92rem; line-height: 1.55; margin: 0 0 12px; }
.cd-try-intro code, .cd-lab code { background: #1e293b; color: #fde68a; padding: 1px 6px; border-radius: 4px; }
.cd-q { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--lab-card); border: 1px solid var(--lab-line); border-radius: 8px; }
.cd-ql { font-weight: 600; min-width: 250px; }
.cd-tin {
    flex: 1 1 160px; min-width: 120px; max-width: 320px; height: 38px; padding: 0 10px;
    background: #0b1222; color: #e2e8f0; border: 2px solid #64748b; border-radius: 6px;
    font-size: 1rem; font-family: inherit;
}
.cd-tin-s { flex: 0 0 76px; min-width: 0; width: 76px; text-align: center; }
.cd-tin::placeholder { color: #8391a7; }
.cd-tin:focus { border-color: #34d399; outline: 3px solid #fbbf24; outline-offset: 1px; }
.cd-tin:disabled { opacity: 0.45; }
.cd-none { font-size: 0.9rem; }
.cd-fbrow { flex-basis: 100%; margin: 0; font-size: 0.92rem; line-height: 1.5; }
.cd-fbrow:empty { display: none; }
.cd-ok { color: #34d399; font-weight: 700; }
.cd-ko { color: #fbbf24; font-weight: 700; }
.cd-hint { color: var(--lab-muted); font-weight: 400; }
.cd-try-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 6px; }
.cd-btn { border: none; border-radius: 8px; padding: 11px 22px; font-size: 0.98rem; font-weight: 700; color: #fff; cursor: pointer; font-family: inherit; }
.cd-btn-go { background: #047857; }
.cd-btn-go:hover { background: #065f46; }
.cd-btn-rev { background: #334155; border: 1px solid #64748b; }
.cd-btn-rev:hover { background: #475569; }
.cd-btn-hide { background: #0f172a; color: #fdba74; border: 2px solid #fb923c; }
.cd-btn-hide:hover { background: #fb923c; color: #0f172a; }
.cd-btn-new { background: #1e293b; color: #e2e8f0; border: 2px solid #94a3b8; }
.cd-btn-new:hover { background: #e2e8f0; color: #0f172a; }
.cd-hide-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.cd-hide-wrap[hidden], .cd-btn[hidden] { display: none; }
.cd-fball { margin: 6px 0 0; font-size: 1rem; min-height: 1.4em; }
#cd-solution[hidden], .cd-try[hidden] { display: none; }
@media (max-width: 600px) { .cd-ql { min-width: 0; flex-basis: 100%; } .cd-tin { max-width: none; } }
.footer-nav-btn.btn-dsa { background-color: #ff9800; }
.footer-nav-btn.btn-dsa:hover { background-color: #e68a00; }

/* ============================================================ */
/* COSTRUISCI LE DISCONTINUITA': componenti specifici            */
/* ============================================================ */
.cd-controls { grid-template-columns: 1.5fr 1fr; }
.cd-card h3 .cd-sub { font-size: 0.82rem; font-weight: 400; color: #5b6676; }
.cd-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; }
.cd-row label { font-weight: 700; color: #2c3e50; font-size: 0.93rem; }
.cd-row-int { background: #fff; border: 1px solid #d0e3ff; border-radius: 8px; padding: 10px 12px; }
.cd-row-piece { background: #fff; border: 1px solid #d0e3ff; border-left: 5px solid #0056b3; border-radius: 8px; padding: 10px 12px; }
.cd-row-pt { background: #fff8e1; border: 1px solid #f1dfa3; border-left: 5px solid #e67700; border-radius: 8px; padding: 10px 12px; }
.cd-in {
    height: 38px; padding: 0 10px; border: 2px solid #0056b3; border-radius: 6px; background: #fff;
    color: #2c3e50; font-size: 0.98rem; font-family: inherit;
}
.cd-in:focus, .cd-sel:focus { outline: 3px solid #f59e0b; outline-offset: 1px; border-color: var(--green); background: var(--green-lt); }
.cd-in:disabled, .cd-sel:disabled { background: #eef1f4; border-color: #9aa5b1; color: #4a5565; }
.cd-in-n { width: 84px; text-align: center; font-weight: 700; }
.cd-in-expr { flex: 1 1 220px; min-width: 150px; font-family: "Courier New", monospace; font-weight: 700; }
.cd-in-val { width: 110px; text-align: center; font-weight: 700; }
.cd-sel {
    height: 38px; padding: 0 8px; border: 2px solid #0056b3; border-radius: 6px; background: #fff;
    color: #2c3e50; font-size: 0.93rem; font-family: inherit; max-width: 100%;
}
.cd-cond { font-size: 0.88rem; color: #5b6676; flex-basis: 100%; }
.cd-err { margin: 8px 0 0; padding: 8px 12px; border-radius: 6px; background: #fff3e0; color: #b25900; font-size: 0.92rem; }
.cd-err:empty { display: none; }
.cd-err.is-info { background: #eaf3fb; color: #1a5f9e; }
.cd-help { margin-top: 10px; font-size: 0.9rem; color: #2c3e50; }
.cd-help summary { cursor: pointer; font-weight: 700; color: #0056b3; }
.cd-help ul { margin: 8px 0 0 0; padding-left: 20px; }
.cd-help code { background: #eef1f4; padding: 1px 6px; border-radius: 4px; }

.cd-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.cd-tab {
    flex: 1 1 200px; padding: 11px 16px; border-radius: 8px; border: 2px solid #475569;
    background: #1e293b; color: #e2e8f0; font-size: 0.98rem; font-weight: 700; cursor: pointer; font-family: inherit;
}
.cd-tab:hover { background: #334155; }
.cd-tab.is-on { background: #047857; border-color: #34d399; color: #fff; }

.cd-pt { background: var(--lab-card); border: 1px solid var(--lab-line); border-radius: 8px; padding: 10px 14px 6px; margin-bottom: 10px; }
.cd-pt-h { margin: 0 0 8px; font-size: 1rem; font-weight: 700; color: #fff; text-align: left; }
.cd-pt-h small { font-weight: 400; color: var(--lab-muted); }
.cd-qr { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; }
.cd-qr .cd-ql { min-width: 150px; }
.cd-tsel, .cd-tin {
    height: 38px; padding: 0 8px; background: #0b1222; color: #e2e8f0; border: 2px solid #64748b; border-radius: 6px;
    font-size: 0.95rem; font-family: inherit; max-width: 100%;
}
.cd-tin { width: 120px; text-align: center; }
.cd-tsel:focus, .cd-tin:focus { border-color: #34d399; outline: 3px solid #fbbf24; outline-offset: 1px; }
.cd-tsel:disabled, .cd-tin:disabled { opacity: 0.45; }
.cd-tin[hidden] { display: none; }

.cd-chal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 6px 0 12px; }
.cd-chal-bar label { font-weight: 600; }
.cd-chal-text { background: var(--lab-card); border: 1px solid var(--lab-line); border-left: 5px solid #34d399; border-radius: 8px; padding: 12px 16px; margin-bottom: 12px; line-height: 1.6; }
.cd-chal-text p { margin: 6px 0; }
.cd-chal-text ul { margin: 6px 0 0 0; padding-left: 22px; }
.cd-chal-text li { margin-bottom: 4px; }
.cd-chal-fb { margin: 8px 0 0; padding: 0; list-style: none; }
.cd-chal-fb li { margin: 6px 0; line-height: 1.5; }
#cd-try[hidden], #cd-chal[hidden] { display: none; }

.cd-vt { border-collapse: collapse; margin: 8px 0; font-size: 0.92rem; }
.cd-vt th, .cd-vt td { border: 1px solid var(--lab-line); padding: 4px 10px; text-align: center; color: var(--lab-text); }
.cd-vt th { background: #1e293b; color: #fff; }
.cd-tscroll { overflow-x: auto; max-width: 100%; }
.cd-step .cd-nota { color: var(--lab-muted); font-size: 0.88rem; }
.cd-step ul { margin: 6px 0 6px 0; padding-left: 22px; }
.cd-formula-note { margin: 6px 0 0; font-size: 0.85rem; color: #5b6676; }

@media (max-width: 800px) { .cd-controls { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .cd-qr .cd-ql { min-width: 0; flex-basis: 100%; }
    .cd-tin { width: 100px; }
    .cd-tab { flex-basis: 100%; }
}

/* ---- Introduzione: modi di lavoro e pulsanti di accesso ---- */
.cd-modes { margin: 4px 0 10px 20px; padding: 0; }
.cd-modes li { margin: 4px 0; }
.cd-go-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; }
.cd-go { border: none; border-radius: 8px; padding: 10px 18px; font-size: 0.98rem; font-weight: 700; color: #fff; background: #047857; cursor: pointer; font-family: inherit; }
.cd-go:hover { background: #065f46; }
.cd-go[data-go="chal"] { background: #1d4ed8; }
.cd-go[data-go="chal"]:hover { background: #1e40af; }
.cd-note { margin: 6px 0 10px; font-size: 0.9rem; color: #334155; }
@media (max-width: 600px) { .cd-go { flex: 1 1 100%; } }

/* ---- Modalità guidata e riquadro della sfida (zona "Scegli o costruisci") ---- */
.cd-ptlab { font-weight: 700; margin-right: 6px; }
.cd-golab-wrap { margin-top: 14px; text-align: center; }
.cd-chalbox { background: #f0fdf4; border: 1px solid #bbf7d0; border-left: 5px solid #16a34a; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; }
.cd-chalbox h3 { margin: 0 0 8px; color: #14532d; }
.cd-chalbox .cd-chal-bar label { color: #14532d; }
.cd-chalbox .cd-chal-text { background: #fff; border: 1px solid #bbf7d0; border-left: 5px solid #16a34a; color: #1e293b; }
.cd-chalbox[hidden], #cd-presets-card[hidden] { display: none; }
.cd-controls:not(.is-guided) { grid-template-columns: 1fr; }

/* ============================================================ */
/* CORREZIONI DI ACCESSIBILITÀ (contrasto WCAG AA >= 4,5:1),     */
/* classi al posto degli stili in linea, layout su smartphone    */
/* ============================================================ */
:root { --green-dk: #00754d; --muted: #595959; }
main { display: block; }
.breadcrumb { color: #444; }
.breadcrumb a { color: #00754d; }
.main-menu a:hover, .main-menu a.current { background-color: #00754d; }
.main-page-title { color: #00754d; }
.header-box .since { color: #595959; }
.sottotitolo { color: #595959; }
.link-dsa-riga { margin-top: 8px; text-align: center; }
.link-dsa { color: #a84300; font-weight: bold; text-decoration: none; border-bottom: 1px solid #a84300; }
.footer-nav-btn.btn-dsa { background-color: #a84300; }
.footer-nav-btn.btn-dsa:hover { background-color: #8a3600; }
.nota-footer { margin-top: 10px; }
.nota-footer-2 { margin-top: 8px; }
.nota-licenza { margin-top: 8px; font-size: 0.75rem; color: #555; }
.img-licenza { border-width: 0; margin-bottom: 10px; }
.link-licenza { color: #444; font-weight: bold; }
.license-box { color: #444; }
p.contatore { color: #595959; }
.validation-link, .validation-link a { color: #595959; }

/* Smartphone: le colonne della griglia possono restringersi, la formula scorre dentro il suo riquadro */
.cd-controls > * { min-width: 0; }
.page-wrap { overflow-x: clip; }
.cd-err { color: #8f4600; }
.cd-err.is-info { color: #1a5f9e; }
