/* ==========================================================
   BLOG MDB Milano — impaginazione da giornale (9/11/2026)
   Grafica del sito: fondo scuro, viola, Montserrat
   ========================================================== */
.nw {
    --nw-bg: #0a0a0a;
    --nw-ink: #ffffff;
    --nw-ink-2: rgba(255, 255, 255, .72);
    --nw-ink-3: rgba(255, 255, 255, .5);
    --nw-rule: rgba(255, 255, 255, .12);
    --nw-violet: #8b5cf6;
    --nw-violet-2: #a78bfa;
    background: var(--nw-bg);
    color: var(--nw-ink);
    padding: 120px 0 80px;
    position: relative;
}
.nw::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 520px;
    background:
        radial-gradient(ellipse 60% 70% at 15% 0%, rgba(139, 92, 246, .16), transparent 70%),
        radial-gradient(ellipse 50% 60% at 90% 10%, rgba(99, 102, 241, .10), transparent 70%);
    pointer-events: none;
}
.nw-wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; }
.nw a { color: inherit; text-decoration: none; }

/* ---------- Testata ---------- */
.nw-mast { text-align: center; padding-bottom: 22px; border-bottom: 1px solid var(--nw-rule); }
.nw-mast-top {
    display: flex; justify-content: space-between; gap: 16px;
    font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: var(--nw-ink-3);
    padding-bottom: 14px; border-bottom: 1px solid var(--nw-rule); margin-bottom: 26px;
}
.nw-mast-top span:nth-child(2) { color: var(--nw-violet-2); }
.nw-mast h1 {
    font-size: clamp(2.4rem, 6.4vw, 5rem);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1;
    margin: 0 0 14px;
    background: linear-gradient(135deg, #ffffff 0%, #e2e0ff 45%, #a78bfa 80%, #818cf8 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nw-mast p { margin: 0 auto; max-width: 640px; font-size: 1.02rem; line-height: 1.6; color: var(--nw-ink-2); }

/* ---------- Sezioni (barra) ---------- */
.nw-nav {
    position: sticky; top: 0; z-index: 20;
    background: rgba(10, 10, 10, .92);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 3px double var(--nw-rule);
    margin-bottom: 40px;
}
.nw-nav ul {
    list-style: none; margin: 0 auto; padding: 0 32px; max-width: 1240px;
    display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.nw-nav ul::-webkit-scrollbar { display: none; }
.nw-nav a {
    display: block; white-space: nowrap;
    padding: 15px 14px;
    font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--nw-ink-2);
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.nw-nav a:hover, .nw-nav a:focus-visible { color: #fff; border-bottom-color: var(--k, var(--nw-violet)); }

/* ---------- Elementi comuni ---------- */
.nw-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--k, var(--nw-violet-2));
    margin-bottom: 10px;
}
.nw-kicker::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--k, var(--nw-violet)); }
.nw-meta { font-size: .8rem; color: var(--nw-ink-3); display: flex; gap: 10px; flex-wrap: wrap; }
.nw-meta span + span::before { content: '·'; margin-right: 10px; }
.nw-img { display: block; overflow: hidden; border-radius: 14px; background: #15121c; aspect-ratio: 16 / 10; }
.nw-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.nw-item:hover .nw-img img { transform: scale(1.04); }
.nw-item h2, .nw-item h3 { color: #fff; margin: 0 0 10px; letter-spacing: -.015em; transition: color .2s; }
.nw-item:hover h2, .nw-item:hover h3 { color: var(--nw-violet-2); }
.nw-excerpt { color: var(--nw-ink-2); line-height: 1.65; margin: 0 0 14px; }

/* ---------- Prima pagina ---------- */
.nw-front {
    display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--nw-rule);
}
.nw-lead .nw-img { margin-bottom: 22px; }
.nw-lead h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.15; }
.nw-lead .nw-excerpt { font-size: 1.08rem; max-width: 62ch; }

.nw-latest { border-left: 1px solid var(--nw-rule); padding-left: 40px; }
.nw-col-title {
    font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    color: #fff; padding-bottom: 12px; margin: 0 0 6px; border-bottom: 2px solid var(--nw-violet);
}
.nw-latest .nw-item { display: block; padding: 18px 0; border-bottom: 1px solid var(--nw-rule); }
.nw-latest .nw-item:last-child { border-bottom: 0; }
.nw-latest h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.35; }

/* Seconda fila di prima pagina */
.nw-strip {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px;
    padding: 40px 0 48px; border-bottom: 3px double var(--nw-rule);
}
.nw-strip .nw-img { margin-bottom: 16px; }
.nw-strip h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.35; }

/* ---------- Sezioni per tema ---------- */
.nw-section { padding: 56px 0 8px; scroll-margin-top: 70px; }
.nw-section-head {
    display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    border-top: 3px solid var(--k); padding-top: 14px; margin-bottom: 28px;
}
.nw-section-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 800; margin: 0; letter-spacing: -.02em; }
.nw-section-head p { margin: 0; color: var(--nw-ink-3); font-size: .92rem; }
.nw-section-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; }
.nw-section-main .nw-img { margin-bottom: 18px; }
.nw-section-main h3 { font-size: 1.45rem; font-weight: 800; line-height: 1.22; }
.nw-list { list-style: none; margin: 0; padding: 0; }
.nw-list .nw-item {
    display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; align-items: start;
    padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--nw-rule);
}
.nw-list li:last-child .nw-item { border-bottom: 0; margin-bottom: 0; }
.nw-list .nw-img { border-radius: 10px; }
.nw-list h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.nw-list .nw-kicker { display: none; }

/* ---------- Chiusura ---------- */
.nw-cta {
    margin-top: 64px; padding: 40px 44px;
    border: 1px solid rgba(139, 92, 246, .25); border-radius: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, .12), rgba(99, 102, 241, .05));
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.nw-cta h2 { margin: 0 0 6px; font-size: 1.45rem; font-weight: 800; }
.nw-cta p { margin: 0; color: var(--nw-ink-2); }
.nw .nw-cta a.nw-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px; border-radius: 50px; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    transition: transform .2s, box-shadow .2s;
}
.nw .nw-cta a.nw-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(139, 92, 246, .4); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .nw-front { grid-template-columns: 1fr; gap: 32px; }
    .nw-latest { border-left: 0; padding-left: 0; }
    .nw-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nw-strip .nw-item:nth-child(3) { display: none; }
    .nw-section-body { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 768px) {
    .nw { padding-top: 100px; }
    .nw-wrap, .nw-nav ul { padding: 0 16px; }
    .nw-nav ul { justify-content: flex-start; }
    .nw-nav a { padding: 13px 10px; font-size: .74rem; }
    .nw-mast-top { font-size: .66rem; letter-spacing: .1em; }
    .nw-mast-top span:first-child, .nw-mast-top span:last-child { display: none; }
    .nw-mast-top { justify-content: center; }
    .nw-strip { grid-template-columns: 1fr; gap: 0; padding: 8px 0 32px; }
    .nw-strip .nw-item, .nw-strip .nw-item:nth-child(3) {
        display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 14px;
        padding: 18px 0; border-bottom: 1px solid var(--nw-rule);
    }
    .nw-strip .nw-item:last-child { border-bottom: 0; }
    .nw-strip .nw-img { margin: 0; border-radius: 10px; }
    .nw-strip h3 { font-size: 1rem; }
    .nw-strip .nw-excerpt { display: none; }
    .nw-list .nw-item { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
    .nw-section { padding-top: 40px; }
    .nw-cta { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .nw-img img, .nw-item h2, .nw-item h3 { transition: none; }
}
.nw-section-front { padding-top: 0; }
