/* ==================================================
  GENERAL 
 ==================================================*/
body {
    background-color: #ffffff;
    color: #0D004C;
    font-family: 'Rubik', sans-serif;
    overflow-x: hidden;

}

a {
    color: #0D004C;
}


/* Link Alternative */ 
.link-alternative { 
    transition: all .2s; 
} 
 
.link-alternative i { 
    color: #F67575; 
    font-size: 1.3rem; 
    margin-left: 15px;
    transition: all .2s; 
} 
 
.link-alternative:hover { 
    color: #0056b3;
    text-decoration: none; 
} 
 
.link-alternative:hover > i { 
    color: #E55252; 
    text-decoration: none; 
}

/* SVG CURVES */
.curve_1 {
    bottom: -10px;
    display: block;
    position: relative;
}

.curve_2 {
    display: block;
    position: relative;
    top: -1px;
}

/* IMAGE OVERLAY EFFECT */

.card-img {
    position: relative;
}

.card-img-overlay{
    background-image: linear-gradient(360deg, rgba(0,0,0,0.6), transparent);
}
  
.card-img:before {
    background-image: linear-gradient(-180deg, rgba(82, 82, 82, 0) 0%, rgba(26, 26, 26, 0.57) 49%, rgba(41, 41, 41, 0) 100%); 
    content: '';
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 7;
} 

/* ==================================================
  NAVBAR 
 ==================================================*/
.nav-item {
    padding-left: 37px;
}

.navbar-light .navbar-nav .nav-link {
    color: #0D004C;
    font-weight: 500;
    padding-bottom: 6px;
    position: relative;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #0D004C;
}

.navbar-light .navbar-nav .nav-link:hover:before {
    opacity: 1;
}

.navbar-light .navbar-nav .nav-link:active {
    opacity: 1;
}

.nav-link:before {
    background-color: #0D004C;    
    bottom: 0;
    content: '';
    display: block;
    height: 4px;
    opacity: 0;
    position: absolute;
    width: calc(100% - 1rem);
    transition: all .3s;
    z-index: 10;
}

.dropdown-menu .nav-link:before{
    display: none;
}

/* ==================================================
 BANNER
 ==================================================*/
.jumbotron {
    background-color: #ffffff;
    margin: 0 auto;
    max-width: 850px;
    padding: 7rem 0 16rem;
    position: relative;
    max-width: 100%;
}

.jumbotron_text {
    position: relative;
    z-index: 10;
}

/* JUMBOTRON HOME */
.jumbotron:before {
    content: url(../img/circle_light_blue.svg);
    height: 360px;
    left: -40%;
    position: absolute;
    top: 300px;
    transform: scale(.5);
    width: 360px;
    z-index: 1;
}

.jumbotron:after {
    content: url(../img/circle_green.svg);
    height: 360px;
    position: absolute;
    right: -40%;
    top: 0;
    transform: scale(.5);
    width: 360px;
    z-index: 1;
}

@media (min-width: 414px) { 
    .jumbotron {
        padding: 10rem 0 17rem;
    }
    
    .jumbotron:before {
        left: -40%;
        top: 300px;
        transform: scale(.7);
    }
    
    .jumbotron:after {
        right: -40%;
        top: 50px;
        transform: scale(.7);
    }
  }

@media (min-width: 576px) { 
    .jumbotron {
        padding: 5rem 0 10rem;
    }
    
    .jumbotron:before {
        left: -20%;
        top: 180px;
        transform: scale(.8);
    }
    
    .jumbotron:after {
        right: -10%;
        top: 50px;
        transform: scale(.8);
    }
  }
  
@media (min-width: 992px) { 
    .jumbotron {
        padding: 10rem 2rem;
    } 

    .jumbotron:before {
        left: 0;
        top: 370px;
        transform: scale(1);
    }

    .jumbotron:after {
        right: 0;
        transform: scale(1);
        top: 120px;
    }
}

/* JUMBOTRON PAGE */
.jumbotron-page:before {
    content: url(../img/circle_green.svg);
    height: 360px;
    left: -40%;
    position: absolute;
    top: 300px!important;
    transform: scale(.5);
    width: 360px;
    z-index: 1;
}

.jumbotron-page:after {
    content: url(../img/circle_pink.svg);
    height: 360px;
    position: absolute;
    right: -40%;
    top: 0;
    transform: scale(.5);
    width: 360px;
    z-index: 1;
}

@media (min-width: 414px) { 
    .jumbotron-page {
        padding: 10rem 0 17rem;
    }
    
    .jumbotron-page:before {
        left: -40%;
        top: 300px;
        transform: scale(.7);
    }
    
    .jumbotron-page:after {
        right: -40%;
        top: 50px;
        transform: scale(.7);
    }
  }

@media (min-width: 576px) { 
    .jumbotron-page {
        padding: 5rem 0 10rem;
    }
    
    .jumbotron-page:before {
        left: -20%;
        top: 180px;
        transform: scale(.8);
    }
    
    .jumbotron-page:after {
        right: -10%;
        top: 50px;
        transform: scale(.8);
    }
  }
  
@media (min-width: 992px) { 
    .jumbotron-page {
        padding: 10rem 2rem;
    } 

    .jumbotron-page:before {
        left: 0;
        top: 370px;
        transform: scale(1);
    }

    .jumbotron-page:after {
        right: 0;
        transform: scale(1.5);
        top: 220px;
    }
}


/* ==================================================
 BIG IMAGE AND TEXT
 ==================================================*/
.big_image_and_text {
    background-color: #0D004C;
    padding-bottom: 50px;   
    position: relative;
    z-index: 10;
}

.big_image_and_text_content {
    position: relative;
    top: -150px;
}

.big_image_and_text .image_container {
    margin: 0 auto;
    max-width: 850px;
    position: relative;
}

.big_image_and_text img:before {
    background-image: linear-gradient(-180deg,rgba(82,82,82,0) 0,rgba(26,26,26,.57) 49%,rgba(41,41,41,0) 100%);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 3;}

.big_image_and_text h3{
    bottom: -150px;
    max-width: 800px;
    position: relative;
}

.big_image_and_text .image_container:after{
    bottom: -80px;
    content: url(../img/circle_pink.svg);
    height: 200px;
    position: absolute;
    right: -90px;
    transform: scale(0.7);
    width: 200px;
    z-index: 1;
}

@media (min-width: 992px) {  
    .big_image_and_text_content h3 {
        position: absolute;
    }

    .big_image_and_text .image_container:after {
        transform: scale(1);
    }
}

/* ==================================================
 ARGUMENTS
 ==================================================*/
.arguments {
    background-color: #0D004C;
    padding: 100px 0;
}

.arguments .card-deck {
    margin: 0 auto;
    /*max-width: 1050px;*/
    text-align: center;
}

.arguments .card {
    border-radius: 20px;
    padding-top: 40px;
}

.arguments .card-body {
    padding: 40px 27px 35px;
}

.arguments .card-icon {
    color: #A8C4F3;
    font-size: 7rem;
}

.arguments a {
    display: block;
    font-weight: 500;
    text-align: right;
}

/* ==================================================
 ARTICLES GRID
 ==================================================*/
.articles-grid {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.articles-grid .card-text{
    align-items: flex-end;
    display: flex;
    font-size: 1.5rem!important;
    position: absolute;
    z-index: 15;
}

.articles-grid .card-text h5{
    font-size: 1.5rem!important;
}

.big-image-col {
    padding-bottom: 1.2rem;
}

@media (min-width: 992px) { 
    .big-image-col {
        padding-bottom: 0;
    } 
}

.articles-grid a {
    color: #ffffff;
    font-weight: 500;
    transition: all .2s;
}

.articles-grid a:hover {
    color: #406CB6;
}

/* ==================================================
 CTA
 ==================================================*/
.main-cta {
    padding-bottom: 100px;
    position: relative;
}

.main-cta .text-container {
    max-width: 760px;
    position: relative;
    z-index: 10;
}

.main-cta .text-container .lead {
    font-size: 1.5rem;
}

.main-cta:before {
    content: url(../img/circle_green.svg);
    height: 360px;
    left: -40%;
    position: absolute;
    top: -270px;
    transform: scale(.5);
    width: 360px;
    z-index: 1;
}

@media (min-width: 414px) { 
    .main-cta:before {
        left: -40%;
        top: -270px;
        transform: scale(.7);
    }
}

@media (min-width: 576px) {     
    .main-cta:before {
        left: -20%;
        top: -150px;
        transform: scale(.8);
    }
}
  
@media (min-width: 992px) { 
    .main-cta {
        padding: 25px 0 100px 380px; 
    }

    .main-cta:before {
        left: -5%;
        top: -270px;
        transform: scale(1);
    }
}


/* ==================================================
 FOOTER
 ==================================================*/
.main-footer {
    background-color: #0D004C;
    color: #ffffff;
    padding: 85px 0 50px;
}

.main-footer a {    
    color: #ffffff;
    transition: all .2s;
}

.main-footer a:hover {    
    color: #A8C4F3;
    text-decoration: none;
}

.main-footer ul {
    list-style-type: none;
    padding-left: 0;
}

.main-footer li {
    margin-top: 15px;
}

.main-footer i {
    font-size: 1.4rem;
    margin-right: 17px;
}

.main-footer .row {
    padding: 60px 0 90px;
}

.footer-copyright {
    font-size: 0.875rem;
}

/* ==================================================
 PAGE
 ==================================================*/
 .page-text {
    position: relative;
    z-index: 5;
}

/* ==================================================
CONTATTI
===================================================*/

.page-template-page-contatti .articles-list-grid{
    color:#ffff;
}


/* ==================================================
 ARTICLES LIST
 ==================================================*/
.articles-list .articles-grid {
    padding: 0;
    background-color: #0D004C;
}

.articles-list .articles-grid .container {
    position: relative;
    z-index: 5;
}

/* Articles List Grid */
.articles-list-grid {
    background-color: #0D004C;
    position: relative;
    top: -1px;
}

.articles-list-grid .row {    
    position: relative;
    z-index: 20;
}

.articles-list-grid .card {
    margin-bottom: 30px;
    height:240px;
}

.latest-article-right{
    height:195px;
}

.latest-article-main{
    height:624px;
}

.articles-list-grid .card-text{
    align-items: flex-end;
    display: flex;
    font-size: 1.5rem!important;
    position: absolute;
    z-index: 15;
}

.articles-list-grid .card-text h5{
    font-size: 1.5rem!important;
}

.articles-list-grid .card a{
    color: #ffffff;
    font-weight: 500;
    transition: all .2s;
}

.articles-list-grid a:hover {
    color: #406CB6;
}

@media (min-width: 414px) { 
    .articles-list .articles-grid .container {
        top: -50px;
    }
    .latest-article-main{
        height:195px!important;
    }
}    


@media (min-width: 576px) { 
    .articles-list .articles-grid .container {
        top: -50px;
    }
    .latest-article-main{
        height:195px!important;
    }
}    


@media (min-width: 768px) { 
    .articles-list .articles-grid .container {
        top: -50px;
    }

    .articles-list-grid:after{
        bottom: -80px;
        content: url(../img/circle_pink.svg);
        height: 200px;
        position: absolute;
        right: 7%;
        width: 200px;
        z-index: 1;
    }
    .latest-article-main{
        height:195px!important;
    }
}
  
@media (min-width: 992px) { 
    .articles-list .articles-grid .container {
        top: -110px;
    }

    .articles-list .articles-grid::before {
        content: url(../img/circle_light_blue.svg);
        height: 360px;
        left: -5%;
        position: absolute;
        top: 200px!important;
        width: 360px;
        z-index: 1;
    }

    .latest-article-main{
        height:624px!important;
    }    
    
}
  
@media (min-width: 1300px) { 
    .articles-list .articles-grid .container {
        top: -170px;
    }

    .articles-list .articles-grid::before {
        left: 5%;
        top: 250px!important;
    }

    .latest-article-main{
        height:624px!important;
    }
}

.img-object-fit{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    z-index: 1;
}

/* ==================================================
 CATEGORY FILTER TABS
 ==================================================*/
.nav-category{
    background:#ffff;
    color:#0056b3;
    border-radius: 20px!important;
    padding-bottom: 0;
}

.nav-category .nav-link{
    color:#0056b3;
    font-weight: bold;
}

.nav-category .nav-link.active, .nav-category .nav-link:hover{
    background: none;
    border-radius:0;
    color:#1EB2A6;
}

.nav-category .nav-link.active:after{
    content: "";
    width: 65px;
    height: 5px;
    background-color: #1EB2A6;
    display: block;
    margin: auto;
    bottom: -8px;
    position: relative;
}

.page-item .page-link{
    font-weight: 600;
    border:none;
    color:#0D004C;
}

.page-item.active .page-link{
    z-index: 1;
    color: #1EB2A6;
    background-color: #fff;
    border:none;
}

.page-item:first-child .page-link {
    margin-left: 0;
    border-top-left-radius: 1.25rem;
    border-bottom-left-radius: 1.25rem;
}

.page-item:last-child .page-link {
    border-top-right-radius: 1.25rem;
    border-bottom-right-radius: 1.25rem;
}

/* ==================================================
 MODAL
 ==================================================*/


.modal-backdrop {
    background-color:#0D004c!important;
}

.modal-backdrop.show{
    opacity: 0.85!important;
}

.modal-header, .modal-content{
    background:transparent;
    color:#fff;
    border:none;
    font-family: 'Rubik', sans-serif;
    font-size: 1.3rem;
}

.modal-header .close{
    text-shadow: none;
    color:#fff;
    font-size: 4rem;
    font-weight: 100;
    opacity: 1;
}

/* ==================================================
 SINGLE ARTICLE
 ==================================================*/
/* Big Image and Text */
.single-article .big_image_and_text_content {
    top: 0;
}

.single-article .big_image_and_text h3 {
    bottom: -30px;
    position: relative;
    z-index: 15;
}

/* Article Text*/
.single-article-text {
    background-color: #0D004C;
    color: #ffffff;
    position: relative;
}

.single-article-text a {
    color: #ffffff;
    transition: all .2s;
}

.single-article-text a:hover {    
    color: #A8C4F3;
    text-decoration: none;
}

.single-article-text:after {
    bottom: -300px;
    content: url(../img/circle_light_blue.svg);
    height: 360px;
    position: absolute;
    right: -20%;        
    transform: scale(.5);
    width: 360px;
    z-index: 1;
}

.single .big_image_and_text .image_container {
    height:600px;

}

/* Articles Grid */
.single-article .articles-grid {
    background-color: #ffffff;
}

/* Second CTA */ 
.second-cta {
    position: relative;
    z-index: 15;
}

.second-cta .text-container {
    max-width: 760px;
    z-index: 15;
}


/* ==================================================
 ANNUNCI
 ==================================================*/

.annunci {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.annunci .card{
    border:1px solid #666;
    border-radius:10px;
}

.annunci img{
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    position: relative;
    height: 350px;
    object-fit: cover;
}

.annunci .star{
    color: #FFFF00;
    top: 15px;
    left: 15px;
    animation: blinker 1s linear infinite;
    text-shadow: 1px 1px 5px black;
}

  @keyframes blinker {  
    50% { opacity: 0; }
  }


/**** ANNUNCI CAROUSEL *****/
@media (max-width: 768px) {
    .carousel-inner .carousel-item > div {
        display: none;
    }
    .carousel-inner .carousel-item > div:first-child {
        display: block;
    }
}

.carousel-inner .carousel-item.active,
.carousel-inner .carousel-item-next,
.carousel-inner .carousel-item-prev {
    display: flex;
}

/* display 3 */
@media (min-width: 768px) {
    
    .carousel-inner .carousel-item-right.active,
    .carousel-inner .carousel-item-next {
      transform: translateX(33.333%);
    }
    
    .carousel-inner .carousel-item-left.active, 
    .carousel-inner .carousel-item-prev {
      transform: translateX(-33.333%);
    }
}

.carousel-inner .carousel-item-right,
.carousel-inner .carousel-item-left{ 
  transform: translateX(0);
}








@media (min-width: 414px) { 
    .single-article .big_image_and_text_content {
        top: -50px!important;
    }

    .single-article-text:after {        
        transform: scale(.5);
        right: -20%;    
    }
}

@media (min-width: 576px) { 
    .single-article .big_image_and_text_content {
        top: -50px!important;
    }

    .single-article-text:after {        
        transform: scale(.5);
        right: -20%;    
    }
}

@media (min-width: 768px) { 
    .single-article .big_image_and_text {
        padding-bottom: 5px;
    }

    .single-article .big_image_and_text_content {
        top: -50px!important;
    }

    .single-article-text:after {        
        transform: scale(1);
        right: 15%;    
    }
}
  
@media (min-width: 992px) { 
    .single-article .big_image_and_text {
        padding-bottom: 5px;
    }

    .single-article .big_image_and_text_content {
        top: -110px!important;
    }

    .single-article-text:after {        
        transform: scale(1);
        right: 15%;    
    }
}
  
@media (min-width: 1300px) { 
    .single-article .big_image_and_text {
        padding-bottom: 5px;
    }

    .single-article .big_image_and_text_content {
        top: -170px!important;
    }

    .single-article-text:after {        
        transform: scale(1);
        right: 15%;    
    }
}