*{
  font-weight: 400;
  line-height: normal;
  
}
body{
  margin: 0;
  padding: 0;
/*  font-weight: ;*/
  overflow-x: hidden;
}
h2{
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  font-size: 2rem;
  text-align: center;
}
h2.main-title{
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  font-size: 2.5rem!important;
  text-align: center;
}
h3{
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  font-size: 1rem!important;
  text-align: center;
}
h4{
  font-family: 'Playfair Display', serif;
  text-transform: uppercase;
  font-size: 1rem!important;
  text-align: center;
}
/*stile navbar*/
.navbar-height{
  padding-top: 98px!important;
}
@media only screen and (max-width: 992px){
  .navbar-height{
    padding-top: 88px!important;
  }
}
.pre-logo,
.post-logo{
  display: flex;
}
ul.submenu{
  padding: 0 1.5rem!important;
  display: flex;
  flex-direction: column!important;
  justify-content: flex-end;
  list-style: none;
  margin: 0;
  text-transform: uppercase;
  color: #5f5f5f;
  font-family: 'Roboto';
  position: relative;
  /* border: 1px solid; */
  cursor: pointer;
}
@media only screen and (max-width: 767px){
    ul.submenu{
      height: auto!important;
      width: 100%;
      border-top: 1px solid #00000088;
      padding: 1.5rem 1rem!important;
    }
}
ul.submenu a:hover{
  color: var(--black)!important;
  fill: var(--black)!important;
}
ul.submenu a {
  display: flex;
  align-items: center;
  color: #5f5f5f;
  text-decoration: none;
  fill: #5F5F5F;
}
.submenu-items{
  position: absolute;
  top: 2rem;
  left: 0;
  background-color: var(--white);
  /* border: 1px solid; */
}
.submenu-items::after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100% - 30px);
  box-shadow: 0px 0px 5px var(--color-black-hover);
  z-index: -1;
}
.submenu-items.closed{
  display: none;
}
.submenu-items li{
  margin: 1rem 0;
  width: max-content;
}
ul.submenu a.selected{
  color: var(--black);
  fill: var(--black);
}
ul.submenu a svg{
  width: 10px;
}
ul.submenu a.opened-menu svg{
  transform: scaleY(-1);
}
.logo-container{
  position: absolute;
  top: 0;
  left: 0;
/*  visibility: hidden;*/
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  height: 100%;
  animation: fadeOutLeft ease 1.5s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
.logo-container.visible{
  animation: fadeInLeft ease 1.5s;
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}
.home-logo img{
  height: 50px;
/*  filter: brightness(.85);*/
}

@-webkit-keyframes fadeOutLeft {
  0% {
    opacity: 1;
    -webkit-transform: translateX(0);
  }
  100% {
    opacity: 0;
    -webkit-transform: translateX(-100%);
  }
}
@keyframes fadeOutLeft {
  0% {
    opacity: 1;
    transform: translateX(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-100%);
  }
}
@-webkit-keyframes fadeInLeft {
  0% {
    opacity: 0;
    -webkit-transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateX(0);
  }
}
@keyframes fadeInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
.header-top{
  background: var(--hover-primary-color);
  color: var(--black-color);
  position: relative;
  z-index: 30;
}
.header-top .row{
  padding: 0.25rem 0;
  max-width: 100%;
}
.header-top p{
  font-family: 'Playfair Display', sans-serif;
  color: var(--color-black);
}
.header-top p.slogan{
  text-align: center;
}
.header-top a{
  color: var(--white);
  text-decoration: none;
}
.header-top a:hover{
  color: var(--white);
  transform: scale(1.03);
/*  text-decoration: underline;*/
}
.header-top a svg,
.service-button a svg{
  width: 22px;
}
.header-top-button div{
  display: flex;
  justify-content: flex-end;
}
@media only screen and (max-width: 767px){
  /*.header-top-button div{
    display: flex;
    justify-content: flex-start;
  }
  .header-top-button div:last-child{
    display: flex;
    justify-content: flex-end;
  }*/
  .top-navbar{
    display: none;
  }
}
.top-navbar.cloned-menu{
  display: none;
}
.top-navbar.cloned-menu.fixed-header{
  display: block;
  position: fixed;
  top: 0px;
  left: 0;
  right: 0;
  z-index: 999;
  transition: 0.2s top linear;
  box-shadow: 0px 0px 5px var(--color-black-hover);
}
@media only screen and (max-width: 991px){
  .top-navbar.cloned-menu.fixed-header{
    display: none;
  }
}
.top-navbar{
  background: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 30;
  box-shadow: 0 0 5px var(--color-black-hover);
}
.header-container{
  padding: 0!important;
}
.navbar-logo{
  display: flex;
  justify-content: start;
  padding: 1rem 0;
}
.navbar-logo img{
  height: 3rem;
}
.top-navbar-mobile{
  box-shadow: 0px 0px 5px var(--color-black-hover);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5000;
  width: 100vw;
  background: #fffffffa;
}

.top-navbar-mobile .navbar-logo{
  justify-content: start;
}
.top-navbar-mobile .navbar-logo img{
  height: 2.5rem;
}
/*.top-navbar-mobile .navbar{
  width: 100vw;
}*/
.navbar-content ul {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  list-style: none;
  margin: 0;
  align-items: center;
  padding: 0;
  width: 100%;
}
.navbar-content ul li{
  padding: 0 1.5rem;
}
.navbar-content ul li a{
  text-decoration: none;
  color: var(--color-black-hover);
  text-transform: uppercase;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}
.navbar-content ul li a:hover{
  color: var(--black);
}
.navbar-content ul li a.selected{
  color: var(--black);
}
.hidden{
  display: none;
}
.mobile-menu{
  overflow: auto;
}
.mobile-menu ul{
  padding: 0;
  margin: 0;
  height: 100vh;
}
.mobile-menu ul li{
  width: 100%;
  border-top: 1px solid #00000088;
  list-style: none;
  padding: 1.5rem 1rem;
}
.mobile-menu ul li:last-child{
  border-bottom: 1px solid #00000088;
}
.mobile-menu ul li a{
  color: var(--color-black-hover);
  text-transform: uppercase;
  text-decoration: none;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
}
.mobile-menu-hamburger{
 text-align: right;
 text-align: -webkit-right;
}
.mobile-menu-hamburger svg{
 vertical-align: middle;
 color: #000000;
 padding: 6px 0;
}
.bg-hamburger{
  background: #000000!important;
  height: 2px;
  width: 30px;
  display: block;
  margin: 7px 5px;
}
.mobile-menu-hamburger .line {
   transition: all 0.1s ease-in;
}
.mobile-menu-hamburger.open .line:nth-child(1){
 transform: translateY(9px) rotate(45deg);
}
.mobile-menu-hamburger.open .line:nth-child(2){
 opacity: 0;
}
.mobile-menu-hamburger.open .line:nth-child(3){
 transform: translateY(-9px) rotate(-45deg);
}
.mobile-menu ul li a:hover{
  color: var(--black);
}
.mobile-menu ul li a.selected{
  color: var(--black);
}
.navbar-contact,
.navbar-mobile-contact{
  display: flex;
  justify-content: end;
}
.navbar-contact a,
.navbar-mobile-contact a,
.contact-button{
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.navbar-contact a::after,
.navbar-mobile-contact a::after,
.contact-button::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 500%;
  height: 1000%;
  background: var(--secondary-color);
  z-index: -1;
  transform-origin: 0% 0%;
  transform: translateX(calc(20% - 25px)) translateY(10%) rotate(-45deg);
  transform: translateY(10%) translateX(20%) rotate(-45deg);
  transition: transform .3s;
}
.navbar-contact a:hover::after,
.navbar-mobile-contact a:hover::after,
.contact-button:hover::after {
  transform: translateY(10%) translateX(-50px) rotate(-45deg);
}
.top-navbar-mobile .navbar-mobile-content{
  text-align: end;
}
.navbar-contact a:hover,
.navbar-mobile-contact a:hover,
.contact-button:hover{
  color: var(--white);
  transform: scale(1.03);
}
.nav-img{
  width: 100%;
  height: fit-content;
  min-height: 45vh;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  background-attachment: fixed;
  background-position: bottom;
  background-repeat: no-repeat;
}
@media only screen and (max-width: 992px){
  .nav-img{
    height: auto;
    /* margin-top: 88px; */
    /*position: relative;
    top: 88px;*/
  }
  .mobile-no-photos{
    margin-top: 88px;
  }
}
.shadow {
  padding: 5rem 10%;
  background: #00000044;
  width: 100%;
  min-height: inherit;
  display: flex;
  align-items: center;
}
@media only screen and (max-width:992px){
  .shadow {
    padding: 5rem 0%;
/*    background: #00000044;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    display: flex;*/
/*    align-items: center;*/
  }
}
.nav-text img{
  width: 100%;
  margin-bottom: 2rem;
}
.nav-img .nav-text {
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.nav-text h2{
  text-align: center;
}
/*fine  stile navbar*/




/*stile descrizione sito*/
.home-main, .page-main{
  margin: 0!important;
  padding-top: 5rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.page-main div{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media only screen and (max-width: 992px){
  .page-main div{
    padding: 0;
  }
}

/*stile home*/
.slick-slide img{
  width: 100%!important;
}
button.slick-arrow {
  font-size: xx-large;
  background: none;
  border: none;
  z-index: 1;
  color: #ffffff;
}
button.slick-arrow i{
  transition: all 0.3s linear;
  filter: drop-shadow(0px 0px 2px #000000);
  opacity: .3;
}
button.slick-arrow i:hover{
  transform: scale(1.05);
  opacity: 1;
}
.service-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 100px;
}
.service-prev{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 100px;
}
.lb-dataContainer{
  position: absolute!important;
}
.lb-data .lb-close {
display:block;
position:absolute;
right:15px;
top:15px;
/*float: right;*/
z-index: 20;
}
@media only screen and (max-width:992px){
  .lb-data .lb-close{
    opacity: 1!important;
  }
}
.lb-nav .lb-prev,
.lb-nav .lb-next{
  background-size: 40px!important;
}

.lightbox .lb-image{
  border-radius: 0!important;
  border: 1px solid #ffffff!important;
}

.lightboxOverlay{
  position: fixed!important;
  top: 0;
  left: 0;
  width: 100%!important;
  height: 100%!important;
  background: #000000;
/*  z-index: 20!important;*/
}
.lightbox{
  position: fixed!important;
  top: 50%!important;
  left: 50%!important;
  transform: translate(-50%, -50%)!important;
/*  z-index: 35!important;*/
}

.page-main{
  padding: 2.5rem;
  padding-top: 3rem;
}
.page-main h2{
  text-align: center;
}
.page-main p{
/*  text-align: justify;*/
  text-align: center;
}
.introduction-row,
.service-row{
  margin: 0!important;
  padding: 2.5rem 0;
  justify-content: space-around;
}
.location-row{
  padding: 2.5rem 0;
  justify-content: center;
}
@media only screen and (max-width: 992px){
  .introduction-row,
  .service-row,
  .page-main{
    padding: 2rem 0;
  }
  .location-row{
    padding: 0;
  }
}
.introduction-card,
.service-card,
.location-card{
  padding: 0!important;
}
@media only screen and (max-width: 992px){
  .introduction-card,
  .service-card,
  .location-card{
    padding-bottom: 1rem!important;
  }
  .introduction-card:last-child,
  .service-card:last-child,
  .location-card:last-child{
    padding-bottom: 0!important;
  }
}
.location-card div img{
  max-width: 100%;
  width: 100%;
}
.location-card .text-section{
  text-align: -webkit-center;
  padding: 1rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
}
.card{
  margin: .5rem;
/*  min-height: 100%;*/
  overflow: hidden;
  border: 1px solid;
  border-radius: 0!important;
  border-color:  #8587d81f!important;
}
.card .text-section{
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media only screen and (max-width: 992px){
  .card{
    margin: 0 1rem
  }
}
.card img{
  max-width: 100%;
  width: auto;
}
.row-title{
  text-align: center;
}
.row-title.service{
  padding: 2.5rem 2.5rem 0 2.5rem;
}
.row-title.location{
  padding: 2.5rem 2.5rem 0 2.5rem;
}
@media only screen and (max-width: 992px){
  .row-title.service,
  .row-title.location{
    padding: 2rem 0;
  }
  .row-title p,
  .page-main p{
    text-align: left;
  }
}
.introduction-card img
/*.location-card img*/
{
  height: 20rem;
  object-fit: cover;
}
.service-card img{
  height: 300px;
  position: relative;
  transition: all .25s linear;
  object-fit: cover;
}
.service-card .card:hover img{
  transform: scale(1.1);
}
.card.opacity-layer{
  margin: 0.5rem;
  cursor: pointer;
}
.opacity-layer::before{
  content: "";
  position: absolute;
  background: #0000005f;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 15;
}
.opacity-layer::after{
  content: '';
  border: 1px solid;
  padding: 3rem;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 90%;  
  transform: translate(-50%, -50%);
  color: #ffffff;
  z-index: 20;
  transition: all .2s linear;
}
.opacity-layer:hover::after{
  content: '';
  width: 100%;
  height: 100%;
}
.service-text-section{
  position: absolute;
  padding: 1rem;
  align-items: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  z-index: 20;
}
.card h2{
  text-align: center;
  font-size: 1.5rem;
}
.card p{
  text-align: center;
}
.cards-border{
  border: 1px solid #8587d81f;
  background: #8587d80f;
}
@media only screen and (max-width: 992px){
  .cards-border{
    border: none;
    background: transparent;
    padding-bottom: 2rem;
  }
  .text-section .location-title,
  .text-section .location-info,
  .text-section .location-mail,
  .text-section .location-timetables,
  .text-section .location-button{
    margin-top: 2rem;
  }
}
.location-card div{
  padding: 0;
  margin: 0;
}
/*@media only screen and (min-width: 992px){
  .location-card div{
    margin-top: 1rem!important;
  }
}*/
.location-card p,
.location-card h2{
  text-align: center;
  margin-bottom: 0;
}
.location-contact{
  text-align: center;
/*  margin-bottom: 1rem;*/
}
.location-contact .contact-button{
  background-color: transparent;
}
.location-contact,
.service-button,
.service-button a,
.contact-button,
.button-section .send-button{
  padding: .5rem 1.5rem .6rem;
  border-radius: 3px;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  border: none;
  transition: 0.5s;
  width: fit-content;
  position: relative;
  overflow: hidden;
}
.location-contact::after,
.service-button::after,
.service-button a::after,
.contact-button::after,
.button-section .send-button::after{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 500%;
  height: 1000%;
  background: var(--secondary-color);
  z-index: -1;
  transform-origin: 0% 0%;
  transform: translateX(calc(20% - 25px)) translateY(10%) rotate(-45deg);
  transform: translateY(10%) translateX(20%) rotate(-45deg);
  transition: transform .3s;
}
.location-contact:hover::after,
.service-button:hover::after,
.service-button a:hover::after,
.contact-button:hover::after,
.button-section .send-button:hover::after{
  transform: translateY(10%) translateX(-50px) rotate(-45deg);
}
.location-contact:hover,
.service-button:hover,
.service-button a:hover,
.contact-button:hover,
.button-section .send-button:hover{
  color: var(--white);
  transform: scale(1.03);
}
.service-button{
  text-align: center;
}
.location-timetables{
  display: flex;
  justify-content: space-evenly;
}

.contact-us-background{
  background-image: url(/images/contact-photo.jpg);
  width: 100%;
  min-height: 25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.contact-us{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 0!important;
  margin-right: 0!important;
}
.contact-us h2{
  margin-bottom:  2rem;
}
.contact-us .contact-button{
  width: fit-content;
}

.contact-main{
  padding: 2.5rem 0;

}
@media only screen and (max-width:992px){
  .contact-main{
    padding: 2.5rem 0;
  }
}
.contact-main h2{
/*  font-weight: 200;*/
/*  font-size: 2.5rem;*/
  text-align: center;
}
.form-section h2{
/*  font-weight: 200;*/
/*  font-size: 2rem;*/
  text-align: center;
}
.contact-main p{
  text-align: center;
}
.form-section{
  padding: 2.5rem;
}
@media only screen and (max-width: 992px){
  /*.form-section{
    padding: 2.5rem;
  }*/
  .contact-main p{
    padding: 0 3%;
    text-align: left;
  }
  /*.form-section h2{
    font-size: 2rem;
  }*/
}
.form-section input[type="text"],
.form-section textarea{
  border: 1px solid #8587d81f;
  width: 100%;
  text-align: start;
  padding: 0.5rem;
}
/*.contact-form {
  padding-bottom: 5rem;
}*/
@media only screen and (max-width: 992px){
  .contact-form{
    padding: 0;
  }
}
.form-group{
  padding: 1rem 0;
}
.form-section textarea{
  resize: none;
  height: 10rem;
}
textarea:focus,
input:focus{
    outline: none;
}
.informativa-privacy label{
  display: flex;
/*  justify-content: space-between;*/
/*  padding: 2rem 10% 0;*/
}
@media only screen and (max-width:992px){
  .informativa-privacy label{
    padding: 0;
  }
}
.informativa-privacy label p{
  text-align: justify;
}
a[href^="privacy"]{
  color: var(--black);
}
a[href^="privacy"]:hover{
  color: var(--primary-color);
}
.button-section{
  display: flex;
  justify-content: center;
}
.map-location{
  flex-direction: row;
  justify-content: space-around;
  align-items: flex-start;
  width: 100%;
  padding: 30px 0;
  margin: 0!important;
  display: flex;
  flex-wrap: wrap;
}
.map-location h2{
  font-size: 2rem;
/*  font-weight: 200;*/
  text-align: center;
}
.sedi-map{
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  padding-bottom: 3rem;
}
@media only screen and (max-width:992px){
  .sedi-map{
    padding-bottom: 1.5rem;
  }
}
.sedi-map svg{
  margin-bottom: 0.5rem;
}
/*.sedi-map h2{
  font-size: 1.5rem;
  font-weight: 200;
  text-align: center;
}*/
#map{
  margin-bottom: 5rem;
  /* width: 100%;
  height: 650px; */
}
@media only screen and (max-width: 767px) {
  #map{
    height: 650px;
  }  
}
/*fine stile contatti*/

/*stile necrologio*/
.necrologio-main div h2{
  margin: 0!important;
  padding: 5rem 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-repeat: no-repeat;
  background-size: cover;
  justify-content: center;
}
.date svg{
  width: 10px;
}
.necrologio-container{
  padding: 0!important;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  margin-top: 2rem!important;
  justify-content: center;
}
.necrologio-container .text-container {
  padding: 2rem;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
}
.necrologio-container .text-container h2 {
    text-align: center;
/*    font-weight: 200;*/
    font-size: 1.5rem;
}
.necrologio-container .text-container p {
/*    font-weight: 100;*/
    font-size: 1rem;
    text-align: center;
    padding: 0 30%;
    display: flex;
    align-items: baseline;
}
@media only screen and (max-width: 992px){
  .necrologio-container .text-container p {
    padding: 0;
  }
}
.necrologio-container .images-container{
  width: fit-content;
  padding: 5px;
  background: #ffffff;
  box-shadow: 0 0 5px #0000005f;
}
/* .necrologio-container .images-container img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: unset;
  padding: 2rem;
} */
.necrologio-container .images-container img{
  width: 10rem;
  height: auto;
  object-fit: cover;
}
.section-single-necrologio .single-necrologio-image-container {
  -webkit-box-shadow: 0px 24px 40px -22px rgba(0,0,0,0.60);
  -moz-box-shadow: 0px 24px 40px -22px rgba(0,0,0,0.60);
  box-shadow: 0px 24px 40px -22px rgba(0,0,0,0.60);
  line-height: 170px;
  overflow: hidden;
  padding: 0;
  height: 55vh;
}
.section-single-necrologio {
  padding-bottom: 5rem;
}
.section-single-necrologio .single-necrologio-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: unset;
}
.text-necrologio {
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media only screen and (max-width: 992px){
  .text-necrolgio{
    padding-top: 3rem;
  }
}
.text-necrologio-container h2 {
/*    font-weight: 200;*/
    font-size: 2.5rem;
}
.text-necrologio-container .date {
    font-size: 1rem;
/*    font-weight: 100;*/
    display: flex;
    align-items: baseline;
}
.necrologio-button{
  padding: .5rem 1.5rem .6rem;
  border-radius: 3px;
  background: var(--primary-color);
  color: #f1c152;
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  border: none;
  transition: 0.5s;
  width: fit-content;
  position: relative;
  overflow: hidden;
}
.necrologio-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 500%;
  height: 1000%;
  background: var(--secondary-color);
  z-index: -1;
  transform-origin: 0% 0%;
  transform: translateX(calc(20% - 25px)) translateY(10%) rotate(-45deg);
  transform: translateY(10%) translateX(20%) rotate(-45deg);
  transition: transform .3s;
}
.necrologio-button:hover::after {
  transform: translateY(10%) translateX(-80px) rotate(-45deg);
}
.necrologio-button:hover{
  color: var(--white);
  transform: scale(1.03);
}
.single-necrologio-navbar .necrologio-navbar-element {
/*    font-weight: 300;*/
    font-size: 1rem;
    color: var(--color-black-hover);
}
.single-necrologio-navbar .necrologio-navbar-element:hover {
    color: var(--black);
}
.single-necrologio-navbar .necrologio-navbar-element.active {
  color: var(--black)!important;
}
.tab-content .tab-pane {
  padding: 2rem 0;
}
.tab-pane img{
  max-width: 100%;
  width: auto;
}
.tab-content .text {
/*    font-weight: 200;*/
    font-size: 1.5rem;
}
ul.pagination{
  margin: 0;
}
a.page-link,
.sr-only {
    border: none;
    color: #5F5F5F;
    font-weight: 400;
    cursor: pointer;
    text-transform: uppercase;
}
.current-page .page-link{
  color: #000000!important;
  font-weight: 600;
}
.page-link:hover,
.sr-only:hover{
  color: #000000!important;
  background: none!important;
  font-weight: 600;
}
.page-link:focus,
.sr-only:focus{
  background: none!important;
  color: #000000!important;
  box-shadow: none!important;
}
/*fine stile necrologio*/

/*stile pagina dinamica*/

.article-container{
  align-items: center;
}

.content-container{
/*  padding: 2rem 15%;*/
  padding: 2rem 0;
}
@media only screen and (max-width:992px){
  .content-container{
    padding: 2rem 0;
  }
  .page-main.nav-text p{
    text-align: center;
  }
}
.content-container h2{
  text-align: left;
  /* padding-bottom: 1rem; */
}
h2.section-title{
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 50px;
}
h2.section-title::before {
  content: '';
  border-bottom: 30px solid var(--hover-primary-color);
  position: absolute;
  bottom: 0;
  left: 0%;
  width: 50%;
  transform: skew(-30deg)
}
.content-container img{
  width: 100%;
  height: 400px;
  padding-bottom: 24px;
  object-fit: scale-down;
  flex: 1;
}
.content-container p,
.content-container ul li{
  padding-bottom: 1rem;
}
.content-container ul{
  padding: 0!important;
}
.contact-us{
/*  background: var(--secondary-color);*/
/*  margin-bottom: 5rem;*/
  font-family: 'Playfair Display', serif;
/*  flex-direction: row;*/
  text-align: center;
  padding: 3rem;
  border-radius: 10px;
  font-size: 1.5rem;
  color: var(--black);
}
@media only screen and (max-width:992px){
  .contact-us{
    padding: 1.5rem;
  }
}
.contact-us .contact-us-text h4{
  color: var(--primary-color);
}
/* .contact-us .contact-us-button{
  padding: 1rem 0;
}
.contact-us .contact-us-button a{
  padding: 1rem;
  border-radius: 10px;
  background: var(--primary-color);
  color: var(--white);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.contact-us-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 500%;
  height: 1000%;
  background: var(--secondary-color);
  z-index: -1;
  transform-origin: 0% 0%;
  transform: translateX(calc(20% - 25px)) translateY(10%) rotate(-45deg);
  transform: translateY(10%) translateX(20%) rotate(-45deg);
  transition: transform .3s;
}
.contact-us-button:hover::after {
  transform: translateY(10%) translateX(-50px) rotate(-45deg);
} */
/*.fotorama__img {
  width: 100%!important;
  height: 100%!important;
  left: 0!important;
  object-fit: cover;
}

.fotorama--fullscreen .fotorama__img {
  border: 10px solid red!important;
  width: 50%!important;
}*/
/*fine stile pagina dinamica*/

/*footer style*/
footer{
  text-align: center;
}
footer h2{
  font-size: 1.2rem;
}
footer a:hover{
  cursor: pointer;
}

.footer-top{
  position: relative;
}
.footer-top img{
  width: 100%;
  z-index: 0;
}
.footer-section{
  padding: 40px 20%;
  background: #024874;
  color: #fff;
}
.footer-section p{
  margin-bottom: .5rem;
}
.footer-info{
  display: flex;
  justify-content: center;
}
.footer-info a{
  padding: 0 15px;
  border-right: 1px solid #fff;
  text-align: center;
}
.footer-info a:nth-child(2){
  color: #fff;
  text-decoration: none;
  cursor: text;
}
.footer-info a:last-child{
  border: none;
}
@media only screen and (max-width: 992px){
  .footer-info{
    padding-top: 1rem;
  }
}
@media only screen and (max-width: 576px){
  .footer-info a{
    border-right: none;
    padding: 0.5rem 0;
  }
}
.powered-by{
  background: #111111;
  color: var(--white);
  display: flex;
  justify-content: center;
  padding: 10px;
  align-items: center;
}
.powered-by a{
  text-decoration: none;
/*  color: var(--black);*/
}
.powered-by a img{
  height: 50px;
}
.hoverable{
  color: var(--black);
}
.hoverable-w{
  color: var(--white);
}
.hoverable svg{
  fill: var(--black);
  stroke: var(--black);
}
.hoverable:hover svg{
  fill: var(--color-black-hover);
  stroke: var(--color-black-hover);
}
.hoverable-bold{
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
}
.hoverable-bold{
  color: var(--black)!important;
}
.powered-by .hoverable{
  color: var(--white);
}
.hoverable:hover{
  text-decoration: underline;
  cursor: pointer;
  color: var(--color-black-hover);
}
.scroll-top{
  position: fixed;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 50px;
  z-index: 25;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--secondary-color);
  margin: 1rem;
  box-shadow: 0px 0px 5px -3px var(--color-black-hover);
}
/*fine footer style*/
.bg-white{
  background-color: var(--white);
  color: var(--black)!important;
}
.bg-alternative{
  background: #8587d80f;
  border-top: 1px solid #8587d81f;
  border-bottom: 1px solid #8587d81f;

}
/* .container-fluid{
  padding: 0!important;
  margin: 0!important;
} */


.icona_wa {
  margin: 0 12px;
  padding: 0;
  position: fixed;
  z-index: 9999;
  bottom: 70px;
  top: auto;
  height: 60px;
  width: 60px;
  border-radius: 29px;
  box-shadow: rgba(0,0,0,.15) 0 4px 12px 0;
  background: 0 0;
  display: block;
  right: 15px;
}
@media only screen and (max-width:767px){
  .icona_wa {
      margin: 0 12px;
      padding: 0;
      position: fixed;
      z-index: 9999;
      bottom: 15px;
      top: auto;
      height: 40px;
      width: 40px;
      border-radius: 29px;
      box-shadow: rgba(0,0,0,.15) 0 4px 12px 0;
      background: 0 0;
      display: block;
      right: 0px;
  }
}

.col-left {
  flex: 1;
}

.col-right {
  flex: 1;
}

/* TITOLI */
.lutti-h2 {
  font-size: 26px;
  margin-bottom: 30px;
  color: #5d6c7a;
}

/* =====================
 ACCORDION
===================== */
.accordion {
  min-height: 1100px;
}

.accordion-item {
  border: 1px solid #eee;
  margin-bottom: 10px;
}

.accordion-header {
  padding: 15px 20px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  color: #777;
}

.accordion-header.active {
  color: #caa11c;
}

.chevron {
  transition: transform 0.3s ease;
}

.accordion-header.active .chevron {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 20px;
  background: #fafafa;
  line-height: 1.7;
}
.service-image-box {
  position: relative;
  top: 47px;
  width: 100%;
  height: 800px;
  border-radius: 6px;
  background: transparent;
  
  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.service-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  transition: opacity 0.4s ease;
}
/* =====================
 RESPONSIVE
===================== */

@media (max-width: 900px) {

  .row {
      flex-direction: column;
      gap: 40px;
  }

}

/* CONTENITORE PRINCIPALE */
.lutti-box {
  width: 350px;
  background: #ffffff;
  border: 1px solid #ddd;
  margin: 43px auto;
}

/* TABS */
.lutti-tabs {
  display: flex;
  border-bottom: 1px solid #ddd;
}

.lutti-tab {
  flex: 1;
  text-align: center;
  padding: 12px;
  cursor: pointer;
  background: #f0f0f0;
  font-weight: bold;
  font-size: 14px;
}

.lutti-tab.active {
  background: #e6eef2;
  color: #333;
}

/* LISTA */
.lutti-list {
  padding: 10px;
}

.lutto-item {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.lutto-item:last-child {
  border-bottom: none;
}

/* FOTO */
.lutto-foto {
  margin-right: 10px;
}

.lutto-foto img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 4px;
}

/* TESTO */
.lutto-info h4 {
text-align: left !important;
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  color: #333;
}

.lutto-info p {
  margin: 3px 0;
  font-size: 13px;
  color: #666;
}

/* FOOTER */
.lutti-footer {
  background: #e6eef2;
  text-align: center;
  padding: 12px;
}

.lutti-footer a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 14px;
}

.lutti-footer a:hover {
  text-decoration: underline;
}

.lutto-link {
text-decoration: none;
color: inherit;
display: block;
}

.lutto-link:hover .lutto-item {
background: #f2f6f9;
cursor: pointer;
}
.lutto-item {
transition: 0.2s ease;
}

.lutto-link:hover .lutto-item {
box-shadow: 0 2px 8px rgba(0,0,0,0.15);
transform: translateY(-2px);
}

.page-hero {
  background: linear-gradient(135deg, #024874, #1a6f86);
  padding: 70px 0 50px;
  color: #fff;
  position: relative;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: rgba(255,255,255,0.6);
}

.page-title {
  font-size: 38px;
  font-weight: 300;
  margin-top: 15px;
}

.breadcrumbs {
  font-size: 14px;
  opacity: 0.9;
  position: relative;
  top: 30px;
}

.breadcrumbs a {
  color: #ffffff;
  text-decoration: none;
  opacity: 0.8;
}

.breadcrumbs a:hover {
  opacity: 1;
  text-decoration: underline;
}

.breadcrumbs span {
  margin: 0 6px;
}

.breadcrumbs .current {
  opacity: 1;
  font-weight: 500;
}

.btn-white {
  background-color: #fff; /* Sfondo bianco */
  color: #024874; /* Colore del testo blu del logo */
  font-size: 16px;
  padding: 12px 24px;
  border: 2px solid #024874; /* Bordo blu per un look elegante */
  border-radius: 30px; /* Bordo arrotondato */
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-white:hover {
  background-color: #024874; /* Blu del logo al passaggio del mouse */
  color: #fff; /* Testo bianco al passaggio del mouse */
  transform: translateY(-2px); /* Leggera animazione al hover */
}

.btn-white:focus {
  outline: none; /* Rimuove il contorno quando il pulsante è cliccato */
}

.btn-blu {
  background-color: #024874; /* Sfondo bianco */
  color: #fff; /* Colore del testo blu del logo */
  font-size: 16px;
  padding: 12px 24px;
  border: 2px solid #fff; /* Bordo blu per un look elegante */
  border-radius: 30px; /* Bordo arrotondato */
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-blu:hover {
  background-color: #fff; /* Blu del logo al passaggio del mouse */
  color: #024874; /* Testo bianco al passaggio del mouse */
  transform: translateY(-2px); /* Leggera animazione al hover */
}

.btn-blu:focus {
  outline: none; /* Rimuove il contorno quando il pulsante è cliccato */
}
.necrologi-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-top: 30px;
}

.necrologio-card {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 30px;
  transition: transform 0.3s ease;
  flex-direction: row;
  gap: 30px; /* Aumentato lo spazio tra immagine e testo */
  font-size: 16px; /* Testo più grande */
}

.necrologio-card:hover {
  transform: translateY(-5px);
}

.necrologio-img {
  width: auto;  /* Dimensione fissa per le immagini */
  height: 250px; /* Le immagini rimangono quadrate */
  overflow: hidden;
  position: relative;
  border: 10px solid #fff; /* Cornice bianca (stile Polaroid) */
  border-radius: 10px; /* Bordi arrotondati */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Ombra leggera */
}

.necrologio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.necrologio-info {
  flex: 1;
  padding-left: 30px;
  padding-right: 40px;
}

.necrologio-info h3 {
text-align: left;
  font-size: 24px !important ; /* Titolo più grande */
  font-weight: 600;
  color: #024874; /* Blu logo */
  margin-bottom: 10px;
}

.necrologio-info .data {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
}

.necrologio-info .descrizione {
  font-size: 16px;
  color: #333;
  margin-bottom: 20px;
}

.btn-necrologio {
  padding: 10px 20px;
  background-color: #024874; /* Blu */
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  border-radius: 30px;
  transition: background-color 0.3s ease;
}

.btn-necrologio:hover {
  background-color: #155d70; /* Blu più scuro */
}