/**
 * Stili frontend del Glossario Marxista-Leninista.
 * Versione: 1.2.0
 * Autore: Roberto Nava
 */

/* -----------------------------------------------------------------------
 * Box generici
 * --------------------------------------------------------------------- */

.gml-box {
    margin: 2em 0;
    padding: 1.2em 1.5em;
    border-radius: 4px;
    font-family: inherit;
    line-height: 1.6;
}

/* Box excerpt — rosso */
.gml-box--excerpt {
    background-color: #c0392b;
    color: #fff;
    border-left: 5px solid #922b21;
}

.gml-box--excerpt .gml-box__text {
    margin: 0;
    font-size: 1.05em;
    font-style: italic;
}

/* Box termini correlati */
.gml-box--related {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-left: 5px solid #c0392b;
}

.gml-box--related .gml-box__title {
    margin-top: 0;
    margin-bottom: 0.75em;
    font-size: 1.1em;
    color: #c0392b;
    font-weight: 700;
}

.gml-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.gml-related-list__item {
    display: inline-block;
}

/* Termini correlati: sfondo scuro neutro, testo chiaro — hover invertito */
.gml-related-list__item a {
    display: inline-block;
    padding: 0.25em 0.75em;
    background-color: #4a4a4a;
    color: #f5f5f5;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9em;
    border: 1px solid #333;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gml-related-list__item a:hover {
    background-color: #fff;
    color: #c0392b;
    border-color: #c0392b;
    text-decoration: none;
}

/* Box autori */
.gml-box--authors {
    background-color: #fdfbf8;
    border: 1px solid #e8e0d5;
    border-top: 4px solid #c0392b;
    padding: 1.5em;
}

.gml-box--authors .gml-box__title {
    margin-top: 0;
    margin-bottom: 1em;
    font-size: 1.1em;
    color: #333;
    font-weight: 700;
}

/* -----------------------------------------------------------------------
 * Griglia autori
 * --------------------------------------------------------------------- */

.gml-authors-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25em;
    justify-content: flex-start;
}

.gml-author-card {
    text-align: center;
    flex: 0 0 110px;
    max-width: 110px;
}

.gml-author-card__img-wrap {
    width: 90px;
    height: 90px;
    margin: 0 auto 0.5em;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid #c0392b;
    background-color: #eee;
}

.gml-author-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.gml-author-card__name {
    font-size: 0.85em;
    line-height: 1.3;
}

.gml-author-card__name a {
    color: #c0392b;
    text-decoration: none;
    font-weight: 600;
}

.gml-author-card__name a:hover {
    text-decoration: underline;
}

/* Nota Wikimedia */
.gml-wikimedia-note {
    text-align: center;
    margin-top: 1.25em;
    font-size: 0.8em;
    color: #777;
}

.gml-wikimedia-note a {
    color: #c0392b;
}

/* -----------------------------------------------------------------------
 * Shortcode indice alfabetico
 * --------------------------------------------------------------------- */

.gml-indice {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    max-width: 100%;
}

.gml-indice__nav {
    margin-bottom: 1.5em;
    line-height: 2;
}

.gml-indice__nav-link {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px;
    background-color: #c0392b;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 3px;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.gml-indice__nav-link:hover {
    background-color: #922b21;
    color: #fff;
}

.gml-indice__section {
    margin-bottom: 2em;
}

.gml-indice__letter {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #c0392b;
    border-bottom: 2px solid #c0392b;
    padding-bottom: 0.3em;
    margin-bottom: 0.6em;
}

.gml-indice__list {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 2em;
}

@media ( max-width: 600px ) {
    .gml-indice__list {
        columns: 1;
    }
}

.gml-indice__item {
    padding: 0.2em 0;
    break-inside: avoid;
}

.gml-indice__item a {
    color: #333;
    text-decoration: none;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
}

.gml-indice__item a:hover {
    color: #c0392b;
    text-decoration: underline;
}

.gml-indice-empty {
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    color: #777;
}

/* -----------------------------------------------------------------------
 * Pagina biografia
 * Il contenuto e' iniettato nel wrapper del tema tramite get_header()
 * e get_footer(), quindi eredita la sidebar/widget area del tema.
 * .gml-biography-wrap applica solo tipografia e layout interno.
 * --------------------------------------------------------------------- */
 
.gml-biography-wrap,
.gml-biography-wrap p,
.gml-biography-wrap div,
.gml-biography-wrap li,
.gml-biography-wrap span,
.gml-biography-wrap a,
.gml-biography-wrap td {
    font-family: Verdana, Geneva, sans-serif !important;
    font-size: 14pt !important;
}

.gml-biography-wrap {
    font-size: 14pt !important;
    line-height: 1.8 !important;
    color: #222 !important;
}

.gml-biography__name {
    font-size: 26px !important;
    font-weight: bold !important;
    margin: 0 0 0.8em 0 !important;
    color: #1a1a1a !important;
    border-left: 5px solid #c0392b !important;
    padding-left: 0.6em !important;
    line-height: 1.3 !important;
}

.gml-biography__body {
    overflow: hidden !important;
}

.gml-biography__figure {
    float: left !important;
    margin: 0 1.8em 1.2em 0 !important;
    max-width: 280px !important;
    text-align: center !important;
}

.gml-biography__img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: 280px !important;
    border: 3px solid #c0392b !important;
    border-radius: 3px !important;
}

.gml-biography__fonte {
    font-size: 11px !important;
    color: #888 !important;
    margin-top: 0.4em !important;
    word-break: break-all !important;
    text-align: center !important;
}

.gml-biography__fonte a {
    color: #c0392b !important;
}

.gml-biography__text {
    font-size: 14pt !important;
    line-height: 1.85 !important;
    color: #222 !important;
}

.gml-biography__text p,
.gml-biography__text p * {
    font-size: 14pt !important;
    line-height: 1.85 !important;
    color: #222 !important;
}

.gml-biography__clear {
    clear: both !important;
}

.gml-biography__publications {
    margin-top: 2em !important;
    padding-top: 1.5em !important;
    border-top: 2px solid #c0392b !important;
}

/* H2 per "Opere principali" */
.gml-biography__publications-title {
    font-size: 22px !important;
    font-weight: bold !important;
    color: #c0392b !important;
    margin: 0 0 0.75em 0 !important;
}

.gml-biography__publications p,
.gml-biography__publications li,
.gml-biography__publications p *,
.gml-biography__publications li * {
    font-size: 14pt !important;
    line-height: 1.75 !important;
    color: #333 !important;
}

.gml-biography__publications ul,
.gml-biography__publications ol {
    padding-left: 1.5em !important;
}

@media ( max-width: 600px ) {
    .gml-biography__figure {
        float: none !important;
        margin: 0 auto 1.5em !important;
        max-width: 180px !important;
    }
    .gml-biography__img {
        max-width: 180px !important;
    }
}