/* ==========================================================================
   STILE MODERNO, RESPONSIVE E 100% RISPETTOSO DELLA PRIVACY
   ========================================================================== */
:root {
    --primary-color: #009966; 
    --dark-text: #2c3e50;
    --light-bg: #f4f7f5;
    --border-green: #009900;
}

* {
    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: 900px;
    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: #ffffff;
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: var(--dark-text);
    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;
}

.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;
}
.archive-card a {
    color: #0055cc;
    text-decoration: none;
    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;
}
.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; }
}