:root {
    /* Colors */
    --color-primary: #253580;
    --color-tag: #374151;
    --color-tag-bg: #ffffffcc;
    --color-tag-border: #f3f4f699;
    /* Fonts */
    --font-primary: "Comfortaa", cursive;
    --font-size-title: 48px;
    --line-height-title: 1.2;
    --font-size-special-h5: 18px;
    --font-size-tag: 16px;
    /* Spacing & Border Radius */
    --border-radius-main: 10px;
    --border-radius-special: 14px;
    --padding-special: 15px;
    --padding-tag: 6px 8px;
    --gap-column: 35px;
    --gap-tag: 10px;
    /* Box Shadows */
    --shadow-main: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-main-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-tag: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-tag-hover: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
}

.header-country {
    display: grid;
    margin-bottom: 25px;
}

.header-country__title {
    font-family: var(--font-primary);
    color: var(--color-primary);
    font-size: 40px;
    line-height: 1;
    word-wrap: break-word;
    padding: 15px 0 0 0;
}

.header-country__special-text {
    border: 1px solid #25358033;
    border-radius: var(--border-radius-special);
    padding: var(--padding-special);
    background-image: linear-gradient(to right,
            rgba(37, 53, 128, 0.1) 0%,
            rgba(0, 0, 0, 0) 50%,
            rgba(253, 118, 138, 0.1) 100%);
    background-image: linear-gradient(to right,
            oklab(0.363448 -0.00046885 -0.1278 / 0.1) 0%,
            rgba(0, 0, 0, 0) 50%,
            oklab(0.7299 0.160906 0.0368927 / 0.1) 100%);
}

.header-country__special-text:hover {
    background-image: linear-gradient(to right, rgba(37, 53, 128, 0.15) 0%, rgba(0, 0, 0, 0) 50%, rgba(253, 118, 138, 0.15) 100%);
    background-image: linear-gradient(to right, oklab(0.363448 -0.00046885 -0.1278 / 0.15) 0%, rgba(0, 0, 0, 0) 50%, oklab(0.7299 0.160906 0.0368927 / 0.15) 100%);
}

.header-country__special-text h5 {
    display: flex;
    align-items: center;
    gap: var(--gap-tag);
    color: var(--color-primary);
    font-size: var(--font-size-special-h5);
    margin-bottom: 10px;
    line-height: 1;
}

.header-country__special-text h5:before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(/wp-content/themes/vittoriavita/images/warning-icon.svg);
}

.header-country__special-text p {
    padding-left: 30px;
}

.header-country__image {
    margin: 35px 0 15px 0;
    border-radius: var(--border-radius-main);
    overflow: hidden;
    box-shadow: var(--shadow-main);
    transition: box-shadow 0.3s ease;
}

.header-country__image:hover {
    box-shadow: var(--shadow-main-hover);
}

.header-country__img {
    border-radius: var(--border-radius-main);
    object-fit: cover;
    max-height: 350px;
    object-position: bottom;
}

.header-country__cards {
    margin: 0 0 15px 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 35px 25px;
}

.header-country__card {
    width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 10px 25px 10px;
    background-color: rgb(255, 255, 255);
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
    transition: scale 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    aspect-ratio: 140 / 140;
    will-change: transform;
}

.header-country__card:hover {
    z-index: 99 !important;
    scale: 1.05;
    box-shadow: rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0) 0px 0px 0px 0px, rgba(0, 0, 0, 0.1) 0px 20px 25px -5px, rgba(0, 0, 0, 0.1) 0px 8px 10px -6px;
}

.header-country__card img {
    width: 100%;
    height: auto;
    aspect-ratio: 140 / 140;
    object-fit: cover;
    border-radius: 10px;
}

.header-country__card-title {
    font-family: var(--font-primary);
    color: #4a5565;
    word-wrap: break-word;
    font-size: 12px;
}

.header-country__card.is-hidden-mobile {
    display: none !important;
}

.header-country__tags {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.header-country__tag {
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(8px);
    background-color: var(--color-tag-bg);
    border: 1px solid var(--color-tag-border);
    border-radius: var(--border-radius-main);
    padding: var(--padding-tag);
    box-shadow: var(--shadow-tag);
    transition: box-shadow 0.3s ease;
}

.header-country__tag:hover {
    box-shadow: var(--shadow-tag-hover);
}

.header-country__tag-image {
    width: 18px;
    height: 18px;
}

.header-country__tag-title {
    font-size: var(--font-size-tag);
    font-weight: 400;
    line-height: 1;
    color: var(--color-tag);
}

@media screen and (min-width: 992px) {
    .header-country {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(min-content, 80px) auto;
        align-items: start;
        gap: 0 35px;
    }

    .header-country__column--image {
        grid-row: 1 / 3;
        grid-column: 2 / 3;
        align-self: baseline;
    }

    .header-country__column--content {
        grid-column: 1 / 3;
    }

    .header-country__content {
        margin-top: 35px;
    }

    .header-country__title.main-title {
        font-size: var(--font-size-title);
        line-height: var(--line-height-title);
        grid-column: 1 / 2;
    }

    .header-country__card.is-hidden-mobile {
        display: flex !important;
    }

    .header-country__cards {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .header-country__tags {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .header-country__special-text {
        margin: 25px auto 25px auto;
        width: 80%;
    }

}

@media screen and (min-width: 1200px) {
    .header-country {
        gap: 0 50px;
    }
}