/* ============================================================
   STILE CONDIVISO DI TUTTO IL SITO
   Modifica qui colori/font una volta sola: vale per ogni pagina.
   ============================================================ */

:root {
    --bg: #000000;
    --fg: #ffffff;
    --muted: #888888;
    --line: #333333;
}

body {
    margin: 2rem 5vw;
    background-color: var(--bg);
    color: var(--fg);
    line-height: 1.4;
}

a {
    color: var(--fg);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    font-style: italic;
}

/* --- Tasto home --- */
.home-btn {
    font-size: 1.2rem;
    display: inline-block;
    margin-bottom: 2.5rem;
}

.navigation {
    text-align: right;
    margin-bottom: 2.5rem;
}

/* --- HOME (index) --- */
body.home {
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.home h1 {
    font-size: 6rem;
    font-weight: normal;
    margin: 0 0 2rem 0;
}

.links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.links a {
    font-size: 1.2rem;
}

/* --- BLOG / APPUNTI --- */
.dates-strip {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.dates-strip a {
    font-size: 1rem;
    font-style: italic;
}

article {
    margin-bottom: 2.5rem;
}

article h2 {
    font-weight: normal;
    font-size: 1.5rem;
    margin: 0 0 0.2rem 0;
}

article .meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 0.4rem 0;
}

article p {
    margin: 0;
    white-space: pre-line;
}

/* --- MUSICA --- */
.song-block {
    margin-bottom: 3rem;
}

.song-block .meta {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 0.4rem 0;
}

.song-block p {
    margin: 0 0 0.4rem 0;
}

.song-block a {
    text-decoration: underline;
}

/* --- SCACCHI / repo --- */
.repo-container {
    margin-top: 1rem;
    margin-bottom: 2rem;
    border-left: 2px solid var(--line);
    padding-left: 1rem;
}

.repo-title {
    font-size: 1.5rem;
    font-weight: normal;
    margin: 0 0 0.5rem 0;
}

.repo-container p {
    white-space: pre-line;
    margin: 0 0 0.5rem 0;
}

.repo-link {
    font-family: monospace;
    color: var(--muted);
    font-size: 1rem;
}

.repo-link:hover {
    color: var(--fg);
}

/* --- FOTO --- */
.foto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.foto-item img {
    width: 100%;
    height: auto;
    display: block;
}

.foto-item .caption {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 0.4rem;
}

/* --- VIDEO --- */
.video-item {
    margin-bottom: 3rem;
    max-width: 720px;
}

.video-item h2 {
    font-weight: normal;
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.empty {
    color: var(--muted);
    font-style: italic;
}
