﻿/* ============================================
   STILI SPECIFICI PER PAGINE WMS
   (Fogli d'impianto catastale storici)
   ============================================ */

/* --- HEADER PAGINE WMS --- */
.page-header-custom {
    background-color: #fff;
    border-left: 6px solid var(--blue_logo);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-icon-custom {
    font-size: 2.8rem;
    color: var(--blue_logo);
    background: #e9f0f7;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* --- CARD CONTENUTO --- */
.content-card-custom {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px 35px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

    .content-card-custom h2 {
        font-size: 1.5rem;
        font-weight: 600;
        color: #1d4a70;
        margin-top: 0;
        margin-bottom: 20px;
        border-bottom: 2px solid #e6edf4;
        padding-bottom: 12px;
    }

    .content-card-custom h3 {
        font-size: 1.2rem;
        font-weight: 600;
        color: #1d4a70;
        margin-top: 30px;
        margin-bottom: 12px;
    }

    .content-card-custom h4 {
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--blue_logo);
        margin-top: 20px;
        margin-bottom: 8px;
    }

    .content-card-custom ul {
        list-style: none;
        padding-left: 0;
    }

        .content-card-custom ul li {
            padding: 6px 0 6px 28px;
            position: relative;
        }

            .content-card-custom ul li:before {
                content: "\F26A";
                font-family: "bootstrap-icons";
                position: absolute;
                left: 0;
                top: 6px;
                color: var(--blue_logo);
                font-size: 1.1rem;
            }

/* --- BADGE STATO COMUNE --- */
.badge-available {
    background-color: #d4edda;
    color: #155724;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

.badge-coming {
    background-color: #fff3cd;
    color: #856404;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
}

/* --- INFO BOX --- */
.info-box-custom {
    background: #f0f5fb;
    border-left: 5px solid var(--blue_logo);
    padding: 18px 22px;
    border-radius: 8px;
    margin: 20px 0;
}

    .info-box-custom i {
        color: var(--blue_logo);
        margin-right: 8px;
    }

/* --- SELEZIONE COMUNE --- */
.comune-selector-custom {
    background: #f0f5fb;
    border-radius: 12px;
    padding: 25px 30px;
    text-align: center;
    margin-top: 15px;
}

    .comune-selector-custom label {
        font-weight: 600;
        margin-right: 15px;
        font-size: 1.1rem;
    }

    .comune-selector-custom select {
        padding: 10px 20px;
        border-radius: 30px;
        border: 1px solid #ccc;
        font-size: 1rem;
        min-width: 220px;
        background: white;
        cursor: pointer;
    }

        .comune-selector-custom select:focus {
            outline: none;
            border-color: var(--blue_logo);
            box-shadow: 0 0 0 3px rgba(0, 129, 255, 0.2);
        }

/* --- URL WMS --- */
.wms-url-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px 20px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    margin: 10px 0;
}

    .wms-url-box code {
        font-size: 0.9rem;
        color: #1d4a70;
    }

/* --- RICHIESTA CREDENZIALI --- */
.credential-request-box {
    background: #e9f0f7;
    border-radius: 12px;
    padding: 20px 25px;
    text-align: center;
    margin-top: 15px;
}

/* --- BACK LINK --- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--blue_logo);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

    .back-link:hover {
        color: var(--blue_sfondo_hover);
        text-decoration: underline;
    }

/* --- LIVELLI DI PRECISIONE (SCHEDA COMUNE) --- */
.precision-level {
    padding-left: 0;
    list-style: none;
}

    .precision-level li {
        padding: 10px 15px 10px 45px;
        position: relative;
        border-bottom: 1px solid #f0f0f0;
    }

        .precision-level li:last-child {
            border-bottom: none;
        }

        .precision-level li:before {
            content: "\F26A";
            font-family: "bootstrap-icons";
            position: absolute;
            left: 10px;
            top: 10px;
            color: var(--blue_logo);
            font-size: 1.3rem;
        }

        .precision-level li strong {
            color: #1d4a70;
        }

        .precision-level li .small-note {
            display: block;
            font-size: 0.9rem;
            color: #6c757d;
            margin-top: 4px;
            font-style: italic;
        }

/* --- RESPONSIVE --- */
@@media (max-width: 768px) {
    .page-header-custom {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

        .page-header-custom h1 {
            font-size: 1.5rem;
        }

    .content-card-custom {
        padding: 20px;
    }

    .comune-selector-custom {
        padding: 20px;
    }

        .comune-selector-custom label {
            display: block;
            margin-bottom: 10px;
        }

        .comune-selector-custom select {
            width: 100%;
            margin-bottom: 15px;
        }

    .wms-url-box code {
        font-size: 0.75rem;
    }
}
