﻿/* ================= HEADER ================= */

.info-header-container {
    width: 95%;
    margin: 20px auto 30px auto;
    background: linear-gradient(135deg, #f7f4ff, #efeaff);
    padding: 35px 55px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(120, 90, 200, 0.10);
    border: 1px solid #e4dcff;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #3c3558;
}

/* Titolo */
.info-header-title {
    font-size: 2.3rem;
    font-weight: 700;
    color: #4b3f72;
    margin: 0 0 14px 0;
}

/* Descrizione */
.info-header-description {
    font-size: 1.1rem;
    color: #6b628a;
    margin: 0 0 28px 0;
}

/* Container info */
.info-header-info {
    display: flex;
    flex-wrap: wrap;
    gap: 22px 32px;
}

/* Blocco key/value */
.info-header-info-item {
    display: flex;
    flex-direction: column;
    min-width: 170px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #ffffff, #f3efff);
    border-radius: 14px;
    border: 1px solid #e6deff;
    box-shadow: 0 4px 10px rgba(120, 90, 200, 0.08);
    transition: all 0.25s ease;
}

    .info-header-info-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 18px rgba(120, 90, 200, 0.15);
    }

/* Key */
.info-header-info-key {
    font-weight: 600;
    font-size: 0.85rem;
    color: #8c7ae6;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Value */
.info-header-info-value {
    font-size: 1.05rem;
    color: #3c3558;
    font-weight: 600;
}


/* ================= LIST ================= */

.info-list {
    max-width: 1200px;
    margin: 0 auto 35px auto;
}

    /* Base */
    .info-list .list-group {
        background: transparent;
    }

    /* Item */
    .info-list .list-group-item {
        position: relative;
        background: linear-gradient(135deg, #faf8ff, #f1ecff);
        color: #3a3552;
        border: 1px solid #e5dcff;
        border-radius: 16px !important;
        margin-bottom: 16px;
        padding: 22px 26px;
        box-shadow: 0 5px 14px rgba(120, 90, 200, 0.08);
        transition: all 0.25s ease;
    }

        /* Hover */
        .info-list .list-group-item:hover {
            background: linear-gradient(135deg, #f1ecff, #e7ddff);
            transform: translateY(-4px);
            box-shadow: 0 10px 22px rgba(120, 90, 200, 0.15);
            border-color: #d6caff;
        }

        /* Attivo */
        .info-list .list-group-item.active {
            background: linear-gradient(135deg, #dcd2ff, #c7b8ff);
            color: #2d2350;
            border: 1px solid #b9a8ff;
            font-weight: 600;
        }

    /* Titolo */
    .info-list h5 {
        font-weight: 600;
        margin-bottom: 6px;
        color: #4b3f72;
    }

    /* Descrizione */
    .info-list p {
        color: #6b628a;
        margin-bottom: 6px;
    }

    /* Meta info */
    .info-list small {
        color: #8b83a9;
    }

    /* Bordo glow soft */
    .info-list .list-group-item::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 16px;
        padding: 1px;
        background: linear-gradient(135deg, rgba(140,122,230,0.25), rgba(255,255,255,0));
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

/* ================= PROGRAM ITEM COMPONENTS ================= */

/* Cover Image */
.info-program-cover {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(120, 90, 200, 0.15);
    border: 2px solid #e5dcff;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.info-program-cover:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 24px rgba(120, 90, 200, 0.25);
}

/* Flag Icon - Large and Prominent */
.info-program-flag {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff, #f8f5ff);
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(120, 90, 200, 0.20);
    border: 3px solid #e5dcff;
    transition: all 0.3s ease;
    z-index: 10;
}

.info-program-flag:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 8px 24px rgba(120, 90, 200, 0.30);
    border-color: #d6caff;
}

.info-program-flag i {
    font-size: 2.2rem;
    display: block;
}

/* Meta Information */
.info-program-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 8px;
}

/* Badge for Provinces and other info */
.info-badge {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #8c7ae6, #9c88ff);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(140, 122, 230, 0.25);
    transition: all 0.25s ease;
}

.info-badge:hover {
    background: linear-gradient(135deg, #7c6ad6, #8c78ef);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(140, 122, 230, 0.35);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-program-cover {
        width: 80px;
        height: 110px;
    }

    .info-program-flag {
        width: 48px;
        height: 48px;
        top: 12px;
        right: 12px;
    }

    .info-program-flag i {
        font-size: 1.6rem;
    }
}
