/*DEFUALT FONTS*/
@font-face {
  font-family: "Pinyon Script";
  src: url('fonts/PinyonScript-Regular.ttf');
}

@font-face {
  font-family: "Playfair Display";
  src: url('fonts/PlayfairDisplay-Regular.ttf');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Playfair Display";
  src: url('fonts/PlayfairDisplay-Italic.ttf');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Playfair Display";
  src: url('fonts/PlayfairDisplay-Italic.ttf');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Playfair Display";
  src: url('fonts/PlayfairDisplay-Medium.ttf');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Playfair Display";
  src: url('fonts/PlayfairDisplay-MediumItalic.ttf');
  font-weight: 500;
  font-style: italic;
}

@font-face {
  font-family: "Playfair Display";
  src: url('fonts/PlayfairDisplay-Bold.ttf');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Playfair Display";
  src: url('fonts/PlayfairDisplay-BoldItalic.ttf');
  font-weight: bold;
  font-style: italic;
}

.mb-8 {
  margin-bottom: 80px;
}

.necrologi-wrap a:hover {color:inherit;}

.necrologi-wrap * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;    
    box-sizing: border-box;         
}
.necrologi-wrap .title-special {
  font: 1rem/1.2 var(--necrologi_font_family, Arial, sans-serif);
  color: var(--necrologi_color_title);
}

.necrologi-wrap .title-special+p,
.necrologi-wrap .search_bar label {
  color: var(--necrologi_color_title);
  line-height: 1.5;
}

.necrologi-wrap .title-special {
  font-size: 3rem;
  line-height: 1.2;
}

.necrologi-wrap {
  font: 1rem/1.5 var(--necrologi_testo_font_family, Arial, sans-serif);
}

body .style-regular {
  font-style: normal;
}

.form-search label,
.cordoglio label {
  font-style: italic;
  margin-bottom: 7px;
  line-height: 1.6em;
  text-align: left;
  display: block;
}

input[type="date"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="url"],
select,
textarea {
  border-radius: 0px;
  border: 0;
  padding: .15rem 0.5rem;
  border-style: outset;
  background: #f2f2f4;
}

[type="checkbox"],
[type="radio"] {
  margin-right: 7px;
}

textarea {
  width: 100%;
}

input[type="text"],
input[type="password"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="tel"] {
  width: 100%;
}

.list-unstyled {
  list-style-type: none;
  display: flex;
  padding: 0;
  flex-direction:column;
}

.change-grid img {
  position: relative;
  top: 5px;
  margin-right: 5px;
}

.change-grid a {
  color: var(--necrologi_color_title);
  font-size: 13px;
}

/*CONTENT*/
.wrap-necrologio {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
}

/*HEADER*/
.necrologi-wrap-header {
  background: url('images/frontend/necro_header.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;
}

.necrologi-wrap-header>div {
  max-width: 800px;
}

.search_bar {
  max-width: 540px;
  margin: 0 auto;
}

.search_bar input {
  border-radius: 4px;
  background: #fff;
  padding: 7px 10px;
  font: 13px/1.2 var(--necrologi_testo_font_family, Arial, sans-serif);
}


/*NECROLOGI LIST*/
.necrologi-wrap .necrologi-wrap-content {
  background: #e5e5e5;
}

@media (min-width: 1200px) {
    .container {
      max-width: 1024px;
    }
}
@media (max-width: 575px) {
    .container {
      max-width: calc(100% - 3rem);
    }
}

.necrologi-wrap .image-defunto {
  max-width: 300px;
  background: #dcdbdb;
  padding: 30px;
  border-radius: 20px;
  margin: 0 auto;
  position: relative;
}

.necrologi-wrap .image-defunto a {
  display: block;
}

.necrologi-wrap .image-defunto .image-def {
  object-fit: cover;
  width: 190px;
  height: 272px;
  border-radius: 20px;
}

.necrologi-wrap .fallback {
  width: 190px;
  height: 272px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.necrologi-wrap .manifesto .fallback {
  width: 240px;
  height: 175px;
}
.necrologi-wrap .fallback img{
  max-width: 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:grayscale(100%);
  opacity:20%;
}
.necrologi-wrap .necrologio-single-content h4,
.necrologi-wrap .necrologio-single-content div {
  color: var(--necrologi_color_title);
}

.necrologi-wrap .necrologio-single-content h4 {
  margin: 10px 0 5px;
  line-height: 1.2;
}

.necrologi-wrap .necrologio-single-content div {
  margin-bottom: 10px;
  font-weight: 500;
  font-style: italic;
}

.necrologi-wrap .image-defunto .greca-image {
  margin: 5px 0;
}

.necrologi-wrap h5 {
  margin: 15px 0px;
  color: var(--necrologi_color_title);
  text-transform: initial;
  font: 1rem/1.5 var(--necrologi_testo_font_family, Arial, sans-serif);
}

.necrologi-wrap .greca {
  margin: 15px 0px;
}

.necrologi-wrap .necrologio-single-content .btn-primary {
  background: #848484;
  color: #fff;
  border-radius: 20px;
  margin: 10px 0;
  display: inline-block;
  padding: 3px 20px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.3s all;
}

.necrologio-single-content .btn-primary:hover {
  background: #666;
  color:#fff;
}

/*Manifesto Grid*/
.necrologi-wrap .image-defunto.manifesto .corner-image {
  max-width: 100%;
  width: 100%;
}

.necrologi-wrap .image-defunto.manifesto .image-def {
  width: 100%;
  height: auto;
  border-radius: 0;
}

.necrologi-wrap .manifesto .necrologio-single-content h4 {
  margin-bottom: 0px;
}

@media (max-width:1024px) {
  .necrologi-wrap .manifesto .necrologio-single-content h4 {
    font-size: 21px;
    line-height: 1.2;
  }

  .necrologi-wrap .manifesto .necrologio-single-content>div {
    font-size: 15px;
    line-height: 1.2;
    margin-bottom: 5px;
  }
}

@media (min-width:480px) and (max-width:891px) {
  .necrologi-wrap .manifesto .necrologio-single-content h4 {
    font-size: 18px;
    line-height: 1.1;
  }

  .necrologi-wrap .manifesto .necrologio-single-content>div {
    font-size: 13px;
    line-height: 1.1;
    margin-bottom: 0;
  }
}

@media(max-width:767px) {
  .necrologi-wrap .manifesto {
    max-width: 450px;
    margin: 0 auto;
  }
}

@media (max-width:479px) {

  .necrologi-wrap .manifesto .necrologio-single-content h4 {
    font-size: 18px;
    line-height: 1.1;
  }

  .necrologi-wrap .manifesto .necrologio-single-content>div {
    font-size: 13px;
    line-height: 1.1;
    margin-bottom: 0;
  }

}

.anni-ribbon {
  position: absolute;
  right: -4px;
  top: -4px;
  z-index: 10;
}

.necrologi-wrap a {
  text-decoration: none;
}

.necrologi-wrap h4 {
  color: var(--necrologi_color_title);
}

.necrologi-wrap span, .necrologi-wrap .page-counter * {
  color: var(--necrologi_color_testo);
}

.no-necrologi>div {
  padding: 40px;
  background: #f2f2f2;
  border: 1px solid #d2d3d4;
}

.page-counter * {
  font: 16px/1.2 var(--necrologi_testo_font_family, Arial, sans-serif);
  color: var(--necrologi_color_testo);
  font-style: normal;
}

.page-counter .current {
  background: #848484;
  width: 35px;
  height: 35px;
  text-align: center;
  border-radius: 50%;
  display: inline-block;
  color: #fff;
  line-height: 1.8;
}

.search_result {
  display: none;
}

/*MOD Varie bug elementor*/
.necro-single .info-defunto h4,
#submitpost,
.necro-single h6 {
  text-transform: initial;
}

.necrologi-wrap h4 {
  font: 1.5rem/1.5 var(--necrologi_testo_font_family, Arial, sans-serif);
  text-transform: initial;
}

/**
* SAN SIRO
**/
.necrologi-wrap.sansiro .necrologi-wrap-header {
  background: url('images/frontend/necro_header_sansiro.jpg');
background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;  
}
.necrologi-wrap.sansiro .necrologi-wrap-content {
  background: #efeeec;
}
.necrologi-wrap.sansiro .image-defunto {
  background: #e6e5e0;
}
.necrologi-wrap.sansiro .necrologio-single-content .btn-primary {
  background: #757471;
}
.necrologi-wrap.sansiro .necrologio-single-content .btn-primary:hover {
  background: #aaa;
}