/* ==========================================================================
   STILE MODERNO, RESPONSIVE E 100% RISPETTOSO DELLA PRIVACY
   ========================================================================== */
:root {
    --primary-color: #009966; 
    --dark-text: #2c3e50;
    --light-bg: #f4f7f5;
    --border-green: #009900;
}
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-y: scroll;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    /* Font di sistema: massima privacy, zero chiamate esterne e velocità fulminea */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--dark-text);
    background-color: var(--light-bg);
    line-height: 1.6;
    padding: 10px;
}

.site-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    padding: 20px;
}

.header-box {
    border: 2px dashed var(--border-green);
    padding: 12px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    background-color: #ffffff;
    cursor: pointer;
    margin-bottom: 15px;
    border-radius: 6px;
}

.header-box img {
    max-height: 50px;
    height: auto;
    width: auto;
}
.logo-storico-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.dal-anno {
    font-size: 0.72rem;
    color: #999;
    font-style: italic;
    letter-spacing: 0.5px;
}
.logo-nuovo {
    max-height: 50px;
    height: auto;
    width: auto;
}

.logo-storico {
    max-height: 50px;
    height: auto;
    width: auto;
}
.logo-moderno-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.url-text {
    font-size: 0.85rem;
    color: #555;
    font-weight: 600;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #666;
    text-align: left;
    padding-right: 5px;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

nav {
    background-color: #f4f7f5;
    border: 1px solid var(--border-green);
    border-radius: 8px;
    margin-bottom: 25px;
    padding: 5px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

nav a {
    display: inline-block;
    padding: 10px 20px;
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

nav a:hover, nav a.active {
    background-color: var(--primary-color);
    color: #ffffff;
}

main {
    padding: 10px 5px;
}

.page-intro {
    background-color: #eaf3fb;
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #2d6a4f;
    line-height: 1.6;
    text-align: left;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.page-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}
.info-box {
    background-color: #eaf3fb;
    border-left: 5px solid #3b82c4;
    padding: 15px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}
.archive-card {
    background-color: #f9f9f9;
    border-left: 5px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 8px 8px 0;
}
.data-pub {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}
.data-pub {
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

.dsa {
    color: #e67e00;
    font-weight: 600;
}

.archive-card a:hover {
    text-decoration: underline;
}

.notice-box {
    background-color: #fff9e6;
    border-left: 5px solid #ffcc00;
    padding: 15px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}
.history-box {
    background-color: #fff9e6;
    border-left: 5px solid #ffcc00;
    padding: 15px;
    margin: 25px 0;
    border-radius: 0 8px 8px 0;
}

.link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.link-button {
    display: block;
    padding: 12px 15px;
    background-color: #e6f5f0;
    color: #006644;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
}

.link-button:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

hr {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.88rem;
    color: #555;
}

.license-box {
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #777;
}
p.contatore {
    margin-top: 12px;
    font-size: 0.8rem !important;
    color: #aaa !important;
    font-style: italic;
}
.validation-link {
    margin-top: 15px;
    font-size: 0.8rem;
    color: #999;
}

.validation-link a {
    color: #999;
    text-decoration: none;
}

.validation-link a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    body { padding: 30px 20px; }
    .site-container { padding: 30px; }
    .page-title { font-size: 2.2rem; }
    .link-group { flex-direction: row; }
    .link-button { flex: 1; }
}
/* ============================================================
   ACCORDION MENSILI E NEWS-CARD
   (adattate da mockup-esame-di-stato.css)
   ============================================================ */

.content-accordion {
    background: white;
    border: 1px solid #dbe4dc;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}
.content-accordion summary {
    list-style: none;
    cursor: pointer;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--primary-color);
    background: #f0fdf4;
}
.content-accordion summary::-webkit-details-marker { display: none; }
.content-accordion .accordion-meta {
    display: flex;
    align-items: center;
    gap: 10px;
}
.content-accordion .count-badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: #666;
    background: white;
    padding: 2px 9px;
    border-radius: 999px;
}
.content-accordion .arrow {
    font-size: 0.7rem;
    color: #666;
    transition: transform 0.2s ease;
}
.content-accordion[open] summary .arrow { transform: rotate(90deg); }
.content-accordion .accordion-body {
    padding: 14px 14px 4px;
}
.content-accordion .accordion-body .news-card:last-child { margin-bottom: 0; }

.news-card {
    background: white;
    border: 1px solid #dbe4dc;
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.news-card .date {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.news-card p {
    margin: 8px 0 0;
    color: #444;
    font-size: 0.92rem;
}
.year-group { margin-bottom: 30px; }

.year-group-title {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-color);
}
.year-group-title h2 {
    font-size: 1.35rem;
    margin: 0;
    color: #3b82c4;
}
.news-card .links a {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-right: 4px;
}
.news-card .links a:hover { text-decoration: underline; }
.news-card .links .sep { color: #ccc; margin: 0 4px; }