/* ============================================================
   assets/css/style.css — CSS sito pubblico UNSA
   ============================================================ */

:root {
    --blu-unsa:   #015293;
    --blu-chiaro: #e8f0fe;
    --testo:      #2d3748;
    --muted:      #6c757d;
    --border:     #e2e8f0;
}

body {
    color: var(--testo);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: .95rem;
}

/* --- Hero home -------------------------------------------- */
.hero {
    background: linear-gradient(135deg, #015293 0%, #0277bd 60%, #01579b 100%);
    color: #fff;
    padding: 4rem 0 3rem;
}
.hero h1 { font-size: 2rem; font-weight: 700; }
.hero p   { font-size: 1.1rem; opacity: .9; }

/* --- Card contenuto --------------------------------------- */
.card-contenuto {
    border: 1px solid var(--border);
    border-radius: .5rem;
    transition: box-shadow .2s, transform .2s;
    overflow: hidden;
}
.card-contenuto:hover {
    box-shadow: 0 4px 16px rgba(1,82,147,.12);
    transform: translateY(-2px);
}
.card-contenuto .card-header-tipo {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
    color: var(--blu-unsa);
    margin-bottom: .25rem;
}
.card-contenuto .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--testo);
    margin-bottom: .5rem;
    line-height: 1.4;
}
.card-contenuto .card-data {
    font-size: .8rem;
    color: var(--muted);
}

/* --- Badge riservato -------------------------------------- */
.badge-riservato {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    font-size: .7rem;
    padding: .2em .5em;
    border-radius: .25rem;
    font-weight: 600;
}

/* --- Sezione titolo pagina -------------------------------- */
.page-header {
    background: var(--blu-chiaro);
    border-bottom: 3px solid var(--blu-unsa);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}
.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--blu-unsa);
    margin: 0;
}
.page-header p {
    color: var(--muted);
    margin: .25rem 0 0;
    font-size: .9rem;
}

/* --- Form login/registrazione ----------------------------- */
.auth-card {
    max-width: 460px;
    margin: 3rem auto;
}
.auth-header {
    background: var(--blu-unsa);
    color: #fff;
    padding: 1.5rem;
    border-radius: .5rem .5rem 0 0;
    text-align: center;
}

/* --- Documento item --------------------------------------- */
.doc-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .875rem 1rem;
    border: 1px solid var(--border);
    border-radius: .4rem;
    background: #fff;
    transition: background .15s;
}
.doc-item:hover { background: var(--blu-chiaro); }
.doc-item .doc-icon {
    font-size: 1.75rem;
    color: #dc3545;
    flex-shrink: 0;
}
.doc-item .doc-title {
    font-weight: 600;
    color: var(--testo);
    font-size: .95rem;
}
.doc-item .doc-meta {
    font-size: .78rem;
    color: var(--muted);
}

/* --- News dettaglio --------------------------------------- */
.news-corpo {
    line-height: 1.8;
    font-size: .975rem;
}
.news-corpo p  { margin-bottom: 1rem; }
.news-corpo ul { padding-left: 1.5rem; }
.news-corpo a  { color: var(--blu-unsa); }

/* --- Responsive ------------------------------------------- */
@media (max-width: 767px) {
    .hero { padding: 2.5rem 0 2rem; }
    .hero h1 { font-size: 1.5rem; }
    .auth-card { margin: 1.5rem auto; }
}
