﻿/* ====== Layout DGUE ====== */
.dgue-page {
    max-width: 940px;
}

.dgue-card {
    border: 1px solid #c3d0dd;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}

    .dgue-card > .card-header {
        background-color: #1f4e79;
        color: #fff;
        font-weight: 600;
        text-transform: uppercase;
        font-size: .9rem;
        letter-spacing: .03em;
        padding: .55rem .9rem;
    }

.dgue-ro-label {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: .1rem;
}

.dgue-ro-value {
    font-weight: 600;
}

.dgue-subsection-title {
    font-size: .85rem;
    font-weight: 700;
    color: #1f4e79;
    text-transform: uppercase;
    margin: 1.2rem 0 .5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: .2rem;
}

    .dgue-subsection-title:first-child {
        margin-top: 0;
    }

details.dgue-criterion {
    border: 1px solid #dee2e6;
    border-radius: .35rem;
    background: #fff;
}

    details.dgue-criterion > summary {
        padding: .55rem .8rem;
        cursor: pointer;
        font-weight: 600;
        background: #f1f5f9;
        border-radius: .35rem;
        display: flex;
        align-items: baseline;
        gap: .4rem;
    }

    details.dgue-criterion[open] > summary {
        border-bottom: 1px solid #e2e8f0;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

.dgue-criterion-body {
    padding: .8rem;
}

.dgue-criterion-num {
    color: #1f4e79;
}

.dgue-actionbar {
    position: sticky;
    bottom: 0;
    background: #f8fafc;
    border-top: 1px solid #dee2e6;
    z-index: 100;
}
/* ====== Sezioni richiudibili ====== */
details.dgue-card > summary {
    cursor: pointer;
}

details.dgue-card > summary {
    list-style: none;
}

    details.dgue-card > summary::-webkit-details-marker {
        display: none;
    }

    details.dgue-card > summary::after {
        content: "▾";
        margin-left: .6rem;
        font-size: .85em;
        opacity: .9;
    }

details.dgue-card:not([open]) > summary::after {
    content: "▸";
}
/* ====== Shell: header / footer ====== */
.dgue-shell {
    background: #f8fafc;
}

.dgue-header {
    background: linear-gradient(90deg, #1f4e79 0%, #2a6ca8 100%);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

/*.dgue-logo {
    display: inline-flex;
    align-items: center;
}

.dgue-logo-img {
    height: 44px;
    width: auto;
    display: block;
    }
*/

.dgue-logo-fallback {
    background: #ffffff22;
    color: #fff;
    font-weight: 700;
    padding: .6rem 1rem;
    border-radius: .4rem;
    letter-spacing: .1em;
}

.dgue-app-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
}

.dgue-app-sub {
    font-size: .8rem;
    opacity: .85;
}

.dgue-header-meta small {
    opacity: .75;
}

.dgue-header-meta strong {
    color: #fff;
}

.dgue-footer {
    background: #eef2f6;
    border-top: 1px solid #dde3ea;
    color: #475569;
}
.dgue-nav a {
    color: #fff;
    opacity: .85;
    text-decoration: none;
    padding: .25rem .7rem;
    border-radius: .35rem;
    font-size: .9rem;
}

    .dgue-nav a.active, .dgue-nav a:hover {
        opacity: 1;
        background: #ffffff22;
    }
/* ===== Home DGUE ===== */
.dgue-home {
    max-width: 1080px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4rem;
}

.dgue-home-header {
    text-align: center;
    margin-bottom: 3rem;
}

.dgue-home-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #1e40af;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.1rem;
}

.dgue-home-title {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.025em;
    margin: 0 0 0.5rem;
}

.dgue-home-subtitle {
    font-size: 1.05rem;
    color: #64748b;
    margin: 0;
}

/* ===== Split panels ===== */
.dgue-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .dgue-split {
        grid-template-columns: 1fr;
    }
}

/* ===== Panel base ===== */
.dgue-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.75rem 1.75rem 1.5rem;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 4px 12px rgba(15, 23, 42, 0.03);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

    .dgue-panel:hover {
        transform: translateY(-4px);
        border-color: #93c5fd;
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    }

.dgue-panel--accent {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
    border-color: #1e293b;
    color: #f8fafc;
}

    .dgue-panel--accent:hover {
        border-color: #3b82f6;
        box-shadow: 0 8px 25px rgba(59, 130, 246, 0.25), 0 4px 12px rgba(15, 23, 42, 0.2);
    }

/* ===== Panel internals ===== */
.dgue-panel-top {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.dgue-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 0.9rem;
    background: #eff6ff;
    color: #1d4ed8;
    flex-shrink: 0;
}

.dgue-panel--accent .dgue-panel-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}

.dgue-panel-overline {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #64748b;
}

.dgue-panel--accent .dgue-panel-overline {
    color: #94a3b8;
}

.dgue-panel-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.65rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.dgue-panel--accent .dgue-panel-title {
    color: #f1f5f9;
}

.dgue-panel-text {
    font-size: 0.925rem;
    line-height: 1.55;
    color: #475569;
    margin: 0 0 1.75rem;
    flex-grow: 1;
}

.dgue-panel--accent .dgue-panel-text {
    color: #94a3b8;
}

/* ===== Footer CTA ===== */
.dgue-panel-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.dgue-panel--accent .dgue-panel-footer {
    border-top-color: rgba(148, 163, 184, 0.2);
}

.dgue-panel-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1d4ed8;
}

.dgue-panel--accent .dgue-panel-cta {
    color: #93c5fd;
}

.dgue-panel-arrow {
    color: #1d4ed8;
    transition: transform 0.2s ease;
}

.dgue-panel--accent .dgue-panel-arrow {
    color: #93c5fd;
}

.dgue-panel:hover .dgue-panel-arrow {
    transform: translateX(4px);
}

/* ===== Page footer ===== */
.dgue-home-foot {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 3.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.dgue-dot {
    opacity: 0.6;
}

/* ===== Logo più grande e leggibile ===== */
.dgue-logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.dgue-logo-img {
    height: 148px; /* era probabilmente 32-36px → ora ben leggibile */
    width: auto;
    max-height: 92px;
    object-fit: contain;
}

.dgue-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.dgue-app-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0;
}

.dgue-app-sub {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}

/* Responsive: su schermi piccoli riduci un po' */
@media (max-width: 576px) {
    .dgue-logo-img {
        height: 40px;
    }

    .dgue-app-title {
        font-size: 1.15rem;
    }

    .dgue-app-sub {
        font-size: 0.7rem;
    }
}