/* =====================================================================
   REPARTI SPECIALIZZATI E N.I.A.  (usa css/theme.css)
   ===================================================================== */

body { padding: 24px; }
.container { max-width: 1000px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.disclaimer-mini { max-width: 1000px; }

.intro { color: var(--text-2); font-size: 0.92rem; line-height: 1.6; padding: 0 4px; }
.intro strong { color: var(--text); }

.legenda { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-3); padding: 0 4px; }
.legenda span { display: inline-flex; align-items: center; gap: 7px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.on { background: var(--brand); box-shadow: 0 0 8px rgba(229, 56, 59, 0.8); }
.dot.off { background: #4a3f3e; }

/* ------------------------- GRIGLIA REPARTI ------------------------- */
.reparti-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }

.reparto {
    position: relative;
    display: flex; flex-direction: column; gap: 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 22px;
    text-align: left; font-family: inherit; color: inherit;
    cursor: pointer;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.reparto.attivo:hover { transform: translateY(-4px); border-color: rgba(229, 56, 59, 0.65); background: var(--surface-2); box-shadow: 0 18px 34px -16px rgba(229, 56, 59, 0.55); }
.reparto-icona {
    width: 58px; height: 58px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, rgba(229, 56, 59, 0.3), rgba(229, 56, 59, 0.1));
    border: 1px solid rgba(229, 56, 59, 0.4);
    color: #ff8a8c; font-size: 1.5rem;
}
.reparto h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: 0.01em; }
.reparto p { font-size: 0.84rem; color: var(--text-3); margin-top: 2px; }
.reparto-stato {
    margin-top: auto;
    display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
    font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 4px 11px; border-radius: 999px;
}
.reparto.attivo .reparto-stato { background: rgba(34, 197, 94, 0.14); color: #4ade80; border: 1px solid rgba(34, 197, 94, 0.38); }

/* Reparto non posseduto: scuro e non cliccabile */
.reparto.bloccato {
    background: #0e0b0b;
    border-style: dashed;
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: 0.5;
}
.reparto.bloccato .reparto-icona { background: #1a1414; border-color: var(--line); color: #6b5f5d; }
.reparto.bloccato .reparto-stato { background: rgba(255, 255, 255, 0.05); color: var(--text-3); border: 1px solid var(--line); }

/* ------------------------- VOCI N.I.A. ------------------------- */
.voci { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.voce {
    display: grid; grid-template-columns: 56px 1fr 18px; column-gap: 16px; row-gap: 2px; align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 20px;
    text-decoration: none; color: inherit;
    transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
.voce:hover { transform: translateY(-3px); border-color: rgba(229, 56, 59, 0.6); background: var(--surface-2); box-shadow: 0 16px 30px -16px rgba(229, 56, 59, 0.55); }
.voce-icona { grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 15px; display: flex; align-items: center; justify-content: center; background: linear-gradient(145deg, rgba(229, 56, 59, 0.28), rgba(229, 56, 59, 0.1)); border: 1px solid rgba(229, 56, 59, 0.36); color: #ff8a8c; font-size: 1.4rem; }
.voce h3 { font-size: 1rem; font-weight: 700; align-self: end; }
.voce p { font-size: 0.8rem; color: var(--text-3); align-self: start; }
.voce-freccia { grid-column: 3; grid-row: 1 / span 2; color: var(--text-3); font-size: 0.85rem; transition: color 0.18s, transform 0.18s; }
.voce:hover .voce-freccia { color: var(--amber); transform: translateX(2px); }
.tag-ext { display: inline-flex; align-items: center; gap: 5px; font-size: 0.64rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #ffb877; margin-top: 4px; }

/* ------------------------- AVVISO "LAVORI IN CORSO" ------------------------- */
.avviso { width: 100%; max-width: 420px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--amber); border-radius: 20px; padding: 32px 28px 26px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.9); }
.avviso i.big { font-size: 2.6rem; color: var(--amber); margin-bottom: 14px; }
.avviso h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.avviso p { color: var(--text-2); font-size: 0.92rem; line-height: 1.55; margin-bottom: 22px; }

@media (max-width: 600px) {
    body { padding: 14px; }
}
