/**
 * @file
 * Subtheme specific CSS.
 */

/*
* UNICO COLORE DA SOTITUIRE
* Rosso: #e2001a;
* Ps: per la frecce dello slider e il panino del menu mobile sostistuire in valore rgba(226,0,26,1) che è sempre il rosso
*
* CALSSI DA USARE PER LE VISTE
* ARTICOLI
* Usare la classe 'articoli' per la vista, sequenza dei campi: immagine, titolo, link al contenuto
* ULTIMI ARTICOLI
* Usare la classe 'ultimi-articoli' per la vista, sequenza dei campi uguale ad articoli.
* PS: Le viste principali sono gli eventi hanno lo sfondo bianco, la sequenza dei campi: titolo, corpo del testo, data, circolo, link al contenuto, immagine.
*
* VIEW FOOTER
* Se si inseriscono link nl footer delle viste compaiono come bottoni. Batano i link semplici.
*/

body {
  line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
}

img.aligncenter{
  display: block;
  margin: 0 auto;
}

img.alignleft{
  float: left;
  padding: 0px 15px 0px 0;
}

img.alignright{
  float: right;
  padding: 0px 0 0px 15px;
}

#navbar-top {
   justify-content: flex-end;
   border-bottom: 1px solid #f7f6f3;
   padding: 0;
   height: 43px;
}
.container-fluid {
    padding-right: 5%;
    padding-left: 5%;
}

#navbar-main {
    background-color: #ffffff;
    align-items: flex-end;
}

#navbar-top .nav-link{
   /*border-left: 1px solid #f7f6f3;*/
}

#navbar-top .nav-link{
  padding: .5rem 0.5rem;
}
#navbar-top .nav-link a{
  color: #fff;
  text-transform: capitalize;
  font-size: 16px;
  text-decoration:none;
}
#navbar-top .nav-link a:hover, #navbar-main .nav-link a:hover,
#navbar-top .nav-link a.is-active, #navbar-main .nav-link a.is-active
{
  color: #a96c9c;
}

.navbar-brand {
  max-width: 150px;
  -webkit-transition: all 0.1s linear;
  -moz-transition: all 0.1s linear;
  -o-transition: all 0.1s linear;
  transition: all 0.1s linear;
}

#navbar-main.affix{
  top:43px;
}



#navbar-main.affix .navbar-brand {
  max-width: 100px;
}



.region-secondary-menu {
	margin: 0;
}
/*#navbar-main .region-secondary-menu .nav {
  display: block;
}*/

#navbar-top .region-secondary-menu .nav {
  display: none;
}

#navbar-top #search-block-form {
    padding: 5px 10px;
    margin:0;
}

#navbar-top #search-block-form .form-group {
    margin: 0;
}

.navbar .navbar-toggler .navbar-toggler-icon {
   background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(226,0,26,1)' stroke-width='3' stroke-linecap='square' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

#search-block-form input[type=submit] {
    color: transparent;
    width: 41px;
    height: 32px;
}

#search-block-form .form-type-search, #search-block-form .form-actions {
    padding-right: 0;
    padding-left: 0;
}


#search-block-form .form-actions {
  position: relative;
}

#search-block-form .form-actions:before {
    font-family: "Font Awesome 5 Free";
    color:#a96c9c;
    font-size: 22px;
    font-weight: 900;
    content: "\f002";
    position: absolute;
    display: block;
    top: 0;
    left: 10px;
    pointer-events: none;
}

#search-block-form input[type=search]::placeholder {
  color: #fff;
  content: "Cerca";
}

#navbar-top .form-control{
  border: 0;
  background-color: #efefef;
  height:32px;
}

#navbar-top .form-control:focus {
    border-bottom: 1px solid #e2001a;
    box-shadow: 0;
}

#navbar-top #navbar-top {
  padding: 0;
}

.region-top-header-form {
  display: flex;
}


#navbar-main .region-primary-menu .nav > li > a{
  color: #000;
  padding: .5rem 1.5rem;
  font-size: 1.2rem;
}

#navbar-main .region-primary-menu .nav > li > a.active{
  color: #ebd163;;
}

.dropdown-menu {
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
  width: 100%;
}

.dropdown-item{
  border-bottom: 1px solid rgba(0,0,0,.15);
  padding: .7rem 1.5rem;
  white-space: normal;
  line-height: 1.2;
}
.dropdown-item a{
  font-size: 1rem;
  color: #000;
	text-decoration: none;
}
.dropdown-item a:hover,.dropdown-item.active a{
  color: #ebd163;
}
.dropdown-item.active, .dropdown-item:active {
	color: #ebd163;
	background-color: transparent;
}

.navbar-expand-md .navbar-collapse {
    justify-content: flex-end;
}

@media (min-width: 768px) {
    #navbar-main .region-secondary-menu {
      display: none;
    }
    #navbar-top .region-secondary-menu .nav {
      display: flex;
    }

   #navbar-main.affix .navbar-brand {
     position: absolute;
     /*background-color: #fff;*/
padding: 5px 10px;
max-width: 100px;
   }
}



/* lingua */
#block-languageswitcher h2,#block-languageswitcher .content{
  display: inline-block;
}

/* social barra menu*/
#block-social p{
  display: flex;
  align-items: center;
  height: 37px;
  padding: 0 0.5em;
  margin: 0;
}
#block-social p a {
    padding: 0;
    display: block;
    width: 25px;
    height: 25px;
    font-size: 18px;
}

/* social sharehis */

.sharethis-wrapper span {
    display: inline-block;
  	font-family: "Font Awesome 5 Free";
    font-weight: 900;
  	color:#e2001a;
  	font-size: 22px;
    padding: 0 12px;
  	cursor:pointer;
    text-align: center;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, .1);
}
.sharethis-wrapper span:hover {
    color:#851013;

}

.sharethis-wrapper span:last-child{
	padding: 0 0 0 8px;
	}

.st_facebook_custom::before {
  font-family: "Font Awesome 5 Brands";
  font-weight: 500;
  content: "\f09a";
}

.st_pinterest_custom::before {
  font-family: "Font Awesome 5 Brands";
  font-weight: 500;
  content: "\f231";
}

.st_twitter_custom::before {
  font-family: "Font Awesome 5 Brands";
  font-weight: 500;
  content: "\f099";
}

.st_googleplus_custom::before {
  font-family: "Font Awesome 5 Brands";
  font-weight: 500;
  content: "\f0d5";
}

.st_sharethis_custom::before {
  font-family: "Font Awesome 5 Free";
  content: "\f1e0";
}

/* Search block */
#search_form_block {
	margin: 0 !important;
	padding:0 !important;
}
#search_form_block .input-group{
    margin: 0;
    height: 50px;
    padding: 0px;
    font-size: 14px;
    line-height: 1;
	background-color: #333;
	border-radius: 0px;
    border-color: #333;
}
#search_form_block input[type="search"]{
     margin: 0;
    height: 50px;
    padding: 5px;
    font-size: 18px;
    line-height: 1;
    background-color: #333;
    color: #d8d8d8;
    border-radius: 0;
    border-color: #333;
    -webkit-box-shadow: none;
    box-shadow: none;
}
#search_form_block button{
    margin: 0;
    height: 50px;
    padding: 10px;
    font-size: 18px;
    line-height: 1;
	background-color: transparent;
	color: #d8d8d8;
	border: 0;
}

/* titoli */

h1, h2, h3, h4, h5, h6 {
  font-weight: 500 !important;
}

.block-views h2, .sidebar h2, .region-featured-bottom-third h2 {
  padding: 20px 0;
  border-top: 1px solid #ebd163;
  margin: 40px 0;
}

.block-page-title-block h1, .block-views h2, .region-featured-bottom-third h2 {
  font-size: 34px;
  line-height: 40px;
  font-weight: 500 !important;
  letter-spacing: 1px;
  padding-top: 5px;
}

.featured-top {
  padding: 0;
  /*border-bottom: 1px solid #eae3e0;*/
  border-top: 1px solid #ebd163;
	background-image: url(/sites/default/files/fondotitolo1.jpg);
	background-repeat: no-repeat;
	background-position: center center;
	background-size: cover;
  margin: 0;
}
.region-featured-top .block-page-title-block {
	padding: 2em 0 2em 0;
	margin: 4em 0 2em 0;
}
.region-featured-top .block-page-title-block h1{
  color:#ebd163;
  text-transform: capitalize;
  min-height: 5em;
}

.block-views h2{
  padding-top: 25px;
  padding-bottom: 25px;
}

.sidebar h2, .region-featured-bottom-third h2{
  font-size: 22px;
  line-height: 28px;
  font-weight: 500;
  letter-spacing: 1px;
  padding-top: 20px;
  margin: 0px 0 40px;
}

.region-featured-top{
  display: block;
}

/* form */
.form-control, input[type="email"] {
  display: inline-block;
  width: auto;
  padding: 6px 12px;
  font-size: 16px;
  line-height: 1.42857143;
  border: 1px solid #eee;
  border-radius: 0px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
  -webkit-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.form-control{
  border-radius: 0;
  padding: .485rem .75rem;
}

.form-control:focus {
    border-bottom: 1px solid #e2001a;
    box-shadow: none;
}

/* Sidebar */

.sidebar .block {
    padding: 0 ;
}

/* Bottoni */

.btn {
  padding: .485rem .75rem;
  border-radius: 0;
  font-size: 16px;
line-height: 20px;
font-weight: 500;
letter-spacing: 2px;
text-align: center;
line-height: 40px;
display: inline-block;
height: 45px;
padding: 0 20px;
}

.btn-primary:hover, .btn-primary:focus {
    border-color: #eee;
}

/* carousel */

.carousel {
  margin: 0 auto;
}

.carousel {
  width: 100%;
  max-width: 500px;
}

.image-style-home-carousel {
  width: 100%;
  height: auto;
}

.carousel-control-prev,
    .carousel-control-next{
        height: 42px;
        width: 42px;
        outline:#fff;
        background-size: 100%, 100%;
        opacity: 1;
        top:50%;
    }

.carousel-control-prev-icon {
        background-image:url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgba(226,0,26,1)' viewBox='0 0 8 8'%3E%3Cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3E%3C/svg%3E");
        width: 25px;
        height: 32px;
    }
    .carousel-control-next-icon {
        background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='rgba(226,0,26,1)' viewBox='0 0 8 8'%3E%3Cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3E%3C/svg%3E");
        width: 25px;
        height: 32px;
    }

.carousel-caption {
        background-color: rgba(0,0,0,0.5);
        padding: 20px 30px 30px;
        right: 0;
        bottom: 0;
        left: 0;
}

.carousel-caption.d-md-block {
    display: block !important;

}

.carousel-caption h3 a {
  font-weight: 500 !important;
}

.carousel-caption a:hover {
  text-decoration: none;
}

.carousel-caption .data{
  border-top: 1px solid #f0eceb;
  margin-top: 1rem;
  margin-bottom: 0;
  padding-top:1rem;
  font-size: 13px;
  color: #666;
  display: none;
}

.carousel-caption .circoli{
  display: none;
}

@media (min-width: 1024px) {
  .carousel {
    width: 80%;
    max-width: none;
  }

  .image-style-home-carousel {
    width: 50%;
    height: auto;
  }

  .carousel-control-prev,
      .carousel-control-next{
          bottom: 0;
          top:auto;
          background-color: #fff;
      }

      .carousel-control-prev{
        left: 52%;
      }

      .carousel-control-next {
          right: 39%;
      }

      .carousel-indicators {
        right: 50%;}



      .carousel-caption  {
      right: 0%;
      bottom: 20%;
      left: 52%;
        padding: 20px 0;
      color: #333;
      text-align: left;
        background-color: transparent;
      }

      .carousel-caption .circoli,.carousel-caption .data{
        display: block;
      }
}


/* grid */

.grid .row{
  flex: 1 0 auto;
}
.grid .row .col{
  max-width: 340px;
  margin: 0 auto 30px;
}


@media (min-width: 768px) {
  .grid .row .col{
    margin: 0 0 30px;
  }
}


.ultimi-articoli .grid .row .col{
  max-width: none;
}

.grid .wrapper{
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #fff;
}

.articoli .grid .wrapper{
  justify-content: flex-start;
}

.ultimi-articoli .grid .wrapper{
  display: block;
}

.articoli .grid .wrapper, .ultimi-articoli .grid .wrapper{
  background: transparent;
}

.articoli .grid .wrapper{
  padding-left: 0;
  padding-right: 30px;
  border-right: 1px solid #eae3e0;
}



.grid p{
  padding:0;
  margin: 0;
}

.grid .views-field{
  padding: 15px;
  justify-content: normal;
}

.articoli .grid .views-field{
  padding: 15px 0;
}

.grid .views-field-field-image{
  padding: 0;
  align-self: flex-end;
  width: 100%;
  overflow: hidden;
    border-radius: 50%;
}

.articoli .grid .views-field-field-image{
  border-top: 0;
  padding: 0;
}

.ultimi-articoli .grid .views-field-field-image{
  width: 33%;
  float: left;
  border-right: 2px solid #e2001a;
  border-top: 0;

}

.grid .views-field-field-image img{
  width: 100%;
  height: auto;
}

.grid .views-field-title{
  font-size: 18px;
  padding-bottom: 0;
  font-weight: 500;
  line-height: 1.5;
}

.grid .views-field-title a{
  color: black;
}

.articoli .grid .views-field-title a, .ultimi-articoli .grid .views-field-title a{
  color:#4a4a4a;
}

.grid .views-field-title a:hover{
  color: #333;
  text-decoration: none;
}

.ultimi-articoli .grid .views-field-title{
    margin: 0;
   padding: 0 10px;
   width: 67%;
   float: right;
}

.grid .views-field-body{
	color: #6c6254;
	line-height: 1.5;
}

.grid .views-field-field-data-evento{
  border-top: 1px solid #f7f6f3;
  padding: 15px 0 0 0;
  margin: 0 15px;
  font-size: 13px;
  color: #666;
}
.grid .views-field-field-circoli{
    padding:0 15px;
}

.grid .views-field-view-node a:hover{
  text-decoration: none;
}

.articoli .grid .views-field-view-node{
  padding-top: 0;
}

.ultimi-articoli .grid .views-field-view-node{
  padding: 10px;
 width: 67%;
 float: right;
 margin-bottom:0;
}

.sidebar .ultimi-articoli .grid .views-field-view-node{
  margin-bottom: 0px;
}

/* view footer link, e link commenti */

.view-footer p{
  text-align: right;
  margin: 0;
}
.view-footer, .view-header{
    padding: 0;
    margin: 20px 0;
}

.view-footer a, .view-header a, .comment-add.nav-link a{
    color: #333;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
    letter-spacing: 2px;
    text-align: center;
    line-height: 48px;
    display: inline-block;
    background-color: transparent;
    height: 50px;
    padding: 0 50px 0 20px;
    border: 1px solid #333;
    margin: 10px;
    position: relative;
    transition: all .1s ease-in-out;
}

.comment-add.nav-link a{
  margin: 10px 0;
}

.view-footer a::after, .view-header a::after{
    content: "\02192";
    display: block;
    text-align: center;
    line-height: 20px;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 15px;
    right: 20px;
    transition: all .1s ease-in-out;
}

.comment-add.nav-link a::after{
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f086";
    display: block;
    text-align: center;
    line-height: 20px;
    width: 20px;
    height: 20px;
    position: absolute;
    top: 15px;
    right: 20px;
    transition: all .1s ease-in-out;
}

a.calendario::after{
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f073";
  display: block;
  text-align: center;
  line-height: 20px;
  width: 20px;
  height: 20px;
  position: absolute;
  top: 15px;
  right: 20px;
  transition: all .1s ease-in-out;
}

.view-footer a:hover::after, .view-header a:hover::after{
    right: 10px;
}

a.calendario:hover::after{
   right: 20px;
 }

.view-header a.calendario {
  margin: 0 0 25px 0;
}

.view-footer a:hover, .view-header a:hover, .comment-add.nav-link a:hover {
    color: #f0eceb;
    background-color: #333;
      text-decoration: none;
}

.sidebar .view-footer, .region-featured-bottom-third .view-footer {
  margin-left: -25px;
margin-right: -25px;
}

.comment-add.nav-link{
  padding: 0;
}

/* pagination */

.pagination {
    justify-content: center;
    border-radius: 0;
    margin: 1em;
}

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

.page-item:last-child .page-link {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.page-link {
    margin-left: 5px;
    background-color: #fff;
    border: 1px solid #fff;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 2px;
}

.page-link {
    color: #333 !important;
}

.page-item.active .page-link {
  color: #fff !important;
}

/* First featured */
.featured-bottom {
    background-color: #f0eceb;
}
.region-featured-bottom-first {
    margin-top: 40px;
}
.featured-bottom .navbar-nav {
    flex-direction: row;
}
.featured-bottom .nav-link{
    color: #000;
    padding: .5rem 1.5rem;
}
.featured-bottom .content a:hover, .site-footer .content a:focus {
    color: rgba(13, 13, 13, 0.65);
}


@media (min-width: 1024px) {
  .region-featured-bottom-first {
      padding: 0.5em 3em;
  }


}

/* Third featured */

.region-featured-bottom-third  {
  margin-top: 40px;
}

.region-featured-bottom-third .block {
    padding: 20px;
}

@media (min-width: 1024px) {
.region-featured-bottom-third .block {
    position: relative;
    flex-basis: 33%;
}
}

/* Footer */

.site-footer {
    padding: 20px 0 20px;
}

.site-footer__bottom {
  margin-top: 0;
  text-align: center;
  border-top: 0;
}

.site-footer__bottom .region {
    margin-top: 0;
}

.site-footer .navbar-nav{
  flex-direction: row;
}

.site-footer__bottom .navbar-nav {
    flex-direction: row;
    justify-content: center;
}

.site-footer .navbar-nav li + li a:before {
    content: "|";
    display: inline-block;
    margin: 0 5px;
    color: #fff;
}

.site-footer .content {
    color: rgba(2, 2, 2, 0.65);
}

.site-footer .content a:hover, .site-footer .content a:focus {
    color: rgba(255, 255, 255, 0.95);
}

.site-footer .nav-link{
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.857em;
  font-weight: bold;
}

.site-footer .block {
  border: 0;
  margin: 0;
}

.site-footer p {
  margin: 0;
}

/* Cookie */

div#sliding-popup, div#sliding-popup .eu-cookie-withdraw-banner, .eu-cookie-withdraw-tab {
    background: #e2001a;
}

.eu-cookie-compliance-message {
    margin: 15px 0 0;
}

.disagree-button.eu-cookie-compliance-more-button,
.eu-cookie-compliance-agree-button,
.eu-cookie-compliance-default-button,
.eu-cookie-compliance-hide-button,
.eu-cookie-compliance-more-button-thank-you,
.eu-cookie-withdraw-button,
.eu-cookie-compliance-save-preferences-button {
  cursor: pointer;
  margin-right: 5px;
  margin-top: 1em;
  vertical-align: middle;
  overflow: visible;
  width: auto;
  font-size: 16px;
  font-family: inherit;
  box-shadow:0; /* LTR */
  background-color: #ededed;
  background-image: unset;
  border-radius:0;
  border: 0;
  color: #000;
  font-weight: 500;
  letter-spacing: 2px;
  text-align: center;
  padding: 4px 8px;
  text-decoration: none;
  text-shadow: 1px 1px 0 #ffffff;
}

/* Pagina eventi */
.node--type-event .field--name-field-data-evento{
  background-color: #f0eceb;
  padding: 20px;
  text-align: center;
  color: #666;
  border-bottom: 1px solid #e2001a;
  font-size: 16px;
  letter-spacing: 2px;
  padding: 20px;
  display: inline-block;
  margin: 0 0 10px;
}


@media (min-width: 768px) {

}

/* Exposed Filter */

.views-exposed-form .form-control{
  margin: 0;
}

.views-exposed-form .btn{
  height: 40px;
  line-height: 39px;
}

.views-exposed-form .form-select {
	display: block;
	line-height: 1.3;
  font-size: 16px;
	padding: .5rem .75rem .5rem .8rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 0;
	border: 1px solid #cccccc;
	box-shadow: 0;
	border-radius: 0;
	/*-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;*/
	background-color: #fff;
	background-image: none;
	background-repeat: no-repeat, repeat;
	background-position: right .7em top 50%, 0 0;
	background-size: .65em auto, 100%;
  cursor: pointer;
  height: calc(2.25rem + 4px) !important;
}

/*.views-exposed-form .form-type-select:after{
  content: '\f078';
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  right: 17px;
  bottom: 4px;
  padding: 0 0 2px;
  position: absolute;
  font-size: 16px;
  color: #e2001a;
  pointer-events: none;
}
*/

#sidebar_second .views-exposed-form fieldset, #sidebar_first .views-exposed-form fieldset{
  width: 100%;
}

.views-exposed-form label{
   font-size: 16px;
    line-height: 35px;
    font-weight: 500;
    letter-spacing: 2px;

 }

 .views-exposed-form h2 {
   margin: 0;
   border: 0;
   display: flex;
   width: 100%;
   justify-content: center;
   align-items: center;
   text-align: center;
 }


 .views-exposed-form h2:before,
 .views-exposed-form h2:after {
     content: '';
     border-top: 1px solid #eae3e0;
     margin: 0 15px 0 0;
     flex: 1 0 15px;
 }

 .views-exposed-form h2:after {
     margin: 0 0 0 15px;
 }

.views-exposed-form .form-select::-ms-expand {
	display: none;
}
.views-exposed-form .form-select:hover {
	border-color: #e2001a;
}
.views-exposed-form .form-select:focus {
	border-color: #e2001a;
	box-shadow: 0;
	color: #222;
	outline: none;
}
.views-exposed-form .form-select option {
	font-weight:normal;
}

#sidebar_second .views-exposed-form .form-actions, #sidebar_first .views-exposed-form .form-actions {
  display: block;
  margin: 15px auto;
}
/*.alert-success {
    color: #155724;
    background-color: #a96c9c;
    border-color: #a96c9c;
}*/
