
/*************************************/
/* Params */
/*************************************/

/* Colors */
:root {
    --color-body: #000;
    --color-brand: #003a5d;
    --color-menu-text: white;
    --color-links: #0064a0;
    --color-highlight: #E9501C;

    --container-width: 995px;
    --column-gap: 32px;
    --right-column-width: 300px;
    --left-column-width: calc(100% - var(--right-column-width) - var(--column-gap));

    --site-content-padding: 20px;
    --images-svg-url: url('/wp-content/themes/viral-pro-child/images/images.svg');
}


/*************************************/
/* Reset */
/*************************************/

* {
    box-sizing: border-box;
}

html {
    font-family: 'Helvetica', 'Arial', sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;

    font-size: 16px;
}

body {
    margin: 0;
    color: var(--color-body);
}

img {
    height: auto;
    max-width: 100%;
}

a {
    color: var(--color-links);
}

a:hover {
    color: var(--color-highlight);
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 15px;
    font-weight: bold;
}

h1 {
    font-size: 1.65rem;
}

h2 {
    font-size: 1.15rem;
    font-weight: normal;
    line-height: 1.45;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
}

/*************************************/
/* Impostazione template */
/*************************************/

#ht-page {
    margin: 0 auto;
    width: 100%;
    max-width: var(--container-width);
}

#ht-content {
    background: #fff;

    padding-bottom: 40px;
}


/*************************************/
/* Header e heading vari */
/*************************************/
.widget-title {
    font-size: 1.15rem;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;

    text-transform: uppercase;
}

.widget-title:after {
    content: '';
    flex-grow: 1;
    border-bottom: 2px solid black;
    margin-left: 20px;
}

.vl-block-header {
    border-bottom: 3px solid var(--color-brand);
    margin-bottom: 20px;
}

.vl-block-header .vl-block-title {
    margin-bottom: 0;
}

.vl-block-header .vl-block-title .vl-title {
    font-size: 1rem;
    text-transform: uppercase;

    display: inline-block;

    color: white;
    background: var(--color-brand);
    padding: 8px 18px 6px 14px;

    margin-bottom: -1px;

    clip-path: polygon(0 0,90% 0,100% 100%,0% 100%);
}


h3.vl-post-title {
    font-size: .85rem;
    line-height: 1.15;
    margin-bottom: 10px;

    text-transform: uppercase;
}

h3.vl-post-title a {
    text-decoration: none;
}

/*************************************/
/* Barra sopra il menu di navigazione */
/*************************************/
.ht-top-header {
    background: rgba(17, 17, 17, 1);
    color: #FFF;

    padding: 10px 16px;
    font-size: 0.9rem;
}

.ht-top-header > .ht-container {
    display: flex;
    justify-content: space-between;
}

.ht-th-right.th-social {
    display: flex;
    gap: 16px;
}

.ht-th-right.th-social .social {
    width: 16px;
    height: 16px;
}

.ht-th-left .vl-time {
    padding-left: 12px;
}

.header-social-link {
    display: inline-block;
    width: 16px;
    height: 16px;
    background: var(--images-svg-url);
}

.header-social-link.social-facebook {
    background-position: 0 0;
}

.header-social-link.social-x-twitter {
    background-position: -20px 0;
}

.header-social-link.social-instagram {
    background-position: -40px 0;
}

.header-social-link.social-linkedin {
    background-position: -60px 0;
}

.header-social-link.social-brand-whatsapp {
    background-position: -80px 0;
}

/*************************************/
/* Menu di navigazione */
/*************************************/
/*
#ht-masthead > .ht-top-header|.ht-header > .ht-container > .ht-site-branding|.ht-site-nav
.ht-site-nav > #ht-site-navigation > .ht-menu > #menu-header-menu > .menu-item
*/
.ht-header {
    background-color: var(--color-brand);
    color: #FFF;

    padding: 0 20px;
    height: 64px;

    display: flex;
    align-items: center;
}

.ht-header > .ht-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;

    width: 100%;
}

.ht-header > .ht-container > .ht-site-nav {
    flex-grow: 1;
    display: flex;
    justify-content: end;
    align-content: center;
    align-items: center;
    gap: 12px;
}

#ht-site-branding .background-logo {
    display: inline-block;
    width: 158px;
    height: 32px;
    background-image: var(--images-svg-url);
    background-position: 0 36px;
}

#ht-site-navigation a {
    color: var(--color-menu-text);
    text-decoration: none;
    font-weight: bold;
}

#menu-header-menu {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;

    width: 100%;

    margin: 0;
    padding: 0;
}

#menu-header-menu, #menu-header-menu ul {
    list-style: none;
}

/* General menu styling */
@media (min-width: 995px) {

    #menu-header-menu .dropdown-nav {
        position: relative;
        background-color: transparent; /* Ensure the main element is transparent */

        display: inline-block;
        height: 8px;
        width: 8px;
    }

    #menu-header-menu .dropdown-nav::before,
    #menu-header-menu .dropdown-nav::after {
        content: '';
        position: absolute;
        width: 4px;
        height: 4px;
        background-color: inherit;
        top: 4px;
    }

    #menu-header-menu .dropdown-nav::before {
        transform: rotate(135deg);
        left: 5px;
        border-top: 2px solid white;
        border-right: 2px solid white;
    }

    #menu-header-menu > li:hover > a .dropdown-nav::before {
        border-top: 2px solid var(--color-brand);
        border-right: 2px solid var(--color-brand);
    }

    /* In the submenu the chevron is rotated */
    #menu-header-menu .sub-menu .dropdown-nav::before {
        transform: rotate(45deg);
        border-top: 2px solid #666;
        border-right: 2px solid #666;
    }


    #ht-site-navigation .ht-menu > ul > li > a > .mm-menu-title {
        text-transform: uppercase;
        font-size: 0.9rem;
    }

    #ht-site-navigation .ht-menu .mm-menu-title {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
    }

    #ht-site-navigation .ht-menu ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    #ht-site-navigation .ht-menu li {
        position: relative;
        padding: 10px;
        color: #fff;
        cursor: pointer;
    }

    #ht-site-navigation .ht-menu > ul > li {
        display: inline-block;
    }

    /* Menu link styling */
    .menu-link {
        text-decoration: none;
        color: #fff;
        display: block;
    }

    /* Hide submenus by default */
    #ht-site-navigation .ht-menu .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        z-index: 1000;
    }

    #ht-site-navigation .ht-menu .sub-menu .sub-menu {
        top: 0;
        left: 100%;
        background: #FFF;
    }

    #ht-site-navigation #menu-header-menu > li:nth-child(5) .sub-menu .sub-menu,
    #ht-site-navigation #menu-header-menu > li:nth-child(6) .sub-menu .sub-menu,
    #ht-site-navigation #menu-header-menu > li:nth-child(7) .sub-menu .sub-menu,
    #ht-site-navigation #menu-header-menu > li:nth-child(8) .sub-menu .sub-menu {
        /* This is just the CSS trick to make the menu opening on the
         * left rather than on the right on the list items */
        top: 0;
        width: 100%;
        left: -100%;
    }

    /* Show submenu on hover */
    #ht-site-navigation .ht-menu li:hover > .sub-menu {
        display: block;
    }

    /* Submenu item styling */
    #ht-site-navigation .ht-menu .sub-menu li {
        white-space: nowrap;
        padding: 5px 20px;
        background: #fff;

        min-width: 100px;
    }

    #ht-site-navigation .ht-menu .sub-menu li a {
        color: var(--color-body);
        font-weight: normal;

        font-size: 0.9rem;
    }

    /* Change background on hover */
    #ht-site-navigation .ht-menu li:hover {
        background: #FFF;
    }

    #ht-site-navigation .ht-menu li:hover > a {
        color: var(--color-brand);
    }

    #ht-site-navigation .ht-menu .sub-menu li:hover {
        background: #ececec;
    }
}

@media (max-width: 995px) {

    body.custom-background.custom-background {
        background: white;
    }

    .ht-top-header
    {
        display: none;
    }

    #ht-page {
        padding-top: 64px;
    }

    .ht-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;

        z-index: 10000000; /* The bb video player is 99999999 */
    }

    .logged-in .ht-header {
        top: 46px;
    }

    #ht-mobile-menu-button {
        display: block;
        width: 40px;
        height: 40px;

        border: 1px solid white;
    }

    #ht-mobile-menu-button a {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        height: 40px;
        gap: 6px;
    }

    #ht-mobile-menu-button a span {
        display: block;
        width: 24px;
        height: 2px;
        background: white;

        position: relative;
        transition: all 0.3s;

        bottom: 0;
    }

    .mobile-menu-open #ht-mobile-menu-button a span:nth-child(1) {
        transform: rotate(45deg);
        bottom: -8px;
    }

    .mobile-menu-open #ht-mobile-menu-button a span:nth-child(2) {
        opacity: 0;
        width: 0;
    }

    .mobile-menu-open #ht-mobile-menu-button a span:nth-child(3) {
        transform: rotate(-45deg);
        bottom: 8px;
    }

    .ht-site-nav {
        display: flex;
        justify-content: flex-end;
    }

    #menu-header-menu {
        display: flex;
        flex-direction: column;

        justify-content: flex-start;

        position: fixed;
        top: 64px;
        background: white;
        left: 0;
        right: 0;
        bottom: 100vh;
        overflow-y: auto;

        transition: bottom 0.3s;
    }

    .logged-in #menu-header-menu {
        top: 110px;
    }

    .mobile-menu-open {
        overflow: hidden;
    }

    .mobile-menu-open #menu-header-menu {
        bottom: 0;
    }

    #menu-header-menu a {
        color: black;
    }

    #menu-header-menu a {
        color: black;
    }

    #menu-header-menu > .menu-item > a {
        display: block;

        padding: 20px 20px;
        border-bottom: 1px solid #bcbcbc;
    }

    #menu-header-menu > .menu-item > .sub-menu,
    #menu-header-menu > .menu-item > .sub-menu > .menu-item > .sub-menu {
        height: 0;
        overflow: hidden;
        transition: height 0.3s;
    }

    #menu-header-menu > .menu-item.menu-item-open > .sub-menu,
    #menu-header-menu > .menu-item.menu-item-open > .sub-menu > .menu-item.menu-item-open > .sub-menu {
        height: auto;
    }

    #menu-header-menu > .menu-item > .sub-menu {
        border-left: 32px solid #e0e0e0;

        padding: 0 20px 0 0;
    }

    #menu-header-menu > .menu-item .sub-menu a {
        display: block;
        padding: 10px 0 10px 8px;

        border-bottom: 1px solid #bcbcbc;
    }

    #menu-header-menu > .menu-item > .sub-menu .sub-menu {
        border-left: 32px solid #f0f0f0;
        padding: 0;
    }

    #menu-header-menu > .menu-item > .sub-menu .sub-menu a {
        padding-left: 8px;
    }

    /* Adding the dropdown */
    #menu-header-menu .mm-menu-title {
        display: flex;
        justify-content: space-between;

        width: 100%;
    }

    #menu-header-menu .mm-menu-title .dropdown-nav::after {
        display: inline-block;

        content: '';
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
        border-top: 6px solid black;
    }

    .ht-header > .ht-container > .ht-site-nav {
        justify-content: end;
        gap: 24px;
    }

}

/*************************************/
/* Barra di ricerca */
/*************************************/
#ht-search-button {
    display: inline-block;
}

#ht-search-button > a,
#htSearchWrapper .search-submit
{
    width: 32px;
    height: 32px;
    display: inline-block;

    background: var(--images-svg-url);
}

#ht-search-button > a {
    background-position: -318px 2px;
}

#htSearchWrapper .search-submit {
    margin: 10px;
    background-position: -318px -30px;
}

/* Ricerca */
.ht-search-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.search-menu-open .ht-search-wrapper {
    display: flex;
}

.search-form {
    display: flex;
    align-items: center;

    background: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

    width: min(75vw, 450px);
}

.search-form > .search-field {
    max-width: 450px;
    width: 100%;
    padding: 24px 0 24px 24px;
    font-size: 24px;
    border: 1px solid #ccc;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-submit {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: #333;

    padding: 0 12px;

    flex-grow: 1;
}


.search-submit:hover {
    opacity: 0.7;
}

.search .ht-main-content article {
    padding: 16px 0;
}

.search .ht-main-content h3 {
    margin: 0;
}

.search .ht-main-content h3 a {
    color: black;
    text-decoration: none;
}



.search .ht-main-content .entry-readmore a {
    display: inline-block;
    padding: 12px 20px;
    line-height: 1.2;
    color: #FFF;
    border: 0;
    transition: all 0.3s ease;
    background: var(--color-brand);

    text-decoration: none;
    margin-top: 12px;
}

.search .ht-main-content .entry-readmore a:hover {
    background: #333;
}


/*************************************/
/* Footer */
/*************************************/
#ht-colophon * {
    color: #FFF;
}

#ht-colophon a {
    text-decoration: none;
}

#ht-colophon a:hover {
    text-decoration: underline;
}

.ht-bottom-footer {
    background: #000;
    padding: 20px;
}

.ht-site-info {
    text-align: center;
}

/***********************************/
/* 404 e 410 */
/***********************************/
.error404 .ht-main-header,
.error410 .ht-main-header {
    text-align: center;
    padding-top: 20px;
    margin: 0 20px 0;
}

.oops-text, .oops-image {
    text-align: center;
    margin: 20px;
}

.oops-image img {
    width: 480px;
    height: auto;
    max-width: 100%;
}

/*************************************/
/* Articoli e gallery */
/*************************************/
.breadcrumbs {
    font-size: 0.9em;
}

.breadcrumbs a {
    color: var(--color-links);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
    color: var(--color-highlight);
}

.breadcrumbs .breadcrumb_last strong {
    font-weight: normal;
}

.ht-site-wrapper {
    display: flex;
    flex-direction: row;
    gap: var(--column-gap);
}

.ht-site-wrapper > #primary {
    width: var(--left-column-width);

    font-size: 20px;
}

.ht-site-wrapper > #secondary {
    flex-basis: var(--right-column-width);
    width: var(--right-column-width);
    max-width: var(--right-column-width);
    min-width: var(--right-column-width);
}

.ht-site-wrapper > #primary .entry-content h2 {
    padding-top: 16px
}

@media (max-width: 768px) {

    .ht-site-wrapper {
        flex-direction: column;
    }

    .ht-site-wrapper > #primary,
    .ht-site-wrapper > #secondary {
        width: 100%;
    }

    .ht-site-wrapper > #secondary {
        flex-basis: 100%;
        max-width: 100%;
    }

}

.single-entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-bottom: 18px;
}

.single-entry-tags a {
    display: inline-block;
    border: 1px solid #333;
    color: #333;
    padding: 2px 12px;

    font-size: 0.8rem;
    text-decoration: none;
}

.single-entry-tags a:before {
    content: '#';
}

/*************************************/
/* Sidebar */
/*************************************/
.theiaStickySidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (min-width: 980px) {
    .theiaStickySidebar > *:last-child {
        position: sticky;
        top: 10px;
    }
}

@media (min-width: 768px) and (max-width: 979px) {
    /* Tiene sticky le gallery perché gli annunci sono nascosti */

    .theiaStickySidebar > *:nth-child(2) {
        position: sticky;
        top: calc(64px + 10px);
    }
}

/*************************************/
/* Articoli e gallery: pulsanti condivisione */
/*************************************/
.social-share-container {
    margin: 12px 0;
    display: flex;
    gap: 8px;
}

.social-share {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: var(--images-svg-url);

    padding: 4px;
    border-radius: 4px;

    opacity: 1;
    transition: opacity 0.2s;
}

.social-share:hover {
    opacity: 0.6;
}

.social-share-facebook {
    background-position: 264px 0;
    background-color: #0866FF;
}

.social-share-whatsapp {
    background-position: 232px 0;
    background-color: #12AF0A;
}

.social-share-x {
    background-position: 200px 0;
    background-color: #1A1A1A;
}

.social-share-threads {
    background-position: 168px 0;
    background-color: #1A1A1A;
}

.social-share-telegram {
    background-position: 136px 0;
    background-color: #2CA5E0;
}

.social-share-linkedin {
    background-position: 104px 0;
    background-color: #007BB5;
}

.social-share-mail {
    background-position: 72px 0;
    background-color: #888990;
}


/*************************************/
/* Articoli: container in alto */
/*************************************/
.header-image-container {
    position: relative;
    width: 100%;
    display: flex;
    color: var(--color-menu-text);
    flex-direction: column-reverse;

    margin-bottom: 20px;
}

.header-image-container:after {
    top: 0;
    left: 0;
    content: "";
    height: 100%;
    width: 100%;
    position: absolute;
    background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .9) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(20%, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, .9)));
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .9) 100%);
    background: -o-linear-gradient(top, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .9) 100%);
    background: -ms-linear-gradient(top, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .9) 100%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 20%, rgba(0, 0, 0, .9) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000',endColorstr='#b3000000',GradientType=0);
}

.header-image-container .entry-title {
    color: var(--color-menu-text);
    text-shadow: 0 0 2px black;
}

.header-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.header-image-container .single-entry-category {
    font-size: 1rem;
    margin-bottom: 8px;

    text-shadow: 0 0 2px black;
}

.header-image-container .single-entry-category a {
    color: white;
    text-decoration: none;
    text-transform: uppercase;
}

.header-image-container .single-entry-category a:hover {
    text-decoration: underline;
    color: var(--color-highlight);
}

.header-text-content {
    position: relative;
    z-index: 1;

    padding: 36px 15px;
}

.header-text-content .single-entry-meta {
    margin-bottom: 0;
}

@media (min-width: 769px) {

    .header-image-container {
        height: 560px;
    }

    .header-image-container img {
        height: 560px;
    }

}

@media (max-width: 769px) {
    .header-image-container {
        min-height: 300px;
    }

    .header-text-content {
        padding: 24px var(--site-content-padding);
    }
}

/*************************************/
/* Articoli: corpo */
/*************************************/
.ht-site-wrapper {
    padding: 0 var(--site-content-padding);
    line-height: 1.35;
}

/*************************************/
/* Articoli: articoli correlati */
/*************************************/
.viral-pro-related-post {
    margin-bottom: 24px;
}

.viral-pro-related-post .vl-carousel-item h3 {
    font-size: 0.9rem;
    margin: 0;

    text-transform: uppercase;
    text-align: center;
}

.viral-pro-related-post .vl-carousel-item h3 a {
    text-decoration: none;
    color: black;
}


@media (max-width: 768px) {
    .viral-pro-related-post .vl-carousel-wrap .button-next,
    .viral-pro-related-post .vl-carousel-wrap .button-prev {
        opacity: 1;
        top: 76px;
    }
}

.overarticle-author {
    font-size: 0.9rem;
    margin-top: 15px;
    margin-bottom: -7px;
}


/*************************************/
/* Gallery */
/*************************************/
.single-sportal_gallery #ht-content {
    /* This is needed to make room for advertisement, otherwise
     * the ads margins will cause issues */
    padding-top: 10px;
}

.single-sportal_gallery .entry-title {
    margin-top: 8px;
}

    /*************************************/
/* Pagine */
/*************************************/
.page #ht-content {
    padding: var(--site-content-padding);
}

.page .ht-main-title {
    font-size: 2.5rem;
}


/*************************************/
/* Archivi */
/*************************************/
.archive #primary {
    /* No second column on archives */
    width: 100%;
}

.ht-main-header {
    padding: var(--site-content-padding);
}

.ht-main-header .ht-main-title {
    padding-top: 12px;
    margin-bottom: 8px;
}

.ht-main-header .taxonomy-description {
    font-size: 1rem;
    line-height: 1.2;
}

.ht-main-header .taxonomy-description p {
    margin-top: 8px;
}

.archive .ht-site-wrapper {
    margin: 0 -15px;
}

.site-main-loop {
    display: flex;
    flex-wrap: wrap;
}

.site-main-loop > article {
    display: block;
    width: 33%;
    margin-bottom: 30px;

    padding: 0 15px;
}

.site-main-loop .entry-figure {
    position: relative;
    width: 100%;
    aspect-ratio: 500 / 600;

    margin: 0;
}

.site-main-loop .entry-figure * {
    color: white;
    text-decoration: none;
}

.site-main-loop .entry-figure > a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.site-main-loop article .entry-figure .entry-thumb-container {
    aspect-ratio: 500 / 600;
    background: black;
}

.site-main-loop .entry-figure img {
    aspect-ratio: 500 / 600;
    object-fit: cover;

    transition: opacity 0.3s;

    width: 100%;
    height: 100%;
}

.site-main-loop .entry-figure > .entry-header {
    position: absolute;
    padding: 0 30px 30px;
    bottom: 0;
    left: 0;
    right: 0;

    pointer-events: none;

    background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .9) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, .9)));
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .9) 100%);
    background: -o-linear-gradient(top, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .9) 100%);
    background: -ms-linear-gradient(top, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .9) 100%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .9) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000',endColorstr='#b3000000',GradientType=0);
}

.site-main-loop .ht-post-wrapper:hover .entry-figure img  {
    opacity: 0.3;
}

.site-main-loop .entry-figure > .entry-header > .entry-readmore {
    display: block;
    overflow: hidden;
    font-size: 1rem;
    height: 0;

    transition: all 0.3s ease;
}

.site-main-loop .entry-figure:hover > .entry-header > .entry-readmore {
    height: 1.5rem;
}

.site-main-loop .entry-figure > .entry-header > h3 {
    line-height: 1.05;
}

.site-main-loop .entry-figure .archive-tag-gallery-banner {
    background: var(--color-highlight);
    position: absolute;
    top: 30px;
    left: 40px;
    color: #fff;
    padding: 4px 7px;
    font-size: .7rem;

    pointer-events: none;
}

.site-main-loop .entry-figure .entry-meta {
    padding-bottom: 10px;
    font-size: .9rem;
}

@media (min-width: 481px) and (max-width: 768px) {

    .site-main-loop > article {
        width: calc(50% - (var(--site-content-padding) / 2));
    }

    .archive .ht-site-wrapper {
        margin: 0;
    }

    .site-main-loop .entry-figure > .entry-header {
        padding: 0 10px 10px;
    }

}

@media (max-width: 480px) {

    .site-main-loop > article {
        width: 100%;
        padding: 0;
    }

    .site-main-loop .entry-figure > .entry-header {
        padding: 0 20px 20px;
    }

    .site-main-loop .entry-figure,
    .site-main-loop .entry-figure img,
    .site-main-loop article .entry-figure .entry-thumb-container {
        aspect-ratio: 500 / 400;
    }

    .archive .ht-site-wrapper {
        margin: 0;
    }
}

.navigation .nav-links {
    display: flex;
    gap: 8px;

    justify-content: center;
}

.navigation .nav-links span,
.navigation .nav-links a
{
    background: var(--color-brand);
    color: #fff;

    padding: 10px 20px;
    text-decoration: none;
}

.navigation .nav-links span.current {
    background: #333;
}

.navigation .screen-reader-text {
    display: none;
}

/*************************************/
/* Homepage */
/*************************************/

.vl-slider-wrap {
    display: flex;
}

.vl-primary-cat,
.vl-post-categories > li a
{
    background: var(--color-brand);
    color: white;
    padding: 4px 8px;
    font-size: 0.8rem;
    text-transform: uppercase;
    text-decoration: none;

    display: inline-block;

    border: 1px solid var(--color-brand);
}

.vl-primary-cat:hover,
.vl-post-categories > li a:hover {
    background: white;
    color: var(--color-brand);
}


.vl-post-categories {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.vl-post-categories > li {
    display: inline-block;
    list-style: none;
}


/*************************************/
/* Homepage - Slider vari */
/*************************************/

.vl-carousel-wrap {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

.vl-carousel-wrap .button-next,
.vl-carousel-wrap .button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--color-brand);
    opacity: 0;
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    transition: opacity 0.3s;
    z-index: 1;
}

.vl-carousel-wrap:hover .button-next,
.vl-carousel-wrap:hover .button-prev {
    opacity: 1;
}

.vl-carousel-wrap:hover .button-next:hover,
.vl-carousel-wrap:hover .button-prev:hover {
    background: black;
}

.vl-carousel-wrap .button-next::before,
.vl-carousel-wrap .button-prev::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    transform: rotate(-135deg);
    border-top: 2px solid white;
    border-right: 2px solid white;
    position: relative;
    left: 2px;
    top: -2px;
}

.vl-carousel-wrap .button-next::before {
    transform: rotate(45deg);
    left: -2px;
}

.vl-carousel-wrap .button-prev {
    left: 0;
}

.vl-carousel-wrap .button-next {
    right: 0;
}

.owl-carousel {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 -10px;
}


/* Big slider on homepage */
.vl-homepage-slider-wrapper {
    width: 100%;
    overflow-x: hidden;
    position: relative;

    margin-bottom: 16px;
}

.vl-homepage-slider-wrapper .button-next,
.vl-homepage-slider-wrapper .button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--color-brand);
    text-align: center;
    line-height: 40px;
    cursor: pointer;
    z-index: 1;

    transition: background 0.3s;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
}

.vl-homepage-slider-wrapper:hover .button-next:hover,
.vl-homepage-slider-wrapper:hover .button-prev:hover {
    background: black;
}

.vl-homepage-slider-wrapper .button-next::before,
.vl-homepage-slider-wrapper .button-prev::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    transform: rotate(-135deg);
    border-top: 2px solid white;
    border-right: 2px solid white;
    position: relative;
    left: 2px;
    top: -2px;
}

.vl-homepage-slider-wrapper .button-next::before {
    transform: rotate(45deg);
    left: -2px;
}


.vl-homepage-slider-wrapper .button-prev {
    left: 12px;
}

.vl-homepage-slider-wrapper .button-next {
    right: 12px;
}

@media (max-width: 768px) {
    .vl-carousel-wrap .button-next,
    .vl-carousel-wrap .button-prev {
        opacity: 1;
    }
}

.vl-homepage-slider-wrapper .vl-slider-wrap > .slide-item {
    flex: 0 0 100%;
    max-width: 100%;

    position: relative;
    aspect-ratio: 16 / 9;
}

.vl-homepage-slider-wrapper .vl-slider-wrap > .slide-item img {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;

    object-fit: cover;

    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.vl-homepage-slider-wrapper .vl-slider-wrap > .slide-item .vl-title-wrap {
    position: absolute;

    left: 50px;
    right: 50px;
    bottom: 0;

    background: rgba(255,255,255,.7);

    text-align: center;
    padding-top: 16px;
}

.vl-homepage-slider-wrapper .vl-slider-wrap > .slide-item .vl-post-title {
    font-size: 2.25rem;
    padding: 12px 24px;
}

.vl-homepage-slider-wrapper .vl-slider-wrap > .slide-item .vl-post-title a {
    color: #333;
    text-decoration: none;
}


@media (min-width: 481px) and (max-width: 768px) {


    .vl-homepage-slider-wrapper .vl-slider-wrap > .slide-item .vl-post-title {
        line-height: 0.75;
        padding-top: 0;
    }

    .vl-homepage-slider-wrapper .vl-post-title > a {
        font-size: 1.25rem;
    }

}


@media (max-width: 480px) {

    .vl-homepage-slider-wrapper .vl-post-title {
        line-height: 0.50;
    }

    .vl-homepage-slider-wrapper .vl-post-title > a {
        font-size: 1.15rem;
    }

    .vl-homepage-slider-wrapper .vl-slider-wrap > .slide-item .vl-title-wrap {
        left: 10px;
        right: 10px;
    }

    .vl-homepage-slider-wrapper .button-next {
        right: 0;
    }

    .vl-homepage-slider-wrapper .button-prev {
        left: 0;
    }

    .vl-homepage-slider-wrapper .vl-slider-wrap > .slide-item,
    .vl-homepage-slider-wrapper .vl-slider-wrap > .slide-item img {
        aspect-ratio: 1 / 1;
    }

}






.widget_sportal_homepage_top_slider .vl-homepage-mini-news-container {
    display: flex;
    gap: 10px;
}

.widget_sportal_homepage_top_slider .vl-homepage-mini-news-container > .vl-post-item .vl-post-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 6px;
}

.widget_sportal_homepage_top_slider .vl-homepage-mini-news-container > .vl-post-item {
    width: 100%;
    flex-grow: 1;

    opacity: 1;
    transition: opacity 0.3s;
}

.widget_sportal_homepage_top_slider .vl-homepage-mini-news-container > .vl-post-item:hover {
    opacity: 0.7;
}

.widget_sportal_homepage_top_slider .vl-homepage-mini-news-container > .vl-post-item img {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
}

.widget_sportal_homepage_top_slider .vl-homepage-mini-news-container h3 a {
    color: black;
    text-decoration: none;

    display: inline-block;
}



@media (min-width: 481px) and (max-width: 768px) {

    .widget_sportal_homepage_top_slider .vl-homepage-mini-news-container > .vl-post-item:nth-child(n+4) {
        display: none;
    }

}

@media (max-width: 480px) {

    .widget_sportal_homepage_top_slider .vl-homepage-mini-news-container > .vl-post-item:nth-child(n+3) {
        display: none;
    }

    .widget_sportal_homepage_top_slider .vl-homepage-mini-news-container > .vl-post-item {
        width: 100%;
    }

}



.owl-carousel.vl-carousel-item-1 .vl-carousel-item {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 10px;
}

.owl-carousel.vl-carousel-item-2 .vl-carousel-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 10px;
}

.owl-carousel.vl-carousel-item-3 .vl-carousel-item {
    flex: 0 0 33.3333%;
    max-width: 33.3333%;
    padding: 0 10px;
}

.owl-carousel.vl-carousel-item-4 .vl-carousel-item {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 10px;

    opacity: 1;
    transition: opacity 0.3s;
}

.owl-carousel.vl-carousel-item-4 .vl-carousel-item:hover {
    opacity: 0.7;
}

@media (min-width: 481px) and (max-width: 768px) {

    .owl-carousel.vl-carousel-item-4 .vl-carousel-item {
        flex: 0 0 33.33%;
        max-width: 33.33%;
        padding: 0 10px;
    }

}

@media (max-width: 480px) {

    .owl-carousel.vl-carousel-item-2 .vl-carousel-item,
    .owl-carousel.vl-carousel-item-3 .vl-carousel-item,
    .owl-carousel.vl-carousel-item-4 .vl-carousel-item {
        flex: 0 0 50%;
        max-width: 50%;
        padding: 0 10px;
    }

}




@media (min-width: 481px) and (max-width: 768px) {

    .widget_sportal_homepage_top_slider .vl-homepage-mini-news-container > .vl-post-item:nth-child(n+4) {
        display: none;
    }

}

.ht-fwnews2-container,
.ht-carousel2-section {
    margin-top: 24px;
}


/*************************************/
/* Homepage - Blocchi */
/*************************************/


.vl-fwnews-block-style3 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 1fr 1fr;
    grid-gap: 30px;

    padding-bottom: 40px;
}


.vl-fwnews-block-style3 .vl-post-item:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.vl-fwnews-block-style3 .vl-post-item:not(:first-child) {
    grid-column: span 1;
}

.vl-fwnews-block-style3 > .vl-post-item:nth-child(1){
    position: relative;
    aspect-ratio: 1 / 1;
}

.vl-fwnews-block-style3 > .vl-post-item:nth-child(1) > .vl-post-content
{
    position: absolute;
}

.vl-fwnews-block-style3 > .vl-post-item:nth-child(1) > .vl-post-thumb
{
    position: relative;
}

.vl-fwnews-block-style3 > .vl-post-item:nth-child(1) .vl-primary-cat-block
{
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1;
}


.vl-fwnews-block-style3 > .vl-post-item:nth-child(1) > .vl-post-thumb img {
    aspect-ratio: 1 / 1;
    width: 100%;

    object-fit: cover;
}

.vl-fwnews-block-style3 > .vl-post-item:nth-child(1) > .vl-post-content {
    bottom: 0;
    right: 0;
    left: 0;
    padding: 20px;
}

.vl-fwnews-block-style3 > .vl-post-item:nth-child(1) > .vl-post-content a {
    color: white;
}

.vl-fwnews-block-style3 > .vl-post-item:nth-child(1) > .vl-post-content h3 {
    font-size: 1.5rem;
}

.vl-fwnews-block-style3 > .vl-post-item:not(:first-child) > .vl-post-thumb {
    position: relative;
}

.vl-fwnews-block-style3 > .vl-post-item:not(:first-child) > .vl-post-thumb .vl-primary-cat-block {
    position: absolute;
    bottom: 20px;
    left: 15px;
    right: 10px;
    z-index: 1;
}

.vl-fwnews-block-style3 > .vl-post-item:not(:first-child) > .vl-post-thumb img {
    aspect-ratio: 218 / 152;
    object-fit: cover;
    width: 100%;
}

.vl-fwnews-block-style3 > .vl-post-item:not(:first-child) .vl-post-title > a {
    color: black;
}

.vl-fwnews-block-style3 .vl-post-item {
    transition: opacity 0.3s;
}

.vl-fwnews-block-style3 .vl-post-item:hover {
    opacity: 0.8;
}



@media (min-width: 481px) and (max-width: 768px) {

    .vl-fwnews-block-style3 {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr 1fr 1fr 1fr;
    }

}


@media (max-width: 480px) {

    .vl-fwnews-block-style3 {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .vl-fwnews-block-style3 > .vl-post-item:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .vl-fwnews-block-style3 > .vl-post-item:nth-child(1) > .vl-post-content h3 {
        line-height: 0.95;
    }

    .vl-fwnews-block-style3 > .vl-post-item:nth-child(1) > .vl-post-content a {
        font-size: 1.15rem;

        text-shadow: 0 0 2px black;
    }

    .vl-fwnews-block-style3 > .vl-post-item:not(:first-child) > .vl-post-thumb img {
        aspect-ratio: 12 / 9;
        object-fit: cover;
    }

}



.vl-fwnews-block-style5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;

    grid-gap: 30px;
    padding-bottom: 40px;
}

.vl-fwnews-block-style5 .vl-post-item,
.vl-fwnews-block-style5 .vl-post-item .vl-post-thumb
{
    position: relative;
}

.vl-fwnews-block-style5 .vl-post-item:first-child h3 {
    text-align: center;
    padding-top: 8px;
}

.vl-fwnews-block-style5 .vl-post-item:first-child h3 a {
    color: black;
    font-size: 1.5rem;
}

.vl-fwnews-block-style5 .vl-post-item:not(:first-child) h3 {
    padding-top: 12px;
    text-align: center;
}

.vl-fwnews-block-style5 .vl-post-item:not(:first-child) h3 a {
    color: black;
    font-size: 1.15rem;
}

.vl-fwnews-block-style5 .vl-post-item {
    transition: opacity 0.3s;
}

.vl-fwnews-block-style5 .vl-post-item:hover {
    opacity: 0.7;
}

.vl-fwnews-block-style5 .vl-post-item img {
    aspect-ratio: 317 / 177;
    object-fit: cover;
    width: 100%;
}

.vl-fwnews-block-style5 .vl-post-item:first-child img {
    aspect-ratio: 614 / 429;
}

.vl-fwnews-block-style5 .vl-post-item .vl-post-thumb .vl-post-categories {
    position: absolute;
    bottom: 40px;
    left: 20px;
    right: 20px;
    z-index: 1;
}

.vl-fwnews-block-style5 .vl-post-item .vl-primary-cat-block {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 1;
}

.vl-fwnews-block-style5 .vl-post-item:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}



@media (min-width: 481px) and (max-width: 768px) {

    .vl-fwnews-block-style5 {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto auto;
    }

    .vl-fwnews-block-style5 .vl-post-item:first-child {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
}


@media (max-width: 480px) {

    .vl-fwnews-block-style5 {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .vl-fwnews-block-style5 .vl-post-item:first-child {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }

    .vl-fwnews-block-style5 .vl-post-item:first-child img {
        aspect-ratio: 16 / 9;
        object-fit: cover;
    }

    .vl-fwnews-block-style5 .vl-post-item:first-child h3 a {
        font-size: 1.15rem;
    }

    .vl-fwnews-block-style5 .vl-post-item:not(:first-child) h3 a {
        font-size: 1.05rem;
    }
}




.widget_sportal_latest_galleries {
    padding-bottom: 40px;
}

.ht-carousel1-container .owl-carousel h3 {
    text-align: center;
    padding-top: 8px;
}

.ht-carousel1-container .owl-carousel h3 a {
    color: black;
}

.ht-carousel1-container .owl-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    aspect-ratio: 233 / 131;
}



.vl-tile-block.style6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    grid-gap: 10px;

    padding-bottom: 40px;
}

.vl-tile-block.style6 > div {
    transition: opacity 0.3s;
}

.vl-tile-block.style6 > div:hover {
    opacity: 0.7;
}

.vl-tile-block.style6 > div:first-child {
    grid-row: 1 / 3;
}

.vl-tile-block.style6 > div img
{
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.vl-tile-block.style6 > div:first-child,
.vl-tile-block.style6 > div:first-child img {
    aspect-ratio: 330 / 490;
}

.vl-tile-block.style6 > div:not(:first-child),
.vl-tile-block.style6 > div:not(:first-child) img
{
    aspect-ratio: 305 / 240;
}

.vl-tile-block.style6 > div {
    position: relative;
}

.vl-tile-block.style6 .vl-primary-cat-block {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 1;
}

.vl-tile-block.style6 .vl-title-container {
    position: absolute;
    padding: 0 20px 20px 20px;
    bottom: 0;
    left: 0;
    right: 0;
}

.vl-tile-block.style6 > div > a {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.vl-tile-block.style6 > div > .vl-post-categories {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
}

.vl-tile-block.style6 > div > .vl-title-container a {
    color: white;
    font-size: 1.15rem;
    text-decoration: none;
}



@media (min-width: 481px) and (max-width: 768px) {

    .vl-tile-block.style6 {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto auto;
    }

    .vl-tile-block.style6 > div:first-child img {
        aspect-ratio: 16 / 9;
    }

    .vl-tile-block.style6 > div:not(:first-child) img {
        aspect-ratio: 4 / 3;
    }

    .vl-tile-block.style6 > div > .vl-title-container {
        padding: 0 10px 10px 10px;
    }

    .vl-tile-block.style6 > div > .vl-title-container a {
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {

    .vl-tile-block.style6 {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .vl-tile-block.style6 > div:first-child,
    .vl-tile-block.style6 > div:not(:first-child),
    .vl-tile-block.style6 > div:first-child img,
    .vl-tile-block.style6 > div:not(:first-child) img {
        aspect-ratio: 4 / 3 !important;
    }

    .vl-tile-block.style6 > div > .vl-title-container {
        padding: 0 10px 10px 10px;
    }

    .vl-tile-block.style6 > div > .vl-title-container a {
        font-size: 1.05rem;
    }

}


.vl-fwnews-block-style8 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    grid-gap: 20px;

    padding-bottom: 24px;
}

.vl-fwnews-block-style8 > div {
    transition: opacity 0.3s;
}

.vl-fwnews-block-style8 > div:hover {
    opacity: 0.7;
}

.vl-fwnews-block-style8 > div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vl-fwnews-block-style8 > div img
{
    aspect-ratio: 300 / 210;
}

.vl-fwnews-block-style8 .vl-post-thumb {
    position: relative;
}

.vl-fwnews-block-style8 .vl-primary-cat-block {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
}

.vl-fwnews-block-style8 h3 {
    text-align: center;

    padding-top: 8px;
}

.vl-fwnews-block-style8 h3 a {
    color: black;
}


@media (min-width: 481px) and (max-width: 768px) {

    .vl-fwnews-block-style8 {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto auto auto auto;
    }

}

@media (max-width: 480px) {

    .vl-fwnews-block-style8 {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
    }

    .vl-fwnews-block-style8 > div img {
        aspect-ratio: 16 / 9;
    }

    .vl-fwnews-block-style8 h3 a {
        font-size: 1.15rem;
    }

}




.vl-bottom-block.style2 {
    display: flex;
    gap: 20px;

    padding-bottom: 40px;
}

.vl-bottom-block.style2 > div {
    flex: 1;
}

.vl-bottom-block.style2 .vl-post-item {
    padding-bottom: 8px;

    transition: opacity 0.3s;
}

.vl-bottom-block.style2 .vl-post-item:hover {
    opacity: 0.7;
}

.vl-bottom-block.style2 .vl-post-item img {
    width: 120px;
    max-width: 120px;
    min-width: 120px;
    object-fit: cover;

    aspect-ratio: 1 / 1;
}

.vl-bottom-block.style2 .vl-post-item {
    display: flex;
    gap: 10px;
}

.vl-bottom-block.style2 .vl-post-item .vl-primary-cat-block {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 8px;
}

.vl-bottom-block.style2 .vl-post-item h3 a {
    color: black;
}

@media (max-width: 768px) {
    .vl-bottom-block.style2 {
        flex-direction: column;
    }
}


.vl-carousel-block.style1 img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    aspect-ratio: 233 / 279;
}

.vl-carousel-block.style1.short img {
    aspect-ratio: 16 / 9;
}

.vl-carousel-block.style1 h3 {
    text-align: center;
    padding-top: 8px;
}

.vl-carousel-block.style1 h3 a {
    color: black;
}

.ht-slider2-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ht-slider2-container .vl-carousel-item,
.ht-slider2-container .vl-carousel-item img {
    aspect-ratio: 130 / 54;
}

.ht-slider2-container .vl-carousel-item {
    opacity: 1;
    transition: opacity 0.3s;
}

.ht-slider2-container .vl-carousel-item:hover {
    opacity: 0.7;
}

.ht-slider2-container h3 {
    text-align: center;
    padding-top: 8px;
}

.ht-slider2-container h3 a {
    color: black;
}


@media (max-width: 768px) {

    .ht-slider2-container .vl-carousel-wrap .button-next,
    .ht-slider2-container .vl-carousel-wrap .button-prev {
        top: 30px;
    }
}

.sportal_gallery .viral-pro-related-post {
    padding-top: 16px;
}

/*************************************/
/* Shortcode */
/*************************************/
/* [euro_2024_news] and [custom_news] */
.euro-2024-related-grid,
.category_and_tag-related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}

@media (max-width: 768px) {
    .euro-2024-related-grid,
    .category_and_tag-related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.euro-2024-related-grid.slim,
.category_and_tag-related-grid.slim {
    grid-template-columns: 1fr 1fr;
}

.euro-2024-related-grid .euro-2024-related-container,
.category_and_tag-related-grid .custom-related-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.euro-2024-related-grid .euro-2024-related-grid-item > img,
.category_and_tag-related-grid .category_and_tag-related-grid-item > img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.euro-2024-related-grid h3 a,
.category_and_tag-related-grid h3 a {
    color: black;
}


/*************************************/
/* Utility */
/*************************************/

/* Shimmer animation */
@keyframes placeholderShimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.shimmer-animation {
    background-color: #f6f7f8;
    background-image: linear-gradient(
            to right,
            #f6f7f8 0%,
            #edeef1 20%,
            #f6f7f8 40%,
            #f6f7f8 100%
    );
    background-repeat: no-repeat;
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: placeholderShimmer;
    animation-timing-function: linear;
}

.gradient-into-black {
    background: -moz-linear-gradient(top, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .9) 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0, rgba(0, 0, 0, 0)), color-stop(100%, rgba(0, 0, 0, .9)));
    background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .9) 100%);
    background: -o-linear-gradient(top, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .9) 100%);
    background: -ms-linear-gradient(top, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .9) 100%);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .9) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000',endColorstr='#b3000000',GradientType=0);
}

/* Usato dai vari slider per fare l'animazione. Vedi sportal-custom.js */
.sliding {
    transition: transform 0.25s ease-in-out;
}

/*************************************/
/* Roba Imma e Banner */
/*************************************/
.slot_banner {
    padding: 0 0;
    margin: 25px 0;
    border-top: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4
}

aside.slot_banner::before {
    content: 'Pubblicità';
    color: #9b9b9b;
    font-size: 10px;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    width: 100%;
    top: -2.3em
}

aside.adunit {
    margin-top: -5px;
    margin-bottom: 20px
}

.box-h-250 {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop */
@media (min-width: 900px) {
    .only_mobile {
        display: none !important;
    }

    .only_desktop {
        display: block;
    }
}

/* Mobile */
@media (max-width: 899px) {
    .only_mobile {
        display: block;
    }

    .only_desktop {
        display: none !important;
    }
}

/* Il box che raccoglie email per newsletter viene messo sopra l'interstitial */
.fEy1Z2XT, .ehHIDtF- {
    /* Il massimo è 2147483647 */
    z-index: 2147483600;
}

/* Fix taboola che si posiziona sopra il player */
#taboola-below-article-thumbnails-pl1#taboola-below-article-thumbnails-pl1 #ogy-ad-slot,
#taboola-below-article-thumbnails-pl1#taboola-below-article-thumbnails-pl1 iframe[class*='ogy'],
#taboola-below-article-thumbnails-pl1#taboola-below-article-thumbnails-pl1 iframe[id*='ogy'],
#taboola-below-article-thumbnails-pl1#taboola-below-article-thumbnails-pl1 div[class*='ogy'],
#taboola-below-article-thumbnails-pl1#taboola-below-article-thumbnails-pl1 div[id*='ogy'],
#taboola-below-article-thumbnails-pl1#taboola-below-article-thumbnails-pl1 iframe[class*='seed'],
#taboola-below-article-thumbnails-pl1#taboola-below-article-thumbnails-pl1 iframe[id*='seed'],
#taboola-below-article-thumbnails-pl1#taboola-below-article-thumbnails-pl1 div[class*='seed'],
#taboola-below-article-thumbnails-pl1#taboola-below-article-thumbnails-pl1 div[id*='seed'],
#taboola-below-article-thumbnails-pl1#taboola-below-article-thumbnails-pl1 iframe[class*='st-'],
#taboola-below-article-thumbnails-pl1#taboola-below-article-thumbnails-pl1 iframe[id*='st-'],
#taboola-below-article-thumbnails-pl1#taboola-below-article-thumbnails-pl1 div[class*='st-'],
#taboola-below-article-thumbnails-pl1#taboola-below-article-thumbnails-pl1 div[id*='st-'],
#taboola-below-article-thumbnails-pl1#taboola-below-article-thumbnails-pl1 #ogy-ad-slot.ogy_ad_slot_element.ogy_ad_slot_element--force-index {
    z-index: auto !important;
}

/* Sticky advertisments */
@media (max-width: 768px) {

    .mobile-sticky-container-600 {
        min-height: 600px !important;
    }

    .mobile-sticky-container-600 > * {
        position: sticky;
        top: 126px;
    }

}

.sportal-related-grid {
    margin-bottom: 8px;
}

h2 {
    font-size: 20px;
    font-weight: bold;
}

.no-results {
    padding-left: 16px;
}


/*************************************/
/** Newsletter **/

.newsletter-widget-container ._3p_1XEZR {
    display: none;
}

.newsletter-widget-container .fEy1Z2XT  {
    padding: 0 !important;
}

.newsletter-widget-container .fEy1Z2XT .dgEhJe6g ._9r0K-Oum {
    margin-top: -35px;
}

.newsletter-widget-container .nl-card {
    width: 100%;
    border: 1px solid #0e3144;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,.08);
    margin-bottom: 16px;
}

.newsletter-widget-container .nl-card__header {
    background: #143c54;
    color: #fff;
    text-align: center;
    padding: 12px;
}

.newsletter-widget-container .nl-card__title {
    margin: 0;
    font-weight: 800;
    font-size: 1.3rem;
    line-height: 1.25;
}

.newsletter-widget-container .nl-card__body {
    padding: 14px 18px 22px;
    text-align: center;
}

.newsletter-widget-container .nl-card__desc {
    margin: 0 0 16px;
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
}

.newsletter-widget-container .nl-logo {
    height: 24px;
    width: 24px;
    margin-bottom: 2px;
    float: right;
}
@media (max-width: 768px) {
    .newsletter-widget-container .nl-logo { height: 24px; margin-top: -2px; }
}

.newsletter-widget-container .nl-vendor-slot {
    display: flex;
    justify-content: center;
}

.newsletter-widget-container .nl-card .fEy1Z2XT {
    position: static !important;
    z-index: auto !important;
    background: transparent !important;
    display: block !important;
    width: 100% !important;
}

.newsletter-widget-container .nl-card .fEy1Z2XT ._9r0K-Oum {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.newsletter-widget-container .nl-card .fEy1Z2XT ._6Tt4x1jq,
.newsletter-widget-container .nl-card .fEy1Z2XT ._4KvUwxDm {
    margin: 0 !important;
    padding: 0 !important;
}

.newsletter-widget-container .nl-card .fEy1Z2XT ._4e8HpQ5S,
.newsletter-widget-container .nl-card .fEy1Z2XT ._3p_1XEZR,
.newsletter-widget-container .nl-card .fEy1Z2XT ._8O9Z-ltD,
.newsletter-widget-container .nl-card .fEy1Z2XT ._2RuuJiGc

{
    display: none !important;
}

/* Area con input + pulsante + messaggi del vendor */
.newsletter-widget-container .nl-card .fEy1Z2XT .JDeYciWM {
    width: 100% !important;
    max-width: 390px;          /* come nel target */
    margin: 0 auto;            /* centra il blocco */
}

/* Evita che stili esterni sovrascrivano il campo del vendor
   (non cambiamo look: lo lasciamo "nativo vendor") */
.newsletter-widget-container .nl-card .fEy1Z2XT .JDeYciWM input,
.newsletter-widget-container .nl-card .fEy1Z2XT .JDeYciWM button {
    box-sizing: border-box;
}

/*************************************/
/** Autori e biografie ***************/


/* Author box */
.sportal-author-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-top: 1px solid #e4e4e4;
    border-bottom: 1px solid #e4e4e4;
    padding: 16px 0;
    margin: 16px 0;
}

.sportal-author-avatar {
    flex: 0 0 64px;
}

.sportal-author-avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: block;
    object-fit: cover;
}


.sportal-author-meta { line-height: 1.35; }
.sportal-author-name {
    font-size: 1rem;
    margin: 0 0 6px;
    text-transform: uppercase;
}
.sportal-author-name a {
    color: var(--color-body);
    text-decoration: none;
}

.sportal-author-name a:hover { color: var(--color-highlight); }
.sportal-author-bio { margin: 0; font-size: 0.90rem; }

/* Stili specifici per la pagina autore */
.author-page-header.sportal-author-box {
    border: none;
    margin: 0 0 24px 0;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
}

.author-page-header .sportal-author-avatar {
    flex: 0 0 96px;
}

.author-page-header .sportal-author-avatar img {
    width: 96px;
    height: 96px;
    object-fit: cover;
}

.author-page-header .sportal-author-name {
    font-size: 1.65rem;
    margin: 0 0 12px;
    color: var(--color-brand);
}

.author-page-header .sportal-author-bio {
    font-size: 1rem;
    line-height: 1.5;
    margin: 0 0 12px;
    color: #666;
}

.author-page-header .author-post-count {
    font-size: 0.9rem;
    color: var(--color-brand);
}

@media (max-width: 480px) {
    .sportal-author-bio { font-size: 0.9rem; }
    
    .author-page-header.sportal-author-box {
        padding: 16px;
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .author-page-header .sportal-author-avatar {
        flex: none;
        align-self: center;
    }
    
    .author-page-header .sportal-author-name {
        font-size: 1.4rem;
    }
}

.generated-please-check::after {
    content: 'Descrizione generata automaticamente. Verificare i dati.';
    font-style: italic;
    color: #515151;
    font-size: 0.8rem;
    margin-top: -8px;
    position: relative;
    top: -8px;
}

.tag-last-updated-date {
    color: #515151;
    font-size: 0.8rem;
}