/* ── Portfolio — Carousel moderno con overlay e card ── */

.portfolio-hero {
    background: linear-gradient(135deg, #1a2a4a 0%, #2c4a7c 100%);
    padding: 60px 0 40px;
    color: white;
    text-align: center;
    margin-bottom: 0;
}
.portfolio-hero h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 2px;
    margin-top: 0;
}
.portfolio-hero p {
    opacity: 0.8;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* ── Carousel slides con overlay testo ── */
.portfolio-carousel .item {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: #111;
}
.portfolio-carousel .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.portfolio-carousel .item:hover img {
    transform: scale(1.03);
}
.portfolio-carousel .carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 30px 25px;
    text-align: left;
    border-radius: 0;
}
.portfolio-carousel .carousel-caption h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.portfolio-carousel .carousel-caption p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 4px;
}

/* Badge importo in alto a destra */
.portfolio-carousel .badge-importo {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(44,74,124,0.9);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 10;
}

/* ── Indicatori moderni ── */
.portfolio-carousel .carousel-indicators li {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: none;
    margin: 0 4px;
    transition: transform 0.2s, background 0.2s;
}
.portfolio-carousel .carousel-indicators .active {
    background: #fff;
    transform: scale(1.3);
}

/* ── Frecce moderne ── */
.portfolio-carousel .carousel-control {
    background: none;
    width: 60px;
    opacity: 0;
    transition: opacity 0.3s;
}
.portfolio-carousel:hover .carousel-control {
    opacity: 1;
}
.portfolio-carousel .carousel-control .glyphicon {
    font-size: 2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ── Stato vuoto ── */
.portfolio-empty {
    text-align: center;
    padding: 80px 20px;
    color: #888;
}
.portfolio-empty i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #ddd;
    display: block;
}

/* ── Loading spinner ── */
.portfolio-loading {
    text-align: center;
    padding: 60px;
    color: #2c4a7c;
    font-size: 1.1rem;
}
.portfolio-loading i {
    display: block;
    margin-bottom: 12px;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .portfolio-hero h1 { font-size: 1.8rem; }
    .portfolio-carousel .item { height: 280px; }
    .portfolio-carousel .carousel-caption h3 { font-size: 1.1rem; }
    .portfolio-hero { padding: 40px 0 25px; }
}
