* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1a202c;
    background-color: #ffffff;
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 250px;
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    position: fixed;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.sidebar-nav-container {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.5rem;
}

/* Nascondere la barra di scorrimento */
.sidebar-nav-container::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav-container::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav-container::-webkit-scrollbar-thumb {
    background: #ffffff;
    border-radius: 4px;
}

.sidebar-nav-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar-nav {
    margin-bottom: 1.5rem;
    padding: 0 1.2rem;
    margin-top: 25px;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 0.4rem;
}

.nav-link {
    color: #64748b;
    text-decoration: none;
    padding: 0.6rem 0.8rem;
    display: block;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-link:hover {
    background-color: #f1f5f9;
    color: #6ea8fa;
}

.nav-link.active {
    background-color: #ffffff;
    color: #64748b;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #f3e7e7;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
}

.logout-btn {
    width: 80%;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid #2563eb;
    background-color: #2563eb;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
    margin-right: auto;
}

.logout-btn:hover {
    background-color: #1e40af;
    border-color: #1e40af;
}

/* ===== CONTENUTO PRINCIPALE ===== */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 0;
    max-width: calc(100% - 250px);
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.text-yellow {
    color: #fbbf24;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 500px;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    font-size: 0.95rem;
    border: 2px solid white;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: white;
    color: #4361ee;
}

.btn-primary:hover {
    background-color: #f8fafc;
    color: #3a0ca3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* SEZIONE CHI SIAMO */
.about {
    padding: 4rem 1.5rem;
    background-color: #f8fafc;
}

.about-content {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1e293b;
}

.about-text p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #2563eb;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    
}

.placeholder-image {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    opacity: 0.8;
}

/* SEZIONE SERVIZI */
.services {
    padding: 4rem 1.5rem;
    background-color: #ffffff;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.services-subtitle {
    text-align: center;
    color: #64748b;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: block;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #4361ee;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.service-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.service-link {
    color: #2563eb;
    font-weight: 600;
    font-size: 0.9rem;
}

.service-card:hover .service-link {
    color: #1e40af;
}

/* FINAL CTA */
.final-cta {
    text-align: center;
    padding: 4rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.final-cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.final-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #64748b;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* RESPONSIVE */
@media (max-width: 968px) {
    .about-content {
        flex-direction: column;
    }
    
    .stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100%;
    }
    
    .hero {
        padding: 2rem 1rem;
        min-height: 50vh;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}
.logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10%; /* Assicura che occupi tutto lo spazio disponibile */
}


.logo {
    position: sticky !important;
    top: 0 !important;
    z-index: 1001 !important;
    background: #ffffff !important;
}
.logo {
    padding: 1.5rem;
    border-bottom: 1px solid #f1f1f1;
    height: 80px;
    min-height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    margin-top: 5px;
}

.logo-image {
    max-height: 200px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}
/* Stili per l'immagine nella sezione Chi Siamo */
.about-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.about-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Media query per dispositivi mobili */
@media (max-width: 768px) {
    .about-logo {
        max-width: 200px;
    }
}