/* --- Layout Globale e Sfondo --- */
body {
    /* Sfondo immagine centrata e non distorta */
    background-image: url('../images/bg.jpg');
    /* backdrop-filter: blur(10px); */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;

    /* fallback colore */
    background-color: #f0f2f5;

    /* display: flex; */
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    /* padding: 20px; */
    font-family: 'Inter', sans-serif;

    min-height: 100vh;
    min-height: 100dvh;
}

/* --- Contenitore Principale (Main Content Area) --- */
#contentPapages {
    min-height: 600px;
}

/* --- Personalizzazione Tab di Navigazione (sotto la Navbar o in Index) --- */
.nav-tabs {
    border: none;
    gap: 10px;
    margin-bottom: 25px;
}

.nav-tabs .nav-link {
    border: none !important;
    border-radius: 10px !important;
    background-color: #eee;
    color: #636e72 !important;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background-color: #e2e6ea;
}

.nav-tabs .nav-link.active {
    background-color: #212529 !important; /* Colore scuro per il tab attivo */
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- Animazioni Transizione Tab --- */
.tab-pane.fade {
    transition: opacity 0.2s linear;
}

/* --- Responsive Fixes --- */
@media (max-width: 991.98px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .main-content-hero {
        padding: 20px !important; /* Riduce il padding su mobile */
    }
}

/* --- Effetto Glassmorphism generale (utilizzato in vari componenti) --- */
.glass-effect {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}


/* ===== SPACING ===== */
.mt-5 {
    margin-top: 3rem;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    /* max-width: 1200px; */
    margin: 0 auto;
}

/* ===== GRID SYSTEM ===== */
.row {
    display: flex;
    flex-wrap: wrap;
}

.col-sm-4,
.col-sm-8 {
    width: 100%;
}

/* Small breakpoint */
@media (min-width: 576px) {
    .col-sm-4 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }

    .col-sm-8 {
        flex: 0 0 66.6666%;
        max-width: 66.6666%;
    }
}

/* ===== DISPLAY UTILITIES ===== */
.d-none {
    display: none;
}

.d-lg-block {
    display: none;
}

@media (min-width: 992px) {
    .d-lg-block {
        display: block;
    }
}

/* ===== TAB SYSTEM ===== */
.tab-content {
    position: relative;
}

/* Base pane */
.tab-pane {
    display: none;
}

/* Fade animation */
.fade {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* When visible */
.tab-pane.show {
    display: block;
    opacity: 1;
}

/* Active state */
.active {
    display: block;
}

/* Combined fade + active */
.fade.show {
    opacity: 1;
}

/* ===== CUSTOM IDS ===== */
#contentPapages {
    min-height: 60vh;
}

#portfolioTabsContent {
    width: 100%;
}

/* Optional smooth transitions between sections */
.tab-pane {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.stats-box {
    padding: 20px 10px;
    border-radius: 12px;
    background: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}


.main-content-hero {
    background: #fff;
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    background-color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
}