/* =========================================================
   VOLO A PLANARE
   TEMPLATE EDITORIALE ARTICOLI v1
   ========================================================= */


/* =========================================================
   CONTENITORE GENERALE
   ========================================================= */

.vap-editorial-v1 {
    width: 100%;
    max-width: 1200px;
    margin: 34px auto 54px 0;

  clear: both;

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

    background: #f7f5f1;
    color: #25292b;

    border: 1px solid rgba(18, 63, 73, 0.16);
    box-shadow: 0 18px 45px rgba(18, 40, 45, 0.08);

    font-size: 18px;
    line-height: 1.78;

    overflow: hidden;
    box-sizing: border-box;
}

.vap-editorial-v1 * {
    box-sizing: border-box;
}


/* =========================================================
   FASCIA LATERALE
   ========================================================= */

.vap-editorial-v1-rail {
    position: relative;

    background: #123f49;
    color: #ffffff;

    padding: 28px 14px;

    writing-mode: vertical-rl;
    text-orientation: mixed;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 38px;

    overflow: hidden;
}


/* Traccia cromatica laterale */

.vap-editorial-v1-rail::after {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;

    width: 4px;

    background: linear-gradient(
        to bottom,
        #123f49 0%,
        #d21f67 64%,
        #f06b2c 100%
    );
}


/* =========================================================
   PICCOLO SEGNO "ALI"
   ========================================================= */

.vap-editorial-v1-wing {
    position: relative;

    width: 42px;
    height: 26px;

    writing-mode: horizontal-tb;
}

.vap-editorial-v1-wing::before,
.vap-editorial-v1-wing::after {
    content: "";

    position: absolute;
    top: 10px;

    width: 23px;
    height: 2px;

    background: #ffffff;
    border-radius: 999px;
}

.vap-editorial-v1-wing::before {
    left: 0;

    transform: rotate(10deg);
    transform-origin: right center;
}

.vap-editorial-v1-wing::after {
    right: 0;

    transform: rotate(-10deg);
    transform-origin: left center;
}


/* =========================================================
   SCRITTA VERTICALE
   ========================================================= */

.vap-editorial-v1-label {
    font-size: 11px;
    line-height: 1.6;

    text-transform: uppercase;
    letter-spacing: 0.18em;

    opacity: 0.82;
}


/* =========================================================
   AREA ESTERNA DEL TESTO
   ========================================================= */

.vap-editorial-v1-main {
    padding: 34px;

    background:
        linear-gradient(
            90deg,
            rgba(18, 63, 73, 0.025) 0 1px,
            transparent 1px
        ),
        linear-gradient(
            180deg,
            rgba(18, 63, 73, 0.025) 0 1px,
            transparent 1px
        ),
        #f7f5f1;

    background-size: 38px 38px;
}


/* =========================================================
   CORNICE INTERNA
   ========================================================= */

.vap-editorial-v1-frame {
    position: relative;

    background: rgba(255, 255, 255, 0.97);

    border: 1px solid rgba(18, 63, 73, 0.18);

    padding: 58px 60px 48px;
}


/* Cartiglio superiore */

.vap-editorial-v1-frame::before {
    content: "VOLO A PLANARE";

    position: absolute;
    top: -14px;
    left: 32px;

    padding: 7px 16px;

    background: #123f49;
    color: #ffffff;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.17em;
}


/* =========================================================
   CONTENUTO TESTUALE
   ========================================================= */

.vap-editorial-v1-content {
    width: 100%;
}

.vap-editorial-v1-content p {
    margin-top: 0;
    margin-bottom: 1.4em;
}


/* Primo paragrafo leggermente evidenziato */

.vap-editorial-v1-content > p:first-child {
    font-size: 1.08em;
    line-height: 1.82;

    color: #26383d;
}


/* =========================================================
   SOTTOTITOLI H2
   ========================================================= */

.vap-editorial-v1-content h2 {
    margin: 2.1em 0 0.8em;

    font-size: 1.5em;
    line-height: 1.25;
    font-weight: 700;

    color: #123f49;
}

.vap-editorial-v1-content h2::before {
    content: "";

    display: inline-block;

    width: 34px;
    height: 3px;

    margin-right: 12px;

    vertical-align: middle;

    background: linear-gradient(
        to right,
        #d21f67,
        #f06b2c
    );

    border-radius: 999px;
}


/* =========================================================
   SOTTOTITOLI H3
   ========================================================= */

.vap-editorial-v1-content h3 {
    margin: 1.8em 0 0.7em;

    font-size: 1.25em;
    line-height: 1.3;
    font-weight: 700;

    color: #123f49;
}


/* =========================================================
   CITAZIONI
   ========================================================= */

.vap-editorial-v1-content blockquote {
    margin: 2em 0;

    padding: 22px 28px;

    background: #f2f4f3;

    border-left: 4px solid #d21f67;

    font-size: 1.08em;
    line-height: 1.68;
    font-style: italic;

    color: #304147;
}

.vap-editorial-v1-content blockquote p {
    margin-bottom: 0.85em;
}

.vap-editorial-v1-content blockquote p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   ELENCHI
   ========================================================= */

.vap-editorial-v1-content ul,
.vap-editorial-v1-content ol {
    margin: 1.2em 0 1.6em 1.4em;
    padding: 0;
}

.vap-editorial-v1-content li {
    margin-bottom: 0.65em;
}


/* =========================================================
   LINK
   ========================================================= */

.vap-editorial-v1-content a {
    color: #a62355;

    font-weight: 600;

    text-decoration: underline;
    text-underline-offset: 4px;
}


/* =========================================================
   IMMAGINI INSERITE NEL CORPO DELL'ARTICOLO
   ========================================================= */

.vap-editorial-v1-content img {
    display: block;

    max-width: 100%;
    height: auto;

    margin: 2em auto;

    border-radius: 3px;

    box-shadow: 0 12px 28px rgba(18, 40, 45, 0.10);
}


/* =========================================================
   DIVISORIO EDITORIALE
   ========================================================= */

.vap-soft-divider {
    width: 96px;
    height: 3px;

    margin: 2.3rem 0 1.9rem;

    background: linear-gradient(
        to right,
        #123f49 0%,
        #d21f67 66%,
        #f06b2c 100%
    );

    border-radius: 999px;
}


/* =========================================================
   BOX DI APPROFONDIMENTO / "IL PUNTO"
   ========================================================= */

.vap-note-box {
    margin: 2em 0;

    padding: 24px 28px;

    background: #f1f3f2;

    border-left: 5px solid #123f49;

    color: #2e3b3f;
}

.vap-note-box p:last-child,
.vap-note-box ul:last-child,
.vap-note-box ol:last-child {
    margin-bottom: 0;
}


/* =========================================================
   FIRMA
   ========================================================= */

.vap-editorial-v1-signature {
    position: relative;

    margin-top: 52px;
    padding-top: 18px;

    text-align: right;

    font-size: 0.95em;
    font-style: italic;
    font-weight: 700;

    color: #123f49;
}

.vap-editorial-v1-signature::before {
    content: "";

    position: absolute;
    top: 0;
    right: 0;

    width: 120px;
    height: 3px;

    background: linear-gradient(
        to right,
        #123f49,
        #d21f67,
        #f06b2c
    );

    border-radius: 999px;
}


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

@media (max-width: 768px) {

    .vap-editorial-v1 {
        display: block;

        margin: 22px auto 40px;

        font-size: 17px;
        line-height: 1.72;
    }


    /* Fascia laterale diventa orizzontale */

    .vap-editorial-v1-rail {
        writing-mode: horizontal-tb;

        min-height: 54px;

        padding: 12px 16px;

        flex-direction: row;

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

        gap: 14px;
    }


    /* Gradiente inferiore */

    .vap-editorial-v1-rail::after {
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;

        width: auto;
        height: 4px;

        background: linear-gradient(
            to right,
            #123f49,
            #d21f67,
            #f06b2c
        );
    }


    /* Ali */

    .vap-editorial-v1-wing {
        flex: 0 0 42px;
    }


    /* Etichetta */

    .vap-editorial-v1-label {
        writing-mode: horizontal-tb;

        font-size: 10px;
        line-height: 1.3;

        letter-spacing: 0.13em;
    }


    /* Fondo */

    .vap-editorial-v1-main {
        padding: 14px;

        background-size: 30px 30px;
    }


    /* Cornice interna */

    .vap-editorial-v1-frame {
        padding: 38px 20px 34px;
    }


    /* Cartiglio */

    .vap-editorial-v1-frame::before {
        top: -12px;
        left: 18px;

        padding: 6px 12px;

        font-size: 9px;

        letter-spacing: 0.13em;
    }


    /* Primo paragrafo */

    .vap-editorial-v1-content > p:first-child {
        font-size: 1.04em;
        line-height: 1.75;
    }


    /* H2 */

    .vap-editorial-v1-content h2 {
        font-size: 1.34em;
    }

    .vap-editorial-v1-content h2::before {
        width: 26px;

        margin-right: 9px;
    }


    /* H3 */

    .vap-editorial-v1-content h3 {
        font-size: 1.18em;
    }


    /* Citazioni */

    .vap-editorial-v1-content blockquote {
        padding: 19px 18px;
    }


    /* Box */

    .vap-note-box {
        padding: 19px 18px;
    }


    /* Firma */

    .vap-editorial-v1-signature {
        margin-top: 42px;
    }

}