﻿/* =========================
   CADUTI ROMA
========================= */

.totale-caduti {
    margin: 30px 0 25px;
    text-align: center;
    font-size: 24px;
    color: #4d5f73;
}

    .totale-caduti strong {
        color: #8c6b3f;
        font-size: 28px;
    }


/* =========================
   RICERCA
========================= */

.ricerca-caduti {
    text-align: center;
    margin: 20px 0 30px;
}

    .ricerca-caduti input {
        width: 420px;
        max-width: 90%;
        padding: 12px 12px;
        font-size: 14px;
        border: 1px solid #bdb7ab;
        background: #fff;
        box-sizing: border-box;
    }


/* =========================
   TABELLA
========================= */

.tabella-caduti {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

    .tabella-caduti th {
        background: #163b5b;
        color: #ffffff;
        padding: 14px 12px;
        text-align: left;
        font-size: 17px;
        font-weight: normal;
        position: sticky;
        top: 0;
        z-index: 5;
    }
    
    .tabella-caduti td {
        padding: 11px 12px;
        border-bottom: 1px solid #ddd;
        font-size: 15px;
        color: #2f2b24;
    }

    .tabella-caduti tr:nth-child(even) {
        background: #f7f4ee;
    }

    .tabella-caduti tr:hover {
        background: #ece7dc;
    }


    /* =========================
   COLONNE
========================= */

.tabella-caduti {
    width: 100%;
    table-layout: fixed;
}

    .tabella-caduti th:nth-child(1),
    .tabella-caduti td:nth-child(1) {
        width: 40%;
    }

    .tabella-caduti th:nth-child(2),
    .tabella-caduti td:nth-child(2) {
        width: 20%;
    }


    .tabella-caduti th:nth-child(3),
    .tabella-caduti td:nth-child(3) {
        text-align: center;
    }
    
    .tabella-caduti td {
        overflow-wrap: break-word;
    }
 /* =========================
   RESPONSIVE
========================= */

@media screen and (max-width: 900px) {

    .totale-caduti {
        font-size: 20px;
    }

        .totale-caduti strong {
            font-size: 24px;
        }

    .tabella-caduti {
        font-size: 14px;
    }

        .tabella-caduti th,
        .tabella-caduti td {
            padding: 8px;
        }

    .ricerca-caduti input {
        width: 100%;
    }
}
/* =========================
   FOGLIO CADUTI
========================= */


    .caduti-container {
        width: 100%;
        max-width: 1000px;
        margin: 5px auto 1px;
        padding: 25px 45px 60px;
        background: #f3efe4;
        box-shadow: 0 2px 14px rgba(0,0,0,0.12);
        box-sizing: border-box;
    }

    .equipaggio-full {
        width: 100%;
        max-width: 1800px;
        margin: 0 auto;
        padding: 20px 30px 20px;
        box-sizing: border-box;
    }


    main.equipaggio-full {
        flex: none !important;
    }

.selettore-bergamini {
    text-align: center;
    margin: 10px 0 20px;
}

    .selettore-bergamini h3 {
        margin: 8px 0 10px;
        color: #17395c;
    }

    .selettore-bergamini a {
        display: inline-block;
        margin: 5px;
        padding: 10px 18px;
        background: #17395c;
        color: #fff;
        text-decoration: none;
        border-radius: 4px;
    }

        .selettore-bergamini a:hover {
            background: #244f7a;
        }

.titolo-sezione {
    text-align: center;
    margin: 35px 0 20px;
    color: #17395c;
}
.copertina-bergamini {
    text-align: center;
    margin: 40px 0;
}

    .copertina-bergamini img {
        max-width: 420px; /* prima era 700 */
        width: 100%;
        margin: 0 auto;
        border: 8px solid #f2efe4;
        box-shadow: 0 4px 18px rgba(0,0,0,.15);
    }

.copertina-didascalia {
    max-width: 700px;
    margin: 20px auto 0;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    text-align: center;
}
.ricerca-caduti button {
    padding: 12px 22px;
    margin-left: 8px;
    border: 0;
    background: #17395c;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
}

    .ricerca-caduti button:hover {
        background: #244f7a;
    }

.copertina-bergamini img {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    border: 8px solid #f2efe4;
    box-shadow: 0 3px 8px rgba(0,0,0,0.18), 0 14px 28px rgba(0,0,0,0.22);
}
.decorazioni-box {
    background: #91a4b1;
    padding: 15px 20px;
    margin: 20px auto;
}

.decorazioni-titolo {
    text-align: center;
    color: #17395c;
    margin-bottom: 25px;
}

.decorazioni-foto {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-bottom: 10px;
}

.foto-bergamini img {
    max-width: 260px;
}

.foto-medaglia img {
    max-width: 300px;
}

.motivazione-oro {
    background: #17395c;
    color: #fff;
    width: 100%;
    margin: 0 auto 0;
    padding: 15px 15px;
    text-align: center;
    font-style: italic;
    font-weight: normal;
    line-height: 1.5;
    box-sizing: border-box;
}
.motivazione-oro {
    font-family: "Times New Roman", serif;
}
    .motivazione-oro p {
        margin: 8px 0;
        font-weight: normal;
    }
.btn-home-decorazioni {
    display: inline-block;
    padding: 12px 24px;
    background: #91a4b1;
    color: #17395c;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(23,57,92,.25);
    border-radius: 4px;
    transition: all .2s ease;
}

    .btn-home-decorazioni:hover {
        background: #a5b6c1;
        color: #102a43;
    }