﻿
/* =========================
   AFFONDAMENTO
========================= */

/* contenitore generale */

.affondamento-content {
    flex: 1;
    min-width: 0;
    background: #f3efe3;
    padding: 40px 42px 70px;
    border: 1px solid #d8d1bf;
    box-shadow: 0 3px 12px rgba(0,0,0,0.10);
    box-sizing: border-box;
    overflow-x: hidden;
}

/* layout principale */

#layout {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
    overflow-x: hidden;

.affondamento-content {
    flex: 1;
    min-width: 0;
}
/* =========================================
   BLOCCO SUPERIORE
========================================= */


/* =========================================
   MAPPA OPERATIVA
========================================= */

.mappa-operativa {
    display: flex;
    justify-content: center;
    margin-bottom: 34px;
}

    .mappa-operativa img {
        width: 650px;
        max-width: 100%;
        height: auto;
        display: block;
        border: 1px solid #bfa76a;
        box-shadow: 0 4px 14px rgba(0,0,0,0.20);
    }

/* =========================================
   TIMELINE
========================================= */

.timeline-affondamento {
    margin-top: 8px;
}

/* singola riga */

.timeline-riga {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 8px;
    margin-bottom: 8px;
    align-items: start;
}

/* box orario */

.timeline-ora {
    background: #163d63;
    color: #f3e6bf;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    padding: 7px 6px;
    border-radius: 3px;
    line-height: 1.25;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    align-self: start;
}

/* testo evento */

.timeline-evento {
    background: #31506a;
    color: #ffffff;
    padding: 11px 15px;
    line-height: 1.55;
    font-size: 14px;
    border-left: 3px solid #d4b878;
    box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}

/* hover */

.timeline-riga:hover .timeline-ora {
    background: #0a2238;
}

.timeline-riga:hover .timeline-evento {
    background: #24425a;
}

/* testi evidenziati */

.timeline-evento strong {
    color: #f5e8bf;
}

/* citazioni / fonogrammi */

.timeline-evento em {
    color: #f0f0f0;
    font-style: italic;
}

/* =========================================
   PULIZIA MOBILE
========================================= */

@media screen and (max-width: 900px) {

    #layout {
        flex-direction: column;
    }

    .affondamento-top {
        grid-template-columns: 1fr;
    }

    .timeline-riga {
        grid-template-columns: 1fr;
    }

    .timeline-ora {
        width: fit-content;
    }

    .mappa-operativa img {
        width: 100%;
    }
}
.foto-premessa {
    margin: 28px 0 34px 0;
}

    .foto-premessa img {
        display: block;
        width: 520px;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        border: 1px solid #bfa76a;
        box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    }
.timeline-next {
    margin-top: 26px;
}

.next-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient( to bottom, #1c4f7c 0%, #163d63 55%, #102e4c 100% );
    color: #f3e6bf;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid rgba(212,184,120,0.55);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 3px 10px rgba(0,0,0,0.22);
    transition: all 0.22s ease;
}

    .next-button:hover {
        background: #0a2238;
        color: #ffffff;
        transform: translateY(-1px);
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 5px 14px rgba(0,0,0,0.28);
    }


    /* =========================
   TITOLO
========================= */

    .affondamento-content h1 {
        text-align: center;
        font-size: 48px;
        font-weight: 300;
        color: #1d1d1d;
        margin-bottom: 42px;
        letter-spacing: 1px;
    }

/* =========================
   INTRO
========================= */

.intro-box {
    max-width: 920px;
    margin: 0 auto 40px auto;
    background: #445d6c;
    color: #f5f1e6;
    padding: 28px 34px;
    line-height: 1.8;
    font-size: 19px;
    border-left: 5px solid #c7a55b;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

    .intro-box p {
        margin-bottom: 18px;
    }

        .intro-box p:last-child {
            margin-bottom: 0;
        }

/* =========================
   IMMAGINI
========================= */

.mappa-operativa,
.immagine-centrata {
    text-align: center;
    margin: 45px 0;
}

    .mappa-operativa img {
        width: 100%;
        max-width: 760px;
        border: 1px solid #cfc7b3;
        box-shadow: 0 4px 14px rgba(0,0,0,0.15);
    }

    .immagine-centrata img {
        width: 100%;
        max-width: 620px;
        border: 1px solid #cfc7b3;
        box-shadow: 0 4px 14px rgba(0,0,0,0.18);
    }

/* =========================
   GALLERIA FOTO
========================= */

.galleria-dinamica {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 50px 0;
}

    .galleria-dinamica img {
        width: 100%;
        display: block;
        border: 1px solid #cfc7b3;
        box-shadow: 0 5px 16px rgba(0,0,0,0.20);
        transition: transform 0.25s ease;
    }

        .galleria-dinamica img:hover {
            transform: scale(1.02);
        }

/* =========================
   TESTI
========================= */

.testo-affondamento {
    max-width: 920px;
    margin: 40px auto;
    font-size: 18px;
    line-height: 1.9;
    color: #222;
}

    .testo-affondamento p {
        margin-bottom: 24px;
    }

/* =========================
   SCHEMI
========================= */

.schema-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    flex-wrap: wrap;
    margin: 55px 0;
}

    .schema-row img {
        width: 100%;
        max-width: 420px;
        border: 1px solid #cfc7b3;
        box-shadow: 0 4px 12px rgba(0,0,0,0.16);
    }

/* =========================
   BOX CITAZIONE
========================= */

.citazione-box {
    max-width: 900px;
    margin: 60px auto;
    padding: 36px 42px;
    background: #27485d;
    color: #f4efe3;
    text-align: center;
    font-size: 24px;
    line-height: 1.7;
    font-style: italic;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

    .citazione-box.grande {
        font-size: 22px;
        padding: 50px;
        background: #203b4c;
    }

/* =========================
   LINK PAGINA SUCCESSIVA
========================= */

.timeline-next {
    text-align: center;
    margin-top: 70px;
}

.next-button {
    display: inline-block;
    background: #123a5a;
    color: #f5f1e6;
    padding: 16px 34px;
    border-radius: 6px;
    font-size: 22px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 5px 12px rgba(0,0,0,0.20);
    transition: all 0.25s ease;
}

    .next-button:hover {
        background: #1c547d;
        transform: translateY(-2px);
    }

/* =========================
   RESPONSIVE
========================= */

@media screen and (max-width: 900px) {

    .galleria-dinamica {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 640px) {

    .affondamento-content {
        padding: 24px;
    }

        .affondamento-content h1 {
            font-size: 34px;
        }

    .galleria-dinamica {
        grid-template-columns: 1fr;
    }

    .intro-box,
    .testo-affondamento {
        font-size: 16px;
    }

    .citazione-box {
        font-size: 19px;
        padding: 28px;
    }
}

