/* M 3.5 — design system (da motore_servizi + menu) */
:root {
    --m35-bg: #081014;
    --m35-accent: #00D185;
    --m35-accent-bright: #00ff9d;
    --m35-slate: #A9B4C4;
    --m35-border: rgba(255, 255, 255, 0.12);
    --m35-ink: #EAECEF;
    --m35-panel: rgba(255, 255, 255, 0.04);
    --m35-panel-strong: rgba(255, 255, 255, 0.07);
}

* { box-sizing: border-box; }

.m35-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;
}

body.m35-body {
    margin: 0;
    background: var(--m35-bg);
    color: #fff;
    font-family: 'Inter', system-ui, sans-serif;
    overflow-x: hidden;
}

#background-animation-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at center, #0F1F26 0%, #05080A 100%);
    pointer-events: none;
}

.m35-content-wrap {
    position: relative;
    z-index: 1;
}

.m35-page-body {
    background: transparent;
}

.m35-font-mono { font-family: 'Roboto Mono', monospace; }

/* --- Site header / logo (shown on every page) --- */
.m35-site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.25rem 3rem;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(8, 16, 20, 0.92) 0%, rgba(8, 16, 20, 0) 100%);
    pointer-events: none;
}

.m35-site-header > * { pointer-events: auto; }

.m35-site-header a.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
}

.m35-site-header img { height: 48px; width: auto; }

.m35-header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.m35-header-pages {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.m35-header-pages a {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease;
}

.m35-header-pages a:hover { color: var(--m35-accent); }

.m35-site-header .system-status-badge {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.65rem;
    color: var(--m35-accent);
    border: 1px solid rgba(0, 209, 133, 0.4);
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Navigation --- */
.m35-mobile-toggle {
    display: none;
    position: fixed;
    top: 25px;
    right: 1.5rem;
    background: rgba(8, 16, 20, 0.9);
    border: 1px solid var(--m35-accent);
    color: var(--m35-accent);
    padding: 10px 15px;
    border-radius: 6px;
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    z-index: 1000001;
    cursor: pointer;
}

.m35-nav-container {
    position: fixed;
    top: 85px;
    right: 2rem;
    display: flex;
    gap: 10px;
    z-index: 999999;
}

.nav-cat-wrapper { position: static; }

.nav-main-btn {
    background: rgba(8, 16, 20, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 209, 133, 0.4);
    padding: 8px 16px;
    border-radius: 4px;
    color: var(--m35-accent);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.nav-cat-wrapper:hover .nav-main-btn,
.nav-cat-wrapper.active-mobile .nav-main-btn {
    border-color: var(--m35-accent-bright);
    color: var(--m35-accent-bright);
    background: rgba(0, 255, 157, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 157, 0.2);
}

.m35-mega-panel {
    position: fixed;
    top: 130px;
    left: 2.5%;
    width: 95%;
    max-height: 80vh;
    background: rgba(8, 16, 20, 0.98);
    border: 1px solid var(--m35-accent-bright);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.4s;
    backdrop-filter: blur(20px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    overflow-y: auto;
    z-index: 999998;
}

.nav-cat-wrapper:hover .m35-mega-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-cat-title {
    color: var(--m35-accent);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(0, 209, 133, 0.2);
    padding-bottom: 6px;
}

.dropdown-item {
    display: block;
    padding: 12px;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.2s;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 8px;
}

.dropdown-item:hover {
    background: rgba(0, 255, 157, 0.08);
    transform: translateX(5px);
}

.item-info h4 { margin: 0; color: #fff; font-size: 0.85rem; font-weight: 600; }
.item-info p { margin: 4px 0 0; color: #94a3b8; font-size: 0.75rem; line-height: 1.4; }
.item-tags {
    margin-top: 6px;
    font-size: 0.6rem;
    color: var(--m35-accent);
    font-family: 'Roboto Mono', monospace;
    background: rgba(0, 209, 133, 0.1);
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
}

.nav-portal-link {
    background: rgba(0, 209, 133, 0.15) !important;
    border-color: var(--m35-accent) !important;
}

/* --- Home --- */
.m35-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 2rem 4rem;
    text-align: center;
}

.m35-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 1rem;
}

.m35-hero p {
    color: #94a3b8;
    font-size: 1.2rem;
    max-width: 640px;
    line-height: 1.7;
}

.m35-macro-section {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto 4rem;
}

.m35-macro-title {
    font-family: 'Roboto Mono', monospace;
    color: var(--m35-accent);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--m35-accent);
    padding-left: 12px;
}

.m35-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.m35-service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 209, 133, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: 0.25s;
}

.m35-service-card:hover {
    border-color: var(--m35-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 209, 133, 0.15);
}

.m35-service-card-thumb { aspect-ratio: 1.4; background: var(--m35-panel-strong); border-radius: 8px; overflow: hidden; margin-bottom: 1rem; }
.m35-service-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.m35-service-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.m35-service-card p { margin: 0; color: #94a3b8; font-size: 0.9rem; line-height: 1.5; }
.m35-service-card .cat {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.65rem;
    color: var(--m35-accent);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: block;
}

.dropdown-item-registry {
    border: 1px dashed rgba(0, 209, 133, 0.35) !important;
    background: rgba(0, 209, 133, 0.04) !important;
}

.dropdown-item-registry:hover {
    background: rgba(0, 209, 133, 0.12) !important;
}

/* --- Service page --- */
.m35-page-body { color: var(--m35-ink); font-family: 'Inter', sans-serif; }

.btn-back-dynamic {
    position: fixed;
    top: 105px;
    left: 3rem;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--m35-bg);
    padding: 10px 20px;
    border: 1.5px solid rgba(8, 16, 20, 0.1);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100000;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-back-dynamic:hover {
    background: var(--m35-bg);
    color: var(--m35-accent);
    border-color: var(--m35-bg);
}

.page-island {
    background: rgba(20, 30, 35, 0.85);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 60px;
    margin: 10rem auto 3rem;
    padding: 5rem 4rem;
    position: relative;
    z-index: 1;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    max-width: 1200px;
}

.category-badge {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 8px 16px;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-island h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 1rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.lead-text { font-size: 1.25rem; color: var(--m35-slate); line-height: 1.7; margin-bottom: 3rem; }

.content-area { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; }

article h2 { font-size: 2rem; color: var(--m35-ink); margin-top: 2.5rem; border-bottom: 2px solid var(--m35-border); padding-bottom: 10px; }
article p, article li { font-size: 1.1rem; line-height: 1.8; color: var(--m35-slate); }

.action-box {
    background: var(--m35-panel);
    border: 1px solid var(--m35-border);
    border-radius: 24px;
    padding: 2.5rem;
    position: sticky;
    top: 30px;
}

.m35-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

.form-group { position: relative; }

.form-group.field-valid input,
.form-group.field-valid textarea { border-color: #22c55e; }

.form-group.field-invalid input,
.form-group.field-invalid textarea { border-color: #dc2626; }

.field-hint {
    display: block;
    font-size: 0.78rem;
    margin-top: 4px;
    min-height: 1em;
}

.form-group.field-invalid .field-hint { color: #dc2626; }
.form-group.field-valid .field-hint { color: #16a34a; }

.char-counter {
    display: block;
    text-align: right;
    font-size: 0.72rem;
    color: var(--m35-slate, #8892B0);
    margin-top: 2px;
}

.btn-primary.loading { opacity: 0.7; cursor: wait; }

.m35-file-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--m35-ink);
    margin-bottom: 6px;
}

.m35-file-label input[type="file"] {
    display: block;
    width: 100%;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--m35-slate, #475569);
}

.m35-lead-success {
    background: rgba(0, 209, 133, 0.1);
    border: 1px solid #00D185;
    border-left: 4px solid #00D185;
    color: #6ee7b7;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.m35-form-consent { font-size: 0.75rem; color: var(--m35-slate); line-height: 1.4; margin: 4px 0 0; }
.m35-form-consent a { color: var(--m35-accent-bright, #00D185); }

.m35-pay-btn { text-decoration: none; text-align: center; box-sizing: border-box; }
.m35-pay-btn:hover { opacity: 0.92; }

.m35-pay-divider {
    text-align: center;
    font-size: 0.85rem;
    color: var(--m35-slate);
    margin: 1.5rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px dashed var(--m35-border);
}

.form-error {
    display: block;
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* Modulo guidato centrale (es. acquisto dominio) */
.m35-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 10, 0.85);
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 1.25rem;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
}

.m35-modal-overlay.open { opacity: 1; visibility: visible; }

.m35-modal-box {
    position: relative;
    width: 100%;
    max-width: 560px;
    background: var(--m35-bg, #0B0F14);
    border: 1px solid var(--m35-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.m35-modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--m35-slate);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.m35-modal-close:hover { color: var(--m35-ink); }

.m35-guided-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--m35-ink);
    margin-bottom: 6px;
}

.m35-guided-hint {
    display: block;
    font-size: 0.76rem;
    color: var(--m35-slate);
    line-height: 1.45;
    margin-top: 5px;
}

@media (max-width: 640px) {
    .m35-modal-box { padding: 1.75rem 1.25rem; border-radius: 16px; }
}

.form-group { margin-bottom: 15px; }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

.btn-primary {
    display: block;
    width: 100%;
    color: #fff;
    padding: 15px 0;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    margin-top: 10px;
}

.m35-image-container {
    position: relative;
    width: calc(100% + 8rem);
    height: 350px;
    overflow: hidden;
    border-radius: 60px 60px 0 0;
    margin: -5rem -4rem 3rem;
    background: var(--m35-bg);
}

.service-hero-img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; }

.video-embed { margin: 2rem 0; border-radius: 12px; overflow: hidden; background: #000; }
.video-embed video { width: 100%; display: block; }

.sedi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 2.5rem;
}

.sede-card {
    background: var(--m35-panel);
    border: 1px solid var(--m35-border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.sede-card h4 {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    color: #0D9488;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Roboto Mono', monospace;
}

.sede-card p { margin: 0; font-size: 0.95rem; line-height: 1.6; color: var(--m35-slate); }

.m35-site-footer {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    padding: 2.5rem 3rem 3rem;
    background: rgba(8, 16, 20, 0.6);
    border-top: 1px solid rgba(0, 209, 133, 0.2);
    color: #8892B0;
    font-size: 0.85rem;
    line-height: 1.7;
}

.m35-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.m35-footer-inner strong { color: #EAECEF; }

.m35-footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.m35-footer-links a { color: #8892B0; text-decoration: none; font-family: 'Roboto Mono', monospace; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.m35-footer-links a:hover { color: var(--m35-accent); }

@media (max-width: 700px) {
    .m35-site-footer { padding: 2rem 1.5rem; }
    .m35-footer-inner { flex-direction: column; align-items: flex-start; }
}

.story-timeline {
    position: relative;
    margin: 2.5rem 0;
    padding-left: 2rem;
    border-left: 3px solid var(--m35-border);
}

.story-item { position: relative; margin-bottom: 2.5rem; }
.story-item:last-child { margin-bottom: 0; }

.story-item::before {
    content: '';
    position: absolute;
    left: -2.09rem;
    top: 0.4rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0D9488;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px #0D9488;
}

.story-year {
    display: inline-block;
    font-family: 'Roboto Mono', monospace;
    font-weight: bold;
    color: #0D9488;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

.story-item h3 { margin: 0 0 0.5rem; font-size: 1.3rem; color: var(--m35-ink); }
.story-item p { margin: 0; font-size: 1.05rem; line-height: 1.7; color: var(--m35-slate); }

.m35-legal-notice {
    background: rgba(13, 148, 136, 0.08);
    border: 1px solid #0D948840;
    border-left: 4px solid #0D9488;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 2rem 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--m35-slate);
}

.m35-legal-notice strong { color: #2dd4bf; }

.m35-expertise-box {
    background: rgba(234, 179, 8, 0.08);
    border: 1px solid #EAB30840;
    border-left: 4px solid #EAB308;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
}

.m35-expertise-box h3 { margin-top: 0; color: var(--m35-ink); }
.m35-expertise-box p { font-size: 1rem; line-height: 1.7; color: var(--m35-slate); }
.m35-expertise-box p:last-child { margin-bottom: 0; }

.m35-tools-box {
    background: rgba(236, 72, 153, 0.06);
    border: 1px solid #EC489940;
    border-left: 4px solid #EC4899;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
}

.m35-tools-box h3 { margin-top: 0; color: var(--m35-ink); }

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.tool-card { background: var(--m35-panel); border: 1px solid rgba(236, 72, 153, 0.25); border-radius: 10px; padding: 1.1rem 1.25rem; }
.tool-card h4 { margin: 0.4rem 0 0.35rem; font-size: 1rem; }
.tool-card h4 a { color: var(--m35-ink); text-decoration: none; border-bottom: 1px dotted #EC4899; }
.tool-card h4 a:hover { color: #EC4899; }
.tool-card p { margin: 0 0 0.6rem; font-size: 0.88rem; line-height: 1.5; color: var(--m35-slate); }
.tool-guide-link { font-size: 0.85rem; font-weight: bold; color: #EC4899; text-decoration: none; }
.tool-guide-link:hover { text-decoration: underline; }

.tool-badge {
    display: inline-block;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 20px;
}

.tool-badge-free { background: #dcfce7; color: #166534; }
.tool-badge-paid { background: #fef3c7; color: #92400e; }

.tools-note { margin: 0; font-size: 0.95rem; color: var(--m35-slate); font-style: italic; }

.module-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.25rem;
    margin: 1.5rem 0 2.5rem;
}

.module-card {
    background: var(--m35-panel);
    border: 1px solid var(--m35-border);
    border-radius: 14px;
    overflow: hidden;
    text-align: center;
}

.module-card-thumb { aspect-ratio: 1.4; background: var(--m35-panel-strong); }
.module-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.module-card-body { padding: 0.75rem 0.5rem 1rem; }
.module-card-body h5 { margin: 0 0 6px; font-size: 0.85rem; color: var(--m35-ink); }

.module-badge {
    display: inline-block;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 8px;
    border-radius: 20px;
}

.module-badge.active { color: #166534; background: #dcfce7; }
.module-badge.soon { color: #92400e; background: #fef3c7; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0 2.5rem;
}

.pricing-card {
    background: var(--m35-panel);
    border: 1px solid var(--m35-border);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured { border-color: var(--m35-accent); box-shadow: 0 8px 24px rgba(0, 209, 133, 0.12); }

.pricing-card h4 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--m35-ink); }

.pricing-card .price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--m35-accent);
    margin-bottom: 1rem;
}

.pricing-card .price span { font-size: 0.85rem; font-weight: 500; color: var(--m35-slate); }

.pricing-card ul { list-style: none; padding: 0; margin: 0; flex-grow: 1; }
.pricing-card ul li {
    font-size: 0.9rem;
    color: var(--m35-slate);
    padding-left: 22px;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.4;
}
.pricing-card ul li::before { content: '✓'; color: var(--m35-accent); position: absolute; left: 0; font-weight: bold; }

.related-services { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--m35-border); }

.related-title { font-size: 1.5rem; color: var(--m35-ink); margin: 0 0 1.5rem; }

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.related-card {
    display: block;
    background: var(--m35-panel);
    border: 1px solid var(--m35-border);
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08); }

.related-card-thumb {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.06);
}

.related-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.related-card-badge {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.related-card h3 { font-size: 1.1rem; margin: 0.5rem 0; color: var(--m35-ink); }
.related-card p { font-size: 0.9rem; color: var(--m35-slate); line-height: 1.5; margin: 0; }

.m35-coming-soon {
    background: #fef3c7;
    color: #92400e;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    border: 1px solid #fde68a;
}

@media (max-width: 1100px) {
    .m35-mobile-toggle { display: block !important; }
    .m35-nav-container {
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(8, 16, 20, 0.98);
        padding: 80px 20px 40px;
        gap: 15px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: 0.4s;
        z-index: 1000000;
    }
    .m35-nav-container.mobile-open { transform: translateX(0); }
    .nav-cat-wrapper { width: 100%; }
    .nav-main-btn { width: 100%; text-align: center; padding: 15px; font-size: 0.95rem; }
    .m35-mega-panel {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        display: none;
        transform: none;
        padding: 15px 0;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--m35-accent);
        border-radius: 0;
        background: transparent;
    }
    .nav-cat-wrapper.active-mobile .m35-mega-panel { display: grid; }
}

@media (max-width: 900px) {
    .m35-site-header { padding: 1rem; }
    .m35-site-header .system-status-badge { display: none; }
    .m35-header-pages { display: none; }
    .m35-site-header img { height: 36px; }
    .content-area { grid-template-columns: 1fr; }
    .page-island { border-radius: 30px; padding: 3rem 1.5rem; margin: 7rem 10px 2rem; }
    .page-island h1 { font-size: 2.5rem; }
    .m35-image-container {
        width: calc(100% + 3rem);
        height: 250px;
        margin: -3rem -1.5rem 2rem;
        border-radius: 30px 30px 0 0;
    }
    .btn-back-dynamic { top: 85px; left: 1rem; padding: 10px; }
    .btn-back-dynamic span { display: none; }
}
