﻿ 
    :root {
        --brown: #8B5A2B;
        --green: #2F6B2F;
        --light-bg: #faf8f5;
        --text: #333;
        --max-width: 1000px;
        --radius: 10px;
        --font-stack: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    }
    
    .breadcrumb-container {
        margin: 20px 10%;
        background-color: #f2f6f5; /* grigio-verde chiaro, naturale */
        padding: 12px 20px;
        border-radius: 8px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    }

    .breadcrumb {
        display: flex;
        flex-wrap: wrap;
        list-style: none;
        padding: 0;
        margin: 0;
        font-size: 0.95rem;
        color: #555;
    }

        .breadcrumb li {
            display: flex;
            align-items: center;
        }

            .breadcrumb li + li::before {
                content: "›";
                padding: 0 8px;
                color: #888;
            }

        .breadcrumb a {
            color: #2b7a78; /* blu-verde naturale */
            text-decoration: none;
            transition: color 0.2s ease-in-out;
            font-weight: 600;
        }

            .breadcrumb a:hover {
                color: #195e5b;
            }

        .breadcrumb .active {
            color: #222;
            font-weight: 600;
            cursor: default;
        }

    .box-header {
        background: linear-gradient(180deg, #fff, #f5f3f0);
        border-left: 4px solid var(--green);
        padding: 1rem;
        border-radius: 8px;
        margin-bottom: 1rem;
    }
    h2 {
        color: var(--brown);
        margin-top: 1.4rem;
        font-size:1.4rem;
        margin-bottom: 0.6rem;
    }
    .project-details {
        max-width: 900px;
        margin: auto;
    }

    .project-date {
        color: #666;
    }

    .ba-container {
        position: relative;
        width: 100%;
        max-width: 1000px;
        overflow: hidden;
        border-radius: 12px;
    }

    .ba-img img {
        width: 100%;
        display: block;
    }

    .ba-before {
        position: absolute;
        top: 0;
        left: 0;
        width: 50%; /* start in mid point */
        overflow: hidden;
        z-index: 2;
    }

    .ba-after {
        z-index: 1;
    }

    .ba-handle {
        position: absolute;
        top: 0;
        left: 50%;
        width: 4px;
        height: 100%;
        background: #523A28; /* marrone del sito */
        cursor: ew-resize;
        z-index: 3;
        transform: translateX(-50%);
    }

        .ba-handle::after {
            content: "⇆";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 22px;
            color: white;
        }

 @media (max-width: 992px) {
    .breadcrumb-container {
        margin: 15px 10%;
        padding: 10px 15px;
    }
}

@media (max-width: 600px) {
    .breadcrumb-container {
        margin: 10px 5%;
        padding: 8px 12px;
    }

    .breadcrumb {
        font-size: 0.85rem;
    }
}