.wrapdeviautor .row {
    max-width: 1450px !important;
}

section.herodevi .row {
    display: flex;
    align-items: center;
}

section.herodevi .badge {
    background: #ffd91f;
    font-size: 16px;
    font-weight: bold;
    color: #000;
}

section.herodevi h1 {
    font-size: 40px;
    font-weight: bold !important;
    color: #000;
}

section.herodevi p.voc {
    display: block;
    border-left: 4px solid #28AEA4;
    border-radius: 5px;
    padding: 20px;
    font-size: 16px;
    background: #f7f7f7;
}

p.ministats {
    margin: 0;
    font-size: 18px;
    color: #000;
}

section.herodevi img {
    border-radius: 10px;
}

section.cred {
    background: #ffd502;
    padding: 20px;
}

section.cred .columns.jf {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.riqcred p {
    margin: 0;
    font-size: 18px;
}

.riqcred i {
    background: #fff;
    padding: 10px;
    border-radius: 100%;
    box-shadow: 0 0 10px #ddd;
    margin-right: 5px;
}

section.cred {
    margin-top: 40px;
    margin-bottom: 40px;
}

section.storydevi {
    padding: 3em;
}

section.storydevi h3 {
    font-weight: bold;
    font-size: 40px;
}

section.cosafaccio {
    padding: 3em 0;
    background: #f7f7f7;
}

section.cosafaccio h3 {
    text-align: center;
    font-weight: bold;
    font-size: 40px;
    margin-bottom: 30px;
}

.rowcosafaccio {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-flow: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.rowcosafaccio .riquadricosafaccio {
    background: #fff;
    padding: 20px;
    width: 48%;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid #27aea4;
}

.riquadricosafaccio h4 {
    color: #27aea4;
    font-weight: bold;
}

.riquadricosafaccio p {
    font-size: 16px;
    margin: 0;
}

section.ctadevi {
    background: #27aea4;
    text-align: center;
    padding: 50px 0;
}

section.ctadevi h3 {
    font-weight: bold;
    color: #fff;
    font-size: 50px;
}

section.ctadevi p {
    color: #fff;
    font-size: 22px;
}

section.ctadevi a.btncta {
    display: inline-block;
    background: #fff;
    color: #27aea4;
    padding: 10px 30px;
    font-weight: bold;
    text-transform: uppercase;
    transition: 0.4s;
}

section.ctadevi a.btncta:hover {
    opacity: .9;
    transform: translate(0, -4px);
}

section.articlesection {
    padding: 4em 0;
}

section.articlesection h2 {
    font-size: 40px;
}

.d-article-grid {
    display: flex;
    justify-content: space-between;
    flex-flow: wrap;
}

a.d-article-card {
    width: 32%;
    margin-bottom: 20px;
}

.d-article-grid img {
    border-radius: 10px;
}

.d-article-grid h4 {
    font-size: 18px;
}

/* --- OTTIMIZZAZIONE RESPONSIVE --- */

@media (max-width: 1024px) {
    .wrapdeviautor .row {
        padding: 0 20px;
    }

    section.storydevi .columns {
        width: 100%;
    }
}

@media (max-width: 768px) {

    /* Hero Section */
    section.herodevi .row {
        flex-direction: column-reverse;
        /* Immagine sopra su mobile per dare impatto */
        text-align: center;
    }

    section.herodevi .columns {
        width: 100% !important;
        margin-bottom: 20px;
    }

    section .herodevi h1 {
        font-size: 32px;
    }

    section.herodevi p.voc {
        text-align: left;
        font-size: 15px;
    }

    /* Stats Section */
    section.cred .columns.jf {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .riqcred p {
        font-size: 16px;
    }

    /* Story Section */
    section.storydevi {
        padding: 2em 15px;
    }

    section.storydevi h3 {
        font-size: 28px;
    }

    /* "Cosa Faccio" Section */
    section.cosafaccio h3 {
        font-size: 28px;
    }

    .rowcosafaccio .riquadricosafaccio {
        width: 100%;
        /* I box occupano tutta la larghezza */
        margin-bottom: 15px;
    }

    /* CTA Section */
    section.ctadevi {
        padding: 40px 20px;
    }

    section.ctadevi h3 {
        font-size: 32px;
    }

    section.ctadevi p {
        font-size: 18px;
    }

    /* Articles Grid */
    a.d-article-card {
        width: 48%;
        /* Due articoli per riga su tablet/mobile largo */
    }

    section.articlesection h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {

    /* Articoli su una sola colonna su smartphone piccoli */
    a.d-article-card {
        width: 100%;
    }

    section.herodevi h1 {
        font-size: 28px;
    }
}


.pagination .current {
    padding: .1875rem .625rem;
    background: #fed83c;
    color: #000;
    cursor: default;
    border-radius: 100%;
}

.pagination.text-center {
    display: flex;
    align-items: center;
    justify-content: center;
}