/* ANAC Trasparenza 2026 - Frontend Styles */

.anac-sezione {
    margin: 0 0 2em;
    padding: 1.5em;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.anac-sezione h2 {
    margin-top: 0;
    font-size: 1.3em;
    border-bottom: 2px solid #2271b1;
    padding-bottom: .5em;
}

.anac-sottosezioni {
    margin-top: 1em;
}

.anac-sottosezione {
    margin: 0 0 1.5em;
    padding: 1em;
    border-left: 3px solid #2271b1;
    background: #f8f9fa;
    border-radius: 3px;
}

.anac-sottosezione h3 {
    margin: 0 0 .5em;
    font-size: 1.05em;
}

.anac-avviso {
    font-style: italic;
    color: #666;
    font-size: .9em;
    background: #f0f7fb;
    border: 1px solid #c8ddf0;
    border-radius: 4px;
    padding: .8em 1em;
}

.anac-lista-documenti {
    margin: 0;
    padding: 0;
    list-style: none;
}

.anac-lista-documenti li {
    padding: .4em 0;
    border-bottom: 1px solid #eee;
}

.anac-lista-documenti li:last-child {
    border-bottom: none;
}

.anac-lista-documenti a {
    text-decoration: none;
    font-weight: 500;
}

.anac-lista-documenti a:hover {
    text-decoration: underline;
}

.anac-data {
    color: #888;
    font-size: .85em;
    margin-left: .3em;
}

/* Albero */
.anac-albero {
    margin: 0 0 2em;
    padding: 1.5em;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.anac-albero h2 {
    margin-top: 0;
}

.anac-albero ol > li {
    margin: .5em 0;
    font-weight: 500;
}

.anac-albero ul {
    margin: .3em 0 .3em 1.5em;
    list-style: disc;
}

.anac-albero ul > li {
    font-weight: normal;
    margin: .2em 0;
}

.anac-albero a {
    text-decoration: none;
}

.anac-vuoto {
    color: #999;
    text-decoration: line-through;
}

/* Elenco documenti */
.anac-documenti {
    margin: 0 0 2em;
    padding: 1.5em;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.anac-elenco-tutti {
    margin: 0;
    padding: 0;
    list-style: none;
}

.anac-elenco-tutti li {
    padding: .6em 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: .5em;
    flex-wrap: wrap;
}

.anac-elenco-tutti li:last-child {
    border-bottom: none;
}

.anac-sezione-label {
    background: #e8f1fb;
    color: #1a4d7f;
    font-size: .8em;
    padding: .15em .5em;
    border-radius: 3px;
}

.anac-sezione-label::before {
    content: "\f002";
    font-family: "Dashicons";
    margin-right: .2em;
}

/* Single document */
.anac-single-document {
    max-width: 900px;
    margin: 0 auto;
    padding: 2em 1em;
}

.anac-single-header {
    background: #fff;
    padding: 1.5em;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    margin-bottom: 1em;
}

.anac-single-header h1 {
    margin: 0 0 .5em;
    font-size: 1.5em;
}

.anac-single-meta {
    display: flex;
    gap: 1em;
    flex-wrap: wrap;
    font-size: .85em;
    color: #666;
    border-top: 1px solid #eee;
    padding-top: .8em;
}

.anac-single-meta span {
    background: #f0f0f0;
    padding: .2em .6em;
    border-radius: 3px;
}

.anac-single-content {
    background: #fff;
    padding: 1.5em;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
    line-height: 1.7;
}

/* Archive */
.anac-archive {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2em 1em;
}

.anac-archive-header {
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #ddd;
}

.anac-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5em;
}

.anac-archive-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1.25em;
    transition: box-shadow .2s;
}

.anac-archive-card:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,.12);
}

.anac-archive-card h3 {
    margin: 0 0 .5em;
    font-size: 1rem;
}

.anac-archive-card h3 a {
    text-decoration: none;
}

.anac-archive-card .anac-meta {
    font-size: .85em;
    color: #888;
    margin-bottom: .6em;
}

.anac-archive-card .anac-excerpt {
    font-size: .9em;
    color: #555;
}

/* Taxonomy / Sezioni */
.anac-taxonomy-description {
    margin-bottom: 2em;
    padding: 1.5em;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

.anac-document-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 1em 1.25em;
    margin-bottom: .75em;
}

.anac-document-box h3 {
    margin: 0 0 .3em;
    font-size: 1rem;
}

.anac-document-box h3 a {
    text-decoration: none;
}

.anac-document-box p {
    margin: .2em 0;
    color: #777;
    font-size: .9em;
}

/* Responsive */
@media (max-width: 640px) {
    .anac-archive-grid {
        grid-template-columns: 1fr;
    }

    .anac-sezione,
    .anac-sottosezione {
        padding: 1em;
    }
}