/* =========================================================
   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;
    }

}
/* =========================================
   INTESTAZIONE E LOGO
   ========================================= */

.container-header > .grid-child {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

.container-header .navbar-brand {
    width: 100%;
    text-align: left;
}

.container-header .brand-logo {
    display: block;
    width: 100%;
}

.container-header .brand-logo img {
    display: block;
    width: 720px;
    max-width: 80%;
    height: auto;
    margin: 0;
}

/* Slogan sotto il logo */
.container-header .site-description {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;

    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-size: 1.08rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    letter-spacing: 0.01em;

    color: #40585f;
    opacity: 1;
}

/* Piccolo richiamo ai colori del logo */
.container-header .site-description::before {
    content: "";
    flex: 0 0 38px;
    width: 38px;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        #173f4a 0%,
        #cf246d 60%,
        #f6921e 100%
    );
}

@media (max-width: 768px) {
    .container-header .site-description {
        gap: 9px;
        margin-top: 8px;
        font-size: 0.95rem;
    }

    .container-header .site-description::before {
        flex-basis: 26px;
        width: 26px;
    }
}

/* Smartphone */
@media (max-width: 768px) {
    .container-header > .grid-child {
        width: calc(100% - 24px);
    }

    .container-header .brand-logo img {
        width: 100%;
        max-width: 100%;
    }
}
/* =========================================================
   VOLO A PLANARE - MENU HAMBURGER
   ========================================================= */

.container-header {
    position: relative;
}

/* Posizione del menu nella testata */
.container-header .container-nav {
    position: absolute;
    top: 28px;
    right: 5vw;
    width: auto;
    min-height: 0;
    padding: 0;
    z-index: 1000;
}

/* Hamburger sempre visibile, anche su desktop */
.container-header .container-nav .navbar-toggler {
    display: block !important;
    border: 0;
    padding: 6px 8px;
    color: #123f49;
    background: transparent;
    box-shadow: none;
}

/* Menu chiuso di default */
.container-header .container-nav .navbar-collapse {
    display: none !important;
}

/* Menu aperto al clic */
.container-header .container-nav .navbar-collapse.show {
    display: block !important;
    position: absolute;
    top: 42px;
    right: 0;
    width: 270px;
    padding: 16px 18px;
    background: #fffaf6;
    border: 1px solid rgba(18, 63, 73, 0.15);
    box-shadow: 0 12px 30px rgba(18, 40, 45, 0.14);
    z-index: 1100;
}

/* Disposizione verticale delle voci */
.container-header .container-nav .mod-menu {
    display: block !important;
    margin: 0;
    padding: 0;
}

/* Ogni voce occupa una riga */
.container-header .container-nav .mod-menu > li {
    display: block;
    width: 100%;
    margin: 0;
}

/* Link */
.container-header .container-nav .mod-menu a {
    display: block;
    padding: 8px 4px;
    color: #123f49;
    text-decoration: none;
}

/* Hover */
.container-header .container-nav .mod-menu a:hover {
    color: #c72563;
}

/* Smartphone */
@media (max-width: 768px) {

    .container-header .container-nav {
        top: 2px;
        right: 10px;
    }

    .container-header .container-nav .navbar-toggler {
        padding: 5px 6px;
    }

    .container-header .container-nav .navbar-collapse.show {
        width: min(280px, calc(100vw - 24px));
    }
}
/* =========================================================
   VOLO A PLANARE - FOOTER
   ========================================================= */

.container-footer {
    position: relative;
    margin-top: 60px;
    padding: 0;
    background: #123f49;
    color: #ffffff;
}

/* Linea superiore con i colori del logo */
.container-footer::before {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        #123f49 0%,
        #d21f67 55%,
        #f06b2c 100%
    );
}

.vap-footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 32px 22px;
}

.vap-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
}

/* Marchio */
.vap-footer-name {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
}

.vap-footer-payoff {
    max-width: 360px;
    margin: 0 0 18px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.vap-footer-sign {
    margin: 0;
    font-size: 0.88rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.65);
}

/* Titoli colonne */
.vap-footer-nav h3 {
    margin: 0 0 16px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
}

/* Liste */
.vap-footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vap-footer-nav li {
    margin: 0 0 9px;
}

/* Link */
.vap-footer a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.2s ease;
}

.vap-footer a:hover,
.vap-footer a:focus {
    color: #f06b2c;
}

/* Riga inferiore */
.vap-footer-bottom {
    margin-top: 42px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

/* Smartphone */
@media (max-width: 768px) {

    .container-footer {
        margin-top: 40px;
    }

    .vap-footer {
        padding: 38px 22px 20px;
    }

    .vap-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .vap-footer-name {
        font-size: 1.4rem;
    }

    .vap-footer-bottom {
        margin-top: 32px;
    }
}
/* Pulsante "Leggi tutto" nelle viste blog/categoria */
.blog .readmore a,
.blog .readmore .btn,
.category-blog .readmore a,
.category-blog .readmore .btn,
.com-content-category-blog .readmore a,
.com-content-category-blog .readmore .btn {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.55rem 1rem;
  background: #144c59;
  color: #ffffff !important;
  border: 1px solid #144c59;
  border-radius: 999px;
  text-decoration: none !important;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
  transition: all 0.25s ease;
}

.blog .readmore a:hover,
.blog .readmore .btn:hover,
.category-blog .readmore a:hover,
.category-blog .readmore .btn:hover,
.com-content-category-blog .readmore a:hover,
.com-content-category-blog .readmore .btn:hover {
  background: #d62b72;
  border-color: #d62b72;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Un po' di respiro sopra il pulsante */
.blog .readmore,
.category-blog .readmore,
.com-content-category-blog .readmore {
  margin-top: 0.5rem;
}
/* =========================================================
   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;
    }

}
/* =========================================
   INTESTAZIONE E LOGO
   ========================================= */

.container-header > .grid-child {
    width: calc(100% - 40px);
    max-width: 1200px;
    margin-right: auto;
    margin-left: auto;
}

.container-header .navbar-brand {
    width: 100%;
    text-align: left;
}

.container-header .brand-logo {
    display: block;
    width: 100%;
}

.container-header .brand-logo img {
    display: block;
    width: 720px;
    max-width: 80%;
    height: auto;
    margin: 0;
}

/* Slogan sotto il logo */
.container-header .site-description {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;

    font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
    font-size: 1.08rem;
    font-weight: 400;
    font-style: italic;
    line-height: 1.4;
    letter-spacing: 0.01em;

    color: #40585f;
    opacity: 1;
}

/* Piccolo richiamo ai colori del logo */
.container-header .site-description::before {
    content: "";
    flex: 0 0 38px;
    width: 38px;
    height: 3px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        #173f4a 0%,
        #cf246d 60%,
        #f6921e 100%
    );
}

@media (max-width: 768px) {
    .container-header .site-description {
        gap: 9px;
        margin-top: 8px;
        font-size: 0.95rem;
    }

    .container-header .site-description::before {
        flex-basis: 26px;
        width: 26px;
    }
}

/* Smartphone */
@media (max-width: 768px) {
    .container-header > .grid-child {
        width: calc(100% - 24px);
    }

    .container-header .brand-logo img {
        width: 100%;
        max-width: 100%;
    }
}
/* =========================================================
   VOLO A PLANARE - MENU HAMBURGER
   ========================================================= */

.container-header {
    position: relative;
}

/* Posizione del menu nella testata */
.container-header .container-nav {
    position: absolute;
    top: 28px;
    right: 5vw;
    width: auto;
    min-height: 0;
    padding: 0;
    z-index: 1000;
}

/* Hamburger sempre visibile, anche su desktop */
.container-header .container-nav .navbar-toggler {
    display: block !important;
    border: 0;
    padding: 6px 8px;
    color: #123f49;
    background: transparent;
    box-shadow: none;
}

/* Menu chiuso di default */
.container-header .container-nav .navbar-collapse {
    display: none !important;
}

/* Menu aperto al clic */
.container-header .container-nav .navbar-collapse.show {
    display: block !important;
    position: absolute;
    top: 42px;
    right: 0;
    width: 270px;
    padding: 16px 18px;
    background: #fffaf6;
    border: 1px solid rgba(18, 63, 73, 0.15);
    box-shadow: 0 12px 30px rgba(18, 40, 45, 0.14);
    z-index: 1100;
}

/* Disposizione verticale delle voci */
.container-header .container-nav .mod-menu {
    display: block !important;
    margin: 0;
    padding: 0;
}

/* Ogni voce occupa una riga */
.container-header .container-nav .mod-menu > li {
    display: block;
    width: 100%;
    margin: 0;
}

/* Link */
.container-header .container-nav .mod-menu a {
    display: block;
    padding: 8px 4px;
    color: #123f49;
    text-decoration: none;
}

/* Hover */
.container-header .container-nav .mod-menu a:hover {
    color: #c72563;
}

/* Smartphone */
@media (max-width: 768px) {

    .container-header .container-nav {
        top: 2px;
        right: 10px;
    }

    .container-header .container-nav .navbar-toggler {
        padding: 5px 6px;
    }

    .container-header .container-nav .navbar-collapse.show {
        width: min(280px, calc(100vw - 24px));
    }
}
/* =========================================================
   VOLO A PLANARE - FOOTER
   ========================================================= */

.container-footer {
    position: relative;
    margin-top: 60px;
    padding: 0;
    background: #123f49;
    color: #ffffff;
}

/* Linea superiore con i colori del logo */
.container-footer::before {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background: linear-gradient(
        90deg,
        #123f49 0%,
        #d21f67 55%,
        #f06b2c 100%
    );
}

.vap-footer {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 32px 22px;
}

.vap-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
}

/* Marchio */
.vap-footer-name {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
}

.vap-footer-payoff {
    max-width: 360px;
    margin: 0 0 18px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
}

.vap-footer-sign {
    margin: 0;
    font-size: 0.88rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.65);
}

/* Titoli colonne */
.vap-footer-nav h3 {
    margin: 0 0 16px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #ffffff;
}

/* Liste */
.vap-footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.vap-footer-nav li {
    margin: 0 0 9px;
}

/* Link */
.vap-footer a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: color 0.2s ease;
}

.vap-footer a:hover,
.vap-footer a:focus {
    color: #f06b2c;
}

/* Riga inferiore */
.vap-footer-bottom {
    margin-top: 42px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

/* Smartphone */
@media (max-width: 768px) {

    .container-footer {
        margin-top: 40px;
    }

    .vap-footer {
        padding: 38px 22px 20px;
    }

    .vap-footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .vap-footer-name {
        font-size: 1.4rem;
    }

    .vap-footer-bottom {
        margin-top: 32px;
    }
}
/* Pulsante "Leggi tutto" nelle viste blog/categoria */
.blog .readmore a,
.blog .readmore .btn,
.category-blog .readmore a,
.category-blog .readmore .btn,
.com-content-category-blog .readmore a,
.com-content-category-blog .readmore .btn {
  display: inline-block;
  margin-top: 0.6rem;
  padding: 0.55rem 1rem;
  background: #144c59;
  color: #ffffff !important;
  border: 1px solid #144c59;
  border-radius: 999px;
  text-decoration: none !important;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: none;
  transition: all 0.25s ease;
}

.blog .readmore a:hover,
.blog .readmore .btn:hover,
.category-blog .readmore a:hover,
.category-blog .readmore .btn:hover,
.com-content-category-blog .readmore a:hover,
.com-content-category-blog .readmore .btn:hover {
  background: #d62b72;
  border-color: #d62b72;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Un po' di respiro sopra il pulsante */
.blog .readmore,
.category-blog .readmore,
.com-content-category-blog .readmore {
  margin-top: 0.5rem;
}
/* =========================================================
   VOLO A PLANARE
   HOME - HERO + SEZIONI RAXO
   ========================================================= */


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

.vap-home-hero {
    margin-top: 0;
    margin-bottom: 2.5rem;
}


/* =========================================================
   POLITICA / ATTUALITÀ / OPINIONI
   Ritmo verticale delle sezioni
   ========================================================= */

.vap-home-politica,
.vap-home-attualita,
.vap-home-opinioni {
    margin-top: 0;
    margin-bottom: 2.5rem;
}


/* =========================================================
   SINGOLO ARTICOLO
   Immagine a sinistra - testo a destra
   ========================================================= */

.vap-home-politica .raxo-wrap,
.vap-home-attualita .raxo-wrap,
.vap-home-opinioni .raxo-wrap {
    display: grid;

    grid-template-columns:
        minmax(0, 42%)
        minmax(0, 58%);

    gap: 2.5rem;
    align-items: start;
}


/* =========================================================
   IMMAGINE
   ========================================================= */

.vap-home-politica .raxo-image,
.vap-home-attualita .raxo-image,
.vap-home-opinioni .raxo-image {
    grid-column: 1;
    grid-row: 1;

    margin: 0;
}

.vap-home-politica .raxo-image img,
.vap-home-attualita .raxo-image img,
.vap-home-opinioni .raxo-image img {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    object-fit: cover;
}


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

.vap-home-politica .raxo-content,
.vap-home-attualita .raxo-content,
.vap-home-opinioni .raxo-content {
    grid-column: 2;
    grid-row: 1;

    min-width: 0;
}


/* =========================================================
   CATEGORIA ARTICOLO
   ========================================================= */

.vap-home-politica .raxo-category,
.vap-home-attualita .raxo-category,
.vap-home-opinioni .raxo-category {
    font-size: 0.78rem;
    font-weight: 700;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* =========================================================
   TITOLO ARTICOLO
   ========================================================= */

.vap-home-politica .raxo-title,
.vap-home-attualita .raxo-title,
.vap-home-opinioni .raxo-title {
    margin: 0.35rem 0 0.8rem;

    font-size: clamp(1.45rem, 2.1vw, 2rem);
    line-height: 1.15;
}

.vap-home-politica .raxo-title a,
.vap-home-attualita .raxo-title a,
.vap-home-opinioni .raxo-title a {
    color: inherit;
    text-decoration: none;
}

.vap-home-politica .raxo-title a:hover,
.vap-home-attualita .raxo-title a:hover,
.vap-home-opinioni .raxo-title a:hover {
    text-decoration: underline;
}


/* =========================================================
   TESTO INTRODUTTIVO
   ========================================================= */

.vap-home-politica .raxo-text,
.vap-home-attualita .raxo-text,
.vap-home-opinioni .raxo-text {
    font-size: 1rem;
    line-height: 1.65;
}


/* =========================================================
   TITOLI SEZIONE
   POLITICA / ATTUALITÀ / OPINIONI
   ========================================================= */

.vap-home-politica .raxo-block-name,
.vap-home-attualita .raxo-block-name,
.vap-home-opinioni .raxo-block-name {
    margin: 0 0 1.25rem;
    padding: 0 0 0.65rem;

    background: transparent;

    border-bottom:
        1px solid rgba(14, 73, 82, 0.18);

    font-size: 1rem;
    font-weight: 700;

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

    color: #0e4952;
}


/* Richiamo cromatico sotto il titolo sezione */

.vap-home-politica .raxo-block-name::after,
.vap-home-attualita .raxo-block-name::after,
.vap-home-opinioni .raxo-block-name::after {
    content: "";

    display: block;

    width: 3.5rem;
    height: 3px;

    margin-top: 0.65rem;

    background: linear-gradient(
        90deg,
        #0e4952 0%,
        #d51f67 58%,
        #ef3d32 100%
    );
}


/* =========================================================
   PAGINAZIONE
   ========================================================= */

.vap-home-politica .raxo-navigation,
.vap-home-attualita .raxo-navigation,
.vap-home-opinioni .raxo-navigation {
    margin-top: 1.25rem;
    padding: 0.8rem 0 0;

    background: transparent;

    border-top:
        1px solid rgba(0, 0, 0, 0.10);

    font-size: 0.85rem;
}


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

@media (max-width: 768px) {

    /*
       Ritmo verticale leggermente più compatto
    */

    .vap-home-hero,
    .vap-home-politica,
    .vap-home-attualita,
    .vap-home-opinioni {
        margin-top: 0;
        margin-bottom: 2rem;
    }


    /*
       Una sola colonna
    */

    .vap-home-politica .raxo-wrap,
    .vap-home-attualita .raxo-wrap,
    .vap-home-opinioni .raxo-wrap {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }


    /*
       Immagine sopra
    */

    .vap-home-politica .raxo-image,
    .vap-home-attualita .raxo-image,
    .vap-home-opinioni .raxo-image {
        grid-column: 1;
        grid-row: 1;
    }


    /*
       Testo sotto
    */

    .vap-home-politica .raxo-content,
    .vap-home-attualita .raxo-content,
    .vap-home-opinioni .raxo-content {
        grid-column: 1;
        grid-row: 2;
    }


    /*
       Titolo articolo
    */

    .vap-home-politica .raxo-title,
    .vap-home-attualita .raxo-title,
    .vap-home-opinioni .raxo-title {
        font-size: 1.4rem;
    }
}
/* ==========================================================
   VOLO A PLANARE
   LA ROTTA DELLA SETTIMANA — V4 CONVOGLIO
   Locomotiva sagomata + sottocassa + faro
   ========================================================== */

.vap-weekly-train {

    --vap-orange: #f28a27;
    --vap-pink: #df3577;
    --vap-red: #d52e49;

    --vap-train-dark: #691329;
    --vap-train-red: #a71938;
    --vap-train-light: #dc3151;

    --vap-text: #262626;
    --vap-muted: #727272;

    margin: 3.5rem 0;
    padding: 2.6rem 2.4rem 2rem;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(223, 53, 119, .09),
            transparent 32%
        ),
        radial-gradient(
            circle at 0 100%,
            rgba(242, 138, 39, .07),
            transparent 30%
        ),
        #fff;

    border-top: 1px solid #ececec;
    border-bottom: 1px solid #ececec;
}


/* ==========================================================
   INTESTAZIONE
   ========================================================== */

.vap-train-kicker {

    display: flex;
    gap: .45rem;

    margin-bottom: .65rem;

    font-size: .66rem;
    font-weight: 800;

    letter-spacing: .17em;
    text-transform: uppercase;

    color: #888;
}


.vap-train-dot {
    color: var(--vap-pink);
}


.vap-train-heading {

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 2rem;

    margin-bottom: 3.1rem;
}


.vap-train-titlebox h2 {

    margin: 0 0 .45rem;

    font-size: clamp(2rem, 3vw, 2.9rem);
    font-weight: 700;

    line-height: 1.02;
    letter-spacing: -.045em;

    color: var(--vap-text);
}


.vap-train-titlebox p {

    max-width: 680px;

    margin: 0;

    font-size: .98rem;
    line-height: 1.55;

    color: var(--vap-muted);
}


.vap-train-week {

    flex: 0 0 auto;

    text-align: right;
}


.vap-train-status {

    display: block;

    margin-bottom: .35rem;

    font-size: .58rem;
    font-weight: 800;

    letter-spacing: .15em;

    color: var(--vap-pink);
}


.vap-train-week strong {

    display: block;

    font-size: 1rem;
    font-weight: 800;

    color: #343434;
}


.vap-train-week small {

    display: block;

    margin-top: .1rem;

    color: #888;
}


/* ==========================================================
   AREA TRENO
   ========================================================== */

.vap-train-wrap {

    position: relative;

    padding-bottom: 31px;
}


.vap-train {

    position: relative;

    display: grid;

    grid-template-columns:
        1fr
        1fr
        1.08fr
        1fr
        1.42fr;

    align-items: stretch;

    gap: 5px;
}


/* ==========================================================
   CARROZZE
   ========================================================== */

.vap-train-car {

    position: relative;

    min-height: 245px;

    background:
        linear-gradient(
            145deg,
            var(--vap-train-dark) 0%,
            var(--vap-train-red) 45%,
            var(--vap-train-light) 100%
        );

    border-radius: 8px 8px 3px 3px;

    box-shadow:
        0 7px 18px rgba(88, 10, 31, .14);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.vap-train-car::before {

    content: "";

    position: absolute;

    top: 19px;
    left: 0;
    right: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--vap-orange),
            var(--vap-pink),
            #ff6471
        );
}


.vap-train-car > a {

    display: flex;
    flex-direction: column;

    height: 100%;

    padding: 2.3rem 1.05rem 1.45rem;

    color: #fff;
    text-decoration: none;
}


.vap-train-stop {

    display: block;

    margin-bottom: .65rem;

    font-size: .57rem;
    font-weight: 800;

    line-height: 1.35;

    letter-spacing: .13em;
    text-transform: uppercase;

    color: #ffc5d0;
}


.vap-train-car h3 {

    margin: 0 0 .75rem;

    font-size: .98rem;
    font-weight: 700;

    line-height: 1.3;

    color: #fff;
}


.vap-train-car p {

    margin: 0;

    font-size: .76rem;
    line-height: 1.55;

    color: rgba(255, 255, 255, .83);
}


.vap-train-more {

    display: inline-block;

    margin-top: auto;
    padding-top: .9rem;

    font-size: .67rem;
    font-weight: 700;

    color: #ffd6dd;
}


/* raccordo tra le carrozze */

.vap-train-car:not(.vap-train-engine)::after {

    content: "";

    position: absolute;

    right: -6px;
    bottom: 27px;

    z-index: 5;

    width: 7px;
    height: 10px;

    background: #4b1421;

    border-radius: 2px;
}


/* hover */

.vap-train-car:hover {

    transform: translateY(-5px);

    box-shadow:
        0 12px 25px rgba(88, 10, 31, .23);
}


/* ==========================================================
   SOTTOCASSA
   ========================================================== */

.vap-train::after {

    content: "";

    position: absolute;

    left: 10px;
    right: 26px;
    bottom: -4px;

    height: 8px;

    z-index: 2;

    border-radius: 2px 2px 5px 5px;

    background:
        linear-gradient(
            180deg,
            #3b3135 0%,
            #211d1f 100%
        );

    box-shadow:
        0 2px 4px rgba(0, 0, 0, .18);
}


/* ==========================================================
   RUOTE
   ========================================================== */

.vap-train-wheels {

    position: absolute;

    left: 18%;
    right: 18%;

    bottom: -14px;

    display: flex;
    justify-content: space-between;

    z-index: 4;
}


.vap-train-wheels span {

    width: 24px;
    height: 24px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            #929292 0 24%,
            #333 27% 58%,
            #171717 61%
        );

    border: 2px solid #fff;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, .3);
}


/* ==========================================================
   PARTENZA
   ========================================================== */

.vap-train-start {

    border-radius: 19px 8px 3px 3px;
}


/* ==========================================================
   STAZIONE LEOPOLDA
   ========================================================== */

.vap-train-leopolda {

    background:
        linear-gradient(
            145deg,
            #76204e 0%,
            #ad2762 45%,
            var(--vap-pink) 100%
        );

    transform: translateY(-8px);

    box-shadow:
        0 12px 26px rgba(149, 27, 82, .22);
}


.vap-train-leopolda::before {

    height: 6px;

    background:
        linear-gradient(
            90deg,
            #ffb03c,
            #ff8161,
            #ff4f91
        );
}


.vap-train-leopolda .vap-train-stop {

    color: #ffd27d;
}


.vap-train-leopolda:hover {

    transform: translateY(-13px);
}


/* ==========================================================
   TESTA DEL TRENO / DESTINAZIONE
   ========================================================== */

.vap-train-engine {

    position: relative;

    margin-right: 18px;

    overflow: visible;

    background:
        linear-gradient(
            120deg,
            #711027 0%,
            #b7193e 43%,
            #df294b 72%,
            #f24c62 100%
        );

    clip-path: polygon(
        0 0,
        72% 0,
        86% 5%,
        96% 20%,
        100% 38%,
        100% 73%,
        95% 89%,
        86% 100%,
        0 100%
    );

    border-radius: 7px 0 0 3px;

    box-shadow:
        0 8px 22px rgba(109, 12, 38, .24);
}


.vap-train-engine::after {

    display: none;
}


.vap-train-engine > a {

    position: relative;

    z-index: 3;

    padding-right: 3rem;
}


/* ==========================================================
   PARABREZZA
   ========================================================== */

.vap-engine-window {

    position: absolute;

    top: 24px;
    right: 13px;

    width: 57px;
    height: 24px;

    z-index: 5;

    transform:
        skewX(28deg)
        rotate(1deg);

    border-radius:
        3px
        9px
        4px
        3px;

    background:
        linear-gradient(
            135deg,
            #17272f 0%,
            #405762 55%,
            #91a8b2 100%
        );

    border:
        2px solid
        rgba(255, 255, 255, .68);

    box-shadow:
        0 2px 7px
        rgba(0, 0, 0, .22);
}


/* ==========================================================
   LINEA DI SLANCIO
   ========================================================== */

.vap-train-engine > a::after {

    content: "";

    position: absolute;

    right: 10px;
    bottom: 35px;

    width: 48px;
    height: 2px;

    z-index: 6;

    transform: rotate(-9deg);
    transform-origin: right center;

    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, .52)
        );
}


/* ==========================================================
   FARO ANTERIORE
   ========================================================== */

.vap-train-engine > a::before {

    content: "";

    position: absolute;

    right: 7px;
    bottom: 23px;

    width: 5px;
    height: 5px;

    z-index: 7;

    border-radius: 50%;

    background: #fff3c4;

    box-shadow:
        0 0 4px rgba(255, 243, 196, .95),
        0 0 8px rgba(255, 226, 150, .55);
}


/* ==========================================================
   DESTINAZIONE
   ========================================================== */

.vap-train-engine .vap-train-stop {

    color: #ffd2db;
}


.vap-train-rubric {

    align-self: flex-start;

    display: inline-block;

    margin-bottom: .65rem;
    padding: .25rem .48rem;

    font-size: .56rem;
    font-weight: 900;

    letter-spacing: .14em;

    color: #7a132a;

    background: #fff;

    border-radius: 2px;
}


.vap-train-arrival {

    display: inline-block;

    margin-top: auto;
    padding-top: .9rem;

    font-size: .71rem;
    font-weight: 800;

    color: #fff;
}


/* ==========================================================
   BINARI
   ========================================================== */

.vap-train-rails {

    position: absolute;

    left: 0;
    right: 0;
    bottom: 3px;

    height: 12px;
}


.vap-train-rails span {

    position: absolute;

    left: 0;
    right: 0;

    height: 2px;

    background: #555;
}


.vap-train-rails span:first-child {
    top: 2px;
}


.vap-train-rails span:last-child {
    bottom: 2px;
}


.vap-train-rails::after {

    content: "";

    position: absolute;

    inset: 0;

    opacity: .35;

    background:
        repeating-linear-gradient(
            90deg,
            transparent 0 18px,
            #555 18px 22px,
            transparent 22px 40px
        );
}


/* ==========================================================
   FOOTER
   ========================================================== */

.vap-train-footer {

    display: flex;
    justify-content: flex-end;

    gap: .3rem;

    margin-top: 1.1rem;

    font-size: .72rem;

    color: #999;
}


.vap-train-footer strong {

    color: #444;
}


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

@media (max-width: 1100px) {

    .vap-train {

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


    .vap-train-car {

        margin-bottom: 27px;
    }


    .vap-train::after {

        display: none;
    }


    .vap-train-engine {

        margin-right: 0;

        clip-path: polygon(
            0 0,
            75% 0,
            88% 7%,
            97% 23%,
            100% 40%,
            100% 72%,
            94% 89%,
            85% 100%,
            0 100%
        );
    }


    .vap-engine-window {

        right: 12px;

        width: 50px;
    }


    .vap-train-engine > a::after {

        right: 10px;

        width: 38px;
    }


    .vap-train-engine > a::before {

        right: 7px;
        bottom: 22px;
    }


    .vap-train-leopolda {

        transform: none;
    }


    .vap-train-leopolda:hover {

        transform: translateY(-5px);
    }
}


/* ==========================================================
   MOBILE
   Il convoglio diventa una linea ferroviaria verticale
   ========================================================== */

@media (max-width: 700px) {

    .vap-weekly-train {

        padding:
            1.8rem
            1.25rem
            1.5rem;
    }


    .vap-train-heading {

        display: block;

        margin-bottom: 2rem;
    }


    .vap-train-week {

        margin-top: 1rem;

        text-align: left;
    }


    .vap-train-wrap {

        padding:
            0
            0
            0
            1.25rem;
    }


    .vap-train {

        position: relative;

        display: block;
    }


    .vap-train::after {

        display: none;
    }


    /* linea verticale */

    .vap-train::before {

        content: "";

        position: absolute;

        top: 0;
        bottom: 0;
        left: -12px;

        width: 4px;

        background:
            linear-gradient(
                180deg,
                var(--vap-orange),
                var(--vap-pink),
                var(--vap-red)
            );

        border-radius: 4px;
    }


    .vap-train-car,
    .vap-train-leopolda,
    .vap-train-engine {

        min-height: 0;

        margin:
            0
            0
            1rem;

        transform: none;

        clip-path: none;

        border-radius: 7px;
    }


    .vap-train-car::before {

        content: "";

        position: absolute;

        top: 0;
        bottom: 0;
        left: -20px;
        right: auto;

        width: 16px;
        height: 16px;

        margin: auto 0;

        border: 4px solid #fff;
        border-radius: 50%;

        background: var(--vap-pink);

        box-shadow:
            0 0 0 2px var(--vap-red);
    }


    .vap-train-car:not(.vap-train-engine)::after {

        display: none;
    }


    .vap-train-car > a {

        padding:
            1.4rem
            1.15rem
            1.25rem;
    }


    .vap-train-wheels,
    .vap-train-rails,
    .vap-engine-window,
    .vap-train-engine > a::after,
    .vap-train-engine > a::before {

        display: none;
    }


    .vap-train-engine {

        margin-right: 0;

        border:
            2px solid
            rgba(255, 255, 255, .35);
    }


    .vap-train-car:hover,
    .vap-train-leopolda:hover {

        transform: none;
    }


    .vap-train-footer {

        display: block;

        margin-top: 1.4rem;

        text-align: right;
    }


    .vap-train-footer span,
    .vap-train-footer strong {

        display: block;
    }
}