/* ==========================================================
   HOMEPAGE — colonna contenuto + colonna news
   Colori del tema (godlike.css): #0e0e0e #181818 #1a1b1e #2d2d2d
   bordo #3a3b3f, accenti #f0ad4e #5bc0de #5cb85c #d9534f
   ========================================================== */

/* --- Le classificazioni sotto il titolo --- */
.home-pegi {
    display: flex; justify-content: center; align-items: center;
    flex-wrap: wrap; gap: 18px; margin-top: 18px;
}
/* Vale sia per le icone disegnate (svg) sia per eventuali PNG ufficiali */
.home-pegi img,
.home-pegi svg { height: 66px; width: auto; flex: 0 0 auto; opacity: .9; transition: opacity .2s; }
.home-pegi img:hover,
.home-pegi svg:hover { opacity: 1; }
.home-pegi .nota {
    width: 100%; text-align: center; font-size: 12px; color: #8b8d91;
    letter-spacing: .06em; text-transform: uppercase; margin: 4px 0 0;
}

/* --- Il riquadro dell'Alpha --- */
.home-alpha {
    background: linear-gradient(180deg, #1c1d21 0%, #17181b 100%);
    border: 1px solid #3a3b3f; border-left: 3px solid #f0ad4e;
    border-radius: 4px; padding: 26px 28px;
}
.home-alpha .stato {
    display: inline-block; font-size: 12px; letter-spacing: .14em;
    text-transform: uppercase; color: #f0ad4e;
    border: 1px solid rgba(240,173,78,.45); border-radius: 2px;
    padding: 4px 10px; margin-bottom: 14px;
}
.home-alpha h2 {
    font-family: "Marcellus SC", Cochin, Georgia, serif; font-weight: 400;
    color: #fff; font-size: 27px; margin: 0 0 12px; line-height: 1.25;
}
.home-alpha p { margin-bottom: 14px; }
.home-alpha p:last-of-type { margin-bottom: 20px; }
.home-alpha a.parola-chiave { color: #5bc0de; border-bottom: 1px solid rgba(91,192,222,.4); }
.home-alpha a.parola-chiave:hover { color: #fff; border-bottom-color: #fff; }

/* --- La candidatura staff --- */
.home-staff {
    background: #181818; border: 1px solid #3a3b3f; border-radius: 4px;
    padding: 22px 24px; margin-top: 22px;
}
.home-staff h3 {
    font-family: "Marcellus SC", Cochin, Georgia, serif; font-weight: 400;
    color: #fff; font-size: 21px; margin: 0 0 10px;
}
.home-staff .ruoli {
    list-style: none; padding: 0; margin: 0 0 18px;
    display: flex; flex-wrap: wrap; gap: 8px;
}
.home-staff .ruoli li {
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
    color: #8b8d91; border: 1px solid #3a3b3f; border-radius: 2px; padding: 5px 10px;
}

/* --- La colonna delle news --- */
.home-news { position: sticky; top: 90px; }
.home-news .testata {
    display: flex; align-items: baseline; justify-content: space-between;
    border-bottom: 1px solid #3a3b3f; padding-bottom: 10px; margin-bottom: 18px;
}
.home-news .testata h2 {
    font-family: "Marcellus SC", Cochin, Georgia, serif; font-weight: 400;
    color: #fff; font-size: 22px; margin: 0; letter-spacing: .04em;
}
.home-news .testata .conta { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #8b8d91; }

/* La lista scorre da sola: la colonna resta ferma, le notizie no */
.notizie-lista {
    max-height: calc(100vh - 340px);
    min-height: 260px;
    overflow-y: auto;
    padding-right: 8px;
    /* barra di scorrimento nei colori del tema */
    scrollbar-width: thin;
    scrollbar-color: #4d4f55 #17181b;
}
.notizie-lista::-webkit-scrollbar { width: 8px; }
.notizie-lista::-webkit-scrollbar-track { background: #17181b; border-radius: 4px; }
.notizie-lista::-webkit-scrollbar-thumb { background: #3a3b3f; border-radius: 4px; }
.notizie-lista::-webkit-scrollbar-thumb:hover { background: #4d4f55; }

/* sfumatura in fondo: fa capire che c'è dell'altro sotto */
.notizie-contenitore { position: relative; }
.notizie-contenitore::after {
    content: ""; position: absolute; left: 0; right: 8px; bottom: 0; height: 44px;
    background: linear-gradient(180deg, rgba(14,14,14,0) 0%, rgba(14,14,14,.92) 100%);
    pointer-events: none; border-radius: 0 0 4px 4px;
}

.notizia {
    background: #181818; border: 1px solid #3a3b3f; border-radius: 4px;
    padding: 16px 18px; margin-bottom: 14px;
    transition: border-color .25s, transform .25s;
}
.notizia:last-child { margin-bottom: 4px; }
.notizia:hover { border-color: #4d4f55; transform: translateY(-2px); }
.notizia.in-evidenza { border-left: 3px solid #f0ad4e; background: #1c1d21; }

.notizia .riga-alta {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px;
}
.notizia .data { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8b8d91; }
.notizia .tag {
    font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 2px; border: 1px solid;
}
.tag-traguardo { color: #f0ad4e; border-color: rgba(240,173,78,.45); }
.tag-mondo     { color: #5cb85c; border-color: rgba(92,184,92,.45); }
.tag-sistemi   { color: #5bc0de; border-color: rgba(91,192,222,.45); }
.tag-avviso    { color: #d9534f; border-color: rgba(217,83,79,.45); }

.notizia h3 {
    font-family: "Marcellus SC", Cochin, Georgia, serif; font-weight: 400;
    color: #fff; font-size: 18px; line-height: 1.3; margin: 0 0 8px;
}
.notizia p { font-size: 15px; line-height: 1.6; margin: 0; }
.notizia p + p { margin-top: 8px; }

/* Le tappe in arrivo: Beta e apertura al pubblico */
.beta-blocco {
    background: linear-gradient(135deg, #1f2023 0%, #17181b 100%);
    border: 1px solid rgba(240,173,78,.35); border-radius: 4px;
    padding: 20px 22px; margin-bottom: 18px;
}
.beta-blocco .occhiello {
    font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
    color: #8b8d91; margin: 0 0 14px; text-align: center;
}

.tappa { position: relative; padding-left: 24px; }
.tappa::before {
    content: ""; position: absolute; left: 0; top: 7px;
    width: 11px; height: 11px; border-radius: 50%;
    background: #17181b; border: 2px solid #f0ad4e;
}
/* la linea che unisce le due tappe */
.tappa.prima::after {
    content: ""; position: absolute; left: 5px; top: 20px; bottom: -16px;
    width: 1px; background: rgba(240,173,78,.35);
}
.tappa + .tappa { margin-top: 18px; }
.tappa.seconda::before { border-color: #8b8d91; }

.tappa .titolo {
    font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
    color: #8b8d91; margin: 0 0 2px;
}
.tappa .quando {
    font-family: "Marcellus SC", Cochin, Georgia, serif;
    font-size: 25px; color: #f0ad4e; line-height: 1.15; margin: 0 0 4px;
}
.tappa.seconda .quando { color: #d9d9d9; font-size: 23px; }
.tappa .quando .forse {
    font-family: "Roboto Condensed", sans-serif; font-size: 13px;
    color: #8b8d91; letter-spacing: .04em;
}
.tappa p { font-size: 14px; margin: 0; color: #b9bbc0; line-height: 1.5; }

@media (max-width: 991px) {
    .home-news { position: static; margin-top: 34px; }
    /* su schermo stretto le notizie scorrono con la pagina, non da sole */
    .notizie-lista { max-height: none; overflow-y: visible; padding-right: 0; }
    .notizie-contenitore::after { display: none; }
}
@media (max-width: 575px) {
    .home-pegi { gap: 12px; }
    .home-pegi img,
    .home-pegi svg { height: 52px; }
    .home-alpha { padding: 22px 20px; }
    .home-alpha h2 { font-size: 23px; }
}
