/* =====================================================
   LA NOSTRA STORIA
   MOTOCLUB GUZZISTI DELL'ETNA
   Le superfici, i bordi e le ombre editoriali sono gestiti
   da css/layout/pages.css e condivisi con lo Statuto.
   Questo file contiene soltanto le peculiarità della Storia.
===================================================== */
/* =====================================================
   IMPAGINAZIONE DELLA PAGINA
===================================================== */
.storia-page {
    padding: calc(var(--header-height) + 40px) 24px 80px;
}
.storia-box {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 48px clamp(26px, 5vw, 58px) 44px;
    box-sizing: border-box;
}
/* =====================================================
   TITOLO PRINCIPALE
===================================================== */
.storia-box h1 {
    margin: 0 0 18px;
    color: var(--bianco);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(34px, 4vw, 46px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 1.5px;
    text-align: center;
    text-transform: uppercase;
    text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.65),
        0 7px 18px rgba(0, 0, 0, 0.55);
}
/* =====================================================
   LINEA DECORATIVA
===================================================== */
.storia-box .title-line {
    width: 92px;
    height: 4px;
    margin: 0 auto 30px;
    background: linear-gradient(
        90deg,
        #720000,
        #d71920 50%,
        #720000
    );
    border-radius: 4px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 12px rgba(179, 0, 0, 0.28);
}
/* =====================================================
   SOTTOTITOLO E OCCHIELLO
===================================================== */
.storia-box h2 {
    max-width: 820px;
    margin: 0 auto 14px;
    color: #e2e2e2;
    font-family: 'Oswald', sans-serif;
    font-size: clamp(23px, 2.8vw, 30px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.6px;
    text-align: center;
}
.storia-box h3 {
    max-width: 800px;
    margin: 0 auto 38px;
    color: #aeadad;
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    letter-spacing: 0.45px;
    text-align: center;
}
/* =====================================================
   CORPO DELLA STORIA
===================================================== */
.storia-testo {
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
}
.storia-testo p {
    margin: 0 0 23px;
    color: #dedede;
    font-family: 'Roboto', sans-serif;
    font-size: 16.5px;
    font-weight: 400;
    line-height: 1.9;
    text-align: justify;
    hyphens: auto;
    overflow-wrap: break-word;
}
.storia-testo p:last-child {
    margin-bottom: 0;
}
.storia-testo strong {
    color: #e05252;
    font-weight: 700;
}
/* Il motto utilizza la citazione condivisa definita in pages.css. */
/* =====================================================
   MESSAGGI DI LETTURA DEL CONTENUTO
===================================================== */
.storia-messaggio-errore {
    margin: 20px 0;
    padding: 16px 18px;
    color: #f0dada;
    background: rgba(179, 0, 0, 0.13);
    border: 1px solid rgba(179, 0, 0, 0.45);
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
}
/* =====================================================
   PULSANTE TORNA ALLA HOME
===================================================== */
.storia-box > .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-height: 46px;
    margin: 36px auto 0;
    padding: 12px 25px;
    box-sizing: border-box;
    color: var(--bianco);
    background: var(--rosso);
    border: 1px solid #990000;
    border-top: 2px solid #ed5656;
    border-bottom: 4px solid #590000;
    border-radius: 40px;
    box-shadow:
        inset 0 2px 1px rgba(255, 255, 255, 0.22),
        inset 0 -3px 5px rgba(0, 0, 0, 0.18),
        0 4px 0 rgba(0, 0, 0, 0.40),
        0 8px 16px rgba(0, 0, 0, 0.25);
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.8px;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease,
        filter 180ms ease,
        transform 180ms ease;
}
.storia-box > .btn:hover {
    color: var(--bianco);
    background: var(--rosso-hover);
    border-top-color: #ff7777;
    border-right-color: #ad0000;
    border-bottom-color: #490000;
    border-left-color: #ad0000;
    filter: brightness(1.04);
    transform: translateY(-2px);
    box-shadow:
        inset 0 2px 1px rgba(255, 255, 255, 0.28),
        inset 0 -3px 5px rgba(0, 0, 0, 0.18),
        0 5px 0 rgba(0, 0, 0, 0.40),
        0 12px 20px rgba(0, 0, 0, 0.30);
}
.storia-box > .btn:active {
    transform: translateY(2px);
    border-top-color: #a60000;
    border-right-color: #720000;
    border-bottom-color: #380000;
    border-left-color: #720000;
    box-shadow:
        inset 0 3px 5px rgba(0, 0, 0, 0.20),
        0 1px 0 rgba(0, 0, 0, 0.42);
}
.storia-box > .btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}
/* =====================================================
   TABLET E MOBILE
===================================================== */
@media (max-width: 768px) {
    .storia-page {
        padding: 108px 12px 48px;
    }
    .storia-box {
        width: 100%;
        padding: 28px 20px 26px;
    }
    .storia-box h1 {
        margin-bottom: 15px;
        font-size: clamp(29px, 7vw, 36px);
        letter-spacing: 0.8px;
    }
    .storia-box .title-line {
        width: 70px;
        height: 3px;
        margin-bottom: 24px;
    }
    .storia-box h2 {
        margin-bottom: 12px;
        font-size: 23px;
        line-height: 1.35;
    }
    .storia-box h3 {
        margin-bottom: 28px;
        font-size: 14px;
        line-height: 1.6;
    }
    .storia-testo p {
        margin-bottom: 19px;
        font-size: 15px;
        line-height: 1.8;
        text-align: justify;
        hyphens: auto;
    }
    .storia-box > .btn {
        display: flex;
        width: fit-content;
        max-width: 100%;
        margin: 28px auto 0;
        padding: 12px 20px;
        font-size: 11px;
        white-space: normal;
    }
}
/* =====================================================
   MOBILE PICCOLO
===================================================== */
@media (max-width: 380px) {
    .storia-page {
        padding-right: 8px;
        padding-left: 8px;
    }
    .storia-box {
        padding: 24px 15px 22px;
    }
    .storia-box h1 {
        font-size: 27px;
    }
    .storia-box h2 {
        font-size: 21px;
    }
    .storia-testo p {
        font-size: 14px;
        line-height: 1.78;
    }
}
/* =====================================================
   ACCESSIBILITÀ
===================================================== */
@media (prefers-reduced-motion: reduce) {
    .storia-box > .btn {
        transition: none;
    }
}
/* =====================================================
   STORIA — ACCENTI ROSSI EDITORIALI
   Dettagli discreti per dare carattere senza appesantire
===================================================== */
/* Sottotitolo con piccolo accento rosso */
.storia-box h2 {
    padding-bottom: 15px;
}
.storia-box h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    margin: 14px auto 0;
    border-radius: 2px;
    background: linear-gradient(
        90deg,
        #720000,
        #ed5656 50%,
        #720000
    );
    box-shadow: 0 0 8px rgba(179, 0, 0, 0.22);
}
/* Apertura del racconto evidenziata come un testo editoriale */
.storia-testo > p:first-child {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 18px 21px;
    border-left: 3px solid #b30000;
    border-radius: 0 6px 6px 0;
    background: linear-gradient(
        100deg,
        rgba(179, 0, 0, 0.12) 0%,
        rgba(179, 0, 0, 0.045) 48%,
        transparent 100%
    );
    box-shadow: inset 8px 0 18px rgba(179, 0, 0, 0.025);
}
/* Le parole importanti riprendono il rosso del progetto */
.storia-testo strong {
    color: #ef6565;
    text-shadow: 0 0 10px rgba(179, 0, 0, 0.10);
}
/* Accento rosso mantenuto nella citazione del motto */
.storia-testo p.quote {
    border-left-color: #ed5656;
    border-bottom-color: #590000;
}
/* Spaziature più compatte su smartphone */
@media (max-width: 768px) {
    .storia-box h2 {
        padding-bottom: 12px;
    }
    .storia-box h2::after {
        width: 40px;
        margin-top: 11px;
    }
    .storia-testo > p:first-child {
        margin-top: 24px;
        margin-bottom: 24px;
        padding: 14px 15px;
    }
}
/* =====================================================
   STORIA — NOMI E RIFERIMENTI DA EVIDENZIARE
===================================================== */
.storia-testo strong.storia-evidenza {
    color: var(--rosso);
    font-weight: 800;
    text-shadow: 0 0 9px rgba(179, 0, 0, 0.16);
}