/*
 * novitai-global.css — Stili globali NovitAI
 * Caricato tramite functions.php su TUTTE le pagine del sito.
 *
 * Indice:
 *  1. Variabili CSS e reset
 *  2. Tipografia globale
 *  3. Header sticky scuro
 *  4. Popup newsletter
 *  5. Barra categorie
 *  6. Layout principale homepage
 *  7. Articolo hero
 *  8. Griglia card articoli
 *  9. Sidebar e widget
 * 10. Footer a tre colonne
 * 11. Stili globali: pulsanti, badge, link
 * 12. Responsive — Tablet (≤1024px)
 * 13. Responsive — Mobile (≤767px)
 * 14. Responsive — Mobile piccolo (≤479px)
 */

/* ════════════════════════════════════════════════════════════════
   1. VARIABILI CSS E RESET
════════════════════════════════════════════════════════════════ */
:root {
    --nv-dark:       #1a1a2e;   /* sfondo header/footer */
    --nv-darker:     #16213e;   /* sfondo barra categorie */
    --nv-primary:    #0066CC;   /* colore primario link/bottoni */
    --nv-bg:         #f5f5f5;   /* sfondo pagina */
    --nv-card:       #ffffff;   /* sfondo card */
    --nv-text:       #333333;   /* testo corpo */
    --nv-text-light: #888888;   /* testo secondario */
    --nv-radius:     8px;       /* border-radius card */
    --nv-shadow:     0 2px 8px rgba(0,0,0,0.08);
    --nv-shadow-hover: 0 6px 20px rgba(0,0,0,0.14);

    /* ── Accent color brand (modificabile in 1 punto) ── */
    --nv-accent:      #10B981;  /* verde emerald - accent principale */
    --nv-accent-dark: #059669;  /* stato hover/pressed */
    --nv-accent-soft: #D1FAE5;  /* sfondi soft, highlight */
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Azzera spaziature che Kadence potrebbe aggiungere al body */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--nv-bg);
    color: var(--nv-text);
    line-height: 1.6;
    margin: 0;
    padding: 0 !important;
}

/* Nasconde header e footer originali di Kadence su tutto il sito */
#masthead,
.site-header,
.kadence-sticky-header,
#colophon,
.site-footer,
.kadence-footer-wrap {
    display: none !important;
}

a {
    text-decoration: none;
    color: var(--nv-primary);
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ════════════════════════════════════════════════════════════════
   2. TIPOGRAFIA GLOBALE
════════════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--nv-dark);
    line-height: 1.25;
}

/* Titoli degli articoli nei post singoli */
.entry-title,
.page-title {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ════════════════════════════════════════════════════════════════
   3. STOCK TICKER (top bar, sopra header)
════════════════════════════════════════════════════════════════ */
.nv-stock-ticker {
    position: sticky;
    top: 0;
    z-index: 1002;
    background: #05080f;
    color: rgba(255,255,255,0.9);
    height: 32px;
    display: flex;
    align-items: stretch;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

.nv-stock-ticker-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    color: #fff;
    font-weight: 800;
    letter-spacing: 1.5px;
    font-size: 0.68rem;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 4px 0 12px rgba(0,0,0,0.5);
}

.nv-stock-pulse {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: nvStockPulse 1.6s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(255,255,255,0.8);
}

@keyframes nvStockPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(1.5); }
}

.nv-stock-ticker-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.nv-stock-ticker-track {
    display: flex;
    align-items: center;
    gap: 32px;
    white-space: nowrap;
    animation: nvStockScroll 90s linear infinite;
    will-change: transform;
    padding-left: 24px;
}

.nv-stock-ticker:hover .nv-stock-ticker-track {
    animation-play-state: paused;
}

@keyframes nvStockScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.nv-stock-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.nv-stock-symbol {
    font-weight: 700;
    color: #fff;
    font-size: 0.76rem;
    letter-spacing: 0.5px;
}

.nv-stock-price {
    color: rgba(255,255,255,0.75);
    font-variant-numeric: tabular-nums;
    font-size: 0.76rem;
}

.nv-stock-change {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    font-size: 0.72rem;
    padding: 2px 6px;
    border-radius: 3px;
}

.nv-stock-up {
    color: #10B981;
    background: rgba(16,185,129,0.1);
}

.nv-stock-down {
    color: #ef4444;
    background: rgba(239,68,68,0.1);
}

/* ════════════════════════════════════════════════════════════════
   3b. HEADER PRINCIPALE
════════════════════════════════════════════════════════════════ */
.nv-header {
    position: sticky;
    top: 32px; /* Sotto lo stock ticker */
    z-index: 1001;
    background-color: #0f172a;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.nv-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

/* Logo */
.nv-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nv-logo a,
.nv-logo-testo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    white-space: nowrap;
    text-decoration: none;
}

.nv-logo img {
    max-height: 84px;
    width: auto;
    transition: transform 0.3s ease;
}

.nv-logo:hover img {
    transform: scale(1.04);
}

/* Navigazione principale desktop */
.nv-nav-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nv-nav,
.nv-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nv-nav a {
    position: relative;
    color: rgba(255,255,255,0.82);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 8px 2px;
    margin: 0 14px;
    transition: color 0.2s;
    white-space: nowrap;
    text-decoration: none;
    letter-spacing: 0.2px;
}

/* Underline animato che slide da sinistra a destra */
.nv-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--nv-accent, #10B981);
    transition: width 0.3s ease;
}

.nv-nav a:hover::after,
.nv-nav .current-menu-item > a::after {
    width: 100%;
}

.nv-nav a:hover,
.nv-nav .current-menu-item > a {
    color: #ffffff;
}

/* Gruppo destra: ricerca + newsletter */
.nv-header-destra {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Icona ricerca */
.nv-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.nv-search-btn:hover {
    color: #ffffff;
    background-color: rgba(255,255,255,0.12);
}

.nv-search-btn svg {
    width: 20px;
    height: 20px;
}

/* Bottone Newsletter — ora in accent color */
.nv-newsletter-btn {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #ffffff;
    border: none;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16,185,129,0.35);
    letter-spacing: 0.3px;
}

.nv-newsletter-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(16,185,129,0.5);
    filter: brightness(1.08);
}

.nv-newsletter-btn:active {
    transform: translateY(0);
}

/* Pannello ricerca espandibile */
.nv-search-panel {
    display: none;
    background-color: var(--nv-darker);
    padding: 14px 24px;
}

.nv-search-panel.aperto {
    display: block;
}

.nv-search-panel form {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
}

.nv-search-panel input[type="search"] {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.nv-search-panel input[type="search"]::placeholder {
    color: rgba(255,255,255,0.4);
}

.nv-search-panel button[type="submit"] {
    padding: 10px 20px;
    background: var(--nv-primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.nv-search-panel button[type="submit"]:hover {
    background: #0052a3;
}

/* Hamburger menu (visibile solo su mobile) */
.nv-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: rgba(255,255,255,0.85);
    font-size: 1.5rem;
    line-height: 1;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nv-hamburger:hover {
    background-color: rgba(255,255,255,0.12);
    color: #ffffff;
}

/* Menu mobile a tendina */
.nv-mobile-menu {
    display: none;
    background-color: var(--nv-dark);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 8px 0 16px;
}

.nv-mobile-menu.aperto {
    display: block;
}

.nv-mobile-nav,
.nv-mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nv-mobile-nav a {
    display: block;
    padding: 12px 24px;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nv-mobile-nav a:hover {
    background-color: rgba(255,255,255,0.08);
    color: #ffffff;
}

/* Bottone newsletter + social nel menu mobile */
.nv-mobile-footer {
    padding: 20px 24px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.nv-mobile-newsletter-btn {
    width: 100%;
    background: var(--nv-primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 13px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: background 0.2s;
    letter-spacing: 0.2px;
}

.nv-mobile-newsletter-btn:hover {
    background: #0052a3;
}

.nv-mobile-social {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-bottom: 8px;
}

.nv-mobile-social a {
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.nv-mobile-social a:hover {
    color: #ffffff;
}

/* ════════════════════════════════════════════════════════════════
   4. POPUP NEWSLETTER
════════════════════════════════════════════════════════════════ */
.nv-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;                        /* top/right/bottom/left: 0 */
    background: rgba(0,0,0,0.65);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.nv-popup-overlay.aperto {
    display: flex;
}

.nv-popup-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 36px 40px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: nvPopupEntra 0.25s ease;
}

@keyframes nvPopupEntra {
    from { opacity: 0; transform: scale(0.94) translateY(-10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

.nv-popup-chiudi {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: #888;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background-color 0.2s;
}

.nv-popup-chiudi:hover {
    color: var(--nv-dark);
    background-color: #f0f0f0;
}

.nv-popup-titolo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--nv-dark);
    margin-bottom: 8px;
}

.nv-popup-sottotitolo {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Override stili form plugin Newsletter dentro il popup */
.nv-popup-box .tnp-widget input[type="email"],
.nv-popup-box .newsletter-widget input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.nv-popup-box .tnp-widget input[type="submit"],
.nv-popup-box .newsletter-widget input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: var(--nv-primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.nv-popup-box .tnp-widget input[type="submit"]:hover,
.nv-popup-box .newsletter-widget input[type="submit"]:hover {
    background: #0052a3;
}

/* ════════════════════════════════════════════════════════════════
   5. BARRA CATEGORIE — pills colorate al hover
════════════════════════════════════════════════════════════════ */
.nv-barra-cat {
    background-color: #1a2238;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    top: 108px; /* 32 (stock) + 76 (header) */
    z-index: 999;
}

.nv-barra-cat-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 46px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nv-barra-cat-inner::-webkit-scrollbar {
    display: none;
}

.nv-barra-cat-inner a {
    --cat-col: var(--nv-accent, #10B981);
    position: relative;
    color: rgba(255,255,255,0.72);
    font-size: 0.82rem;
    font-weight: 500;
    padding: 7px 16px;
    border-radius: 999px;
    white-space: nowrap;
    transition: color 0.2s, background-color 0.2s, box-shadow 0.2s, transform 0.15s;
    border: 1px solid transparent;
    text-decoration: none;
}

.nv-barra-cat-inner a::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cat-col);
    opacity: 0.6;
    transition: opacity 0.2s;
}

.nv-barra-cat-inner a {
    padding-left: 22px;
}

.nv-barra-cat-inner a:hover {
    color: #fff;
    background: color-mix(in srgb, var(--cat-col) 18%, transparent);
    border-color: color-mix(in srgb, var(--cat-col) 35%, transparent);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--cat-col) 25%, transparent);
    transform: translateY(-1px);
}

.nv-barra-cat-inner a:hover::before {
    opacity: 1;
    box-shadow: 0 0 8px var(--cat-col);
}

/* Separatore legacy (non più renderizzato ma lasciato per compat) */
.nv-sep-cat { display: none; }

/* ════════════════════════════════════════════════════════════════
   5b. BREAKING NEWS TICKER (sotto barra categorie)
════════════════════════════════════════════════════════════════ */
.nv-breaking {
    background: #000;
    color: #fff;
    height: 38px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
    z-index: 998;
}

.nv-breaking-label {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 16px;
    background: linear-gradient(90deg, #dc2626 0%, #b91c1c 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 1.8px;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 6px 0 14px rgba(0,0,0,0.6);
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.nv-breaking-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: nvBreakingPulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255,255,255,0.9);
    flex-shrink: 0;
}

@keyframes nvBreakingPulse {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 10px rgba(255,255,255,0.9); }
    50%      { opacity: 0.3; transform: scale(1.4); box-shadow: 0 0 18px rgba(255,255,255,1); }
}

.nv-breaking-viewport {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

/* Fade a destra per comunicare che c'è altro contenuto */
.nv-breaking-viewport::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    background: linear-gradient(to left, #000 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.nv-breaking-track {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    animation: nvBreakingScroll 40s linear infinite;
    will-change: transform;
    padding-left: 24px;
    font-size: 0.88rem;
}

.nv-breaking:hover .nv-breaking-track {
    animation-play-state: paused;
}

@keyframes nvBreakingScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.nv-breaking-item {
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    transition: color 0.2s;
    flex-shrink: 0;
    font-weight: 500;
}

.nv-breaking-item:hover {
    color: var(--nv-accent, #10B981);
    text-decoration: none;
}

.nv-breaking-sep {
    color: var(--nv-accent, #10B981);
    font-size: 1.2rem;
    flex-shrink: 0;
    opacity: 0.6;
}

/* ════════════════════════════════════════════════════════════════
   6. LAYOUT PRINCIPALE HOMEPAGE
════════════════════════════════════════════════════════════════ */
.novitai-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.novitai-colonna-sinistra {
    min-width: 0; /* fix overflow in grid */
}

/* ════════════════════════════════════════════════════════════════
   7. ARTICOLO HERO
════════════════════════════════════════════════════════════════ */
.novitai-hero {
    background: var(--nv-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--nv-shadow);
    margin-bottom: 28px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.novitai-hero:hover {
    box-shadow: var(--nv-shadow-hover);
}

.novitai-hero > a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.novitai-hero-immagine {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e0e0e0;
}

.novitai-hero-immagine img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.novitai-hero:hover .novitai-hero-immagine img {
    transform: scale(1.03);
}

.nv-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--nv-dark) 0%, var(--nv-darker) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nv-img-placeholder span {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: rgba(255,255,255,0.25);
    letter-spacing: 2px;
}

.novitai-hero-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.novitai-hero-corpo {
    padding: 20px 24px 24px;
}

.novitai-hero-titolo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--nv-dark);
    margin-bottom: 10px;
    transition: color 0.2s;
}

.novitai-hero:hover .novitai-hero-titolo {
    color: var(--nv-primary);
}

.novitai-hero-excerpt {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.55;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.novitai-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--nv-text-light);
}

.novitai-meta-sep {
    width: 3px;
    height: 3px;
    background: #ccc;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════
   8. GRIGLIA CARD ARTICOLI (2 × N)
════════════════════════════════════════════════════════════════ */
.novitai-griglia {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.novitai-card {
    background: var(--nv-card);
    border-radius: var(--nv-radius);
    overflow: hidden;
    box-shadow: var(--nv-shadow);
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.novitai-card:hover {
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.novitai-card > a {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

.novitai-card-immagine {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #e0e0e0;
    flex-shrink: 0;
}

.novitai-card-immagine img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.novitai-card:hover .novitai-card-immagine img {
    transform: scale(1.05);
}

.novitai-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.novitai-card-corpo {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.novitai-card-titolo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--nv-dark);
    margin-bottom: 10px;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.novitai-card:hover .novitai-card-titolo {
    color: var(--nv-primary);
}

.novitai-card-excerpt {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.novitai-card-data {
    font-size: 0.78rem;
    color: #999;
    margin-top: auto;
}

/* ════════════════════════════════════════════════════════════════
   9. SIDEBAR E WIDGET
════════════════════════════════════════════════════════════════ */
.novitai-sidebar {
    position: sticky;
    top: 160px; /* stock (32) + header (76) + barra cat (46) + 6px margine */
}

.novitai-widget {
    background: var(--nv-card);
    border-radius: var(--nv-radius);
    box-shadow: var(--nv-shadow);
    overflow: hidden;
    margin-bottom: 24px;
}

.novitai-widget-titolo {
    background: var(--nv-dark);
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 18px;
    letter-spacing: 0.3px;
    margin: 0;
}

/* Widget categorie */
.novitai-widget-lista {
    list-style: none;
    padding: 8px 0;
    margin: 0;
}

.novitai-widget-lista li {
    border-bottom: 1px solid #f0f0f0;
}

.novitai-widget-lista li:last-child {
    border-bottom: none;
}

.novitai-widget-lista a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    font-size: 0.88rem;
    color: #333;
    font-weight: 500;
    transition: background-color 0.15s, color 0.15s;
    gap: 8px;
    text-decoration: none;
}

.novitai-widget-lista a:hover {
    background-color: #f7f9fc;
    color: var(--nv-primary);
}

.novitai-cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.novitai-cat-nome {
    flex: 1;
}

.novitai-cat-count {
    background: #f0f4f8;
    color: #666;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Widget ultimi articoli */
.novitai-ultimi-lista {
    list-style: none;
    padding: 4px 0;
    margin: 0;
}

.novitai-ultimi-lista li {
    border-bottom: 1px solid #f0f0f0;
}

.novitai-ultimi-lista li:last-child {
    border-bottom: none;
}

.novitai-ultimi-lista a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    transition: background-color 0.15s;
}

.novitai-ultimi-lista a:hover {
    background-color: #f7f9fc;
}

.novitai-ultimi-titolo {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--nv-dark);
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.15s;
}

.novitai-ultimi-lista a:hover .novitai-ultimi-titolo {
    color: var(--nv-primary);
}

.novitai-ultimi-data {
    font-size: 0.75rem;
    color: #aaa;
}

/* ════════════════════════════════════════════════════════════════
  10. FOOTER A TRE COLONNE
════════════════════════════════════════════════════════════════ */
.nv-footer {
    background-color: var(--nv-dark);
    color: rgba(255,255,255,0.75);
    margin-top: 48px;
    position: relative;
    z-index: 1;
}

/* Griglia tre colonne: info | link rapidi | newsletter */
.nv-footer-griglia {
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}

/* Colonna generica */
.nv-footer-col h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.nv-footer-col p {
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.65);
    margin-bottom: 0;
}

/* Logo nel footer */
.nv-footer-logo {
    margin-bottom: 14px;
}

.nv-footer-logo a {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.nv-footer-logo img {
    max-height: 36px;
    width: auto;
}

/* Logo grande e centrato nella colonna "Chi siamo" */
.nv-footer-logo-grande {
    display: flex;
    justify-content: center;
    margin: 12px 0 20px;
}

.nv-footer-logo-grande img {
    max-height: 70px;
    width: auto;
}

/* Testo descrittivo sotto il logo */
.nv-footer-chi-siamo-testo {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* Link "Scopri di più" */
.nv-footer-scopri {
    display: inline-block;
    margin-top: 8px;
    color: #6ab0f5;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.nv-footer-scopri:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Lista link rapidi */
.nv-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nv-footer-links li {
    margin-bottom: 8px;
}

.nv-footer-links a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s;
}

.nv-footer-links a:hover {
    color: #ffffff;
    text-decoration: none;
}

/* Newsletter nel footer — override stili plugin */
.nv-footer-newsletter .tnp-widget input[type="email"],
.nv-footer-newsletter .newsletter-widget input[type="email"] {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.nv-footer-newsletter .tnp-widget input[type="email"]::placeholder,
.nv-footer-newsletter .newsletter-widget input[type="email"]::placeholder {
    color: rgba(255,255,255,0.4);
}

.nv-footer-newsletter .tnp-widget input[type="submit"],
.nv-footer-newsletter .newsletter-widget input[type="submit"] {
    width: 100%;
    padding: 11px;
    background: var(--nv-primary);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.nv-footer-newsletter .tnp-widget input[type="submit"]:hover,
.nv-footer-newsletter .newsletter-widget input[type="submit"]:hover {
    background: #0052a3;
}

/* Riga finale copyright */
.nv-footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.nv-footer-copy {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.4);
    margin: 0;
    text-align: center;
}

/* ════════════════════════════════════════════════════════════════
  11. STILI GLOBALI: PULSANTI, BADGE, LINK
════════════════════════════════════════════════════════════════ */

/* Pulsante primario riutilizzabile */
.nv-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--nv-primary);
    color: #ffffff !important;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color 0.2s, transform 0.1s;
}

.nv-btn:hover {
    background: #0052a3;
    transform: translateY(-1px);
}

/* Badge generico */
.nv-badge {
    display: inline-block;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* ════════════════════════════════════════════════════════════════
  11.5 LAYOUT MAGAZINE HOMEPAGE (Step 1 Livello B)
  Hero 1+2, griglia asimmetrica, trending strip,
  newsletter inline, most read numerato, fade-in on scroll
════════════════════════════════════════════════════════════════ */

/* ── HERO 1+2: primo blocco della home ──────────────────────── */
.nv-home-hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin-bottom: 36px;
}

.nv-home-hero-grid .novitai-hero {
    margin-bottom: 0;
    height: 100%;
}

.nv-home-hero-grid .novitai-hero > a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nv-home-hero-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nv-home-hero-side .novitai-card {
    flex: 1;
}

.nv-home-hero-side .novitai-card-immagine {
    aspect-ratio: 16 / 10;
}

/* ── TRENDING STRIP: sezione scura con accent color ─────────── */
.nv-home-trending {
    margin: 36px 0;
    background: linear-gradient(135deg, var(--nv-dark) 0%, var(--nv-darker) 100%);
    border-radius: 12px;
    padding: 28px 28px 32px;
    color: #fff;
}

.nv-home-trending-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.nv-home-trending-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #fff;
    margin: 0;
}

.nv-icon-trend {
    display: inline-flex;
    width: 32px;
    height: 32px;
    background: var(--nv-accent);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nv-home-trending-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.nv-home-trending-item {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 16px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    border-left: 3px solid var(--nv-accent);
    transition: background 0.2s, transform 0.2s;
}

.nv-home-trending-item:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    color: #fff;
    text-decoration: none;
}

.nv-home-trending-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--nv-accent);
    margin-bottom: 6px;
    line-height: 1;
}

.nv-home-trending-cat {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.nv-home-trending-title {
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── NEWSLETTER INLINE colorata (accent color) ──────────────── */
.nv-home-newsletter-inline {
    background: linear-gradient(135deg, var(--nv-accent) 0%, var(--nv-accent-dark) 100%);
    border-radius: 12px;
    padding: 40px 36px;
    margin: 36px 0;
    color: #fff;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 32px;
    align-items: center;
}

.nv-home-newsletter-inline h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    color: #fff;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.nv-home-newsletter-inline p {
    color: rgba(255,255,255,0.92);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.55;
}

.nv-home-newsletter-cta {
    display: inline-block;
    background: #fff;
    color: var(--nv-accent-dark);
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: transform 0.15s, box-shadow 0.15s;
    text-align: center;
    justify-self: start;
}

.nv-home-newsletter-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    color: var(--nv-accent-dark);
    text-decoration: none;
}

/* ── GRIGLIA ASIMMETRICA: 1 featured grande + 2 card standard ─ */
.nv-home-grid-asymmetric {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 28px;
}

.nv-home-grid-asymmetric .novitai-card-featured .novitai-card-immagine {
    aspect-ratio: 16 / 10;
}

.nv-home-grid-asymmetric .novitai-card-featured .novitai-card-titolo {
    font-size: 1.25rem;
    -webkit-line-clamp: 4;
}

.nv-home-grid-asymmetric .novitai-card-featured .novitai-card-corpo {
    padding: 20px 22px 22px;
}

/* ── DUO: 2 featured affiancati (stessa altezza, stile magazine) ── */
.nv-home-grid-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
    align-items: stretch;
}
.nv-home-grid-duo .novitai-card-featured .novitai-card-immagine {
    aspect-ratio: 16 / 10;
}
.nv-home-grid-duo .novitai-card-featured .novitai-card-titolo {
    font-size: 1.25rem;
    -webkit-line-clamp: 3;
}
.nv-home-grid-duo .novitai-card-featured .novitai-card-corpo {
    padding: 20px 22px 22px;
}

/* ── QUAD: 4 card verticali in riga (dimensione standard) ── */
.nv-home-grid-quad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
    align-items: stretch;
}

/* Tablet fallback (coerente con responsive esistente) */
@media (max-width: 1024px) {
    .nv-home-grid-duo { grid-template-columns: 1fr; gap: 20px; }
    .nv-home-grid-quad { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .nv-home-grid-quad { grid-template-columns: 1fr; }
}

/* ── MOST READ numerato (widget sidebar speciale) ───────────── */
.nv-mostread-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nv-mostread-lista li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
}

.nv-mostread-lista li:last-child {
    border-bottom: none;
}

.nv-mostread-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
    color: var(--nv-accent);
    flex-shrink: 0;
    min-width: 28px;
    text-align: center;
}

.nv-mostread-testo {
    flex: 1;
    min-width: 0;
}

.nv-mostread-testo a {
    display: block;
    font-size: 0.87rem;
    font-weight: 600;
    color: var(--nv-dark);
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.15s;
}

.nv-mostread-testo a:hover {
    color: var(--nv-accent);
    text-decoration: none;
}

.nv-mostread-data {
    display: block;
    font-size: 0.72rem;
    color: #aaa;
    margin-top: 4px;
}

/* ── TITOLO SEZIONE (divisori visivi) ───────────────────────── */
.nv-home-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--nv-dark);
    margin: 8px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--nv-accent);
    display: inline-block;
    padding-right: 24px;
}

/* ── FADE-IN on scroll ──────────────────────────────────────── */
.nv-fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.nv-fade-in.nv-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── HOVER potenziato sulle card (override classe esistente) ── */
.novitai-card {
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.novitai-card:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,0.14);
    transform: translateY(-4px);
}

/* ── CTA "vedi tutti" fine home ─────────────────────────────── */
.nv-home-footer-cta {
    text-align: center;
    margin: 40px 0 24px;
}

.nv-home-footer-cta a {
    display: inline-block;
    background: var(--nv-dark);
    color: #fff;
    padding: 14px 36px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s, transform 0.15s;
}

.nv-home-footer-cta a:hover {
    background: var(--nv-accent);
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════════
   11.7 HERO CINEMA CONTAINED + LATERAL LIST + strip orizzontali (Livello B v3)
════════════════════════════════════════════════════════════════ */

/* Container per sezioni top (hero + secondary row + mostread strip) */
.nv-home-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── LAYOUT TOP: Hero grande + 3 card laterali ─────────────────── */
.nv-home-hero-row {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 24px;
    margin: 24px 0 32px;
    align-items: stretch;
}

/* ── HERO CINEMA CONTAINED ─────────────────────────────────────── */
.nv-hero-cinema {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 520px;
    overflow: hidden;
    background: var(--nv-dark);
    border-radius: 12px;
    box-shadow: var(--nv-shadow);
}

.nv-hero-cinema-link {
    display: block;
    position: absolute;
    inset: 0;
    color: #fff;
    text-decoration: none;
}

.nv-hero-cinema-link:hover {
    color: #fff;
    text-decoration: none;
}

.nv-hero-cinema-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    animation: nvKenBurns 24s ease-out forwards;
    will-change: transform;
}

@keyframes nvKenBurns {
    to { transform: scale(1.10); }
}

.nv-hero-cinema-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.55) 40%,
        rgba(0,0,0,0.15) 75%,
        rgba(0,0,0,0) 100%
    );
    display: flex;
    align-items: flex-end;
}

.nv-hero-cinema-content {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 56px 24px 48px;
    animation: nvHeroFadeUp 0.9s ease-out;
}

@keyframes nvHeroFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.nv-hero-cinema-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    margin-bottom: 18px;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.nv-hero-cinema-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    line-height: 1.08;
    font-weight: 700;
    margin: 0 0 16px 0;
    max-width: 920px;
    color: #fff;
    letter-spacing: -0.5px;
}

.nv-hero-cinema-excerpt {
    font-size: clamp(0.95rem, 1.3vw, 1.1rem);
    line-height: 1.55;
    color: rgba(255,255,255,0.92);
    max-width: 760px;
    margin: 0 0 18px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Desktop: nascondi excerpt per dare più spazio a immagine e titolo */
@media (min-width: 1025px) {
    .nv-hero-cinema-excerpt { display: none; }
}

.nv-hero-cinema-meta {
    display: flex;
    gap: 14px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.78);
    align-items: center;
}

.nv-hero-cinema-meta .nv-dot {
    width: 3px; height: 3px; border-radius: 50%;
    background: rgba(255,255,255,0.5);
    display: inline-block;
}

/* ── 3 CARD SECONDARIE LATERALI — stile "top stories list" ─── */
.nv-hero-side-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nv-hero-side-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 14px;
    background: var(--nv-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--nv-shadow);
    text-decoration: none;
    color: inherit;
    flex: 1;
    min-height: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Tablet: mantieni 120px originale (override da desktop 160px) */
@media (max-width: 1024px) {
    .nv-hero-side-item {
        grid-template-columns: 120px 1fr;
    }
}

.nv-hero-side-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
}

.nv-hero-side-item-img {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.nv-hero-side-item-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.nv-hero-side-item:hover .nv-hero-side-item-img img {
    transform: scale(1.05);
}

.nv-hero-side-item-body {
    padding: 14px 14px 14px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
}

.nv-hero-side-item-cat {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.nv-hero-side-item-titolo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--nv-dark);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.nv-hero-side-item:hover .nv-hero-side-item-titolo {
    color: var(--nv-primary);
}

.nv-hero-side-item-data {
    font-size: 0.72rem;
    color: #999;
    margin-top: auto;
}

/* ── PIÙ LETTI STRIP orizzontale (replace sidebar widget) ──── */
.nv-mostread-strip {
    background: #fff;
    border-radius: 12px;
    padding: 28px 32px;
    margin-bottom: 40px;
    box-shadow: var(--nv-shadow);
    border-top: 3px solid var(--nv-accent);
}

.nv-mostread-strip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.nv-mostread-strip-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--nv-dark);
}

.nv-mostread-strip-icon {
    color: var(--nv-accent);
    display: inline-flex;
}

.nv-mostread-strip-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.nv-mostread-strip-item {
    display: block;
    color: inherit;
    text-decoration: none;
    padding-left: 18px;
    border-left: 3px solid #f0f0f0;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.nv-mostread-strip-item:hover {
    border-left-color: var(--nv-accent);
    text-decoration: none;
    transform: translateX(2px);
}

.nv-mostread-strip-num {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--nv-accent);
    line-height: 1;
    margin-bottom: 10px;
}

.nv-mostread-strip-cat {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.nv-mostread-strip-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--nv-dark);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.nv-mostread-strip-item:hover .nv-mostread-strip-title {
    color: var(--nv-primary);
}

/* ════════════════════════════════════════════════════════════════
   11.6 ADSENSE SLOT — Placeholder predisposti (vuoti finché non arriva il codice)
════════════════════════════════════════════════════════════════ */

/* Wrapper generico */
.nv-ad {
    display: block;
    width: 100%;
    text-align: center;
    margin: 28px auto;
    overflow: hidden;
    clear: both;
}

/* Nasconde lo slot (+ etichetta "Pubblicità") finché non c'è codice AdSense reale.
   Quando il codice viene inserito, .nv-ad-placeholder non esiste più → lo slot torna visibile. */
.nv-ad:has(> .nv-ad-placeholder) {
    display: none;
}

/* Etichetta "Pubblicità" sopra lo slot (richiesta UX + policy AdSense) */
.nv-ad::before {
    content: "Pubblicit\00E0";
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    margin-bottom: 6px;
}

/* Placeholder visivo quando lo slot è vuoto (solo in dev).
   Quando l'annuncio AdSense è servito, il contenuto riempie lo slot e il bordo tratteggiato non si vede. */
.nv-ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        45deg,
        #f4f4f4 0, #f4f4f4 10px,
        #eaeaea 10px, #eaeaea 20px
    );
    border: 1px dashed #cfcfcf;
    border-radius: 6px;
    color: #999;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Slot specifici con dimensioni IAB */
.nv-ad-top,
.nv-ad-bottom {
    max-width: 970px;
    margin: 20px auto 32px;
}
.nv-ad-top .nv-ad-placeholder,
.nv-ad-bottom .nv-ad-placeholder {
    min-height: 90px;
}

.nv-ad-infeed .nv-ad-placeholder,
.nv-ad-inarticle .nv-ad-placeholder {
    min-height: 250px;
    max-width: 728px;
    margin: 0 auto;
}

.nv-ad-sidebar {
    margin: 0 0 24px 0;
}
.nv-ad-sidebar .nv-ad-placeholder {
    min-height: 250px;
    max-width: 300px;
    margin: 0 auto;
}

/* In-feed: si integra come card nella griglia */
.nv-ad-infeed {
    grid-column: 1 / -1; /* occupa tutta la larghezza della griglia */
    margin: 8px 0 16px;
}

/* Sticky mobile — visibile solo su mobile */
.nv-ad-mobile-sticky {
    display: none;
}

@media (max-width: 767px) {
    .nv-ad-mobile-sticky {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
        z-index: 999;
        margin: 0;
        padding: 4px 0 6px;
        border-top: 1px solid #eee;
    }
    .nv-ad-mobile-sticky::before {
        margin-bottom: 2px;
    }
    .nv-ad-mobile-sticky .nv-ad-placeholder {
        min-height: 50px;
        max-width: 320px;
        margin: 0 auto;
    }
    /* Pulsante chiusura sticky */
    .nv-ad-sticky-close {
        position: absolute;
        top: 2px;
        right: 6px;
        background: rgba(0,0,0,0.1);
        border: none;
        width: 22px;
        height: 22px;
        border-radius: 50%;
        font-size: 14px;
        line-height: 1;
        cursor: pointer;
        color: #333;
    }
    /* Padding extra al fondo del body per non coprire contenuto */
    body.nv-has-sticky-ad {
        padding-bottom: 70px;
    }
}

/* Nasconde lo slot se esplicitamente chiuso */
.nv-ad[hidden],
.nv-ad.nv-ad-hidden {
    display: none !important;
}

/* ════════════════════════════════════════════════════════════════
  12. RESPONSIVE — TABLET (≤1024px)
════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

    /* Barra categorie: sticky offset ridotto (no sticky su tablet) */
    .nv-barra-cat {
        top: auto;
        position: static;
    }

    /* Layout homepage: colonna singola */
    .novitai-main {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .novitai-sidebar {
        position: static;
    }

    /* Griglia rimane a 2 colonne su tablet */
    .novitai-griglia {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer: due colonne */
    .nv-footer-griglia {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    /* Magazine: hero 1+2 diventa verticale */
    .nv-home-hero-grid {
        grid-template-columns: 1fr;
    }

    /* Magazine: trending 2 colonne */
    .nv-home-trending-list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Magazine: griglia asimmetrica 2 colonne, featured a tutta larghezza */
    .nv-home-grid-asymmetric {
        grid-template-columns: 1fr 1fr;
    }

    .nv-home-grid-asymmetric .novitai-card-featured {
        grid-column: 1 / -1;
    }

    /* Magazine: newsletter inline stack */
    .nv-home-newsletter-inline {
        grid-template-columns: 1fr;
        padding: 32px 28px;
        text-align: center;
    }

    .nv-home-newsletter-cta {
        justify-self: center;
    }

    /* HERO ROW: stack verticale su tablet */
    .nv-home-hero-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* HERO CINEMA tablet: aspect 16:10, padding ridotto */
    .nv-hero-cinema {
        aspect-ratio: 16 / 10;
        max-height: 480px;
    }
    .nv-hero-cinema-content {
        padding: 32px 24px 28px;
    }

    /* Card laterali tablet: in griglia 3 colonne sotto l'hero */
    .nv-hero-side-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
    .nv-hero-side-item {
        grid-template-columns: 100px 1fr;
    }

    /* Più letti strip: 3 colonne su tablet */
    .nv-mostread-strip-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .nv-mostread-strip-grid > *:nth-child(n+4) {
        display: none;
    }
}

/* ════════════════════════════════════════════════════════════════
  13. RESPONSIVE — MOBILE (≤767px)
════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* Stock ticker più compatto */
    .nv-stock-ticker {
        height: 28px;
        font-size: 0.7rem;
    }
    .nv-stock-ticker-label {
        padding: 0 10px;
        font-size: 0.6rem;
        letter-spacing: 1px;
    }
    .nv-stock-ticker-label-text { display: none; }
    .nv-stock-ticker-track {
        gap: 22px;
        animation-duration: 70s;
    }
    .nv-stock-symbol { font-size: 0.7rem; }
    .nv-stock-price { font-size: 0.7rem; }
    .nv-stock-change { font-size: 0.66rem; padding: 1px 4px; }

    /* Header sticky sotto stock ticker (offset aggiornato) */
    .nv-header { top: 28px; }

    /* Header */
    .nv-header-inner {
        padding: 0 16px;
        height: 60px;
    }

    /* Nasconde nav desktop, mostra hamburger */
    .nv-nav-wrap {
        display: none;
    }

    .nv-hamburger {
        display: flex;
        align-items: center;
    }

    /* Nasconde il bottone Newsletter su mobile (è nel footer) */
    .nv-newsletter-btn {
        display: none;
    }

    .nv-logo a,
    .nv-logo-testo {
        font-size: 1.35rem;
    }
    .nv-logo img {
        max-height: 50px;
    }

    /* Barra categorie: resetta sticky e compatta */
    .nv-barra-cat {
        position: static;
    }
    .nv-barra-cat-inner {
        padding: 0 16px;
        height: 42px;
    }
    .nv-barra-cat-inner a {
        font-size: 0.78rem;
        padding: 6px 12px 6px 18px;
    }
    .nv-barra-cat-inner a::before {
        left: 8px;
        width: 3px;
        height: 3px;
    }

    /* ─── Breaking ticker mobile: modalità "story" (1 titolo + progress bar) ─── */
    .nv-breaking {
        height: 40px;
        position: relative;
        overflow: hidden;
    }
    .nv-breaking-label {
        padding: 0 11px;
        font-size: 0.64rem;
        letter-spacing: 1.2px;
        gap: 7px;
        z-index: 3;
    }
    .nv-breaking-label-text { display: none; }

    /* Progress bar di sfondo: riempie lo spazio da sinistra a destra */
    /* Tonalità molto tenue (slate chiaro) per non sembrare un timer */
    .nv-breaking::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 0;
        background: linear-gradient(90deg,
            rgba(148,163,184,0.05) 0%,
            rgba(148,163,184,0.22) 60%,
            rgba(148,163,184,0.32) 100%);
        z-index: 1;
        pointer-events: none;
    }
    .nv-breaking.nv-progressing::before {
        animation: nvBreakingFill 9s linear forwards;
    }
    @keyframes nvBreakingFill {
        0%   { width: 0; }
        100% { width: 100%; }
    }

    /* Rimuovi il fade gradient destro (non serve in modalità story) */
    .nv-breaking-viewport::after {
        display: none;
    }

    /* Viewport come container assoluto per i titoli */
    .nv-breaking-viewport {
        position: relative;
        z-index: 2;
    }

    /* Track: non scorre, è solo container */
    .nv-breaking-track {
        animation: none !important;
        padding: 0;
        display: block;
        position: relative;
        width: 100%;
        height: 100%;
    }

    /* Nascondi i duplicati e i separatori su mobile */
    .nv-breaking-item[aria-hidden="true"],
    .nv-breaking-sep {
        display: none !important;
    }

    /* Ogni titolo: absolute centrato, invisibile di default */
    .nv-breaking-item {
        position: absolute;
        top: 50%;
        left: 14px;
        right: 14px;
        transform: translateY(-50%);
        opacity: 0;
        transition: opacity 0.45s ease;
        font-size: 0.82rem;
        font-weight: 600;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        pointer-events: none; /* solo l'item attivo è cliccabile */
    }

    .nv-breaking-item.nv-breaking-active {
        opacity: 1;
        pointer-events: auto;
    }

    /* Contenuto homepage */
    .novitai-main {
        padding: 20px 16px;
        grid-template-columns: 1fr;
    }

    .novitai-hero-titolo {
        font-size: 1.3rem;
    }

    /* Griglia singola colonna */
    .novitai-griglia {
        grid-template-columns: 1fr;
    }

    /* Popup newsletter */
    .nv-popup-box {
        padding: 28px 24px;
    }

    .nv-popup-titolo {
        font-size: 1.25rem;
    }

    /* Footer: colonna singola */
    .nv-footer-griglia {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 32px 16px 24px;
    }

    .nv-footer-bottom {
        padding: 14px 16px;
        flex-direction: column;
        gap: 8px;
    }

    /* Magazine: su mobile tutto singola colonna */
    .nv-home-grid-asymmetric {
        grid-template-columns: 1fr;
    }

    .nv-home-trending-list {
        grid-template-columns: 1fr;
    }

    .nv-home-trending {
        padding: 22px 20px 24px;
    }

    .nv-home-trending-header h2 {
        font-size: 1.1rem;
    }

    .nv-home-newsletter-inline {
        padding: 28px 20px;
    }

    .nv-home-newsletter-inline h2 {
        font-size: 1.35rem;
    }

    .nv-home-section-title {
        font-size: 1.2rem;
    }

    /* HERO CINEMA mobile: aspect 4:3, padding minimo, radius ridotto */
    .nv-hero-cinema {
        aspect-ratio: 4 / 3;
        max-height: 420px;
        border-radius: 8px;
    }
    .nv-hero-cinema-content {
        padding: 20px 18px 20px;
    }
    .nv-hero-cinema-excerpt {
        display: none; /* spazio limitato su mobile */
    }
    .nv-hero-cinema-badge {
        margin-bottom: 10px;
    }
    .nv-hero-cinema-title {
        font-size: 1.35rem;
    }

    /* Card laterali mobile: stack verticale, tutte full width */
    .nv-hero-side-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    .nv-hero-side-item {
        grid-template-columns: 100px 1fr;
    }
    .nv-hero-side-item-titolo {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
    }

    /* Più letti strip: 1 colonna con padding ridotto */
    .nv-mostread-strip {
        padding: 20px 20px;
        border-radius: 8px;
    }
    .nv-mostread-strip-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .nv-mostread-strip-grid > *:nth-child(n+4) {
        display: none; /* su mobile mostra solo i primi 3 */
    }
    .nv-mostread-strip-num {
        font-size: 1.6rem;
    }

    /* Full-bleed container: padding interno su mobile */
    .nv-home-container {
        padding: 0 16px;
    }
}

/* ════════════════════════════════════════════════════════════════
  14. RESPONSIVE — MOBILE PICCOLO (≤479px)
════════════════════════════════════════════════════════════════ */
@media (max-width: 479px) {

    .novitai-hero-corpo {
        padding: 14px 16px 18px;
    }

    .novitai-hero-titolo {
        font-size: 1.15rem;
    }

    .nv-header-inner {
        gap: 12px;
    }
}

/* ══════════════════════════════════════════════════════════════════════════════
   SETTIMANALE NOVITAI — magazine digitale a edizioni
   Template: template-settimanale.php
══════════════════════════════════════════════════════════════════════════════ */

/* ── Pagina wrapper ─────────────────────────────────────────────────────────── */
.nv-wk-page {
    background: var(--nv-bg, #f8fafc);
    min-height: 60vh;
}

/* ── Container (max-width centrato) ────────────────────────────────────────── */
.nv-wk-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 56px;
}

/* ── MASTHEAD ───────────────────────────────────────────────────────────────── */
.nv-wk-masthead {
    background: #0f172a;
    color: #fff;
    border-bottom: 3px solid #1d4ed8;
}
.nv-wk-masthead-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 22px 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.nv-wk-masthead-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.nv-wk-brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    line-height: 1;
}
.nv-wk-brand-dot {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.25);
}
.nv-wk-brand-sub {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: rgba(255,255,255,0.45);
    line-height: 1;
    padding-top: 2px;
}
.nv-wk-masthead-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.83rem;
    color: rgba(255,255,255,0.6);
    flex-wrap: wrap;
}
.nv-wk-edition-label {
    font-weight: 700;
    color: #fff;
}
.nv-wk-msep {
    color: rgba(255,255,255,0.18);
    font-size: 0.75rem;
}
.nv-wk-meta-count {
    color: rgba(255,255,255,0.38);
    font-size: 0.78rem;
}
.nv-wk-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.35);
    color: #86efac;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 3px 10px;
    border-radius: 20px;
}
.nv-wk-live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: nv-wk-pulse 1.6s ease-in-out infinite;
}
@keyframes nv-wk-pulse {
    0%, 100% { opacity: 1;   transform: scale(1);   }
    50%       { opacity: 0.3; transform: scale(0.75); }
}

/* ── HERO ───────────────────────────────────────────────────────────────────── */
.nv-wk-hero {
    position: relative;
    min-height: 500px;
    background-color: #1e293b;
    background-image: var(--nv-wk-hero-bg);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 0;
}
.nv-wk-hero--no-img {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #0f172a 100%);
}
/* Overlay scuro gradiente dal basso */
.nv-wk-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.94) 0%,
        rgba(0,0,0,0.55) 45%,
        rgba(0,0,0,0.15) 100%
    );
    z-index: 1;
}
.nv-wk-hero-overlay-link {
    position: absolute; inset: 0;
    z-index: 2;
}
.nv-wk-hero-inner {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px 52px;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
}
.nv-wk-hero-content {
    max-width: 740px;
}
.nv-wk-hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.nv-wk-hero-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.55);
}
.nv-wk-hero-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.2s;
}
.nv-wk-hero-cat:hover { opacity: 0.8; color: #fff; text-decoration: none; }
.nv-wk-hero-title {
    font-size: clamp(1.7rem, 3.2vw, 2.6rem);
    font-weight: 800;
    line-height: 1.18;
    color: #fff;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}
.nv-wk-hero-title a {
    color: inherit;
    text-decoration: none;
}
.nv-wk-hero-title a:hover { text-decoration: underline; }
.nv-wk-hero-excerpt {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.78);
    margin: 0 0 18px;
}
.nv-wk-hero-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    flex-wrap: wrap;
}

/* ── Solo nota (settimana con 1 articolo) ──────────────────────────────────── */
.nv-wk-solo-note {
    background: #f1f5f9;
    border-radius: 10px;
    padding: 20px 26px;
    font-size: 0.9rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 32px 0;
    flex-wrap: wrap;
}
.nv-wk-solo-note a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.nv-wk-solo-note a:hover { text-decoration: underline; }

/* ── SEZIONE CATEGORIA ──────────────────────────────────────────────────────── */
.nv-wk-section {
    padding: 40px 0 40px;
    border-bottom: 1px solid var(--nv-border, #e2e8f0);
}
.nv-wk-section:first-of-type { padding-top: 44px; }
.nv-wk-section:last-of-type  { border-bottom: none; }

.nv-wk-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding-left: 14px;
    border-left: 4px solid var(--nv-sec, #3b82f6);
}
.nv-wk-section-name {
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--nv-text, #0f172a);
    text-decoration: none;
    transition: color 0.2s;
}
.nv-wk-section-name:hover {
    color: var(--nv-sec, #3b82f6);
    text-decoration: none;
}
.nv-wk-section-count {
    font-size: 0.73rem;
    color: #94a3b8;
    font-weight: 500;
}

/* ── GRID ARTICOLI ─────────────────────────────────────────────────────────── */
.nv-wk-grid { gap: 20px; }

/* 1 card: layout normale */
.nv-wk-grid--1 {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 420px;
}

/* 2 card: griglia fissa 2 colonne, nessuno scroll */
.nv-wk-grid--2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

/* 3+ card: scroll orizzontale fluido con snap */
.nv-wk-grid--3 {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    /* ogni card occupa 1/3 del contenitore → 3 visibili esatte */
    /* con 4+ card il 4° spunta leggermente indicando lo scroll */
}
/* Card sizing nel contesto flex-scroll */
.nv-wk-grid--3 > .nv-wk-card {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: 220px;
    scroll-snap-align: start;
}
/* Scrollbar sottile e discreta */
.nv-wk-grid--3 {
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 transparent;
    padding-bottom: 6px;
}
.nv-wk-grid--3::-webkit-scrollbar        { height: 3px; }
.nv-wk-grid--3::-webkit-scrollbar-track  { background: transparent; }
.nv-wk-grid--3::-webkit-scrollbar-thumb  { background: #cbd5e1; border-radius: 3px; }

/* ── CARD ──────────────────────────────────────────────────────────────────── */
.nv-wk-card {
    background: var(--nv-card, #fff);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.22s, box-shadow 0.22s;
}
.nv-wk-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 26px rgba(0,0,0,0.11);
}
.nv-wk-card-img-wrap {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e2e8f0;
    flex-shrink: 0;
}
.nv-wk-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}
.nv-wk-card:hover .nv-wk-card-img-wrap img {
    transform: scale(1.04);
}
.nv-wk-card-img-fallback {
    width: 100%;
    height: 100%;
    background: color-mix(in srgb, var(--nv-fb-col, #3b82f6) 12%, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--nv-fb-col, #3b82f6);
    letter-spacing: 1px;
}
.nv-wk-card-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.nv-wk-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.42;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nv-wk-card-title a {
    color: var(--nv-text, #0f172a);
    text-decoration: none;
}
.nv-wk-card-title a:hover { color: #2563eb; }
.nv-wk-card-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    color: #94a3b8;
    flex-wrap: wrap;
    margin-top: auto;
}

/* ── IN BREVE — mini card grid con thumbnail ────────────────────────────────── */
.nv-wk-breve {
    padding: 40px 0 40px;
    border-bottom: 1px solid var(--nv-border, #e2e8f0);
}
/* Griglia adattiva: 3 col su desktop, 2 su tablet, 1 su mobile */
.nv-wk-breve-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.nv-wk-breve-card {
    display: flex;
    flex-direction: column;
    background: var(--nv-card, #fff);
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    transition: transform 0.22s, box-shadow 0.22s;
}
.nv-wk-breve-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.11);
    text-decoration: none;
    color: inherit;
}
.nv-wk-breve-img {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 900;
    flex-shrink: 0;
}
.nv-wk-breve-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}
.nv-wk-breve-cat {
    font-size: 0.67rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nv-wk-breve-label {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.42;
    color: var(--nv-text, #0f172a);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.nv-wk-breve-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.73rem;
    color: #94a3b8;
    margin-top: auto;
    padding-top: 4px;
}

/* ── OVERFLOW LINK ─────────────────────────────────────────────────────────── */
.nv-wk-overflow {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    padding: 8px 14px;
    background: rgba(37,99,235,0.06);
    border-radius: 6px;
    transition: background 0.2s;
}
.nv-wk-overflow:hover { background: rgba(37,99,235,0.12); text-decoration: none; color: #2563eb; }

/* ── NAVIGAZIONE ───────────────────────────────────────────────────────────── */
.nv-wk-nav {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    margin: 40px 0 48px;
}
.nv-wk-nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    min-height: 80px;
}
.nv-wk-nav-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 28px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s;
}
.nv-wk-nav-btn:hover { background: rgba(255,255,255,0.06); color: #fff; text-decoration: none; }
.nv-wk-nav-prev {
    justify-content: flex-start;
    border-right: 1px solid rgba(255,255,255,0.07);
}
.nv-wk-nav-next {
    justify-content: flex-end;
    border-left: 1px solid rgba(255,255,255,0.07);
}
.nv-wk-nav-arrow {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
}
.nv-wk-nav-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.nv-wk-nav-next .nv-wk-nav-text { text-align: right; }
.nv-wk-nav-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.4);
}
.nv-wk-nav-date {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255,255,255,0.88);
}
.nv-wk-nav-edge {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
    justify-content: flex-start;
}
.nv-wk-nav-next.nv-wk-nav-edge { justify-content: flex-end; }
.nv-wk-nav-center {
    padding: 20px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.3);
    white-space: nowrap;
    border-left: 1px solid rgba(255,255,255,0.07);
    border-right: 1px solid rgba(255,255,255,0.07);
}

/* ── EDIZIONI RECENTI ──────────────────────────────────────────────────────── */
.nv-wk-recenti { margin-bottom: 40px; }
.nv-wk-recenti-eyebrow {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: #94a3b8;
    margin: 0 0 16px;
}
.nv-wk-recenti-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.nv-wk-recenti-card {
    border-radius: 10px;
    overflow: hidden;
    background: var(--nv-card, #fff);
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.22s, box-shadow 0.22s;
}
.nv-wk-recenti-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.11);
    text-decoration: none;
    color: inherit;
}
.nv-wk-recenti-thumb {
    height: 96px;
    background-size: cover;
    background-position: center;
    background-color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nv-wk-recenti-noimg { font-size: 1.8rem; }
.nv-wk-recenti-info {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.nv-wk-recenti-sett {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #2563eb;
}
.nv-wk-recenti-date {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--nv-text, #0f172a);
    line-height: 1.3;
}
.nv-wk-recenti-meta {
    font-size: 0.72rem;
    color: #94a3b8;
}

/* ── EMPTY STATE ───────────────────────────────────────────────────────────── */
.nv-wk-empty {
    text-align: center;
    padding: 96px 24px;
    color: #64748b;
}
.nv-wk-empty-icon { font-size: 3.5rem; margin-bottom: 20px; }
.nv-wk-empty h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin: 0 0 10px;
}
.nv-wk-empty p { font-size: 1rem; margin: 0 0 28px; }
.nv-wk-empty-cta {
    display: inline-block;
    padding: 13px 30px;
    background: #0f172a;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s;
}
.nv-wk-empty-cta:hover { background: #1e293b; color: #fff; text-decoration: none; }

/* ── Dot separatore ────────────────────────────────────────────────────────── */
.nv-wk-dot { color: #cbd5e1; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* --3 è già flex-scroll: su tablet mostra ~2 card visibili */
    .nv-wk-grid--3 > .nv-wk-card { flex: 0 0 calc((100% - 20px) / 2); }
    .nv-wk-recenti-grid            { grid-template-columns: repeat(2, 1fr); }
    .nv-wk-breve-grid              { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .nv-wk-masthead-inner  { padding: 18px 16px 16px; }
    .nv-wk-brand-name      { font-size: 1.25rem; }
    .nv-wk-masthead-meta   { font-size: 0.78rem; gap: 7px; }
    .nv-wk-hero            { min-height: 340px; }
    .nv-wk-hero-inner      { padding: 20px 20px 40px; min-height: 340px; }
    .nv-wk-hero-excerpt    { display: none; }
    /* --3: su mobile mostra 1 card + peek del 2° */
    .nv-wk-grid--3 > .nv-wk-card  { flex: 0 0 82vw; }
    .nv-wk-grid--2                 { grid-template-columns: 1fr; }
    .nv-wk-grid--1                 { max-width: 100%; }
    .nv-wk-breve-grid              { grid-template-columns: 1fr; }
    .nv-wk-breve-img               { height: 160px; }
    .nv-wk-nav-inner {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .nv-wk-nav-center {
        grid-column: 1 / -1;
        border-top: 1px solid rgba(255,255,255,0.07);
        border-left: none;
        border-right: none;
        order: 3;
        padding: 12px 20px;
    }
    .nv-wk-nav-prev { border-right: none; }
    .nv-wk-nav-next { border-left: none; }
    .nv-wk-nav-prev .nv-wk-nav-text,
    .nv-wk-nav-next .nv-wk-nav-text { display: none; }
    .nv-wk-nav-prev .nv-wk-nav-arrow,
    .nv-wk-nav-next .nv-wk-nav-arrow { font-size: 1.6rem; }
    .nv-wk-nav-prev { padding: 18px 24px; }
    .nv-wk-nav-next { padding: 18px 24px; }
    .nv-wk-recenti-grid { grid-template-columns: repeat(2, 1fr); }
    .nv-wk-container    { padding: 0 16px 40px; }
}

