/* ===================================================
   NDS — SLIDER "ULTIMI ARTICOLI" (shortcode [nds_news_slider])
   Design system Nido di Seta · luxury minimal
   =================================================== */

.nds-news-wrap { position: relative; width: 100%; box-sizing: border-box; }

.nds-news-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin: 0 0 20px;
}
.nds-news-label {
    font-family: "Ambroise Std", serif !important;
    font-weight: 300 !important;
    font-size: clamp(20px, 2.4vw, 28px) !important;
    color: var(--nds-dark) !important;
}

/* ===== SLIDER ===== */
.nds-news-slider-wrap { position: relative; }
.nds-news-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}
.nds-news-slider.is-dragging { cursor: grabbing; scroll-snap-type: none; }

.nds-news-page {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    box-sizing: border-box;
}
.nds-news-page.nds-news-page--single {
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    justify-content: start;
}

/* ===== CARD ===== */
.nds-news-card {
    display: flex;
    flex-direction: column;
    background: var(--nds-white);
    border: 0.5px solid var(--nds-border-light);
    border-radius: 4px;
    overflow: hidden;
}
.nds-news-card-body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    box-sizing: border-box;
}
.nds-news-card-date {
    font-family: "Inter", sans-serif !important;
    font-size: 11px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: var(--nds-bronze) !important;
    margin-bottom: 10px;
}
.nds-news-card-title {
    font-family: "Ambroise Std", serif !important;
    font-weight: 300 !important;
    font-size: 18px !important;
    line-height: 1.35 !important;
    margin: 0 0 10px !important;
}
.nds-news-card-title a {
    color: var(--nds-dark) !important;
    text-decoration: none !important;
}
.nds-news-card-title a:hover { text-decoration: underline !important; }
.nds-news-card-excerpt {
    font-family: "Inter", sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 300 !important;
    line-height: 1.7 !important;
    color: var(--nds-text-secondary) !important;
    margin: 0 0 14px !important;
    flex: 1;
}
.nds-news-card-link {
    font-family: "Inter", sans-serif !important;
    font-size: 12px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: var(--nds-bronze) !important;
    text-decoration: none !important;
    margin-top: auto;
}
.nds-news-card-link:hover { text-decoration: underline !important; }

/* ===== CONTROLLI (frecce + dots + contatore) =====
   Tutti "in flow" sotto lo slider, mai in absolute/negative offset:
   così restano sempre dentro l'area visibile e non vengono tagliati
   da eventuali overflow:hidden dei contenitori WPBakery. */
.nds-news-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 28px;
}
.nds-news-arrow {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0.5px solid var(--nds-border);
    background: var(--nds-white);
    color: var(--nds-dark);
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.nds-news-arrow:hover { background: var(--nds-bg-cream); border-color: var(--nds-bronze); }

.nds-news-dots {
    display: flex;
    gap: 6px;
}
.nds-news-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nds-border);
    transition: background 0.25s ease;
}
.nds-news-dot.is-active { background: var(--nds-bronze); }

.nds-news-count {
    font-family: "Inter", sans-serif !important;
    font-size: 11px !important;
    letter-spacing: 1px !important;
    color: var(--nds-bronze) !important;
    min-width: 50px;
    text-align: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .nds-news-page { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .nds-news-page { grid-template-columns: 1fr; }
}
