/* ═══════════════════════════════════════════════════════════════════════
   electronics-engineering — restyling 2026
   Chiaro per leggere (formule e schemi hanno fondo bianco), testata/hero/piè scuri.
   Colore per categoria: variabile --h (tinta HSL) impostata dai template.
   ═══════════════════════════════════════════════════════════════════════ */

@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url("../fonts/inter-latin-ext.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-display: swap; font-weight: 100 900;
    src: url("../fonts/inter-latin.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
    src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-display: swap; font-weight: 100 800;
    src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2-variations"); unicode-range: U+0100-02BA, U+1E00-1E9F, U+2C60-2C7F, U+A720-A7FF; }

:root {
    --ink: #0b1220;
    --ink-2: #111b31;
    --ink-3: #1b2742;
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #f0f3f9;
    --line: #e3e8f0;
    --line-2: #d3dae6;
    --text: #0f172a;
    --text-2: #475569;
    --text-3: #8a96aa;
    --brand: #2563eb;
    --brand-2: #06b6d4;
    --grad: linear-gradient(135deg, #22d3ee 0%, #3b82f6 55%, #6366f1 100%);
    --amber: #f59e0b;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 2px 8px rgba(15, 23, 42, .05);
    --shadow: 0 10px 30px rgba(15, 23, 42, .10);
    --shadow-lg: 0 24px 60px rgba(15, 23, 42, .18);
    --wrap: 1240px;
    --header-h: 68px;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body.ee {
    margin: 0; background: var(--bg); color: var(--text);
    font: 16px/1.6 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased;
}
body.ee.custom-background { background: var(--bg) !important; }
html, body.ee { overflow-x: clip; }
body.ee-lock { overflow: hidden; }
.ee a { color: var(--brand); text-decoration: none; }
.ee img { max-width: 100%; height: auto; }
.ee h1, .ee h2, .ee h3, .ee h4 { margin: 0; letter-spacing: -.015em; color: var(--text); line-height: 1.2; }
.ee p { margin: 0; }
.ee button, .ee input, .ee select, .ee textarea { font: inherit; }
.ee-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ee :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.ee .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.ee-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.ee-wrap-narrow { max-width: 860px; }
.ee-skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.ee-skip:focus { left: 8px; }

/* Barra di avanzamento della lettura */
.ee-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

/* ── Pulsanti, chip ───────────────────────────────────────────────────── */
.ee-btn {
    display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 12px; font-weight: 650; font-size: 14.5px;
    border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .1s, box-shadow .15s; white-space: nowrap;
}
.ee-btn .ee-ic { width: 18px; height: 18px; transition: transform .15s; }
.ee-btn:hover .ee-ic { transform: translateX(3px); }
.ee .ee-btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.ee .ee-btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.ee .ee-btn-light { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.ee .ee-btn-light:hover { background: rgba(255,255,255,.14); }
.ee-btn-block { width: 100%; justify-content: center; margin-top: 16px; }

.ee .ee-chip {
    display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 650;
    background: hsl(var(--h, 210) 90% 96%); color: hsl(var(--h, 210) 70% 32%); border: 1px solid hsl(var(--h, 210) 70% 88%); white-space: nowrap;
    transition: background .15s;
}
.ee .ee-chip:hover { background: hsl(var(--h, 210) 90% 92%); }
.ee-kicker { font-size: 12.5px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px !important; }
.ee .ee-more { display: inline-block; margin-top: 12px; font-size: 13.5px; font-weight: 650; }

.ee-icon-btn {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; color: var(--text-2); cursor: pointer;
    transition: background .15s, color .15s;
}
.ee-icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ── Testata ──────────────────────────────────────────────────────────── */
.ee-header {
    position: sticky; top: 0; z-index: 100; height: var(--header-h);
    background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.ee-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(15, 23, 42, .06); }
.admin-bar .ee-header { top: 32px; }
.ee-header-in { display: flex; align-items: center; gap: 28px; height: 100%; }
.ee .ee-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); flex: none; }
.ee-logo-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--grad); color: #fff; box-shadow: 0 6px 16px rgba(59, 130, 246, .35); }
.ee-logo-mark .ee-ic { width: 22px; height: 22px; }
.ee-logo-text { display: flex; flex-direction: column; line-height: 1.05; font-size: 15px; letter-spacing: -.01em; }
.ee-logo-text b { font-weight: 800; }
.ee-logo-text span { font-weight: 500; color: var(--text-2); font-size: 13.5px; }
.ee-logo-light, .ee-logo-light .ee-logo-text span { color: #fff !important; }
.ee-logo-light .ee-logo-text span { opacity: .7; }

.ee-nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.ee-nav-head { display: none; }
.ee-nav-item { position: relative; }
.ee .ee-nav-link {
    display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 10px; border: 0; background: none;
    color: var(--text-2); font-weight: 600; font-size: 14.5px; cursor: pointer; transition: background .15s, color .15s;
}
.ee .ee-nav-link:hover, .ee-nav-item.is-open > .ee-nav-link { color: var(--text); background: var(--surface-2); }
.ee-caret { width: 16px; height: 16px; transition: transform .2s; }
.ee-nav-item.is-open .ee-caret { transform: rotate(180deg); }

.ee-mega {
    position: absolute; top: calc(100% + 10px); left: -20px; z-index: 50;
    background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 22px;
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.ee-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.ee-nav-item.is-open .ee-mega { opacity: 1; visibility: visible; transform: none; }
.ee-mega-grid { display: grid; gap: 8px 24px; }
.ee-mega-courses { grid-template-columns: repeat(5, 190px); }
.ee-mega-topics { grid-template-columns: repeat(5, 200px); }
.ee .ee-mega-head { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0 -8px 8px; border-radius: 12px; color: var(--text); }
.ee .ee-mega-head:hover { background: hsl(var(--h) 90% 96%); }
.ee-mega-head b { display: block; font-size: 14.5px; }
.ee-mega-head small { display: block; font-size: 12px; color: var(--text-3); }
.ee-year-badge, .ee-topic-ico {
    display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none; font-weight: 800; font-size: 15px;
    background: hsl(var(--h) 90% 95%); color: hsl(var(--h) 70% 38%);
}
.ee-topic-ico .ee-ic { width: 19px; height: 19px; }
.ee-mega ul { list-style: none; margin: 0; padding: 0; }
.ee .ee-mega li a { display: flex; justify-content: space-between; gap: 8px; padding: 5px 8px; margin: 0 -8px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; }
.ee .ee-mega li a:hover { background: var(--surface-2); color: var(--text); }
.ee-mega li a span { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }

.ee-header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.ee-burger { display: none; }
.ee-scrim { position: fixed; inset: 0; z-index: 99; background: rgba(11, 18, 32, .45); backdrop-filter: blur(2px); }

/* Ricerca a schermo intero */
.ee-search {
    position: fixed; inset: 0; z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 20px 20px;
    background: rgba(11, 18, 32, .55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .18s;
}
.ee-search.is-open { opacity: 1; }
.ee-search[hidden], .ee-scrim[hidden], .ee-toc[hidden] { display: none !important; }
.ee-search-box { width: min(720px, 100%); background: var(--surface); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(-8px); transition: transform .2s; }
.ee-search.is-open .ee-search-box { transform: none; }
.ee-search form { display: flex; align-items: center; gap: 12px; padding: 6px 18px; border-bottom: 1px solid var(--line); }
.ee-search form .ee-ic { color: var(--text-3); width: 22px; height: 22px; }
.ee-search input { flex: 1; height: 62px; border: 0; outline: 0; font-size: 19px; background: transparent; color: var(--text); }
.ee-search kbd { font: 600 11px var(--mono); padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--text-3); }
.ee-search-hints { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 18px 18px; font-size: 13.5px; color: var(--text-3); }
.ee .ee-search-hints a { padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.ee .ee-search-hints a:hover { background: var(--line); color: var(--text); }

/* ── Hero (home) ──────────────────────────────────────────────────────── */
.ee-hero { position: relative; overflow: hidden; background: var(--ink); color: #e6ebf5; margin-top: calc(var(--header-h) * -1); padding: calc(var(--header-h) + 70px) 0 80px; }
.home .ee-header:not(.is-scrolled) { background: transparent; }
.home .ee-header:not(.is-scrolled) .ee-logo, .home .ee-header:not(.is-scrolled) .ee-nav-link,
.home .ee-header:not(.is-scrolled) .ee-icon-btn, .home .ee-header:not(.is-scrolled) .ee-logo-text span { color: #fff; }
.home .ee-header:not(.is-scrolled) .ee-nav-link:hover, .home .ee-header:not(.is-scrolled) .ee-nav-item.is-open > .ee-nav-link,
.home .ee-header:not(.is-scrolled) .ee-icon-btn:hover { background: rgba(255,255,255,.1); }
.ee-hero-bg {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 70% at 85% 10%, rgba(59, 130, 246, .35), transparent 60%),
        radial-gradient(ellipse 50% 60% at 5% 90%, rgba(34, 211, 238, .22), transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240' viewBox='0 0 240 240' fill='none' stroke='%2393c5fd' stroke-opacity='.13' stroke-width='1.5'%3E%3Cpath d='M0 40h60l20 20h60l20-20h80M0 120h30l20-20h50l20 20h120M0 200h90l20-20h40l20 20h70M40 0v30l20 20v40M160 0v20l-20 20v40M200 240v-40l20-20V100M100 240v-30l-20-20v-30'/%3E%3Ccircle cx='60' cy='40' r='3' fill='%2393c5fd' fill-opacity='.25'/%3E%3Ccircle cx='160' cy='40' r='3' fill='%2393c5fd' fill-opacity='.25'/%3E%3Ccircle cx='100' cy='100' r='3' fill='%2393c5fd' fill-opacity='.25'/%3E%3Ccircle cx='150' cy='180' r='3' fill='%2393c5fd' fill-opacity='.25'/%3E%3Ccircle cx='220' cy='100' r='3' fill='%2393c5fd' fill-opacity='.25'/%3E%3C/svg%3E");
    -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
    mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.ee-hero-in { position: relative; max-width: 980px; }
.ee-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); font-size: 13px; font-weight: 600; color: #bfd7ff; }
.ee-eyebrow .ee-ic { width: 18px; height: 18px; color: #67e8f9; }
.ee-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin: 22px 0 18px; max-width: 900px; }
.ee-hero-lead { font-size: clamp(16px, 1.6vw, 19px); color: #aab7cf; max-width: 720px; line-height: 1.6; }
.ee-hero-search {
    display: flex; align-items: center; gap: 10px; max-width: 680px; margin-top: 34px; padding: 6px 6px 6px 18px; border-radius: 16px;
    background: #fff; box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.ee-hero-search .ee-ic { color: var(--text-3); }
.ee-hero-search input { flex: 1; min-width: 0; height: 50px; border: 0; outline: 0; font-size: 16.5px; color: var(--text); background: transparent; }
.ee-hero-search button { height: 48px; padding: 0 22px; border-radius: 12px; border: 0; background: var(--grad); color: #fff; font-weight: 700; cursor: pointer; }
.ee-hero-search button:hover { filter: brightness(1.08); }
.ee-hero-search-sm { margin-top: 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.ee-stats { display: flex; flex-wrap: wrap; gap: 14px 44px; margin: 44px 0 0; }
.ee-stats div { display: flex; flex-direction: column-reverse; }
.ee-stats dt { font-size: 13px; color: #8193b1; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.ee-stats dd { margin: 0; font-size: 34px; font-weight: 800; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

/* ── Sezioni della home ───────────────────────────────────────────────── */
.ee-section { padding: 76px 0; }
.ee-section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ee-section-dark { background: var(--ink); color: #c7d2e5; }
.ee-section-dark h2 { color: #fff; }
.ee-section-dark .ee-kicker { color: #67e8f9; }
.ee-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.ee-section-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.025em; }

/* Percorso per anno */
.ee-years { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.ee-year {
    position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px;
    transition: border-color .2s, box-shadow .2s, transform .2s; overflow: hidden;
}
.ee-year::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: hsl(var(--h) 80% 55%); }
.ee-year:hover { border-color: hsl(var(--h) 70% 80%); box-shadow: var(--shadow); transform: translateY(-3px); }
.ee .ee-year-top { display: flex; align-items: center; gap: 12px; color: var(--text); margin-bottom: 14px; }
.ee-year-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: hsl(var(--h) 90% 95%); color: hsl(var(--h) 70% 36%); font-weight: 800; font-size: 20px; flex: none; }
.ee-year-title { flex: 1; min-width: 0; }
.ee-year-title b { display: block; font-size: 16px; }
.ee-year-title small { display: block; font-size: 12.5px; color: var(--text-3); }
.ee-year-go { width: 18px; height: 18px; color: var(--text-3); transition: transform .15s, color .15s; }
.ee-year:hover .ee-year-go { color: hsl(var(--h) 70% 45%); transform: translateX(3px); }
.ee-year-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ee .ee-year-list a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; }
.ee .ee-year-list a:hover { background: hsl(var(--h) 90% 96%); color: var(--text); }
.ee-year-list em { font-style: normal; color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Griglie e schede */
.ee-grid { display: grid; gap: 22px; }
.ee-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ee-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ee-grid-feature { grid-template-columns: repeat(3, 1fr); }
.ee-grid-feature .ee-card-feature { grid-column: 1 / -1; flex-direction: row; }
.ee-card {
    display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: box-shadow .2s, transform .2s, border-color .2s; min-width: 0;
}
.ee-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-2); }
.ee-card-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.ee-card-media > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.ee-card:hover .ee-card-media > img { transform: scale(1.04); }
.ee-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.ee-card-title { font-size: 17.5px; font-weight: 750; line-height: 1.3; }
.ee .ee-card-title a { color: var(--text); }
.ee .ee-card-title a:hover { color: var(--brand); }
.ee-card-excerpt { color: var(--text-2); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ee-card-meta { display: flex; gap: 14px; margin-top: auto; padding-top: 4px; font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.ee-card-feature .ee-card-media { flex: 0 0 56%; aspect-ratio: 16 / 9; }
.ee-card-feature .ee-card-body { justify-content: center; padding: 34px 38px; gap: 14px; }
.ee-card-feature .ee-card-title { font-size: clamp(21px, 2.2vw, 27px); }
.ee-card-feature .ee-card-excerpt { font-size: 16px; -webkit-line-clamp: 4; }
.ee-card-dark { background: var(--ink-2); border-color: rgba(255,255,255,.08); }
.ee-card-dark:hover { border-color: rgba(255,255,255,.18); }
.ee .ee-card-dark .ee-card-title a { color: #fff; }
.ee-card-dark .ee-card-excerpt { color: #9fb0cc; }

/* Copertina generata (articoli senza immagine) */
.ee-cover {
    position: relative; display: flex; align-items: flex-end; width: 100%; height: 100%; padding: 16px 18px; overflow: hidden; color: #fff;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' fill='none' stroke='white' stroke-opacity='.16' stroke-width='1.4'%3E%3Cpath d='M0 30h40l15 15h50l15-15h40M0 110h25l15-15h40l15 15h65M30 0v20l15 15v30M130 160v-30l15-15V80'/%3E%3Ccircle cx='40' cy='30' r='2.5' fill='white' fill-opacity='.3'/%3E%3Ccircle cx='105' cy='45' r='2.5' fill='white' fill-opacity='.3'/%3E%3Ccircle cx='80' cy='95' r='2.5' fill='white' fill-opacity='.3'/%3E%3C/svg%3E"),
        radial-gradient(circle at 80% 15%, hsl(var(--h) 90% 70% / .55), transparent 55%),
        linear-gradient(135deg, hsl(var(--h) 78% 50%), hsl(calc(var(--h) - 22) 72% 30%));
}
.ee-cover-ico { position: absolute; right: -8%; top: 50%; width: 52%; height: auto; aspect-ratio: 1; transform: translateY(-50%) rotate(-8deg); stroke-width: 1.3; opacity: .28; }
.ee-card .ee-cover-label { display: none; }
.ee-cover-label { position: relative; font-weight: 750; font-size: 14px; letter-spacing: .01em; text-shadow: 0 1px 3px rgba(0,0,0,.25); }
.ee-card-feature .ee-cover-ico { width: 40%; }

/* Argomenti e news */
.ee-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.ee-topics { display: flex; flex-direction: column; gap: 12px; }
.ee .ee-topic {
    display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--text);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ee .ee-topic:hover { border-color: hsl(var(--h) 70% 80%); box-shadow: var(--shadow-sm); transform: translateX(4px); }
.ee-topic .ee-topic-ico { width: 48px; height: 48px; border-radius: 14px; }
.ee-topic .ee-topic-ico .ee-ic { width: 24px; height: 24px; }
.ee-topic-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ee-topic-text b { font-size: 16.5px; }
.ee-topic-text em { font-style: normal; font-weight: 600; font-size: 13px; color: var(--text-3); margin-left: 6px; }
.ee-topic-text small { color: var(--text-2); font-size: 13.5px; }
.ee-topic-go { color: var(--text-3); }
.ee-news { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.ee-news .ee-section-head { margin-bottom: 18px; }
.ee-news-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ee-news-list li + li { border-top: 1px solid var(--line); }
.ee .ee-news-list a { display: flex; gap: 14px; align-items: center; padding: 12px 0; color: var(--text); }
.ee-news-thumb { width: 72px; height: 54px; border-radius: 10px; overflow: hidden; flex: none; background: var(--surface-2); }
.ee-news-thumb > img { width: 100%; height: 100%; object-fit: cover; }
.ee-news-thumb .ee-cover { padding: 0; }
.ee-news-thumb .ee-cover-label { display: none; }
.ee-news-thumb .ee-cover-ico { width: 70%; right: 15%; opacity: .5; }
.ee-news-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ee-news-text time { font-size: 12px; color: var(--text-3); font-weight: 600; }
.ee-news-text b { font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ee .ee-news-list a:hover b { color: var(--brand); }

/* ── Elenchi (categorie, ricerca, tutti gli articoli) ─────────────────── */
.ee-listing-head {
    position: relative; padding: 44px 0 36px; border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, hsl(var(--h) 90% 97%), var(--bg));
}
.ee-listing-head h1 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; }
.ee-listing-desc { color: var(--text-2); max-width: 760px; margin-top: 12px; font-size: 16.5px; }
.ee-listing-count { color: var(--text-3); font-weight: 600; margin-top: 10px !important; font-size: 14px; }
.ee-listing-head .ee-kicker { color: hsl(var(--h) 70% 42%); }
.ee-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ee .ee-subcat {
    display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2);
    color: var(--text); font-size: 14px; font-weight: 600; transition: border-color .15s, color .15s;
}
.ee .ee-subcat:hover { border-color: hsl(var(--h) 70% 55%); color: hsl(var(--h) 70% 38%); }
.ee-subcat em { font-style: normal; color: var(--text-3); font-size: 12.5px; }
.ee-listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; padding-top: 40px; padding-bottom: 80px; align-items: start; }
.ee-empty { text-align: center; padding: 70px 20px; color: var(--text-2); background: var(--surface); border: 1px dashed var(--line-2); border-radius: 20px; }
.ee-empty .ee-ic { width: 36px; height: 36px; color: var(--text-3); }
.ee-empty h2 { margin: 12px 0 6px; }

/* Paginazione */
.ee .navigation.pagination { margin-top: 40px; }
.ee .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ee .page-numbers {
    display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
    color: var(--text); font-weight: 650; font-size: 14.5px;
}
.ee a.page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.ee .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.ee .page-numbers.dots { border: 0; background: none; }
.ee .page-numbers .ee-ic { width: 18px; height: 18px; }

/* Briciole di pane */
.ee-crumbs { font-size: 13.5px; color: var(--text-3); margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.ee .ee-crumbs a { color: var(--text-2); }
.ee .ee-crumbs a:hover { color: var(--brand); }
.ee-crumbs > span:last-child { color: var(--text-3); }

/* ── Articolo ─────────────────────────────────────────────────────────── */
.ee-article-head { padding: 40px 0 34px; background: linear-gradient(180deg, hsl(var(--h, 210) 90% 97%), var(--bg)); border-bottom: 1px solid var(--line); }
.ee-article-cats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ee-article-title { font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; max-width: 920px; }
.ee-article-lead { font-size: 18.5px; color: var(--text-2); max-width: 760px; margin-top: 14px !important; line-height: 1.6; }
.ee-article-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 20px; font-size: 14px; color: var(--text-2); }
.ee-article-meta > * { display: inline-flex; align-items: center; gap: 7px; }
.ee-article-meta .ee-ic { width: 16px; height: 16px; color: var(--text-3); }
.ee .ee-article-meta a { color: var(--text-2); }
.ee .ee-article-meta a:hover { color: var(--brand); }
.ee-article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 40px; padding-bottom: 80px; align-items: start; }
.ee-article-main { min-width: 0; }
.ee-article-hero { margin: 0 0 34px; max-width: 780px; }
.ee-article-hero img { display: block; max-height: 520px; width: auto; border-radius: 18px; box-shadow: var(--shadow); }

/* Testo dell'articolo */
.ee-prose { font-size: 17.5px; line-height: 1.78; color: #1e293b; max-width: 780px; overflow-wrap: break-word; }
.ee-prose > * + *, .ee-prose #descrizioneArgomentoTesto > * + * { margin-top: 1.1em; }
.ee-prose p { margin: 0 0 1.1em; }
.ee-prose h2 { font-size: 1.6em; font-weight: 800; margin: 2em 0 .6em; letter-spacing: -.02em; scroll-margin-top: calc(var(--header-h) + 20px); }
.ee-prose h3 { font-size: 1.28em; font-weight: 750; margin: 1.7em 0 .5em; scroll-margin-top: calc(var(--header-h) + 20px); }
.ee-prose h4 { font-size: 1.08em; font-weight: 750; margin: 1.5em 0 .4em; }
.ee-prose a { color: var(--brand); text-decoration: underline; text-decoration-color: rgba(37, 99, 235, .35); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.ee-prose a:hover { text-decoration-color: currentColor; }
.ee-prose ul, .ee-prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.ee-prose li { margin: .35em 0; }
.ee-prose li::marker { color: var(--text-3); }
.ee-prose img { border-radius: 10px; }
.ee-prose img.aligncenter, .ee-prose .aligncenter { display: block; margin-left: auto; margin-right: auto; }
.ee-prose .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.ee-prose .alignright { float: right; margin: .3em 0 1em 1.4em; }
.ee-prose img[src*="quicklatex"], .ee-prose img.ql-img-inline-formula, .ee-prose img.ql-img-displayed-equation { border-radius: 0; vertical-align: middle; }
.ee-prose figure, .ee-prose .wp-caption {
    margin: 1.8em auto; padding: 14px; max-width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-align: center;
    font-style: normal; font-size: 14px; color: var(--text-2); line-height: 1.5;
}
.ee-prose figcaption, .ee-prose .wp-caption-text { margin-top: 10px; font-size: 14px; color: var(--text-2); }
.ee-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid; border-image: var(--grad) 1; color: var(--text-2); font-size: 1.04em; }
.ee-prose hr { border: 0; height: 1px; background: var(--line); margin: 2.4em 0; }
.ee-prose code { font-family: var(--mono); font-size: .86em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: .12em .4em; }
.ee-prose pre {
    font-family: var(--mono); font-size: 14.5px; line-height: 1.65; background: #0d1526; color: #e2e8f0; border-radius: 14px; padding: 18px 20px;
    overflow-x: auto; margin: 1.6em 0; border: 1px solid #1e2a44;
}
.ee-prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.ee-table-wrap { overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.ee-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.ee-prose th, .ee-prose td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ee-prose th { background: var(--surface-2); font-weight: 700; color: var(--text); }
.ee-prose tr:last-child td { border-bottom: 0; }
.ee-prose iframe, .ee-prose video, .ee-prose embed { max-width: 100%; border-radius: 12px; }
.ee-prose .lyte-wrapper, .ee-prose .lyte { border-radius: 14px; overflow: hidden; margin-left: auto; margin-right: auto; }
.ee #allegato { padding: 20px 24px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 14px; background: var(--surface); font-size: 15.5px; line-height: 1.65; box-shadow: var(--shadow-sm); }
.ee #allegato p { margin: 0 0 .7em; }
.ee-prose::after { content: ""; display: table; clear: both; }

/* Avviso degli articoli d'archivio */
.ee-prose .ee-archive-note {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; font-size: 15px; line-height: 1.55;
    background: #fff8e6; border: 1px solid #f6d58a; color: #7a5200; margin-bottom: 1.6em;
}
.ee-prose .ee-archive-note::before { content: "⚠"; font-size: 17px; line-height: 1.35; }

/* Plugin dentro il testo */
.ee .code-block { margin: 1.4em 0 !important; }
.ee .addtoany_share_save_container { margin: 2em 0 0 !important; padding-top: 1.4em; border-top: 1px solid var(--line); }
.ee .a2a_kit a { margin-right: 4px; }
.ee .a2a_svg { border-radius: 10px !important; }
.ee .yasr-visitor-votes, .ee .yasr-vv-text-container { font-size: 14px; color: var(--text-2); }

.ee-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 30px; color: var(--text-3); }
.ee-tags .ee-ic { width: 18px; height: 18px; }
.ee .ee-tags a { padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2); font-size: 13px; font-weight: 600; }
.ee .ee-tags a:hover { border-color: var(--brand); color: var(--brand); }
.ee-edit { margin-top: 16px !important; font-size: 13.5px; }
.ee-pages { display: flex; gap: 8px; align-items: center; margin-top: 24px; font-weight: 600; }

.ee-prevnext { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.ee .ee-pn { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.ee .ee-pn:hover { border-color: var(--brand); box-shadow: var(--shadow-sm); }
.ee-pn small { display: inline-flex; align-items: center; gap: 4px; color: var(--text-3); font-weight: 650; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.ee-pn small .ee-ic { width: 15px; height: 15px; }
.ee-pn b { font-size: 15.5px; line-height: 1.35; }
.ee-pn-next { text-align: right; align-items: flex-end; grid-column: 2; }

/* Articoli correlati (Contextual Related Posts) */
.ee-related { margin-top: 56px; }
.ee-related h2 { font-size: 24px; font-weight: 800; margin-bottom: 20px; }
.ee-related .ee-card-title { font-size: 15.5px; }
.ee-related .ee-card-body { padding: 14px 16px 16px; gap: 8px; }
.ee .crp_related { margin: 0; }
.ee .crp_related h3, .ee .crp_related h2 { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.ee .crp_related ul { list-style: none; margin: 0; padding: 0; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.ee .crp_related li { margin: 0 !important; width: auto !important; float: none !important; border-radius: 14px !important; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: none !important; transition: box-shadow .2s, transform .2s; }
.ee .crp_related li:hover { box-shadow: var(--shadow-sm) !important; transform: translateY(-2px); }
.ee .crp_related a { display: flex !important; flex-direction: column; width: auto !important; height: auto !important; box-shadow: none !important; border-radius: 0 !important; color: var(--text); }
.ee .crp_related img { width: 100% !important; height: 110px !important; object-fit: cover; border-radius: 0 !important; margin: 0 !important; }
.ee .crp_related .crp_title {
    position: static !important; width: auto !important; padding: 10px 12px 12px !important; background: none !important; color: var(--text) !important;
    font-size: 13.5px !important; font-weight: 650; line-height: 1.35; text-shadow: none !important; border-radius: 0 !important; bottom: auto !important;
}
.ee .crp_clear { display: none; }

/* Commenti */
.ee-comments { margin-top: 50px; }
.ee #wpdcom { max-width: 100% !important; padding: 0 !important; }
.ee #wpdcom .wpd-thread-head { border-bottom-color: var(--line) !important; }
.ee #wpdcom .wpd-form-head { border-bottom-color: var(--line) !important; }
.ee #wpdcom textarea, .ee #wpdcom input[type=text], .ee #wpdcom input[type=email], .ee #wpdcom input[type=url] { border-radius: 10px !important; }
.ee #wpdcom .wc_comm_submit, .ee #wpdcom .wpd-prim-button { background: var(--brand) !important; border-radius: 10px !important; }

/* ── Colonna laterale ─────────────────────────────────────────────────── */
.ee-rail { display: flex; flex-direction: column; gap: 18px; align-self: stretch; }
.ee-toc { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
.admin-bar .ee-toc { top: calc(var(--header-h) + 52px); }
.ee-toc, .ee-rail-card, .ee-widgets .widget, .ee-widgets .sidebar-widget {
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px;
}
.ee-toc h4, .ee-rail-card h4, .ee-widgets .sidebar-headline, .ee-widgets .widget-title, .ee-widgets h2 {
    display: flex; align-items: center; gap: 8px; font-size: 12.5px !important; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3) !important;
    margin: 0 0 12px !important;
}
.ee-toc h4 .ee-ic { width: 16px; height: 16px; }
.ee-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.ee .ee-toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-2); font-size: 14px; line-height: 1.4; }
.ee .ee-toc a:hover { color: var(--text); }
.ee .ee-toc a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 650; }
.ee .ee-toc .ee-toc-h3 a { padding-left: 28px; font-size: 13.5px; }
.ee-rail-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ee-rail-list li + li { border-top: 1px solid var(--line); }
.ee .ee-rail-list a { display: block; padding: 9px 0; color: var(--text); font-size: 14px; font-weight: 550; line-height: 1.4; }
.ee .ee-rail-list a:hover { color: var(--brand); }

.ee-widgets { display: flex; flex-direction: column; gap: 18px; }
.ee-widgets .sidebar-widget-inner { padding: 0; }
.ee-widgets ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.ee-widgets ul ul { padding-left: 14px; margin: 2px 0 4px; border-left: 1px solid var(--line); }
.ee-widgets li { padding: 3px 0; color: var(--text-3); line-height: 1.45; }
.ee .ee-widgets li a { color: var(--text-2); }
.ee .ee-widgets li a:hover { color: var(--brand); }
.ee-widgets .widget_recent_entries li, .ee-widgets .widget_recent_comments li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.ee-widgets .widget_recent_entries li:last-child, .ee-widgets .widget_recent_comments li:last-child { border-bottom: 0; }
.ee .ee-widgets .widget_recent_entries a { color: var(--text); font-weight: 550; }
.ee-widgets .widget_search .sidebar-headline { display: none; }
.ee-widgets .widget_meta { display: none; }
.ee-collapsible ul { max-height: 280px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.ee-collapsible.is-expanded ul { max-height: none; -webkit-mask-image: none; mask-image: none; }
.ee-expand { margin-top: 10px; padding: 0; border: 0; background: none; color: var(--brand); font-weight: 650; font-size: 13.5px; cursor: pointer; }
.ee-searchform { display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.ee-searchform .ee-ic { color: var(--text-3); width: 18px; height: 18px; }
.ee-searchform input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14.5px; color: var(--text); }
.ee-searchform:focus-within { border-color: var(--brand); background: var(--surface); }

/* Pagina e 404 */
.ee-page .ee-prose { margin: 40px auto 80px; }
.ee-404 { padding: 110px 0 120px; text-align: center; }
.ee-404-code { font-size: 120px; font-weight: 900; line-height: 1; letter-spacing: -.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ee-404 h1 { font-size: 32px; margin: 12px 0 10px; }
.ee-404 p { color: var(--text-2); }
.ee-404 .ee-hero-search { margin: 30px auto 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }

/* ── Piè di pagina ────────────────────────────────────────────────────── */
.ee-footer { background: var(--ink); color: #94a3c0; padding: 64px 0 28px; }
.ee-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.ee-footer-about p { margin-top: 16px; font-size: 14.5px; line-height: 1.65; max-width: 380px; }
.ee-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.ee-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.ee .ee-footer a { color: #b6c3da; }
.ee .ee-footer a:hover { color: #fff; }
.ee-footer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13.5px; }
.ee-totop { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.05); color: #fff; cursor: pointer; }
.ee-totop:hover { background: rgba(255,255,255,.12); }

/* Banner dei cookie (CookieLawInfo): scheda compatta in basso */
.ee #cookie-law-info-bar {
    left: 20px !important; right: auto !important; bottom: 20px !important; max-width: 400px; line-height: 1.5; border-radius: 18px !important; padding: 16px 18px !important;
    box-shadow: var(--shadow-lg) !important; border: 1px solid var(--line) !important; background: var(--surface) !important; color: var(--text-2) !important; font-size: 13.5px !important; text-align: left !important;
}
.ee #cookie-law-info-bar .cli-bar-container { flex-direction: column; align-items: stretch; gap: 12px; }
.ee #cookie-law-info-bar .cli-bar-message { width: auto !important; }
.ee #cookie-law-info-bar .cli-bar-btn_container { display: flex; gap: 8px; margin: 0 !important; }
.ee #cookie-law-info-bar .cli-plugin-button, .ee #cookie-law-info-bar .cli_settings_button { border-radius: 10px !important; padding: 9px 14px !important; font-weight: 650; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1240px) {
    .ee-mega-courses, .ee-mega-topics { grid-template-columns: repeat(3, 200px); }
    .ee-years { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
    .ee-article-layout, .ee-listing-layout { grid-template-columns: minmax(0, 1fr); }
    .ee-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); align-items: start; }
    .ee-toc { display: none; }
    .ee-split { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
    :root { --header-h: 62px; }
    .ee-burger { display: inline-grid; }
    .ee-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
    .home .ee-header:not(.is-scrolled) { background: var(--ink); }
    .ee-nav {
        position: fixed; top: 0; right: 0; bottom: 0; z-index: 150; width: min(380px, 88vw); flex-direction: column; align-items: stretch; gap: 2px;
        background: var(--surface); padding: 14px 14px 30px; overflow-y: auto; transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
        box-shadow: var(--shadow-lg);
    }
    .ee-nav.is-open { transform: none; }
    .ee-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
    .ee .ee-nav-link { width: 100%; justify-content: space-between; height: 48px; font-size: 16px; color: var(--text) !important; }
    .ee-mega { position: static; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; padding: 4px 0 10px 6px; border-radius: 0; }
    .ee-nav-item.is-open .ee-mega { display: block; }
    .ee-mega-courses, .ee-mega-topics { grid-template-columns: 1fr; gap: 14px; }
    .ee-mega ul { display: none; }
    .home .ee-header:not(.is-scrolled) .ee-nav .ee-nav-link { color: var(--text); }
    .ee-years { grid-template-columns: repeat(2, 1fr); }
    .ee-grid-feature, .ee-grid-3 { grid-template-columns: repeat(2, 1fr); }
    .ee-grid-feature .ee-card-feature { flex-direction: column; }
    .ee-card-feature .ee-card-media { flex: none; }
    .ee-footer-grid { grid-template-columns: 1fr 1fr; }
    .ee-footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .ee-wrap { padding: 0 18px; }
    .ee-hero { padding: calc(var(--header-h) + 44px) 0 56px; }
    .ee-hero-search { padding-left: 14px; }
    .ee-hero-search button { padding: 0 16px; }
    .ee-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
    .ee-stats dd { font-size: 26px; }
    .ee-section { padding: 54px 0; }
    .ee-years, .ee-grid-2, .ee-grid-3, .ee-grid-feature { grid-template-columns: 1fr; }
    .ee-grid-feature .ee-card-feature { flex-direction: column; }
    .ee-card-feature .ee-card-media { flex: none; }
    .ee-card-feature .ee-card-body { padding: 18px 20px 20px; }
    .ee-prose { font-size: 17px; }
    .ee-prose .alignleft, .ee-prose .alignright { float: none; margin: 1em auto; display: block; }
    .ee-prevnext { grid-template-columns: 1fr; }
    .ee-pn-next { grid-column: auto; }
    .ee-logo-text { font-size: 14px; }
    .ee-news { padding: 20px; }
    .ee #cookie-law-info-bar { left: 10px !important; right: 10px !important; bottom: 10px !important; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
    .ee *, .ee *::before, .ee *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print {
    .ee-header, .ee-footer, .ee-rail, .ee-progress, .ee-prevnext, .ee-related, .ee-comments, .code-block, .addtoany_share_save_container { display: none !important; }
    .ee-article-layout { display: block; }
}
