/* ===================================================
   mc-decisions-bar plugin — decisions-bar.css
   Version: 3.2
   Last updated: 2026-04-06
   
   Sections:
   1. HEADER — Desktop
   2. HEADER — Tablet (768px–1024px)
   3. HEADER — Mobile (max-width: 767px)
   4. DECISIONS BAR — Desktop
   5. DECISIONS BAR — Mobile
   6. BLOG POST heading color fix
   7. LANGUAGE SWITCHER
   8. SEARCH RESULTS PAGE
   9. SEARCH BOX — expanded when active
   =================================================== */

/* ===================================================
   1. HEADER — Desktop
   =================================================== */
.elementor-location-header .elementor-section-wrap,
.elementor-location-header .elementor-section {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.elementor-location-header .elementor-container {
    align-items: center !important;
    min-height: 70px !important;
}
.elementor-location-header .elementor-column-wrap,
.elementor-location-header .elementor-widget-wrap {
    align-items: center !important;
}
.elementor-location-header .elementor-element-header_column_logo .elementor-widget-wrap {
    justify-content: flex-start !important;
    padding: 5px 0 5px 10px !important;
}
.elementor-location-header .elementor-widget-image img {
    max-width: 160px !important;
    width: 160px !important;
    height: auto !important;
}
.elementor-location-header .elementor-nav-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    white-space: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
}
.elementor-location-header .elementor-nav-menu > li {
    display: inline-flex !important;
    white-space: nowrap !important;
}
.elementor-location-header .elementor-nav-menu > li > a {
    font-size: 12px !important;
    padding: 0 8px !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
}
.elementor-location-header .elementor-element-header_column_actions .elementor-widget-wrap {
    justify-content: flex-end !important;
    padding: 5px 10px 5px 0 !important;
}

/* ===================================================
   2. HEADER — Tablet (768px–1024px)
   =================================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .elementor-location-header .elementor-nav-menu > li > a {
        font-size: 11px !important;
        padding: 0 6px !important;
        letter-spacing: 0.3px !important;
    }
    .elementor-location-header .elementor-widget-image img {
        max-width: 55px !important;
        width: 55px !important;
    }
}

/* ===================================================
   3. HEADER — Mobile (max-width: 767px)
   =================================================== */
@media (max-width: 767px) {
    /* Header container: logo left, actions right */
    .elementor-location-header .elementor-element-header_section .elementor-container {
        flex-wrap: nowrap !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 65px !important;
        padding: 0 12px !important;
    }
    /* Logo column: left-aligned, auto width */
    .elementor-location-header .elementor-element-header_column_logo {
        width: auto !important;
        flex: 0 0 auto !important;
    }
    .elementor-location-header .elementor-element-header_column_logo .elementor-widget-wrap {
        padding: 0 !important;
        justify-content: flex-start !important;
    }
    /* Logo size on mobile */
    .elementor-location-header .elementor-widget-image img {
        max-width: 120px !important;
        width: 120px !important;
    }
    /* Nav column: auto width, no flex growth — order 3 so hamburger is at far right */
    .elementor-location-header .elementor-element-header_column_nav {
        width: auto !important;
        flex: 0 0 auto !important;
        order: 3 !important;
    }
    /* Logo stays first */
    .elementor-location-header .elementor-element-header_column_logo {
        order: 1 !important;
    }
    /* Actions (CONTRIBUA) in the middle */
    .elementor-location-header .elementor-element-header_column_actions {
        order: 2 !important;
    }
    /* Hide the horizontal desktop nav menu — hamburger handles it */
    .elementor-location-header .elementor-nav-menu--main {
        display: none !important;
    }
    /* Hamburger toggle: solid red button */
    .elementor-location-header .elementor-menu-toggle {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        border: none !important;
        border-radius: 4px !important;
        color: #ffffff !important;
        background: #B21111 !important;
        margin: 0 !important;
    }
    .elementor-location-header .elementor-menu-toggle svg,
    .elementor-location-header .elementor-menu-toggle .e-font-icon-svg {
        fill: #ffffff !important;
        width: 22px !important;
        height: 22px !important;
    }
    /* Actions column: show CONTRIBUA button, hide search and EN flag */
    .elementor-location-header .elementor-element-header_column_actions {
        display: flex !important;
        width: auto !important;
        flex: 0 0 auto !important;
    }
    .elementor-location-header .elementor-element-header_column_actions .elementor-widget-wrap {
        padding: 0 !important;
        gap: 8px !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    .elementor-location-header .elementor-element-search_widget,
    .elementor-location-header .elementor-element-lang_switcher {
        display: none !important;
    }
    .elementor-location-header .elementor-element-header_column_actions .elementor-button {
        font-size: 12px !important;
        padding: 8px 14px !important;
        height: 40px !important;
        line-height: 40px !important;
        white-space: nowrap !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }
    .elementor-location-header .elementor-element-header_column_actions .elementor-button .elementor-button-content-wrapper {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }
    /* Dropdown menu: full width, vertical items, dark background */
    .elementor-location-header .elementor-nav-menu--dropdown.elementor-nav-menu__container {
        display: block !important;
        width: 100vw !important;
        min-width: 100vw !important;
        background: #1a1a1a !important;
        border-top: 3px solid #B21111 !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important;
        position: fixed !important;
        top: 65px !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999 !important;
        box-sizing: border-box !important;
    }
    .elementor-location-header .elementor-nav-menu--dropdown.elementor-nav-menu__container > ul {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }
    .elementor-location-header .elementor-nav-menu--dropdown.elementor-nav-menu__container li {
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid #333 !important;
        margin: 0 !important;
    }
    .elementor-location-header .elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-item {
        display: block !important;
        width: 100% !important;
        font-size: 15px !important;
        padding: 16px 20px !important;
        color: #ffffff !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        white-space: normal !important;
    }
    .elementor-location-header .elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-item:hover,
    .elementor-location-header .elementor-nav-menu--dropdown.elementor-nav-menu__container .elementor-item:active {
        color: #B21111 !important;
        background: #222 !important;
    }
    /* Language switcher item in mobile dropdown */
    li.mc-mobile-lang-item {
        display: block !important;
        width: 100% !important;
        height: 40px !important;
        border-bottom: 1px solid #333 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    .elementor-location-header li.mc-mobile-lang-item a.mc-mobile-lang-link {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        height: 40px !important;
        font-size: 13px !important;
        padding: 10px 20px !important;
        color: #ffffff !important;
        font-weight: 500 !important;
        text-transform: uppercase !important;
        letter-spacing: normal !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
    }
    li.mc-mobile-lang-item .mc-mobile-lang-link:hover {
        color: #B21111 !important;
        background: #222 !important;
    }
    /* Search bar as last item in mobile dropdown */
    li.mc-mobile-search-item {
        display: block !important;
        width: 100% !important;
        border-bottom: none !important;
        padding: 12px 16px !important;
        background: #111111 !important;
    }
    li.mc-mobile-search-item .mc-mobile-search-wrap {
        display: flex !important;
        align-items: center !important;
        background: #2a2a2a !important;
        border-radius: 4px !important;
        overflow: hidden !important;
        padding: 0 12px !important;
    }
    li.mc-mobile-search-item input[type="search"] {
        flex: 1 !important;
        background: transparent !important;
        border: none !important;
        outline: none !important;
        color: #ffffff !important;
        font-size: 14px !important;
        padding: 12px 8px !important;
        width: 100% !important;
    }
    li.mc-mobile-search-item input[type="search"]::placeholder {
        color: #888888 !important;
    }
    li.mc-mobile-search-item button[type="submit"] {
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        color: #ffffff !important;
        padding: 8px 0 !important;
        display: flex !important;
        align-items: center !important;
    }
    /* Optional CONTRIBUA item inside dropdown */
    li.mobile-donate-btn > a.elementor-item {
        background: #B21111 !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        text-align: center !important;
        border-radius: 4px !important;
        margin: 10px 15px !important;
        padding: 12px 20px !important;
        border-bottom: none !important;
        letter-spacing: 1px !important;
        display: block !important;
    }
}

/* Hide mobile-only items on desktop and tablet */
.elementor-location-header li.mc-mobile-search-item,
.elementor-nav-menu--main li.mc-mobile-search-item,
li.mc-mobile-search-item,
.elementor-location-header li.mc-mobile-lang-item,
.elementor-nav-menu--main li.mc-mobile-lang-item,
li.mc-mobile-lang-item {
    display: none !important;
}

/* ===================================================
   4. DECISIONS BAR — Desktop
   =================================================== */
.elementor-19 .elementor-element-decisions_bar_section {
    background-color: #000000 !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}
.elementor-19 .elementor-element-decisions_bar_section .elementor-container {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
}
.elementor-19 .elementor-element-decisions_left_col .elementor-widget-wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
}
.elementor-19 .elementor-element-decisions_right_col .elementor-widget-wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
}
.elementor-19 .elementor-element-decisions_left_col .elementor-widget,
.elementor-19 .elementor-element-decisions_right_col .elementor-widget {
    margin-bottom: 0 !important;
}
.elementor-19 .elementor-element-decisions_counter_widget .elementor-counter-number-wrapper {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1 !important;
}
.elementor-19 .elementor-element-decisions_label_widget .elementor-heading-title {
    font-size: 18px !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    line-height: 1 !important;
    margin: 0 !important;
}
.elementor-19 .elementor-element-siga_nos_widget .elementor-heading-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: 1px !important;
    margin: 0 !important;
    line-height: 1 !important;
}
.elementor-19 .elementor-element-social_icons_widget .elementor-social-icons-wrapper {
    gap: 8px !important;
}

/* ===================================================
   5. DECISIONS BAR — Mobile (max-width: 767px)
   =================================================== */
@media (max-width: 767px) {
    .elementor-19 .elementor-element-decisions_bar_section {
        padding-top: 14px !important;
        padding-bottom: 14px !important;
    }
    .elementor-19 .elementor-element-decisions_bar_section .elementor-container {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
    }
    .elementor-19 .elementor-element-decisions_left_col,
    .elementor-19 .elementor-element-decisions_right_col {
        width: 100% !important;
    }
    .elementor-19 .elementor-element-decisions_left_col .elementor-widget-wrap {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }
    .elementor-19 .elementor-element-decisions_right_col .elementor-widget-wrap {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
    }
    .elementor-19 .elementor-element-decisions_counter_widget .elementor-counter-number-wrapper {
        font-size: 26px !important;
    }
    .elementor-19 .elementor-element-decisions_label_widget .elementor-heading-title {
        font-size: 15px !important;
        text-align: center !important;
    }
    /* Hide SIGA-NOS label on mobile — show icons only */
    .elementor-19 .elementor-element-decisions_siga_nos_widget {
        display: none !important;
    }
    /* Center the social icons row */
    .elementor-19 .elementor-element-decisions_social_widget .elementor-social-icons-wrapper {
        justify-content: center !important;
    }
}

/* ===================================================
   6. BLOG POST — Heading color fix
   =================================================== */
.single-post .elementor-widget-heading .elementor-heading-title,
.single-post .elementor-heading-title {
    color: #1a1a1a !important;
}

/* ===================================================
   7. LANGUAGE SWITCHER — Flag above EN text
   =================================================== */
/* Override Elementor's default white button color */
.elementor-element-lang_switcher .elementor-button,
.elementor-element-lang_switcher .elementor-button:hover,
.elementor-element-lang_switcher .elementor-button:focus,
.elementor-element-lang_switcher a.elementor-button {
    color: #333333 !important;
    background-color: transparent !important;
    border: none !important;
    padding: 4px 8px !important;
}
/* Stack flag above EN text */
.elementor-element-lang_switcher .elementor-button-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    line-height: 1.2 !important;
    gap: 2px !important;
    color: #333333 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}
/* Flag emoji size */
.elementor-element-lang_switcher .elementor-button-text img.emoji {
    width: 22px !important;
    height: 22px !important;
    display: block !important;
    margin: 0 auto !important;
}

/* ===================================================
   8. SEARCH RESULTS PAGE
   =================================================== */
body.search-results .page-header {
    padding: 40px 0 20px;
    border-bottom: 2px solid #e5e5e5;
    margin-bottom: 30px;
}
body.search-results .page-header .entry-title {
    font-size: 22px !important;
    font-weight: 600;
    color: #333333;
}
body.search-results .page-header .entry-title span {
    color: #c0392b;
}
body.search-results .page-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
body.search-results article.post {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
body.search-results article.post > a:has(img) {
    flex: 0 0 220px;
    max-width: 220px;
}
body.search-results article.post > a img.wp-post-image {
    width: 220px !important;
    height: 130px !important;
    object-fit: cover !important;
    border-radius: 4px;
    display: block !important;
}
body.search-results article.post .entry-title {
    font-size: 18px !important;
    font-weight: 700;
    margin: 0 0 8px 0;
    line-height: 1.3;
}
body.search-results article.post .entry-title a {
    color: #333333 !important;
    text-decoration: none;
}
body.search-results article.post .entry-title a:hover {
    color: #c0392b !important;
}
body.search-results article.post .entry-summary,
body.search-results article.post p {
    font-size: 14px;
    color: #666666;
    line-height: 1.6;
    margin: 0;
}
body.search-results .pagination {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    margin-top: 10px;
    border-top: 1px solid #e5e5e5;
}
body.search-results .pagination a {
    color: #c0392b !important;
    font-weight: 600;
    text-decoration: none;
}
body.search-results .page-content > p {
    font-size: 16px;
    color: #666666;
    padding: 40px 0;
    text-align: center;
}
@media (max-width: 767px) {
    body.search-results article.post {
        flex-direction: column;
    }
    body.search-results article.post > a:has(img) {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
    }
    body.search-results article.post > a img.wp-post-image {
        width: 100% !important;
        height: 180px !important;
    }
}

/* ===================================================
   9. SEARCH BOX — Expanded width when active
   =================================================== */
.elementor-element-search_col {
    transition: min-width 0.3s ease !important;
    overflow: visible !important;
}
.elementor-element-search_widget .elementor-search-form,
.elementor-element-search_widget .elementor-search-form__container {
    height: 33px !important;
    min-height: 33px !important;
}
.elementor-element-search_widget .elementor-search-form__input {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid #cccccc !important;
    outline: none !important;
    color: #333333 !important;
    font-size: 13px !important;
    height: 33px !important;
    transition: width 0.3s ease, opacity 0.3s ease !important;
}
.elementor-element-search_widget .elementor-search-form--focus .elementor-search-form__input {
    width: 240px !important;
    min-width: 240px !important;
    opacity: 1 !important;
    padding: 0 8px !important;
    color: #333333 !important;
}
.elementor-element-search_widget .elementor-search-form__input:focus {
    border-bottom-color: #c0392b !important;
}
.elementor-element-search_widget .elementor-search-form__icon {
    height: 33px !important;
    display: flex !important;
    align-items: center !important;
}
.elementor-element-search_widget .elementor-search-form__icon svg {
    fill: #333333 !important;
    color: #333333 !important;
}
