.bg-dark{
	background-color:rgb(0, 69, 132) !important;
}
.navbar-brand > img {height: 2em!important;}

/* Sidebar menu */
/* Sidebar menu con sottovoci indentate */
.nav.flex-column .nav {
    display: flex;
    flex-direction: column;
    padding-left: 20px;
    margin: 5px 0;
    border-left: 2px solid #ddd;
}

.nav.flex-column .nav .nav-link {
    color: #666;
    font-size: 0.9rem;
    padding: 8px 10px;
    border-radius: 4px;
}

.nav.flex-column .nav .nav-link:hover {
    background-color: #e9ecef;
    color: #333;
}

.nav.flex-column .nav .nav-link.active {
    background-color: #007bff;
    color: white;
}

.nav.flex-column > .nav-item > .nav-link {
    color: #333;
    font-weight: 500;
}

.nav.flex-column > .nav-item > .nav-link:hover {
    background-color: #f0f0f0;
}

.nav.flex-column > .nav-item > .nav-link.active {
    background-color: #007bff;
    color: white;
}

/* search panel*/

.search-result-item {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: box-shadow 0.3s ease;
}

.search-result-item:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.result-type {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.type-iso-control {
    background-color: #d1ecf1;
    color: #0c5460;
}

.type-iso-clause {
    background-color: #d4edda;
    color: #155724;
}

.type-csf-function {
    background-color: #fff3cd;
    color: #856404;
}

.type-csf-category {
    background-color: #f8d7da;
    color: #721c24;
}

.type-csf-subcategory {
    background-color: #e6ed64;
    color: #383d41;
    }
    
    
/** content*/ 

:root {
    --primary: #1E3A5F;
    --primary-light: #2E5A8F;
    --secondary: #2E7D32;
    --warning: #F57C00;
    --critical: #C62828;
    --success: #2E7D32;
    --neutral: #616161;
    --light-bg: #f8f9fa;
    --white: #ffffff;
}

* {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
}

body {
    color: var(--neutral);
    background-color: var(--white);
    transition: background-color 0.3s ease;
}

body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

body.dark-mode .card {
    background-color: #2d2d2d;
    color: #e0e0e0;
    border-color: #444;
}

body.dark-mode .navbar {
    background-color: #2d2d2d !important;
    border-bottom-color: #444 !important;
}

body.dark-mode footer {
    background-color: #1a1a1a !important;
    border-top: 1px solid #444;
}

body.dark-mode .table {
    color: #e0e0e0;
}

body.dark-mode .table thead th {
    border-bottom-color: #444;
}

body.dark-mode .table tbody tr {
    border-color: #444;
}

/* NAVBAR */
.navbar-brand {
    font-size: 1.3rem !important;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: color #fff;
}

.navbar-nav .nav-link:hover {
    color: #DBCF15 !important;
}

/* HERO SECTION */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 100px 20px;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    opacity: 0.8;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    opacity: 0.6;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 95, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* CARDS */
.card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.card-header {
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 12px 12px 0 0;
}

body.dark-mode .card-header {
    background-color: #3a3a3a;
    border-bottom-color: #444;
}

/* BADGE STATUS */
.badge-success {
    background-color: var(--success) !important;
}

.badge-warning {
    background-color: var(--warning) !important;
}

.badge-danger {
    background-color: var(--critical) !important;
}

.badge-info {
    background-color: #1976d2 !important;
}

/* PROGRESS BARS */
.progress {
    border-radius: 10px;
    background-color: #e0e0e0;
    height: 8px;
}

.progress-bar {
    background-color: var(--primary);
    transition: width 0.6s ease;
}

.progress-bar.bg-success {
    background-color: var(--success) !important;
}

.progress-bar.bg-warning {
    background-color: var(--warning) !important;
}

.progress-bar.bg-danger {
    background-color: var(--critical) !important;
}

/* VALUE PROPOSITION CARDS */
.value-card {
    text-align: center;
    padding: 30px 20px;
}

.value-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.value-card:hover .value-icon {
    color: var(--primary-light);
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* TABLE STYLES */
.table {
    font-size: 0.95rem;
}

.table thead th {
    background-color: #007bff;
    color: white;
    border: none;
    font-weight: 600;
}
.table thead th > a:link{
	color: #fff;
}
.table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.table tbody tr:hover {
    background-color: #f5f5f5;
}

body.dark-mode .table tbody tr:hover {
    background-color: #3a3a3a;
}

/* SECTION PADDING */
section {
    padding: 80px 20px;
}

@media (max-width: 768px) {
    section {
        padding: 50px 20px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
}

/* TIMELINE */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background-color: var(--primary);
}

.timeline-item {
    margin-bottom: 50px;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
    margin-right: 52%;
    text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 52%;
    margin-right: 0;
    text-align: left;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: var(--primary);
    border: 4px solid white;
    border-radius: 50%;
    z-index: 1;
}

.timeline-content {
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

body.dark-mode .timeline-content {
    background-color: #3a3a3a;
}

/* COMPARISON TABLE */
.comparison-table {
    overflow-x: auto;
}

.comparison-cell {
    padding: 15px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.comparison-cell.header {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}

.comparison-cell.feature {
    background-color: #f5f5f5;
    text-align: left;
    font-weight: 500;
}

body.dark-mode .comparison-cell.feature {
    background-color: #3a3a3a;
}

.comparison-check {
    color: var(--success);
    font-size: 1.5rem;
}

.comparison-cross {
    color: #999;
    font-size: 1.5rem;
}

/* ACCORDION */
.accordion-button {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    font-weight: 500;
    color: var(--primary);
    border-radius: 8px;
    margin-bottom: 10px;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(30, 58, 95, 0.25);
    border-color: var(--primary);
}

.accordion-body {
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

body.dark-mode .accordion-body {
    background-color: #2d2d2d;
    border-color: #444;
}

/* FORM STYLES */
.form-control,
.form-select {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 95, 0.25);
}

/* HOVER EFFECTS */
.hover-link {
    transition: all 0.3s ease;
}

.hover-link:hover {
    color: var(--primary) !important;
    text-decoration: underline !important;
}

/* SPINNER ANIMATION */
@keyframes spin {
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* FADE IN ANIMATION */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* COVERAGE INDICATOR */
.coverage-high {
    color: var(--success);
}

.coverage-medium {
    color: var(--warning);
}

.coverage-low {
    color: var(--critical);
}

/* ALERT CUSTOM */
.alert-info {
    background-color: #e3f2fd;
    border-color: #1976d2;
    color: #0d47a1;
}

.alert-warning {
    background-color: #fff3e0;
    border-color: var(--warning);
    color: #e65100;
}

.alert-success {
    background-color: #e8f5e9;
    border-color: var(--success);
    color: #1b5e20;
}

.alert-danger {
    background-color: #ffebee;
    border-color: var(--critical);
    color: #b71c1c;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .timeline::before {
        left: 0;
    }
    
    .timeline-marker {
        left: 0;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px;
        margin-right: 0;
        text-align: left;
    }
}   
    
    