/* ========================== RESET / BODY / VARIABILI ========================== */
html, body {
    margin: 0;
    padding: 0;
    height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgb(250,250,250);
}

:root {
    --bg-main: rgb(245,239,225);
    --bg-article: rgb(250,247,238);
    --border-radius: 10px;

    /* layout coerente con master */
    --layout-gap: 6.25vw;
    --sidebar-w: 20vw;
}

/* ========================== TIPOGRAFIA GENERALE ========================== */
p {
    margin: 0 0 1px 0;
    line-height: 1.1;
    word-spacing: normal;
}

.scritte { font-weight: 300; color: rgba(0,0,0,0.85); z-index: 1; }
.testo { opacity: 0.8; }

.download {
    font-size: 14px;
    opacity: 0.9;
}
.download a { text-decoration: none; color: black; }

/* ========================== HEADER / FOTO / FASCE COLORATE ========================== */
.titolo > div {
    position: fixed;
    font-weight: bold;
    color: rgba(0,0,0,0.85);
    z-index: 2;
}

.foto {
    position: fixed;
    top: 2vh;
    left: var(--layout-gap);
    z-index: 10;
}

.zona {
    position: fixed;
    top: 0;
    width: 100vw;
    height: 25vh;
    background-color: rgb(234,227,208);
    z-index: 2;
}

.zona-2 {
    position: fixed;
    top: 25vh;
    width: 100%;
    height: 5vh;
    background-color: rgb(218,208,186);
    z-index: 2;
}

/* ========================== MENU ORIZZONTALE ========================== */
.fila {
    display: flex;
    gap: 10%;
    margin: 0 16.4vh;
    font-size: 14px;
    font-weight: 200;
    color: rgba(0,0,0,0.85);
    white-space: nowrap;
    height: 100%;
    align-items: center;
}

.fila div:nth-child(3) { cursor: pointer; }

.menu-item a {
    display: block;
    cursor: pointer;
    color: inherit;
    text-decoration: none;
    padding: 0.5em 0;
    transition: color 0.2s;
}

.menu-item a:hover { color: #000; }

/* ========================== CONTENITORI PRINCIPALI ========================== */
.container {
    position: absolute;
    top: 29vh;
    left: var(--layout-gap);
    width: 65vw;
    height: calc(100vh - 29vh);
    overflow-y: auto;
    background-color: rgb(250,250,250);
    box-sizing: border-box;
    scrollbar-width: none;
}

.container-2 {
    position: fixed;
    top: 33.98vh;
    right: var(--layout-gap);
    width: var(--sidebar-w);
    height: calc(100vh - 33.98vh);
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    text-align: left;
    background-color: var(--bg-main);
    scrollbar-width: none;
}

/* ========================== SIDEBAR / TESTI ========================== */
.container-2 p {
    font-size: 11px;
    margin: 1.5vh 1vw 1vh 1vw;
    line-height: 1.5;
    text-align: left;
    hyphens: auto;
}

.container-2 p.title {
    font-size: 13px;
    margin: 3.5vh 0 0.75vh 1vw;
    font-weight: bold;
    line-height: 0;
    text-align: left;
}

/* ========================== BOARD PRINCIPALE ========================== */
.container-board {
    position: fixed;
    top: 29vh;
    left: var(--layout-gap);      /* allineato al master */
    width: 61.5vw;
    height: calc(100vh - 29vh);
    background-color: rgb(250,250,250);
    padding: 20px;
    border-radius: 15px;
    box-sizing: border-box;
    z-index: 1;
    overflow: auto;
    scrollbar-width: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;      /* MOD: era left (non valido) / niente centro */
}

/* contenitore interno: NIENTE centrature */
.board-scrollable {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.board-scrollable::-webkit-scrollbar { display: none; }

/* titoli board */
h2 {
    font-size: 15px;
    font-weight: bold;
    margin: 1.25vh 0 1vh 0;
    color: black;
    text-align: left;             /* MOD: era center */
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
    width: 100%;
}

/* ========================== LISTE ========================== */
.board-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 15px 0;   /* ↑ più spazio dopo ogni sezione */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}


.board-list li {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 4px;
    text-align: left;
}

/* ========================== TESTO FINALE ========================== */
.board-text {
    font-size: 11px;
    line-height: 1.4;
    text-align: left;
    width: 100%;
}

.board-text a {
    color: #000;
    text-decoration: underline;
}

.board-text p {
    margin: 0 0 2vh 0;     /* spazio verticale tra sezioni */
    line-height: 1.5;     /* respiro editoriale */
}

.board-text p strong {
    display: block;        /* va a capo come titolo */
    font-weight: 600;
    letter-spacing: 0.02em;
}
