/* Container principale */
.ncf-nav-wrapper {
    margin: 20px auto;
    font-family: inherit;
    width: 100%;
    max-width: 100%;
}

/* Progress Bar */
.ncf-nav-wrapper .ncf-progress {
    margin: 0 0 15px 0;
    padding: 0 10px;
}

.ncf-nav-wrapper .ncf-progress-text {
    text-align: center;
    margin: 0 0 8px 0;
    font-weight: 600;
    color: #fff;  /* BIANCO per visibilità su sfondo scuro */
    font-size: 14px;
    line-height: 1.4;
}

.ncf-nav-wrapper .ncf-progress-bar {
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
}

.ncf-nav-wrapper .ncf-progress-fill {
    height: 100%;
    background: #DD8500;
    transition: width 0.3s;
}

/* Nav Container */
.ncf-nav-wrapper .ncf-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Stili base per TUTTI i pulsanti (attivi e disabilitati) */
.ncf-nav-wrapper .ncf-btn,
.ncf-nav-wrapper a.ncf-btn,
.ncf-nav-wrapper span.ncf-btn,
.ncf-nav-wrapper .ncf-btn:link,
.ncf-nav-wrapper .ncf-btn:visited {
    /* Display e allineamento */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Dimensioni FISSE */
    width: 95px !important;
    height: 40px !important;
    padding: 10px 12px !important;
    
    /* Testo */
    font-size: 13px !important;
    font-weight: 500 !important;
    font-family: inherit !important;
    text-transform: uppercase !important;  /* MAIUSCOLO */
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    
    /* Colori e bordi */
    background: #1A1A2E !important;
    color: #fff !important;
    border: 2px solid #1A1A2E !important;
    border-radius: 6px !important;
    
    /* Altri */
    gap: 4px !important;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: none !important;
    flex: 0 0 auto !important;
}

/* Hover solo per pulsanti NON disabilitati */
.ncf-nav-wrapper a.ncf-btn:hover:not(.ncf-disabled),
.ncf-nav-wrapper span.ncf-btn:not(.ncf-disabled):hover {
    background: #fff !important;
    color: #1A1A2E !important;
    border-color: #1A1A2E !important;
}

/* Stili specifici per pulsanti DISABILITATI */
.ncf-nav-wrapper .ncf-btn.ncf-disabled,
.ncf-nav-wrapper a.ncf-btn.ncf-disabled,
.ncf-nav-wrapper span.ncf-btn.ncf-disabled {
    /* Override colori per disabilitati */
    background: #e9ecef !important;
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    pointer-events: none !important;
    
    /* MANTIENI le stesse dimensioni */
    width: 95px !important;
    height: 40px !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* Centro - Input e Button */
.ncf-nav-wrapper .ncf-center {
    display: flex;
    align-items: stretch;
    height: 40px;
    flex: 0 0 auto;
}

.ncf-nav-wrapper .ncf-input {
    width: 50px;
    padding: 0 8px;
    border: 2px solid #1A1A2E;
    border-right: 0;
    border-radius: 6px 0 0 6px;
    font-size: 14px;
    text-align: center;
    font-weight: 600;
    background: #fff;
    color: #1A1A2E;
    margin: 0;
    height: 40px;
    line-height: 36px;
    vertical-align: middle;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.ncf-nav-wrapper .ncf-input::-webkit-outer-spin-button,
.ncf-nav-wrapper .ncf-input::-webkit-inner-spin-button {
    display: none;
}

.ncf-nav-wrapper .ncf-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
    z-index: 1;
}

.ncf-nav-wrapper .ncf-go {
    padding: 0 12px;
    background: #1A1A2E;
    color: #fff;
    border: 2px solid #1A1A2E;
    border-left: 0;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    height: 40px;
    line-height: 36px;
    transition: background 0.2s;
    text-transform: none;
}

.ncf-nav-wrapper .ncf-go:hover {
    background: #2D2D44;
}

/* Frecce */
.ncf-nav-wrapper .ncf-arrow {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
}

/* Quick Links */
.ncf-nav-wrapper .ncf-quick {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 12px 0 0 0;
    padding: 0 10px;
}

.ncf-nav-wrapper .ncf-quick-link {
    padding: 6px 10px;
    background: #fff;
    color: #1A1A2E;
    text-decoration: none;
    border-radius: 15px;
    border: 1px solid #dee2e6;
    font-size: 12px;
    transition: all 0.2s;
    line-height: 1.2;
}

.ncf-nav-wrapper .ncf-quick-link:hover {
    background: #1A1A2E;
    color: #fff;
    border-color: #1A1A2E;
}
/* ===========================
   RESPONSIVE - FIX MOBILE
   =========================== */

/* Mobile - tutti gli smartphone fino a 480px */
@media (max-width: 480px) {
    /* Nascondi sempre il testo su mobile */
    .ncf-nav-wrapper .ncf-btn .ncf-text {
        display: none !important;
    }
    
    .ncf-nav-wrapper .ncf-nav {
        gap: 8px;
        padding: 10px;
    }
    
    /* Pulsanti SOLO frecce - MOLTO PIÙ STRETTI */
    .ncf-nav-wrapper .ncf-btn,
    .ncf-nav-wrapper a.ncf-btn,
    .ncf-nav-wrapper span.ncf-btn,
    .ncf-nav-wrapper .ncf-btn.ncf-disabled {
        width: 36px !important;  /* Ridotto drasticamente */
        min-width: 36px !important;
        max-width: 36px !important;
        height: 38px !important;
        padding: 0 !important;
        font-size: 18px !important;
        justify-content: center !important;
        flex: 0 0 36px !important;  /* Forza larghezza fissa */
    }
    
    /* Centro - occupa tutto lo spazio rimanente */
    .ncf-nav-wrapper .ncf-center {
        height: 38px;
        flex: 1 1 auto;
        display: flex;
        justify-content: center;
        max-width: 140px;
        margin: 0 auto;
    }
    
    .ncf-nav-wrapper .ncf-input {
        width: 50px;
        height: 38px;
        line-height: 34px;
        padding: 0 6px;
        font-size: 14px;
    }
    
    .ncf-nav-wrapper .ncf-go {
        height: 38px;
        line-height: 34px;
        padding: 0 12px;
        font-size: 13px;
    }
    
    /* Frecce centrate e visibili */
    .ncf-nav-wrapper .ncf-arrow {
        font-size: 18px;
        font-weight: normal;
        display: block;
        line-height: 38px;
    }
}

/* Schermi molto piccoli < 360px */
@media (max-width: 360px) {
    .ncf-nav-wrapper .ncf-nav {
        gap: 5px;
        padding: 8px;
    }
    
    /* Ancora più compatto */
    .ncf-nav-wrapper .ncf-btn,
    .ncf-nav-wrapper a.ncf-btn,
    .ncf-nav-wrapper span.ncf-btn,
    .ncf-nav-wrapper .ncf-btn.ncf-disabled {
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        flex: 0 0 32px !important;
    }
    
    .ncf-nav-wrapper .ncf-input {
        width: 45px;
    }
}

/* Tablet */
@media (min-width: 481px) {
    .ncf-nav-wrapper {
        margin: 25px auto;
    }
    
    .ncf-nav-wrapper .ncf-nav {
        gap: 12px;
        padding: 15px;
    }
    
    .ncf-nav-wrapper .ncf-btn,
    .ncf-nav-wrapper a.ncf-btn,
    .ncf-nav-wrapper span.ncf-btn,
    .ncf-nav-wrapper .ncf-btn.ncf-disabled {
        width: 105px !important;
        height: 42px !important;
        padding: 10px 16px !important;
        font-size: 14px !important;
    }
    
    .ncf-nav-wrapper .ncf-center {
        height: 42px;
    }
    
    .ncf-nav-wrapper .ncf-input {
        width: 70px;
        height: 42px;
        line-height: 38px;
        font-size: 15px;
    }
    
    .ncf-nav-wrapper .ncf-go {
        height: 42px;
        line-height: 38px;
        padding: 0 15px;
        font-size: 14px;
    }
}

/* Desktop */
@media (min-width: 768px) {
    .ncf-nav-wrapper {
        margin: 30px auto;
        max-width: 700px;
    }
    
    .ncf-nav-wrapper .ncf-progress {
        padding: 0 15px;
    }
    
    .ncf-nav-wrapper .ncf-progress-text {
        font-size: 15px;
    }
    
    .ncf-nav-wrapper .ncf-progress-bar {
        height: 8px;
    }
    
    .ncf-nav-wrapper .ncf-nav {
        gap: 15px;
        padding: 18px;
    }
    
    .ncf-nav-wrapper .ncf-btn,
    .ncf-nav-wrapper a.ncf-btn,
    .ncf-nav-wrapper span.ncf-btn,
    .ncf-nav-wrapper .ncf-btn.ncf-disabled {
        width: 115px !important;
        height: 44px !important;
        padding: 12px 20px !important;
        font-size: 15px !important;
        gap: 6px !important;
    }
    
    .ncf-nav-wrapper .ncf-center {
        height: 44px;
    }
    
    .ncf-nav-wrapper .ncf-input {
        width: 80px;
        height: 44px;
        line-height: 40px;
        padding: 0 10px;
        font-size: 16px;
    }
    
    .ncf-nav-wrapper .ncf-go {
        height: 44px;
        line-height: 40px;
        padding: 0 18px;
        font-size: 15px;
    }
    
    .ncf-nav-wrapper .ncf-arrow {
        font-size: 20px;
    }
}

/* Desktop Large */
@media (min-width: 1024px) {
    .ncf-nav-wrapper {
        max-width: 800px;
    }
    
    .ncf-nav-wrapper .ncf-nav {
        gap: 20px;
        padding: 20px;
    }
    
    .ncf-nav-wrapper .ncf-btn,
    .ncf-nav-wrapper a.ncf-btn,
    .ncf-nav-wrapper span.ncf-btn,
    .ncf-nav-wrapper .ncf-btn.ncf-disabled {
        width: 125px !important;
        height: 46px !important;
        padding: 12px 24px !important;
    }
    
    .ncf-nav-wrapper .ncf-center {
        height: 46px;
    }
    
    .ncf-nav-wrapper .ncf-input {
        height: 46px;
        line-height: 42px;
    }
    
    .ncf-nav-wrapper .ncf-go {
        height: 46px;
        line-height: 42px;
    }
}

/* Fix finali */
.ncf-nav-wrapper input[type="number"].ncf-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

.ncf-nav-wrapper button.ncf-go,
.ncf-nav-wrapper button.ncf-go:focus {
    outline: none;
    box-shadow: none;
}