/* Articolo */

.article {
    /* display: flex;
    flex-wrap: wrap; */

    @include css-lock(16, 18, 320, 1400);

    p {
        @include css-lock(16, 18, 320, 1400);

        .promo {
            display: inline-block;
            padding: 2px $space-xs;
            font-size: .75rem;
            text-transform: uppercase;
            background-color: $color-gray-light;
        }
    }

    figcaption {
        margin-top: $space-xxs;
        font-size: 0.875rem;
        color: $color-gray;
    }

    .disclaimer {
        margin-top: $space-s;
        padding: $space-xs;
        border: 2px solid #FBD156;
        border-radius: 4px;

        p {
            font-size: .75rem;
            margin-bottom: .5em;

            a {
                font-weight: bold;
                line-height: 1.2;
            }

            .mark {
                display: inline-block;
                padding: 0 4px;
                font-weight: bold;
                background-color: #FBD156;
            }
        }
    }

    .disclaimerBottom {
        color: $color-gray;

        p {
            color: $color-gray;
        }
    }
}

.articleHeading {
    //grid-column: 2/4;
    margin-bottom: 1em;

    small{
        display: block;
        line-height: .75;
        color: $color-gray-dark;
    }

    p+h1{
        margin-top: -.35em;
    }

    .dateInterval{
        align-items: baseline;
    }

.twoCols{
    align-items: center;
}
    .btn-primary{
        width: max-content;
        flex-shrink: 0;
        margin-bottom: $space-s;
    }
}

.articleHeadingDate{
display: flex;
flex-wrap: wrap;
align-items: center;

.dateInterval{
    flex-basis: 120px;
}

> div{
    margin-right: $space-xs;
    margin-bottom: $space-s;
}
}

.author {
    //color: $color-gray;

    a {
        display: flex;
        align-items: center;
        font-size: 0.875rem;
        color: $color-gray;
    }

    img {
        border-radius: 50%;
        margin-bottom: $space-xxs;
        margin-right: $space-xxs;
    }
}

.date {
    font-size: 0.875rem;
    color: $color-gray;
}

.articleInfo {
    /* grid-column: 2;
        grid-row: 2; */

    flex-basis: 200px;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    font-size: 0.75rem;
    padding-right: $space-xss;
    margin-bottom: 1em;

    > div {
        margin-bottom: 0.5em;
    }

    a,
    .date {
        display: flex;
    }

    img,
    svg {
        margin-right: $space-xxs;
    }

    .author a {
        flex-direction: column;
        align-items: flex-start;
        color: $color-blue-light;
    }
}

.articleBody {
    p {
        margin-bottom: 0;
    }

    figure, .embed, div + div {
        margin-top: 20px;
    }

    table{
        max-width: 100%;
    }
}

.readMore {
    padding: $space-xs 0;
    margin: 2em 0;
    border-top: 1px solid $color-border;
    border-bottom: 1px solid $color-border;
    
    &.twoColumns {
        border: none;
        margin: 0;
    }

    &.border {
        padding: $space-xs 0;
        margin: 2em 0;
        border-top: 1px solid $color-border;
        border-bottom: 1px solid $color-border;  
    }

    @media (min-width: 768px) {
    &.twoColumns {
        display: flex;
        justify-content: space-between;
        margin: 2em 0;
        border-top: 1px solid $color-border;
        border-bottom: 1px solid $color-border;
    }
    }

    a {
        display: block;
        position: relative;
        margin-top: $space-xxs;

        &:after {
            content: "\2192";
            margin-left: $space-xs;
        }
    }
}

.related,
.collection {
    margin-top: 2em;
}

.readMore, .related, .collection {
    span {
        display: block;
        margin-bottom: .25em;
        font-size: 0.875rem;
        font-weight: bold;
    } 

.tags + span{
    margin-top: .5em;
}
}

.has-overlay .readMore{
margin: $space-xxs 0 0 0;
text-align: center;
border: none;
}

.usageInfo {
    display: block;
    margin: -10px 0 $space-xs 0;

    svg{
        margin: 0 2px;
        transform: translateY(5px);
    }

    /* span{
        display: inline-block;
        margin: 0 $space-xxs;
        font-size: 1.3rem;
        color: $color-white;
        font-weight: 400;
        line-height: 37px;
        z-index: 0;
        position: relative;

        &:before {
            width: 20px;
            height: 20px;
            top: .45em;
            right: -.2em;
            border-radius: 50%;
            z-index: -1;
            content: "";
            position: absolute;
            background-color:$color-gray-dark;
        }
    } */
}

.collection a {
    font-size: 0.875rem;
}

.bottomRelated {
    margin: 1rem 0;
    span {
        display: inline;
        font-size: 0.875rem;
        font-weight: bold;
    }

    a {
      font-size: 0.875rem;
      color: $color-orange;
    }
    
}

.bottomTextButton {
    padding: $space-xs 0;
    display: flex;
    justify-content: space-between;

    a.bottomBtn {
        background-color: $color-orange;
        padding: $space-xs;
        color: $color-gray-light;
        text-transform: uppercase;
        max-width: 230px;
        text-align: center;

        &.blackBottomBtn {
            background-color: $color-black;
            align-self: flex-start;
        }

    }
    
}

.partnerHead{
display: flex;
justify-content: space-between;
align-items: flex-start;

span{
    flex-grow: 1;
}
img{
margin-left: $space-xs;
}
}

/* News */
.news article {
    position: relative;

    .category,
    .author {
        display: inline-block;
        margin-bottom: 0.25em;
        margin-right: $space-xs;
    }

    h3, h4 {
        margin-bottom: 0.2em;

        a {
            color: $color-black;
        }
    }
}

.newsBoardContainer,
.newsContainer {
    article {
        &:after {
            content: "";
            width: 100%;
            height: 1px;
            position: absolute;
            bottom: 0;
            left: 0;
            background-color: $color-border;
        }

        /* &:last-child:after {
            content: none;
        } */
    }
}

.newsBoardContainer {
    article {
        &:not(:first-child) {
            padding-bottom: 1em;
        }
    }
}

.newsContainer {
    margin-top: $space-s;

    .highlight{
        margin: $space-s -20px 0 -20px;
        padding: $space-s;
        background-color: $color-blue-lightest;
        border-radius: 10px;

        article:after{
            content: none;
        }
    }

    article {
        padding: $space-xss 0;

        h3 {
            font-size: 1.45em;
        }

        p {
            margin-top: 0.25em;
            margin-bottom: 0;
        }

        p + a {
            display: block;
            margin-top: 0.25em;
        }

        p + .tags {
            margin-top: .5em;

            li {
                margin-bottom: 0;
            }
        }

    }
}

.twoCols + .newsContainer {
    margin-top: 0;
}

.date {
    margin-right: $space-s;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.newsEditorialContainer {
    article > div {
        text-align: center;
        padding: $space-s;

        .author {
            display: flex;
            flex-direction: column;
            align-items: center;

            a {
                color: $color-black;
            }
        }
    }
}

.newsThreeCols {
    p {
        margin-bottom: 0;
        font-size: 0.875rem;
    }
}

.newsFourCols {
    article {
        padding-bottom: $space-xss;
        margin-bottom: $space-xss;
        border-bottom: 1px solid $color-gray-light2;
    }
    
    article.topBorder {
        border-top: 1px solid $color-gray-light2;
        padding-top: 15px;
        margin-top: 15px;
        padding-bottom: 0;
        margin-bottom: 0;
        border-bottom: none;
    }

}

.news.newsBig {
    article {
        h3 {
            font-size: 2em;
        }
    }

    .author {
        a {
            flex-direction: row;
            align-items: center;
        }
    }
}

.newsHighlightsContainer, .newsHighlightsBoardContainer, .newsBoardContainer, .fourBlocks.news {
    padding-top: $space-s;
    border-top: 1px solid $color-border;

    &.noBorder {
        padding: 0;
        border: none;
    }
}

.newsContainer {
    border-top: 1px solid $color-border;

    &.noBorder {
        padding: 0;
        border: none;
    }
}

.accordion + .newsContainer{
    border-top: none;
}

.newsHighlightsBoardContainer {
    article {
        .category {
            margin-top: .5em;
        }

        &:after {
            content: "";
            width: 100%;
            height: 1px;
            position: absolute;
            bottom: .5em;
            left: 0;
            background-color: $color-border;
        }

        /* &:last-child:after {
            content: none;
        } */
    }
}

.newsHighlightsBoardContainer + .tagsContainer {
    margin-top: $space-sm;
    justify-content: center;
}

.has-overlay {
    .newsHighlightsBoardContainer.gallery, 
    .newsHighlightsBoardContainer.meteo,
    .newsHighlightsBoardContainer.coltura,
    .newsHighlightsBoardContainer.coltura,
    .newsHighlightsBoardContainer.box,
    .newsEditorialContainer {
        position: relative;
        
        &:before {
            content: "";
            position: absolute;
            top: -50px;
            left: -15px;
            width: calc(100% + 30px);
            height: calc(100% + 90px);
            border-radius: 8px;
        }
    }

    .newsHighlightsBoardContainer {
        padding-top: 0;
        border-top: none;

        &:before {
            background-color: $color-green-lightest;
        }

        &.partner:before {
            background-color: $color-gray-light;
        }

        &.color-orange-lightest:before {
            background-color: $color-orange-lightest;
        }

        &.color-blue-lightest:before {
            background-color: $color-blue-lightest;
        }
    }

    .newsEditorialContainer:before {
        background-color: $color-orange-lightest;
    }

    article {
        z-index: 2;
    }

    a{
        position: relative;

    }

    &.box.color-blue-lightest{
position: relative;

&:before{
        content: "";
        position: absolute;
        top: -10px;
    left: -10px;
    width: calc(100% + 20px);
    height: calc(100% + 20px);
    background-color: $color-blue-lightest;
    border-radius: 8px;
    }
        .border-centered{
            position: relative;
            padding: $space-s $space-xxs 0 $space-xxs;
        }
    } 
    
}

article.has-overlay {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: $space-l 0 $space-m 0;

    &:before {
        content: "";
        position: absolute;
        top: -35px;
        left: -15px;
        width: calc(100% + 30px);
        height: calc(100% + 30px);
        background-color: $color-gray-light;
        border-radius: 8px;
        z-index: -1;
    }

    img {
        margin-bottom: $space-xss;
    }

    .date {
        margin-bottom: .25em;
    }
}

/** Fascia higlights **/

.highlights .contentWrapWide > div {
    position: relative;
    margin-top: $space-m;

    &:before {
        content: "";
        position: absolute;
        top: -15px;
        height: calc(100% + 30px);
        background-color: $color-orange-lightest;
        border-radius: 8px;
    }

    span,
    a {
        position: relative;
        margin-right: $space-s;
        font-size: 0.875rem;
    }

    a {
        font-weight: bold;
        text-transform: uppercase;
        margin-right: $space-s;
    }
}

/** Photogallery **/
a.zoomIcon {
    display: inline-block;
    position: relative;

    &:after {
        content: '';
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: $color-black url(../images/cd-icon-zoom.svg) no-repeat center;
        background-size: 20px 20px;
        position: absolute;
        top: 8px;
        right: 8px;
    }

    &:hover:after {
        background: $color-gray-dark url(../images/cd-icon-zoom.svg) no-repeat center;
        background-size: 20px 20px;
        transition: background-color .15s ease;
    }
}

/** Azienda **/
.anchorSection {
    section{
        overflow: initial;
        scroll-margin: $space-xxl 0 0 0;

        &:not(.campaign-board):not(:first-child) {
        padding-top: $space-xss;
        border-top: 5px solid $color-gray-dark;
        }
        
        &:first-child{
            scroll-margin:120px 0 0 0;
        }
        &.campaign-board article{
            scroll-margin: 120px 0 0 0;
        } 
    

    @media(min-width:768px){
        scroll-margin: $space-l 0 0 0;

        &:first-child{
            scroll-margin:$space-xl 0 0 0;
        }
         &.campaign-board article{
            scroll-margin: 90px 0 0 0;
        } 
    }

   @media(min-width:992px){
        scroll-margin: $space-xs 0 0 0;

        &:not(.campaign-board):not(:first-child) {
        padding-top: $space-xss;
        border-top: 5px solid $color-gray-dark;
        }
        &:first-child{
            scroll-margin: $space-m 0 0 0;
        }
         &.campaign-board article{
            scroll-margin: $space-xl 0 0 0;
        } 
}
}
}
.fixedMenu {
    width: 100%;
    z-index: 10;
    position: -webkit-sticky;
    position: sticky;
    top: 32px;
    background-color: $color-white;
    overflow: hidden;

    .contentWrapWide {
        display: flex;
        flex-wrap: wrap;
    }

    ul {
        width: calc(100% + 60px);
        margin-left: -30px;
        margin-right: -30px;
        text-align: center;
        background-color: $color-blue-lightest;
        border-radius: 8px;

        li {
            display: inline-block;
        }
    }

    a {
        display: inline-block;
        padding: $space-xss $space-xs;
        font-size: .875em;
        font-weight: bold;
        text-transform: uppercase;
        color: $color-blue-light;

        &.is-active {
            position: relative;
            color: $color-text;
            text-decoration: none;

            &:after {
                content: "";
                position: absolute;
                width: 14px;
                height: 8px;
                bottom: 2px;
                left: 50%;
                transform: translateX(-50%);
                background: url(../images/icon-arrow.svg) no-repeat 0 0;

                @media (min-width: 992px) {
                    bottom: 8px;
                }
            }
        }
    }
}

/* Filtri catalogo */
.filters {
    margin-bottom: $space-m;
    padding-top: $space-s;
    border-top: 1px solid $color-gray-light2;
}

.moreContent, .tagsContainer .moreContent{
    display: none;
}

.social {
    > div:first-of-type {
        margin-bottom: $space-m;
    }

    h3 {
        padding-top: $space-xs;
        max-width: none;
        border-top: 1px solid $color-gray-light2;
    }

    h3 + a {
        display: block;
        margin-bottom: $space-s;
    }

    article {
        max-width: 320px;

        a {
            color: $color-text;
        }
    }
}
.twoCols .social{

    ul{
        display: flex;
        align-items: center;
        margin-top: $space-xs;
        margin-bottom: $space-s;

        svg{
            max-height: 15px;
            width: auto;
        } 
    }

    li{
        list-style: none;
        margin-left: 0;
   margin-right: $space-xss;
    }
}

.tggp {
    .newsContainer {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
}

.alphabet {
    margin-top: $space-ml;
    display: flex;
    flex-wrap: wrap;
    font-size: 1.25em;

    a {
        margin-right: $space-xss;
        text-decoration: underline;

        &.active {
            text-decoration: none;
            color: $color-black;
        }
    }
}

.results {
    margin: $space-m 0;

    a {
        font-size: 1.25em;
        color: $color-text;
    }

    p {
        margin-bottom: 0;
    }
}

.info + .js-more {
    margin-top: -20px;
}

/* Risultati ricerca */
.searchResult article {
    padding-left: $space-s;

    &.partnerResult {
        border-left: 1px solid $color-gray-light2;

        a {
            @include css-lock(18, 20, 320, 1400);

            font-weight: bold;
        }
    }
}

/* Paginazione */

.pagination {
    display: flex;
    align-items: center;
    margin: $space-s 0;

    ul {
        display: flex;
        align-items: center;
        list-style: none;
        padding-left: 0;
        margin-bottom: 0;
    }

    li, a {
        color: rgba($color-gray, 0.75);
    }

    > a {
        margin: -6px $space-xs 0 $space-xs;

        &.prev svg {
            transform: rotate(90deg);
            width: 14px;
        }

        &.next svg {
            transform: rotate(-90deg);
            width: 14px;
        }
    }

    li {
        padding: $space-xxs $space-xs;

        &:not(:first-child) {
            margin-left: $space-xxs;
        }

        &:first-child {
            margin-left: $space-xxs;
        }

        &.current {
            color: $color-blue;
            border-bottom: 2px solid $color-blue;
        }
    }

    a {
        text-decoration: none;
    }
}

/* Widgets */
.widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 260px));
    grid-gap: $space-s;

    article {
        position: relative;
        padding: $space-xs $space-xs $space-ml $space-xs;
        font-size: .9em;
        background-color: $color-blue-lightest;
        border-radius: 8px;

        div:first-of-type {
            height: 70px;
        }

        div:nth-of-type(2) {
            text-align: center;
            line-height: 1;
            margin-bottom: $space-xxs;

            span {
                font-size: 4em;
                text-transform: uppercase;
            }

            svg {
                margin-top: 5px;
            }
        }

        div + p {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;

            span {
                font-size: 1.5em;
            }
        }

        a {
            font-size: .875em;
            text-align: right;
            position: absolute;
            right: $space-xs;
            bottom: $space-xs;
        }

        p {
            max-width: none;
            line-height: 1.2;
        }

        &.widgetOk {
            background-color: $color-green-lightest;
        }

        &.widgetLow {
            background-color: $color-yellow-lightest;
        }

        &.widgetMedium {
            background-color: $color-orange-lightest;
        }

        &.widgetHigh {
            background-color: $color-red-lightest;
        }
    }
}
@media (min-width: 600px) {
    .newsContainer{
        article {
            display: flex;
            align-items: flex-start;

            img {
                margin-right: $space-xss;
            }
            
            > a, > img, >figure{
                flex-shrink: 0;
                max-width: 40%;
                margin-right: $space-xss;
            }

        }
    }
}



/* Sponsor banner in-feed native ad*/ 
/* dev-merge */
.list_post {
    padding: $space-s;

    .information {
        h2 {
            font-size: 1em;
        }

        p {
            font-size: .875em;
        }
        span{
            font-size: .75em;
        }
    }
}

@media (min-width: 768px) {
    .list_post {
        display: flex;
    
        .information {
            margin-top: 0;
            margin-left: $space-s;
        }
    
        .image{
            flex-shrink: 0;
            flex-basis: 50%;
        }
    }
    }



@media (max-width: 991px) {
    .newsBoardContainer,
    .newsHighlightsBoardContainer {
        article {
            margin: 0.5em 0;
            padding-bottom: 1.5em;

            &:nth-of-type(1) {            
                 &:after {
                    content: "";
                    width: 100%;
                    height: 1px;
                    position: absolute;
                    bottom: .5em;
                    left: 0;
                    background-color: $color-border;
                } 

                img {
                    margin-bottom: $space-xs;
                }
            }
            &:not(.bannerContainer) {
                img {
                    /* flex-basis: 100px;
                    max-width: 100px; */
                    margin-right: $space-xss;
                    //max-width: 40%;
                    flex-shrink: 0;
                }
            }

            &:not(:first-child) .author a, .author a {
                align-items: center;

                &:not(.banner) {
                    img {
                        flex-basis: 32px;
                        max-width: 32px;
                        margin-right: $space-xxs;
                        flex-shrink: 0;
                    }
                }
            }

            &.big img {
                max-width: none;
            }

            &.big .author img {
                max-width: 32px;
            }
           
        }

        .twoCols {
            grid-column: 1/4;

            article {
                &:before {
                    background-color: $color-gray-medium;
                }
            }
        }

        &.partner .big a:not(.banner) img {
            flex-basis: 100%;
            max-width: 100%;
        }
    }

    .newsHighlightsBoardContainer article:last-child,  .newsBoardContainer article.bannerContainer {
           &:after {
                content: none;
            }
        }
        

    .newsThreeCols {
        display: grid;

        article {
            padding-bottom: 1em;
            margin-bottom: 1em;
            border-bottom: 1px solid $color-border;

            &:nth-child(2) {
                grid-row: 1;
            }

            &:last-child {
                margin-bottom: 0;
            }
        }
    }

    .newsHighlightsContainer {
        article {
            padding-bottom: 1em;
            margin-bottom: 1em;
        }
    }

    .highlights .contentWrapWide > div {
        &:before {
            left: -2vw;
            width: 96vw;
        }
    }
}

@media (min-width: 992px) {
    /*     .articleHeading{
            padding: 0 10%;
            margin-bottom: 2em;
        } */

    .articleMain {
        //grid-column:3/5;
        //grid-row: 2;
        margin-right: $space-m;
    }

    .newsBoardContainer {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-column-gap: $space-m;
        grid-auto-flow: column;

        &.hasBanner {
            -ms-grid-columns: 1fr 1fr 1fr 300px;
            grid-template-columns: 1fr 1fr 1fr 300px;
        }

        article {
            padding-bottom: $space-s;

            &:before {
                content: "";
                width: 1px;
                height: 100%;
                position: absolute;
                top: 0;
                right: -15px;
                background-color: $color-border;
            }

            &:after {
                bottom: 12px;
            }

            &.full {
                div {
                    margin-top: $space-xss;

                    h4, p {
                        margin-bottom: 2px;
                    }

                    h4 {
                        font-size: 1.125em;
                    }
                }
            }

            &.big, &.full {
                grid-row: span 4;
            }

            &.medium {
                grid-row: span 2;
            }

            &.small {
                grid-row: span 1;
            }

            &:last-child:before {
                content: none;
            }

            &:nth-of-type(1) {
                /* grid-row: 1/5;
                height: 100%; */

                /* h3 {
                    font-size: 1.45em;
                } */

                /* &:after {
                    content: none;
                } */
            }

            &:nth-of-type(2),
            &:nth-of-type(3) {
                //grid-column: 2;
           
            }

            &:nth-of-type(2) {
                //grid-row: 1/3;
           
            }

            &:nth-of-type(3) {
                //grid-row: 3/5;

                /*  &:after {
                     content: none;
                 } */
            }

            &:nth-of-type(n + 4) {
                //grid-column: 3;

                h3 {
                    font-size: 1.25em;
                }
            }

            &.bannerContainer {
                grid-column: 4;
            }

            /* 
                        &:nth-of-type(4) {
                            grid-row: 1;
                        }
            
                        &:nth-of-type(5) {
                            grid-row: 2;
                        }
            
                        &:nth-child(6) {
                            grid-row: 3;
                        }
            
                        &:nth-of-type(8) {
                            grid-column: 4;
                            grid-row: 1/3;
                        } */

            &:nth-of-type(9) {
                //grid-column: 4;
                //grid-row: 3/5;
                height: 100%;
            }

            &:nth-of-type(n + 8):before {
                content: none;
            }

            /* &:nth-of-type(n + 7):after {
                content: none;
            }

            &.bannerContainer {
                &:after {
                    content: none;
                }
            } */
        }
    }

    .newsHighlightsBoardContainer {
        display: grid;
        grid-template-columns: 2fr 1fr 1fr;
        grid-column-gap: $space-m;
        grid-auto-flow: column;

        &.hasBanner {
            -ms-grid-columns: 2fr 300px;
            grid-template-columns: 2fr 1fr 300px;
        }

        article {
            padding-bottom: 1em;

            &:before {
                content: "";
                width: 1px;
                height: 100%;
                position: absolute;
                top: 0;
                right: -15px;
                background-color: $color-border;
            }
            
            &.no-divider:before {
                background-color: transparent;
            }


            &:after {
                bottom: 12px;
            }

            &.big {
                //grid-row: 1/6;
                grid-row: span 4;

                h3 {
                    //font-size: 2.3em;
                    font-size: 1.75em;
                }

                img {
                    margin-bottom: $space-xxs;
                }

                &:after {
                    content: none;
                }
            }

            &:nth-of-type(2) {
                //grid-column: 2;
                //grid-row: 1/3;

                h3 {
                    font-size: 1.45em;
                }
            }

            &:nth-of-type(3) {
                //grid-column: 2;
                //grid-row: 3/5;

                h3 {
                    font-size: 1.45em;
                }

                /* &:after {
                    content: none;
                } */
            }

            &.medium {
                grid-row: span 2;
            }

            &:nth-of-type(n + 4) {
                //grid-column: 3;
                //grid-row: 1;

                h3 {
                    font-size: 1.2em;
                }

                /* &:before {
                    content: none;
                } */
            }

            &.full {
                grid-row: span 4;

                div {
                    margin-top: $space-xss;
                }

                p {
                    margin-bottom: 2px;
                }
            }

            /* 
                        &:nth-of-type(4) {
                            grid-row: 1;
                        }
            
                        &:nth-of-type(5) {
                            grid-row: 2;
                        }
            
                        &:nth-of-type(6) {
                            grid-row: 3;
                        }
                        &:nth-of-type(7) {
                            grid-row: 4;
                        }
            
                        &:nth-of-type(8) {
                            grid-row: 5;
                        } */

            &.small {
                grid-row: span 1;
            }

            &.bannerContainer {
                display: flex;
                align-items: center;

                /* &:after {
                    content: none;
                } */
            }
        }

        .twoCols {
            grid-column: 1/4;

            article {
                &:before {
                    background-color: $color-gray-medium;
                }

                h3 {
                    font-size: 1.75em;
                }
            }
        }
    }

    .newsBig {
        p {
            font-size: 1.125rem;
        }
    }

    .newsEditorialContainer {
        h3 {
            font-size: 2.3em;
        }
    }

    .newsThreeCols {
        display: grid;
        grid-template-columns: 1fr 2fr 1fr;
        grid-column-gap: $space-m;

        article {
            &:not(:last-child):before {
                content: "";
                width: 1px;
                height: 100%;
                position: absolute;
                top: 0;
                right: -12px;
                background-color: $color-border;
            }

            &:nth-child(2){
                display: flex;

                > a{
                    max-width: 40%;
                    flex-shrink: 0;
                    margin-right: $space-xss;
                }

                h3 {
                    font-size: 1.85em;
                }
                
            }
        }
    }

    .newsHighlightsContainer {
        article {
            &:nth-of-type(odd):before {
                content: "";
                width: 1px;
                height: calc(100% + 30px);
                position: absolute;
                top: -30px;
                right: -12px;
                background-color: $color-border;
            }

            &:nth-of-type(1),
            &:nth-of-type(2) {
                &:before {
                    height: 100%;
                    top: 0;
                }
            }
        }
    }

    .highlights .contentWrapWide > div {
        &:before {
            left: -15px;
            width: calc(100% + 30px);
        }
    }
}

@media (min-width: 1200px) {
    .articleMain {
        display: grid;
        grid-template-columns: 155px auto;
        grid-template-columns: 155px minmax(0, 1fr); // hack per slick che ha problemi con le grid

        .mainFigure {
            //width: calc(100% + 465px);
            margin: 3em 0 3em -155px;

            figcaption {
                flex-basis: 230px;
                flex-shrink: 0;
                margin-top: $space-xs;
            }
        }
    }

    .articleHeading {
        grid-column: 1/3;
    }

    .articleInfo {
        grid-column: 1;
    }

    .articleBody {
        grid-column: 2;
    }

    .articleAside {
        flex-basis: calc(100% - 190px - 70ch);
        margin-left: 0;
    }
}

/* Prodotto */

.productDetail {
    h1 {
        @include css-lock(30, 50, 320, 1400);

        text-transform: uppercase;
    }
}

.productDetail__img {
    display: flex;
    flex-direction: column;
    position: relative;
}

.productImg {
    flex-grow: 1;

    > div {
        display: none;

        &:first-child {
            display: block;
        }
    }
}

.productDetail__extras {
    position: absolute;
    top: $space-xs;
    right: $space-xs;
    width: 75px;

    a {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        color: $color-text;
        text-decoration: none;

        span:not(.btn-3d) {
            margin-top: $space-xxs;
            display: inline;
            box-shadow: inset 0 -2px $color-gray-light;
        }
    }
}

.productViewer {
    height: 65vh;
    outline: none;
}

#Viewer3D {
    outline: none;
}

.mediaBlock {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 85px 2fr;
    grid-template-columns: 85px 2fr;
    -webkit-column-gap: $space-s;
    -moz-column-gap: $space-s;
    column-gap: $space-s;
    margin-bottom: $space-sm;

    img {
        grid-column: 1;
    }

    p,
    a {
        grid-column: 2;
    }
}

.featureBlock {
    video {
        max-width: 100%;
        height: auto;
    }
}

/* Accordion */

.accordion {
    max-width: 80ch;

    .accordion__header {
        position: relative;
        max-width: none;
        padding: 0.75em 0;
        margin-bottom: 0;
        font-size: .937rem;
        font-weight: 900;
        cursor: pointer;

        &:after {
            content: "+";
            position: absolute;
            display: inline-block;
            top: calc(50% - 9px);
            right: $space-xss;
            transition: all 0.15s linear;
        }

        &.active:after {
            content: "-";
            transition: all 0.15s linear;
        }
    }

    .accordion__item {
        border-bottom: 1px solid $color-gray;

        &:focus {
            .accordion__header.active,
            .accordion__header.active + .accordion__content {
                background: transparent;
            }
        }
    }

    .accordion__content {
        display: none;
        margin-bottom: 1em;
        transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    }

    .accordion__item,
    .accordion__header {
        outline: none;
    }
}

.accordion + h2,
.accordion + .btn {
    margin-top: $space-ml;
}

.accordionTable {
    .accordion__item {
        border-bottom: none;
    }

    .accordion__header {
        border-bottom: 1px solid $color-gray;
    }

    p.subtitle {
        margin-bottom: 0;
    }

    tr:last-child td {
        border-bottom: none;
    }
}

.js-custom-content {
    display: none;
}

/* Finishing */
.finishing {
    h3 {
        margin-bottom: 0;

        @include css-lock(18, 21, 320, 1400);

        font-weight: 400;
        text-decoration: none;
        color: $color-black;
        cursor: pointer;
    }

    > ul {
        /* display: flex;
        justify-content: space-evenly; */
        list-style: none;
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 1fr 1fr;
        grid-template-columns: repeat(2, minmax(45%, 1fr));
        -webkit-column-gap: $space-ml;
        -moz-column-gap: $space-ml;
        column-gap: $space-ml;

        > li {
            flex: 0 0 auto;

            ul {
                width: 100%;
                margin-top: $space-s;
                display: grid;
                -ms-grid-columns: 1fr 1fr 1fr;
                grid-template-columns: repeat(2, minmax(33%, 1fr));
                -webkit-column-gap: $space-xss;
                -moz-column-gap: $space-xss;
                column-gap: $space-xss;

                li {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                    cursor: pointer;
                    flex-basis: 100px;

                    span {
                        width: 30px;
                        height: 30px;
                        margin-bottom: $space-xs;
                        border: 1px solid $color-gray;
                        border-radius: 50%;
                    }

                    &.is-selected span {
                        border-width: 5px;
                    }
                }
            }

            /* 
            &:not(:last-child) {
                    border-right: 1px solid $color-gray-light;
                } */
        }

        p {
            display: inline;
            color: $color-gray-dark;
            box-shadow: inset 0 -2px $color-gray-light;
        }
    }
}

/* Info */

.quoteForm {
    padding: $space-sm;
    background-color: $color-white;
    border-radius: 8px;

    .formContent {
        margin: $space-m 0;
    }

    h2 {
        text-transform: none;
    }

    @media (min-width: 1280px) {
        padding: $space-ml;
    }
}

.info {
    .dealer {
        color: $color-white;
        margin-top: $space-m;
        text-align: center;

        a {
            color: $color-white;
        }

        @media (min-width: 768px) {
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: flex-end;
            margin-top: 0;
            max-width: 50ch;
            text-align: right;

            a {
                padding-right: 0;
            }
        }
    }
}

/* Download section */
.downloadSection {
    div:not(:last-child) {
        margin-bottom: $space-m;
    }
}

/* Handbooks (Guide) */
.handbooks {
    overflow: hidden;
    color: $color-white;
    max-width: 100vw;

    .sectionHeading {
        position: relative;
        max-width: 92vw;
        margin-left: auto;
        margin-right: auto;
    }

    a {
        text-decoration: none;
    }

    p {
        color: $color-white;
    }

    img {
        border: 1px solid $color-gray;
        box-shadow: 0 2px 4px 0 rgba($color-black, 0.5);
    }

    h3 {
        padding: $space-m $space-s 0 $space-s;
        text-align: center;
        color: $color-gray-dark;

        span {
            display: inline;

            //box-shadow: inset 0 -1px currentColor;
            box-shadow: inset 0 -2px $color-gray-light;
        }
    }

    &:before {
        content: "";
        width: 100%;
        height: 65%;
        position: absolute;
        top: 0;
        left: 0;
        background: #505b4a;
        background: -moz-linear-gradient(top, #505b4a 0%, #9caa93 70%, #9caa93 70%, #ffffff 70%, #ffffff 100%);
        background: -webkit-linear-gradient(top, #505b4a 0%, #9caa93 70%, #9caa93 70%, #ffffff 70%, #ffffff 100%);
        background: linear-gradient(to bottom, #505b4a 0%, #9caa93 70%, #9caa93 70%, #ffffff 70%, #ffffff 100%);
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#505b4a', endColorstr='#ffffff',GradientType=0 );
        color: $color-white;
    }

    .more {
        font-weight: bold;
    }

    @media (max-width: 1279px) {
        .contentWrap {
            max-width: 100%;
        }

        .more {
            display: block;
            margin-top: $space-m;
            text-align: center;
        }
    }

    @media (min-width: 1280px) {
        .contentWrap {
            display: -ms-grid;
            display: grid;
            grid-template-columns: 400px 695px;
        }

        .sectionHeading {
            -ms-grid-row: 1;
            -ms-grid-column: 1;
            grid-row: 1;
            grid-column: 1;
            align-items: flex-start;

            &.align-center p {
                text-align: left;
            }
        }

        .multiple-slider {
            -ms-grid-row: 1;
            -ms-grid-column: 2;
            grid-row: 1;
            grid-column: 2;
            margin-right: calc(0px - ((100vw - 1095px) / 2));
        }

        .more {
            grid-column: 1;
            grid-row: 2;
            margin-top: -25%;
        }

        &:before {
            content: "";
            width: 100%;
            background: #505b4a;
            background: -moz-linear-gradient(-45deg, #505b4a 0%, #9caa93 100%);
            background: -webkit-linear-gradient(-45deg, #505b4a 0%, #9caa93 100%);
            background: linear-gradient(135deg, #505b4a 0%, #9caa93 100%);
            filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#505b4a', endColorstr='#9caa93',GradientType=1 );
        }
    }

    @media (min-width: 1440px) {
        .contentWrap {
            grid-template-columns: 30% 70%;
        }
    }
}

/* Masthead */
.masthead {
    max-width: 100vw;

    .breadcrumbs {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 1;

        &:before {
            content: "";
            width: 100%;
            height: 100%;
            position: absolute;
            top: 0;
            left: 0;
            background: rgba($color-white, 0.5);
        }
    }

    img,
    picture {
        display: block;
    }

    .masthead__img {
        img,
        video {
            object-fit: cover;
            width: 100%;
            max-height: 70vh;
        }

        span {
            position: absolute;
            right: 4vw;
            bottom: 20px;

            @include css-lock(18, 21, 320, 1400);

            font-weight: bold;
            color: $color-white;
        }
    }

    .masthead__headline {
        padding: 1.5em 2em;
        max-width: 55ch;
        color: $color-white;
        background-color: $color-black;

        p {
            color: $color-white;
        }

        .btn {
            color: $color-black;
            background-color: $color-white;
        }
    }
}

/* Prossimi eventi */
.dateInterval {
    display: flex;

    .date {
        font-size: 2.5rem;
        line-height: .75;
        text-align: right;
        font-weight: bold;
        text-transform: uppercase;
    }

    > div {
        display: flex;
        align-items: flex-end;
        font-size: .875rem;
        line-height: 1;

        span {
            margin-right: $space-xs;
        }

        div {
            span {
                display: block;
                font-weight: normal;
                line-height: 1.2;
                text-transform: uppercase;
            }
        }

        div, .date {
            color: $color-blue-light;
        }
    }
}

@media (max-width: 599px) {
    .dateInterval {
        > div {
            margin: 0 $space-m $space-s 0;
        }
    }
}

@media (min-width: 600px) {
    .dateInterval {
        flex-basis: 130px;
        flex-shrink: 0;
        flex-direction: column;
        align-items: flex-end;
        margin: 0.2em $space-sm 0 0;

        .date {
            width: 45px;
        }

        > div {
            margin-bottom: $space-sm;

            &:last-child {
                margin-bottom: 0;
            }
        }
    }
}

@media (max-width: 767px) {
    .masthead {
        .masthead__headline {
            width: 100vw;
            margin-left: -4vw;
        }
    }

    .filters form > div:not(:first-child) {
        margin-top: $space-sm;
    }
    .articleAside {
        margin-top: $space-s;
    }
}

@media (min-width: 768px) {
    .masthead {
        > .contentWrapWide {
            position: absolute;
            top: 0;
            left: 4vw;
            height: 100%;
        }

        .breadcrumbs {
            left: 0;
        }

        .masthead__txt {
            position: absolute;
            bottom: -10vh;
            width: 100%;
            display: flex;
            align-items: flex-end;
        }

        .masthead__img {
            span {
                right: $space-l;
                top: auto;
                bottom: calc(10vh - 50px);
            }
        }
    }


    .finishing > ul li ul {
        //display: flex;
        -ms-grid-columns: 1fr 1fr 1fr;
        grid-template-columns: repeat(3, minmax(29%, 1fr));

        li {
            max-width: max-content;
        }
    }

    .filters form {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
        -webkit-column-gap: $space-m;
        -moz-column-gap: $space-m;
        column-gap: $space-m;
    }

    .hero__txt {
        display: flex;
        max-width: 50ch;
        margin-top: 0;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        line-height: 1.63;
        z-index: 1;

        .btn {
            margin-top: 1em;
        }
    }

    .has-overlay {
        .newsEditorialContainer, .newsHighlightsBoardContainer.gallery, .newsHighlightsBoardContainer.meteo,
        .newsHighlightsBoardContainer.coltura {
            &:before {
                top: -50px;
                left: -30px;
                width: calc(100% + 60px);
                height: calc(100% + 102px);
                border-radius: 8px;
            }

            &:after {
                content: "";
                position: absolute;
                top: -30px;
                left: -15px;
                width: calc(100% + 28px);
                height: calc(100% + 40px);
                border: 1px solid $color-gray-medium;
                border-radius: 8px;
                z-index: 1;
            }
            
        }


        a.align-center{
            margin-top: $space-s;
        }
    }

    article.has-overlay {
        margin: 0 $space-m 0 0;

        &:before {
            top: -30px;
            left: -30px;
            width: calc(100% + 60px);
            height: calc(100% + 62px);
        }

        &:after {
            content: "";
            position: absolute;
            top: -15px;
            left: -15px;
            width: calc(100% + 28px);
            height: calc(100% + 30px);
            border: 1px solid $color-gray-medium;
            border-radius: 8px;
        }

        & + article {
            margin-top: -10px;
        }
    }

    .newsFourCols {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: $space-s;

        article:nth-child(n+9) {
            border-bottom: none;
        }
    }
    

    .searchResult article {
        margin-left: -20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .newsBoardContainer,
    .newsHighlightsBoardContainer {
        /* display: grid;
        grid-template-columns: 1fr 1fr;
        grid-column-gap: $space-s; */

        article {
           /*  &:first-of-type {
                display: flex;
                align-items: flex-start;
                grid-column: 1/3;

                img, .embed{
                    flex-basis: 50%;
                    max-width: 50%;
                    flex-shrink: 0;
                    margin-right: $space-s;
                }
            } */

            /* &:nth-last-child(2) {
                &:after {
                    content: none;
                }
            } */
        }

        .twoCols {
            article {
                display: flex;
                align-items: flex-start;
                grid-column: 1/3;

                img, .embed {
                    flex-basis: 50%;
                    max-width: 50%;
                    flex-shrink: 0;
                    margin-right: $space-s;
                }
            }
        }

        /* article:not(:first-child) {
            flex-basis: 48%;
            max-width: 48%;

            &:nth-child(even) {
                margin-right: 2%;
            }
        } */
    }
}

@media (min-width: 992px) {

    .article {
        display: grid;
        //grid-template-columns: 2.75fr 300px;
        grid-template-columns: minmax(0, 1fr) 300px; // hack per slick che ha problemi con le grid
        column-gap: $space-s;
    }
    
    .filters form {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 1fr 2fr;
        grid-template-columns: 1fr 2fr;

        > div {
            ul {
                display: -ms-grid;
                display: grid;
                -webkit-grid-gap: $space-m;
                -moz-grid-gap: $space-m;
                grid-gap: $space-m;
            }

            &:last-child ul {
                -ms-grid-columns: 1fr 1fr;
                grid-template-columns: repeat(2, minmax(200px, 50ch));
                grid-template-columns: 1fr 1fr;
            }
        }
    }
}

@media (min-width: 1200px) {
    .masthead {
        > .contentWrapWide {
            left: calc((100% - 1150px) / 2);
        }
    }

    .finishing > ul {
        -ms-grid-columns: 1fr 1fr 1fr;
        grid-template-columns: repeat(3, minmax(29%, 1fr));
    }
}

@media (min-width: 1280px) {
    .masthead {
        > .contentWrapWide {
            left: calc((100% - 1230px) / 2);
        }
    }
}

.tabs {
    h3, p {
        font-size: 16px;
    }

    h3 {
        margin-bottom: 0;
        cursor: pointer;
    }

    p.lead {
        @include css-lock(16, 25, 320, 1400);

        color: $color-text;
        line-height: 1.5;
    }

    .blockTxtImg {
        box-shadow: none;
    }

    .blockTxtImg__txt {
        background-color: transparent;
    }
}

.tabs__header {
    margin-bottom: $space-s;
    width: 100%;
    z-index: 1000;
    position: -webkit-sticky;
    position: sticky;
    top: 32px;
    background-color: $color-white;

    ul {
        width: calc(100% + 60px);
        margin-left: -30px;
        margin-right: -30px;
        text-align: center;
        background-color: $color-blue-lightest;
        border-radius: 8px;

        li {
            display: inline-block;

            h3 {
                display: inline-block;
                padding: $space-xss $space-xs;
                font-size: .875em;
                font-weight: bold;
                text-transform: uppercase;
                color: $color-blue-light;

                &.active {
                    position: relative;
                    color: $color-text;
                    text-decoration: none;
                }
            }
        }
    }
}

.tabs__header::-webkit-scrollbar {
    display: none;
}

@media (max-width: 767px) {
    .tabs__header {
        position: relative;
        top: 0;

        ul {
            /*  white-space: nowrap; 
             overflow-x: auto;
             -webkit-overflow-scrolling: touch; 
             -ms-overflow-style: -ms-autohiding-scrollbar; */
            background-color: transparent;
            display: flex;
            flex-wrap: wrap;
        width: 100vw;
        margin-left: -2vw;
        margin-right: -2vw;

            li {
                margin: 0 $space-xxs $space-xxs 0;
                background-color: $color-blue-lightest;
                border-radius: 8px;

                h3 {
                    //fix selected news on tab -orl
                    //color: $color-text;
                }
            }
        }
    }
}


.has-overlay .newsHighlightsBoardContainer { 

    div{
        position: relative;
        z-index: 2;
    }
    
    .title-highlights {
        position: static;
        transform: none;
        padding-top: 20px;
        // 
        margin-top: 30px;
        padding-left: 0;
    }

    &.news.partner {
        
        h2.title-highlights {
            background-color: transparent;  
        }

       /*  &:before {
            height: calc(30% + 70px);
            //height: calc(40% + 35px);

            @media (min-width: 480px){
             
            //height: calc(40% + 70px);    
            height: calc(40%);
            }
        }  */
    } 
}

 


@media (min-width: 992px) { 

    .cta-secondary.highlights {
        display: inline;
        padding: 0;
        position: relative;
        left: 50%;
        margin: 0;
    }

    .has-overlay .newsHighlightsBoardContainer{

        &.news.partner.dayPartner {

            article.big {
               //margin-right: 20px;
               width: calc(100% - 20px);
           } 
           
           h2 {
               left: 23%;
               z-index: 3;
           }

           .title-highlights {
               position: absolute;
               display: block;
               background-color: transparent;
               left: calc(49% - 5px);
               transform: none;
               padding: 0 15px;
               margin: 0;
           }

         /*   &:before {
           top: -50px;
           left: -30px;
           width: calc(46% + 55px);
           height: calc(100% + 82px);
           border-radius: 8px;
           }
           
           &:after {
               content: "";
               position: absolute;
               top: -30px;
               left: -15px;
               width: calc(46% + 22px);
               height: calc(100% + 45px);
               border: 1px solid $color-gray-medium;
               border-radius: 8px;
               z-index: 1;  
           } */

       } 

    }
}

article.big.no-divider {

    @media (max-width: 768px){
        
        padding-bottom: 0;
        
        a.cta-secondary {
            padding-bottom:0;
        }
        
    }
    

    &::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -30px;
    width: calc(100% + 62px);
    height: calc(100% + 82px);
    border-radius: 8px;
    background-color: $color-gray-light;
    z-index: -1;

    @media (max-width: 768px){
        left: -24px;     
        width: calc(100% + 48px);    
       
        }
    @media (max-width: 480px){
        left: -15px;     
        width: calc(100% + 30px);    
        
        }    

}
}

@media (min-width: 768px){
  article.big.no-divider::after {
    content: "";
    position: absolute;
    top: -30px;
    left: -15px;
    width: calc(100% + 30px);
    height: calc(100% + 42px);
    border: 1px solid $color-gray-medium;
    border-radius: 8px;
    background-color: transparent;
    z-index: -1;

}  
}

// Fix ricerca articoli
.newsHighlightsBoardContainer.news.partner:not(.dayPartner) {
    position: relative;
}
.newsHighlightsBoardContainer.news.partner:not(.dayPartner)::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -15px;
    width: calc(100% + 30px);
    height: calc(100% + 70px);
    border-radius: 8px;
}

@media (min-width: 768px) {
.newsHighlightsBoardContainer.news.partner:not(.dayPartner)::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -30px;
    width: calc(100% + 60px);
    height: calc(100% + 82px);
    border-radius: 8px;
    }
}

@media (min-width: 768px) {
.has-overlay .newsHighlightsBoardContainer.news.partner:not(.dayPartner)::after {
    content: "";
    position: absolute;
    top: -30px;
    left: -15px;
    width: calc(100% + 28px);
    height: calc(100% + 45px);
    border: 1px solid #a2aab7;
    border-radius: 8px;
    z-index: 1;
}}
// Fix ricerca articoli -fine

/* Template Pubblicità */
.contentWrapWide.fullWidth {
    display: block;
}

.bb-0 {
    margin-bottom: 0;
}
main section.bt-0 {
    margin-top: 1px;
}

.headerContent {
    width: 100%;
    height: 100px;
    position: relative;
    @media (max-width: 991px) {
        height: 63px;
    }
    
    }

.blueBorder {
    position: relative;

    &::before {
    content: "";
    position: absolute;
    border: 1px solid $color-blue-light;
    border-radius: 4px;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    }   
}

video {
  height: auto;
  width: 100%;
  display: block;
  //border-radius: 4px;
}

.videoWrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    //border: 1px solid $color-blue-light;
    border-radius: 8px;
    position: relative;
}

.heroWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    //justify-content: space-between;
    justify-content: flex-end;
    min-height: 400px; 
    position: absolute;
    width: 100%;
    height: 100%;
    color: $color-gray-light;
    padding: 35px;
    @media (max-width: 768px) {
        min-height: unset;
         }
    @media (max-width: 480px) {
       min-height: unset;
       padding: 10px;
        }
}


.headingTitle {
    font-size: 25px;
    text-align: center;
    max-width: 23ch;
    line-height: 1.3;
    letter-spacing: .3px;

    @media (min-width: 768px) {
        font-size: 40px;
        }

    @media (min-width: 992px) {
    font-size: 45px;
    }

}

.subHeadingTitle {
    text-transform: uppercase;
    font-size: 30px;
    letter-spacing: .3px;
    max-width: 30ch;
    text-align: center;
    margin: 0 auto;
    &.contactHeading {
        text-transform: none;
        max-width: auto;
        max-width: 35ch;
    }
    @media (max-width: 768px) {
        font-size: 22px;
        }

}

.outlineBtn {
    border: 2px solid $color-black;
    border-radius: 6px;
    color: $color-black;
    font-size: 18px;
    padding: 5px 10px;
    max-width: 33ch;
    line-height: 1.1;
    text-align: center;
    
}

.grid2col  {
    margin-top: 0;
    @media (min-width: 768px) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 35px;
    }
}

.subCard {
    text-align: center;
    
    figure {
        padding: 30px;
        margin-bottom: 0;
    }
    img {
        width: 40%;
    }
    h3 {
        font-size: 26px;
    }
    p {
        text-align:inherit;
        font-size: 20px;
        padding: 0 40px;
        line-height: 1.3;
        margin-bottom: 5px;
    }

    a {
      text-decoration: underline;
      color: $color-black;
      font-size: 20px;
      font-weight: 600;
    }

    .subText {
        max-width: 41ch;
        margin: 0 auto;
    }

    @media (max-width: 768px) {
        h3 {
            font-size: 21px;
        }
        img {
            width: 30%;
        }
        p {
            font-size: 15px;         
        }
        a {   
            font-size: 15px;        
        }

        }
}

/* Landing Page */
header.topMargin {
    margin-top: 0;
}



.btn-primary.heroBtn {
    text-transform: none;
    max-width: 33ch;
    text-align: center;
    z-index: 2;
    overflow: visible;
}


.subText{
    max-width: 36ch;
    margin: 0 auto;
    text-align: center;
}


@media (min-width: 992px) {
.contact.landingContact {
   grid-template-columns: unset;
   justify-items: center;
   //form fix
   background-color: #fff;
    display: grid;
    gap: 30px;
    //end fix
}
//form fix
@media (min-width: 768px){
    .contact .inline-fields.landingContact {
        grid-template-columns: repeat(2,1fr);
    }
    }
//end fix
.contact .contactForm.landingContact {
    grid-row: unset;
    grid-column: unset; 
    padding-bottom: 0;
}
}

.landingContactHeader {
    margin-bottom: 20px;
    p, h3 {
    text-align: center;
    margin: 0px auto;
    margin-bottom: 0.2em;
    max-width: 60ch;
    }

}

.submit-field.landingContact {
    text-align: center;
}

.embedResponsiveYT {
    position: relative;
    display: block;
    height: 0;
    padding: 0;
    overflow: hidden;
    padding-bottom: 56.25%;
    border-radius: 8px;
}

.embed-responsive-item {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    height: 100%;
    width: 100%;
    border: 0;
}

@media (min-width: 768px) {
.twoCols.video {
   padding: 30px;
   border-top: 0;
}
}

@media (min-width: 992px) {
    .newsHighlightsContainer article.video::before {
        all:unset;
    }
}

h3.videoCaption {
    text-align: center;
    padding: 15px 0;
}

html {
    scroll-behavior: smooth;
  }

 /*  :target:before {
    content: "";
    display: block;
    height: 32px;
    margin: -32px 0 0;
}
 */
.quote {
    font-size: 1.5rem;
    font-style: italic;
    color: $color-gray;
    p, h3 {
        line-height: 1.3;
        text-align: center;
        margin: 0px auto;
        margin-bottom: 0.2em;
        max-width: 50ch;
        }
    @media (max-width: 768px) {    
     font-size: 1.2rem;
}
}

.quoteText::before {
    content: open-quote;
}

.quoteText::after {
    content: close-quote;
}

.netData {
    margin: 2rem auto;
    max-width: 20ch;
    @media (max-width: 768px) {    
        margin: 1.4rem auto;
   }
}
//fine landing

/* Modal pop-up */
.modal {
    
    //width: max-content;

    .modal-content{
        position: fixed; 
        z-index: 10000; 
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    &:before{
        content: '';
        background-color: rgb(0,0,0); 
    background-color: rgba(0,0,0,0.4); 
    width: 100vw; 
    height: 100vh;
    top: 0;
    left: 0;
    position: fixed; 
    transition: all 0.3s 
    }
  }

  .hidden {
    display: none;
  }
  
  .visuallyhidden {
    opacity: 0;
  }
  
  /* Modal Content/Box */
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    //padding: 20px;
    //border: 1px solid #888;
    //width: 80%; 
    position: relative;
    line-height: 0;
    width: fit-content;
    /* @media (max-width: 768px) {
        margin: 30% 4%;
    } */
    @media (max-width: 480px) {
        width: 85%;
        margin: 66% auto;
    }

  }

  .closeModal {
      cursor: pointer;
    color: $color-black;
    //float: right;
    top: 20px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    position:absolute;
  }

  .modalText{
      max-width: 400px;
      padding: $space-s;
      border-radius: 10px;
      
      p{
          margin-bottom: 0;
      }
  }

  .modalText__title{
      display: block;
      margin: $space-xxs 0 $space-s 0;
      font-weight: bold;
      font-size: 1.2em;
  }
/* Fine Modal*/  

/* Ultimo bordo sezione notizie*/
@media (max-width: 992px) {
    .newsHighlightsBoardContainer.news.noLastBorder, .news.newsBoardContainer.noLastBorder {
        article:last-of-type::after {
            all: unset
        }
    }  
}

/* Più letti linea continua */

@media (min-width: 992px) {
.containerWithCols.mostViewed{   
    grid-template-columns: 1fr; 
}
}

/* news section fixalign */
@media (min-width: 992px) {
    .newsHighlightsBoardContainer.fixAlign {
     grid-template-columns: 2.14fr 1fr 1fr;
 }
 }

/* video-macchine-agricole / finanziamenti */
@media (max-width: 599px) {
.fourBlocks article figure.agriMachVid {
    margin: 0;
    max-width: 185px;
}
} 

.multiBannerCol {
    justify-self: center;
}

@media (min-width: 768px){
.containerWithCols.agriMachVid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 2fr 1fr;
    grid-template-columns: 2fr 1fr;
    column-gap: 30px;
}
}

.news.containerWithCols, .news.containerWithCols.agriMachVid {
    display: grid;
    gap: 30px;
}

/* speciale */
@media (max-width: 768px) {
    .horizontal.singleSpecial {
        display: block;
        &>img {
            max-width: 100%;
            margin: 0;
        }
    }
}

/* Articolo immagine non centrata */
.articleMain figure.mainFigure.centeredFigure {
    margin: 3em 0;
    text-align: center;   
}

.article figcaption {
    font-style: italic;
    text-align: center;
}
em>small {
    font-size: 0.875rem;
    color: #6c7481;
}
//immagine autore
/* .articleInfo .author a {    
    align-items: center; //immagine autore
} */

/* Articolo-new nuovo Layout */

.author a img {
    width: 40px;
    margin-right: 0.5rem;
}

@media (min-width: 1200px){
.articleMain {
    
    display: block;
    
}}

.articleInfo .author a {
    
    flex-direction: row; 
    
    align-items: center;
   /*  color: #0e75ad;
    margin: 1rem 0; */
}

/* @media (min-width: 1400px){
.subhead {
    font-size: 20px;
}} */

h3.subhead {
    font-size: 20px
}

@media (min-width: 1200px){
.articleMain .mainFigure {
    margin: 1.5em 0 1.5em 0;
    //text-align: center;
}}

.author a {
    color: #0e75ad;

    &.btn-primary{
        color: $color-white;
    }
}

 .articleText{
    ul{
        padding: 1rem;
        margin-bottom: 0;
    } 
    li {
        margin-bottom: 1rem;
    }
 } 

@media (min-width: 1200px){
    .articleText {
        max-width: 100%;
        
        h4 {
            font-size: 28px;
        }

        h6 {
            font-size: 20px;
        }

    }
    
    .related h4{
        font-size: 28px;
    }

    }

/* fix data Evento*/

@media (min-width: 600px){
.dateInterval {
    flex-direction: row;    
}
 
.dateInterval .date {
    width: unset;
}

.dateInterval>div:not(:last-child) {
    margin-right: 2rem;
}

}

@media (min-width: 1200px) {
     .articleInfo>div.dateInterval {
    margin-bottom: -1em;
} 
}

@media (min-width: 600px){
    .dateInterval.column{
        flex-direction: column;    
    }
     
    .dateInterval.column .date {
        width: 45px;
    }
    
    .dateInterval.column>div:not(:last-child) {
        margin-right: 0;
    }
}

/* sezione video fix cerchio blu/play cliccabile */

.videoPreview:after {
    content: none;
}

.videoPreview a:after {
    content: '';
    width: 50px;
    height: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    background: url(../images/icon-play.svg) no-repeat 0 0;
    background-size: contain;
}

/* INIZIO RIUNIFICAZIONE CSS ######################################################### */

/* riquadro giallo */

.author {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 992px) {
    .author {
        display: block;
        margin-bottom: 1rem;
    }
}



.article .disclaimer {
    margin-top: 0;
    height: max-content;
    
}

.disclaimer a {
    margin: 0;
}

.article .disclaimer p {
    
    line-height: 2;
    margin-bottom: 0;
}

/* Banner agromeccanica */

.newsHighlightsBoardContainer article.medium.bannerContainer a img {    
    max-width: none; 
    margin-right: unset;
}

@media (max-width: 767px) {
    article.medium.bannerContainer {
        justify-content: center;
    }
}

@media (min-width: 992px) {
.newsHighlightsBoardContainer article.bannerContainer {
align-items: center; /* start ? */
    }
}

/* Banner Ikea */

/* a.sas-link-24638 {
    display: block;
    width: 100%;
    height: 64px;
    font: normal 12px Arial, Helvetica, sans-serif;
    text-decoration: none;
    border-bottom: #d5d5d5 1px solid;

    margin: 20px 0;
}

a.sas-link-24638:hover {
    background-color: #fcecd9;
}

img.sas-link-24638 {
    float: left;
    margin: 9px 56px 0 56px;
}

span.sas-link-24638 {
    color: #575757;
    line-height: 15px;
    display: block;
    margin: 8px;
}

p.sas-link-t-24638 {
    color: #114d97;
    font-size: 14px;
    font-weight: bold;
}

p.sas-link-l-24638 {
    color: #aaaaaa;
}

p.sas-link-t-24638:hover,
p.sas-link-l-24638:hover {
    text-decoration: underline;
}

.sas-link-24638 p {
    font-size: 12px;
}

@media (max-width: 480px) {
    img.sas-link-24638 {
        margin: 0 5px 0 0; 
   }
} */



.articleAside .banner {
    text-align: center;
    margin-top: 15px;
    &.financing {
        margin-top: 45px;
    }
}

/* banner colture */
@media (min-width: 768px){
section:not(:first-of-type).midAbout {
margin-top: 0;
}
}

@media (min-width: 992px) {
.searchContainer {
display: grid;
grid-template-columns: 2fr 1fr;
column-gap: 30px;
} 
}

/* banner eventi */

/* .newsContainer.events {
    border-top: none;
} */

/* .events article:first-of-type {
    border-top: 1px solid #dadfe6;
} */

/* banner meteo */

/* .newsContainer.weather {
    border-top: none;
} */

/* .weather article:first-of-type {
    border-top: 1px solid #dadfe6;
} */

/* banner quotazioni */

@media (min-width: 992px) {
    .banner.articleAside.pricing {
        margin-top: 30px;
    }
}

/* Meteo Grid 4 colonne*/

.widgets {
grid-template-columns: repeat(auto-fit,255px);
justify-content: center;
}

/* Meteo Grid aggiunta colori */

.widgets article {
background-color: #f5f5f5;
}

.widgets article.slightlyBelow {
background-color: #dfedf3 ;
}

.widgets article.stronglyBelow {
background-color: #D7E9FF;
}




/* Banner SponsoredLink */

p.banner-sponsored-link a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 64px;
    font: normal 12px Arial, Helvetica, sans-serif;
    text-decoration: none;
    border-bottom: #d5d5d5 1px solid;
    margin: 20px 0;
}

p.banner-sponsored-link a:hover {
    background-color: $color-green-lightest;
}

p.banner-sponsored-link a img {
    float: left;
    margin: 9px 56px 0 56px;
}

p.banner-sponsored-link a span {
    color: #575757;
    line-height: 15px;
    display: block;
    margin: 8px;
}

p.banner-sponsored-link a span p {
    font-size: 12px; 
}

p.banner-sponsored-link a span p:first-of-type {
    color: #114d97;
    font-size: 14px;
    font-weight: bold;
}

p.banner-sponsored-link a span p:last-of-type {
    //color: #aaaaaa;
    font-size: 12px;
}


@media (max-width: 899px) {
    p.banner-sponsored-link a img {
        margin: 9px 27px 0 27px;
    }
}

@media (max-width: 480px){
    p.banner-sponsored-link a img {
        margin: 10px 8px 15px 8px;
        max-inline-size: 140px;
        padding-top: 10px;
        
    }
}

/* fix brand-page has-overlay*/

article.has-overlay.brandPage {
    z-index: 0;
}

/* fixlinea sottile tabella */

.info.thinLine, .info.table-fixed.thinLine {
    td, th {
        border-bottom: 1px solid #a2aab7;
    }
}

.zeroi {
    z-index: 0;
}

.has-error span.form-error.thin {
    font-weight: unset;
}

/* fix table portale personale */

.filters.left td:nth-child(3), .filters.left th:nth-child(3) {
    width: auto;
}

.filters.left td:first-child, .filters.left td:nth-child(2), .filters.left th:first-child, .filters.left th:nth-child(2) {
    text-align: unset;
    width: auto;
}

/* fix tag eventi */

.tags.events li.active a, .tags.events li.active span {
    padding-right: 15px;
    color: #0e75ad;
}

.tags.events li a, .tags.events li span {
    display: inline-block;
    padding: 5px 10px 5px 15px;
    line-height: 1.3;
}

.newsContainer article p+.tags.events li {
    margin-bottom: 10px;
}

.eventsBody .location {
    text-transform: uppercase;
}