/* ******************************* TELEFON ***************************** */
@media (max-width: 420px) {
    .proiect-titlu {
        font-size: 1.35rem;
    }
}

/* Extra small devices (phones, less than 640px) */
@media screen and (max-width: 640px) {
    :root {
        --brand: #1a73e8;
        --ink: #434443dc;
        --muted: #5b6b7b;
        --line: #dfe7f3;
        --panel-bg: #f4f9ff;
    }

    /**************************************CONTENT********************************************/

    /* ========== elemente comune ========== */

    fieldset {
        width: 100%;
    }

    .titlu {
        margin: 1rem auto;
        text-align: center;
        font-size: 1.2rem;
    }

    .text {
        padding: 2.5em;
    }

    .continut_pagina {
        margin: 7em auto 0 auto;
        padding: 0;
    }

    #id_funda {
        position: absolute;
        right: 0vw;
        font-size: 8rem;
        top: 6.5rem;
        color: red;
    }

    .carte {
        display: flex;
        width: 10vw;
        position: absolute;
        float: right;
        top: 15rem;
        right: 20%;
    }

    .cal {
        display: flex;
        width: 10vw;
        position: absolute;
        float: right;
        top: 10rem;
        right: 10%;
    }

    .scris-mana {
        display: flex;
        float: left;
        width: 10vw;
        position: absolute;
        top: 15rem;
        left: 10%;
    }

    .clasa-intai {
        display: flex;
        float: left;
        width: 10vw;
        position: absolute;
        top: 7rem;
        left: 15%;
    }

    .faq__content {
        font-size: 2vw;
        margin: 1rem 5rem;
        padding: 2rem;
    }

    .summary {
        font-size: 0.8em;
    }

    .descriere_card {
        font-size: 0.8em;
        width: 85%;
        margin: 2em auto;
    }


    .column {
        height: auto;
        display: flex;
        width: 50%;
        margin: 2%;
    }

    /* ========== carduri ========== */
    .card-div {
        margin: 6em auto;
    }

    /* ========== evenimente ========== */

    .titlu_evenimente {
        margin-top: 5em;
        text-align: center;
        font-size: 1em;
    }

    .chenar4 {
        height: 30em;
        width: 65%;
        margin: 1em auto;
    }

    /* ========== asistenta-sociala.php - iframe ========== */

    .documente_mobil {
        display: block;
    }

    .revista-container {
        display: none;
    }

    .faq__content {
        font-size: 0.9rem;
        margin: auto;
        padding: 0.5rem;
    }

    .doua_coloane {
        display: block;
        width: 100%;
        padding: 1em;
        font-size: 1em;
    }

    .link_inlocuitor_iframe {
        display: block;
    }

    .youtube {
        display: none;
    }

    .reciclare {
        background-image: repeating-radial-gradient(blue, green 5%, green 4%);
        border-radius: 50%;
        width: 100%;
        height: auto;
    }

    /* ========== evenimente.php - carduri de eveniment ========== */
    .events {
        flex-wrap: wrap;
    }


    .grid-foto-2 {
        grid-template-columns: 1fr;
    }

    .grid-foto-2 img {
        width: 50vw;
        height: 20vh;
    }

    /* ========= galerie ========= */

    .dribbble-img img {
        border-radius: 6px;
        width: 90vw;
        height: auto;
        margin: auto;
    }

    /* ========== contact ========== */

    .dreapta-contact {
        width: 60vw;
    }

    /* ========prezentare====== */
    .grid_prezentare {
        grid-template-columns: 1fr;
        width: 90%;
    }

    .foto_prezentare {
        display: none;
    }

    /* ===================== proiect de finantare================== */
    .proiect-grid {
        grid-template-columns: 1fr;
    }
}

/* ******************************* TABLETA ***************************** */
/* Small devices (tablets, 640px and up) */
@media screen and (min-width: 641px),
handheld and (min-width: 641px) and (max-width: 980px) {

    :root {
        --brand: #1a73e8;
        --ink: #434443dc;
        --muted: #5b6b7b;
        --line: #dfe7f3;
        --panel-bg: #f4f9ff;
    }


    .titlu {
        text-align: center;
        font-size: 1.5rem;
    }

    /* ---------------------------CONTENT---------------------------------- */
    /* ========== elemente comune ========== */
    .descriere_card {
        width: 80%;
    }

    /* ========== carduri evenimente ========== */
    .chenar4 {
        width: 40%;
        margin: 0 1% 30px 2.9em;
        float: left;
        height: 420px;
        border-radius: 10px;
        box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
        background-color: #FFF;
        position: relative;
    }

    #id_funda {
        position: absolute;
        right: 0vw;
        font-size: 7rem;
        top: 11rem;
        color: red;
    }

    .carte {
        display: flex;
        width: 10vw;
        position: absolute;
        float: right;
        top: 20rem;
        right: 20%;
    }

    .cal {
        display: flex;
        width: 10vw;
        position: absolute;
        float: right;
        top: 14rem;
        right: 20%;
    }

    .scris-mana {
        display: flex;
        float: left;
        width: 10vw;
        position: absolute;
        top: 20rem;
        left: 15%;
    }

    .clasa-intai {
        display: flex;
        float: left;
        width: 10vw;
        position: absolute;
        top: 12rem;
        left: 20%;
    }

    .continut_pagina {
        margin: 11rem auto 0 auto;
    }

    .faq__content {
        font-size: 1rem;
        margin: 1rem;
        padding: 1rem 2rem;
    }

    .reciclare {
        background-image: repeating-radial-gradient(blue, green 10%, green 15%);
        border-radius: 50%;
        width: 85%;
        height: auto;
    }

    .column {
        display: flex;
        width: 30%;
        padding: 10px;
        height: auto;
    }

    /* ========== inlocuitor iframe ========== */

    .documente_mobil {
        display: block;
    }

    .revista-container {
        display: none;
    }

    .link_inlocuitor_iframe {
        display: none;
    }

    /* ========== div continut ========== */
    .doua_coloane {
        display: block;
        width: 80%;
    }

    summary {
        font-size: 1rem;
    }

    .grid-foto-2 {
        grid-template-columns: 1fr;
    }

    .grid-foto-2 img {
        width: 40vw;
        height: 25vh;
    }

    /* ========== evenimente.php - carduri de eveniment ========== */
    .events {
        flex-wrap: wrap;
    }

    .dribbble-img img {
        border-radius: 6px;
        width: 90vw;
        height: auto;
        object-fit: cover;
    }

    /* ========== contact ========== */

    .dreapta-contact {
        width: 60vw;
    }

    /* ========== awards ========== */

    .awards {
        width: 80%;
        height: 50em;
    }

    .grid_foto_portret {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid_foto_portret img {
        margin: 1em auto;
        width: 80%;
        height: auto;
        padding: 1em;
        border-radius: 40px;
    }

}

/* ******************************* CALCULATOR *************************** */
/* Medium and large devices (desktops, 980px and up) */
@media screen and (min-width: 981px),
handheld and (min-width: 640px) {

    /* ========== meniu ========== */

    .openbtn {
        display: none;
    }

    /* ---------------------------CONTENT---------------------------------- */

    /* ========== lista-demnitari.php - demnitari ========== */
    .titlu {
        margin: 1rem auto;
        text-align: center;
    }

    .text {
        width: 80%;
        padding: 2.5em;
        margin: auto;
    }

    .continut_pagina {
        margin: 8rem auto 0 auto;
        padding: 0;
    }

    .reciclare {
        background-image: repeating-radial-gradient(blue, green 10%, green 15%);
        border-radius: 50%;
        width: 45%;
        height: auto;
    }

    .faq__content {
        font-size: 1.2vw;
        margin: 1rem 5rem;
    }

    #id_funda {
        position: absolute;
        right: 2vw;
        font-size: 10rem;
        top: 11rem;
        color: red;
    }

    .clasa-intai {
        display: flex;
        float: left;
        width: 5vw;
        position: absolute;
        top: 17rem;
        left: 35%;
    }

    .cal {
        display: flex;
        width: 5vw;
        position: absolute;
        float: right;
        top: 15rem;
        right: 33%
    }

    .scris-mana {
        display: flex;
        float: left;
        width: 5vw;
        position: absolute;
        top: 23rem;
        left: 25%
    }

    .carte {
        display: flex;
        width: 5vw;
        position: absolute;
        float: right;
        top: 22rem;
        right: 30%
    }

    /* ========== asistenta-sociala.php - iframe ========== */

    .documente_mobil {
        display: none;
    }

    .revista-container {
        display: grid;
    }

    .link_inlocuitor_iframe {
        display: none;
    }

    /* ========== div continut ========== */
    .doua_coloane {
        margin: 0 auto;
        width: 90%;
        gap: 1em;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }

    /* ========== contact ========== */

    .dreapta-contact {
        width: 35vw;
    }

    /* ==== galerie ==== */
    .dribbble-img img {
        border-radius: 6px;
        width: 90vw;
        height: 55vh;
        object-fit: cover;
    }

    /* ========== Awards ========== */

    .grid-foto-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-foto-2 img {
        width: 35vw;
        height: 35vh;
    }

    .awards {
        height: 30em;
    }

    .grid_foto_portret {
        grid-template-columns: repeat(4, 1fr);
    }

    .grid_foto_portret img {
        width: 15vw;
        height: auto;
        object-fit: contain;
        background: #fff;
        border-radius: 16px;
        box-shadow:
            0 10px 22px rgba(0, 0, 0, .10),
            0 3px 8px rgba(0, 0, 0, .06) inset;
        outline: 1px solid rgba(0, 0, 0, .06);
        transition: transform .28s ease, box-shadow .28s ease, outline-color .28s ease;
        will-change: transform;
    }

    .grid_prezentare {
        grid-template-columns: 1fr 1fr;
    }
}

/* ******************************* ECRANE MARI ***************************** */

@media screen and (min-width: 1120px),
handheld and (min-width: 640px) {

    /* ---------------------------CONTENT---------------------------------- */
    .faq__content {
        font-size: 1.1vw;
        margin: 1rem 5rem;
    }
}