/* =========================================================
   STORIA - SIULP BIELLA
   CSS SPECIFICO DELLA PAGINA
========================================================= */


/* =========================================================
   VARIABILI
========================================================= */

:root {
    --storia-blue: #004080;
    --storia-dark: #0a2540;
    --storia-light: #f4f7fb;
    --storia-card: #ffffff;
    --storia-border: #e3eaf1;
    --storia-red: #b30000;
    --storia-accent: #00b4d8;
    --storia-text: #263746;
    --storia-muted: #667788;
}


/* =========================================================
   PAGINA
========================================================= */

body {
    background: #f4f7fb;
    color: var(--storia-text);
}


/* =========================================================
   HERO
   STACCO NETTO DALL'HEADER
========================================================= */

.page-hero {

    position: relative;

    width: 100%;

    padding: 70px 20px 75px;

    background:
        linear-gradient(
            135deg,
            #f4f8fc 0%,
            #e8f1f8 55%,
            #dceaf4 100%
        );

    border-top: 1px solid #dce5ed;

    border-bottom: 1px solid #d4e0ea;

    overflow: hidden;
}


/* elemento decorativo */

.page-hero::before {

    content: "";

    position: absolute;

    top: -120px;
    right: -100px;

    width: 350px;
    height: 350px;

    background: rgba(0, 64, 128, 0.06);

    border-radius: 50%;

    pointer-events: none;
}


.page-hero::after {

    content: "";

    position: absolute;

    bottom: -150px;
    left: -100px;

    width: 320px;
    height: 320px;

    background: rgba(0, 180, 216, 0.05);

    border-radius: 50%;

    pointer-events: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding-left: 20px;
    padding-right: 20px;
}


/* =========================================================
   CONTENUTO HERO
========================================================= */

.page-hero .container {

    position: relative;

    z-index: 2;

    text-align: center;
}


/* =========================================================
   TAG
========================================================= */

.tag-provinciale {

    display: inline-block;

    margin-bottom: 15px;

    padding: 7px 15px;

    border-radius: 30px;

    background: rgba(0, 64, 128, 0.08);

    border: 1px solid rgba(0, 64, 128, 0.15);

    color: var(--storia-blue);

    font-size: 0.78rem;

    font-weight: 600;

    letter-spacing: 0.4px;
}


/* =========================================================
   TITOLO HERO
========================================================= */

.page-hero h1 {

    margin: 0;

    color: var(--storia-dark);

    font-size: clamp(2rem, 4vw, 3.2rem);

    line-height: 1.15;

    font-weight: 600;
}


/* =========================================================
   SOTTOTITOLO HERO
========================================================= */

.hero-subtitle {

    max-width: 780px;

    margin: 18px auto 0;

    color: #526576;

    font-size: 1rem;

    line-height: 1.7;
}


/* =========================================================
   STATISTICHE
========================================================= */

.stats-dashboard {

    position: relative;

    margin-top: -30px;

    z-index: 5;
}


.stats-grid {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}


.stat-box {

    display: flex;

    align-items: center;

    gap: 18px;

    min-height: 105px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid var(--storia-border);

    border-radius: 14px;

    box-shadow:
        0 10px 30px rgba(10, 37, 64, 0.08);
}


.stat-box > i {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    flex: 0 0 52px;

    border-radius: 12px;

    background: rgba(0, 64, 128, 0.08);

    color: var(--storia-blue);

    font-size: 22px;
}


.stat-info {

    display: flex;

    flex-direction: column;

    gap: 4px;
}


.stat-info strong {

    color: var(--storia-dark);

    font-size: 1.15rem;

    font-weight: 600;
}


.stat-info span {

    color: var(--storia-muted);

    font-size: 0.78rem;

    line-height: 1.4;
}


/* =========================================================
   WRAPPER CONTENUTI
========================================================= */

.content-wrapper {

    padding-top: 45px;

    padding-bottom: 20px;
}


.content-grid {

    display: grid;

    grid-template-columns: minmax(0, 1fr) 330px;

    gap: 30px;

    align-items: start;
}


/* =========================================================
   COLONNE
========================================================= */

.left-column {

    min-width: 0;
}

.right-column {

    min-width: 0;

    position: sticky;

    top: 25px;
}


/* =========================================================
   CARD PRINCIPALI
========================================================= */

.info-card {

    margin-bottom: 25px;

    padding: 30px;

    background: var(--storia-card);

    border: 1px solid var(--storia-border);

    border-radius: 14px;

    box-shadow:
        0 8px 25px rgba(10, 37, 64, 0.05);
}


.info-card p {

    margin-bottom: 16px;

    color: #455766;

    font-size: 0.94rem;

    line-height: 1.8;
}


.info-card p:last-child {

    margin-bottom: 0;
}


.info-card strong {

    color: var(--storia-blue);
}


/* =========================================================
   TITOLI SEZIONE
========================================================= */

.section-title-alt {

    position: relative;

    margin-bottom: 22px;

    padding-left: 15px;

    color: var(--storia-dark);

    font-size: 1.35rem;

    line-height: 1.3;

    font-weight: 600;
}


.section-title-alt::before {

    content: "";

    position: absolute;

    top: 3px;
    bottom: 3px;
    left: 0;

    width: 4px;

    background: var(--storia-red);

    border-radius: 5px;
}


/* =========================================================
   TIMELINE
========================================================= */

.custom-timeline {

    position: relative;

    margin-top: 10px;

    padding-left: 25px;
}


.custom-timeline::before {

    content: "";

    position: absolute;

    top: 8px;
    bottom: 8px;
    left: 8px;

    width: 2px;

    background: #d9e4ed;
}


.t-item {

    position: relative;

    padding: 0 0 28px 35px;
}


.t-item:last-child {

    padding-bottom: 0;
}


.t-item::before {

    content: "";

    position: absolute;

    top: 5px;
    left: -1px;

    width: 17px;
    height: 17px;

    border-radius: 50%;

    background: #ffffff;

    border: 4px solid var(--storia-blue);

    box-shadow:
        0 0 0 3px rgba(0, 64, 128, 0.08);

    z-index: 2;
}


.t-year {

    display: inline-block;

    margin-bottom: 7px;

    padding: 5px 11px;

    background: rgba(0, 64, 128, 0.08);

    color: var(--storia-blue);

    border-radius: 5px;

    font-size: 0.78rem;

    font-weight: 700;
}


.t-item p {

    margin: 0;

    color: #536575;

    font-size: 0.9rem;

    line-height: 1.7;
}


/* =========================================================
   SIDEBAR
========================================================= */

.side-card {

    margin-bottom: 20px;

    padding: 24px;

    background: #ffffff;

    border: 1px solid var(--storia-border);

    border-radius: 14px;

    box-shadow:
        0 8px 25px rgba(10, 37, 64, 0.05);
}


.side-card h3 {

    margin-bottom: 18px;

    padding-bottom: 12px;

    color: var(--storia-dark);

    font-size: 1.05rem;

    font-weight: 600;

    border-bottom: 1px solid var(--storia-border);
}


/* =========================================================
   LISTA MISSIONE
========================================================= */

.mission-list {

    list-style: none;

    margin: 0;
    padding: 0;
}


.mission-list li {

    position: relative;

    padding: 0 0 14px 19px;

    color: #536575;

    font-size: 0.84rem;

    line-height: 1.6;
}


.mission-list li:last-child {

    padding-bottom: 0;
}


.mission-list li::before {

    content: "";

    position: absolute;

    top: 8px;
    left: 0;

    width: 6px;
    height: 6px;

    background: var(--storia-red);

    border-radius: 50%;
}


.mission-list strong {

    color: var(--storia-blue);
}


/* =========================================================
   MINI SERVIZI
========================================================= */

.s-mini-row {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px 0;

    color: #536575;

    font-size: 0.84rem;

    border-bottom: 1px solid #edf1f5;
}


.s-mini-row:last-child {

    border-bottom: none;

    padding-bottom: 0;
}


.s-mini-row:first-of-type {

    padding-top: 0;
}


.s-mini-row i {

    width: 25px;

    color: var(--storia-blue);

    text-align: center;

    font-size: 16px;
}


/* =========================================================
   CTA
========================================================= */

.cta-box-fixed {

    padding: 25px;

    background:
        linear-gradient(
            135deg,
            #004080,
            #0a2540
        );

    border-radius: 14px;

    box-shadow:
        0 12px 30px rgba(0, 64, 128, 0.20);
}


.cta-box-fixed h4 {

    margin-bottom: 10px;

    color: #ffffff;

    font-size: 1.05rem;

    font-weight: 600;
}


.cta-box-fixed p {

    margin-bottom: 18px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 0.82rem;

    line-height: 1.6;
}


.btn-primary-alt {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 42px;

    padding: 10px 18px;

    background: #ffffff;

    color: var(--storia-blue);

    border-radius: 7px;

    text-decoration: none;

    font-size: 0.82rem;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.btn-primary-alt:hover {

    background: #f1f5f9;

    transform: translateY(-2px);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1023px) {

    .page-hero {

        padding: 60px 20px 70px;
    }

    .stats-grid {

        gap: 15px;
    }

    .stat-box {

        padding: 18px;

        gap: 13px;
    }

    .content-grid {

        grid-template-columns: 1fr 280px;

        gap: 20px;
    }

    .info-card {

        padding: 25px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .page-hero {

        padding: 45px 18px 65px;

        background:
            linear-gradient(
                145deg,
                #f5f9fc 0%,
                #e6f0f7 100%
            );
    }


    .page-hero h1 {

        font-size: 2rem;
    }


    .hero-subtitle {

        font-size: 0.88rem;

        line-height: 1.65;
    }


    .tag-provinciale {

        font-size: 0.68rem;

        padding: 6px 11px;
    }


    .stats-dashboard {

        margin-top: -25px;
    }


    .stats-grid {

        grid-template-columns: 1fr;

        gap: 12px;
    }


    .stat-box {

        min-height: 82px;

        padding: 16px;
    }


    .stat-box > i {

        width: 45px;
        height: 45px;

        flex-basis: 45px;

        font-size: 18px;
    }


    .content-wrapper {

        padding-top: 30px;
    }


    .content-grid {

        grid-template-columns: 1fr;

        gap: 20px;
    }


    .right-column {

        position: static;
    }


    .info-card {

        padding: 22px;

        border-radius: 12px;
    }


    .section-title-alt {

        font-size: 1.15rem;
    }


    .info-card p {

        font-size: 0.88rem;

        line-height: 1.75;
    }


    .custom-timeline {

        padding-left: 18px;
    }


    .t-item {

        padding-left: 28px;
    }


    .t-item p {

        font-size: 0.84rem;
    }


    .side-card {

        padding: 21px;
    }

}


/* =========================================================
   MOBILE PICCOLO
========================================================= */

@media (max-width: 400px) {

    .page-hero {

        padding: 38px 15px 58px;
    }


    .page-hero h1 {

        font-size: 1.75rem;
    }


    .hero-subtitle {

        font-size: 0.82rem;
    }


    .container {

        padding-left: 15px;
        padding-right: 15px;
    }


    .info-card {

        padding: 19px;
    }


    .section-title-alt {

        font-size: 1.08rem;
    }

}