body.de_light {
    font-family: "Open Sans";
    font-weight: 400;
    color: #707070;
}

.text-light {
    color: #ffffff;
}

.de_light span.overlay {
    background: rgba(0,0,0,.8);
}

.text-light .btn-line, .text-light a.btn-line {
    border: solid 2px #ffffff !important;
    color: #fff;
}

.btn-line:after, a.btn-line:after {
    color: #fff !important;
}

.call-to-action h3 {
    font-size: 22px;
}

.tp-caption.big-white {
    font-weight: 600;
    letter-spacing: 10px;
}

.tp-caption.ultra-big-white {
    font-size: 75px;
    font-weight: 700;
}

.typing-wrap {
    font-family: "Poppins";
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
}

h2, .h2 {
    font-weight: 700;
    margin-bottom: 0;
    text-transform: uppercase !important;
    letter-spacing: 2px;
}

    h2 .wm {
        display: block;
        color: rgba(0,0,0,.05);
        font-size: 80px;
        width: 100%;
        position: absolute;
        text-align: left;
        margin-top: -30px;
        margin-left: -130px;
        z-index: 0;
    }

.h2 {
    line-height: 48px;
    font-size: 48px;
}

h3 {
    font-weight: 600;
    font-size: 17px;
    text-transform: uppercase !important;
}

.text-light h2 .wm {
    color: rgba(255,255,255,.2);
}

a.btn-custom {
    padding: 10px 20px;
    color: #fff;
    font-weight: bold;
    border-radius: 0;
}

#mainmenu > li {
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 2px;
}

.separator span i {
    font-size: 20px;
    margin-top: -5px;
}

.separator span:before,
.separator span:after {
    border-bottom: 2px solid rgba(255,255,255,.5);
}

.de_light .separator span:before,
.de_light .separator span:after {
    border-bottom: 2px solid #aaa;
}

.de_tab.tab_steps .de_nav li span {
    text-transform: uppercase;
    border-radius: 0;
    -moz-border-radius: 0;
    -webkit-border-radius: 0;
}

.de_tab.tab_steps .de_nav li.active span {
    border: solid 5px #ffffff;
}

.box-icon i {
    color: #fff;
    font-size: 24px;
    background: #333;
    width: 60px;
    padding: 18px;
    text-align: center;
    border-radius: 5px;
}

.de_count span {
    color: #333;
    font-weight: 600;
}

.text-light .de_count span {
    color: #fff;
}

.de_count h3 {
    font-size: 56px;
}

.project-name {
    font-family: "Poppins";
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0px;
    color: #ffffff;
}

.widget h4 {
    font-size: 18px;
    letter-spacing: 0;
    font-weight: bold;
}

.de_light .widget,
.de_light .blog-list li {
    border-bottom: solid 1px #ffffff
}

.blog-list .btn-more {
    font-family: "Poppins";
    color: #ffffff;
}

.widget.widget-post ul li {
    border-bottom: solid 1px #ddd;
    padding: 3px 0 3px 0;
    font-weight: 500;
}

    .widget.widget-post ul li a {
        color: #707070;
    }

    .widget.widget-post ul li:last-child {
        border: none;
    }

.de_light .widget_tags li {
    margin-bottom: 10px;
}

    .de_light .widget_tags li a {
        text-transform: uppercase;
        border: solid 1px #333;
        border-radius: 5px;
    }

.box-fx .inner, .dark .box-fx .inner, .blog-list img, .arrow-up {
    border: none;
}

.text-light .btn-line, .text-light a.btn-line {
    font-weight: 600;
}

    .text-light .btn-line:hover, .text-light a.btn-line:hover {
        background: #fff;
    }

.pagination li.active a {
    color: #ffffff;
    border: none;
}

.readmore-link {
    color: #707070 !important;
    font-weight: 600;
}

    .readmore-link:hover {
        color: #000 !important;
    }


/*COLORI SFONDO*/
.bg-color-ffffff {
    background-color: #ffffff !important;
}
/*Bianco*/
.bg-color-f63131 {
    background-color: #f63131 !important;
}
/*Rosso*/
.bg-color-ab3838 {
    background-color: #ab3838 !important;
}
/*Rosso Scuro*/
.bg-color-e8e9ec {
    background-color: #e8e9ec !important;
}
/*Grigio Chiaro*/
.bg-color-707070 {
    background-color: #707070 !important;
}
/*Grigio Scuro*/
.bg-color-18191b {
    background-color: #18191b !important;
}

.bg-color-ffd700 {
    background-color: #ffd700 !important;
}
/*Nero*/
/*.bg-color-ffc119 {background-color: #ffc119 !important;}*/

/*COLORI TESTO*/
.color-ffffff {
    color: #ffffff !important;
}

.color-f63131 {
    color: #f63131 !important;
}

.color-ab3838 {
    color: #ab3838 !important;
}

.color-e8e9ec {
    color: #e8e9ec !important;
}

.color-707070 {
    color: #707070 !important;
}

.color-18191b {
    color: #18191b !important;
}

.color-000000 {
    color: #000000 !important;
}

.color-ffd700 {
    color: #ffd700 !important;
}

/*.color-ffc119{color: #ffc119;}*/

/*STILE BOTTONI*/
.btn-bianco {
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    color: #fff !important;
    letter-spacing: 3px;
    line-height: normal;
    text-decoration: none !important;
    text-transform: uppercase;
    border: solid 1px rgba(255,255,255,.5);
    padding: 10px 30px 10px 30px;
    /*background:;*/
}

    .btn-bianco:after {
        font-family: FontAwesome;
        content: "\f054";
        margin-left: 10px;
        color: #f63131;
    }

    .btn-bianco:hover {
        color: #000 !important;
        background: #fff;
        border-color: #000;
        border: solid 2px #fff;
    }


.btn-giallo {
    display: inline-block;
    font-size: 13px;
    font-weight: bold;
    color: #000 !important;
    letter-spacing: 3px;
    line-height: normal;
    text-decoration: none !important;
    text-transform: uppercase;
    border: solid 1px #000;
    padding: 10px 30px 10px 30px;
    background: #ffd700;
    border-radius: 5px;
}

.btn-giallo:hover {
    color: #000 !important;
    background: #fff;
    border-color: #000;
/*    border: solid 2px #fff;*/
}


.btn-rosso {
    font-size: 13px;
    color: #fff !important;
    letter-spacing: 3px;
    line-height: normal;
    text-decoration: none !important;
    text-transform: uppercase;
    display: inline-block;
    background: #f63131;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 0;
}

    .btn-rosso:hover {
        color: #000 !important;
    }

@media(max-width:768px) {
    .pl-xs-0 {
        padding-left: 0px;
    }
}

.project-sub {
    font-size: 14px;
    font-weight: bold;
}

.post-text .p-date {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 10px;
    font-weight: 500;
}

/* Stile per il contenitore della lista */
.blog-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

    .blog-list li {
        display: flex;
        flex-direction: column;
    }

.post-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Stili opzionali per la card */
    background-color: #fff;
    border: 1px solid #eee;
    overflow: hidden; /* Assicura che gli angoli arrotondati (se presenti) si applichino anche all'immagine */
}

.post-image img {
    width: 100%;
    display: block;
}

/*
 * ====================================================================
 * MODIFICA CHIAVE QUI
 * Usiamo un selettore più specifico per sovrascrivere la regola esistente.
 * In questo modo il testo si allineerà correttamente con l'immagine.
 * ====================================================================
*/
.blog-list .post-text {
    flex-grow: 1;
    padding: 20px; /* Applica uno spazio interno uniforme, annullando il padding-left: 80px */
}

/*
 * Bottone "Approfondisci".
 * Viene spinto in basso e allineato a destra.
*/
.btn-more {
    margin-top: auto; /* Spinge il bottone in basso */
    align-self: flex-end; /* Allinea il bottone a destra */
    /* Aggiunge spazio esterno per non toccare i bordi della card */
    margin-right: 20px;
    margin-bottom: 20px;
}

/* Responsive per schermi piccoli */
@media (max-width: 768px) {
    .blog-list {
        grid-template-columns: 1fr; /* Una sola colonna */
    }
}

/* 
 * Contenitore delle categorie.
 * Questa è la parte fondamentale per evitare il disallineamento.
*/
.blog-list .post-categories {
    min-height: 35px; /* CRUCIALE: Riserva uno spazio verticale fisso, anche se è vuoto. */
    /* Adegua questo valore se le tue categorie vanno su più righe. */
    margin-bottom: 10px; /* Spazio tra le categorie e il titolo sottostante */
}

/* 
 * Stile per ogni singola categoria ("ovale").
*/
.category-badge {
    display: inline-block; /* Permette di applicare padding e margini */
    padding: 4px 12px;
    margin-right: 6px;
    margin-bottom: 6px; /* Per spaziare se le categorie vanno a capo */

    background-color: #FAB702; /* Un colore di esempio (blu) */
    color: #ffffff; /* Testo bianco */

    font-size: 12px;
    font-weight: 500;
    text-align: center;
    text-decoration: none; /* Rimuove la sottolineatura del link */

    border-radius: 999px; /* Il trucco per creare sempre una forma a "pillola/ovale" */

    transition: background-color 0.2s ease-in-out; /* Effetto al passaggio del mouse */
}

    .category-badge:hover {
        background-color: #0056b3; /* Colore più scuro al passaggio del mouse */
        color: #ffffff;
    }