/*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;
}

/* GENERAL */
html {
  scroll-behavior: smooth;
}

.single-necrologio a:hover {color:inherit;}

@media (min-width: 1200px) {
  .container {
    max-width: 1024px;
  }
}

@media (max-width: 575px) {
  .container {
    max-width: calc(100% - 3rem);
  }
}
.necrologi-single * {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;    
    box-sizing: border-box;         
}
.necro-single h1,
.necro-single h2,
.necro-single h3,
.necro-single h4,
.necro-single h5,
.necro-single h6 {
  font: 1rem/1.5 var(--necrologi_testo_font_family, Arial, sans-serif);
  color: var(--necrologi_color_testo);
}

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

.necro-single .info-defunto h1 {
  line-height: 1.2;
}

.necro-single,
.necro-single a,
.necro-single button {
  font: 1rem/1.5 var(--necrologi_testo_font_family, Arial, sans-serif);
  color: var(--necrologi_color_testo);
  line-height: 1.6em;
  text-decoration: none;
}

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

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

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

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

.necro-single .title-defunto h4 {
  font-size: 22px;
}

.necro-single .title-defunto h6 {
  font-weight: 500;
  font-size: 18px;
}

.btn-primary[href="#scrivi"] {
  background: #cbcbcb;
}

.btn-primary[href="#leggi"] {
  background: #b4b4b4;
}

.wrap-btn-header {
  position: absolute;
  bottom: 0;
  right: 0;
}

@media (max-width:576px) {
  .wrap-btn-header {
    position: initial;
    max-width: 260px;
    margin: 0 auto;
  }
}

/*WRAP*/
.wrap-necrologio {
  background: #e5e5e5;
}

.image-def {
  border-radius: 20px;
  object-fit: cover;
  width: 244px;
  height: 350px;
  z-index: 1;
  position: relative;
}
.image-def.fallback {
  background: #d2d2d2;
  padding: 30px;
  align-items: center;
  display: flex;
}
.image-def.fallback img {
    filter: grayscale(100%);
    opacity:20%;
}

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

.image-defunto {
  margin: 0 auto;
  position: relative;
}
.image-defunto:after {
 content:"";   
  background: url('images/frontend/ombra_defunto.png');
  display: block;
  width: 90%;
  height: 15px;
  background-size: cover;
  top: -6px;
  z-index: 0;
  position: relative;
  margin: 0 auto;
}

#manifesto-collapse {
  display: none;
}

.btn-w-icon {
  background: #dcdbdb;
  border-radius: 20px;
  transition: 0.3s all;
}

.btn-w-icon:hover {
  background: #e5e5e5;
  box-shadow: 0 2px 4px 2px rgba(0, 0, 0, 0.15);
}

.btn-w-icon img {
    height:35px;   
}
.btn-w-icon img:last-child {
    height:30px;   
}

/* CORDOGLIO*/
.cordoglio {
  background: #dcdbdb;
}

.cordoglio .title-special,
.cordoglio-list-wrapper .title-special {
  font: 1rem/1.2 var(--necrologi_font_family, Arial, sans-serif);
  color: var(--necrologi_color_title);
}

.cordoglio .title-special,
.cordoglio-list-wrapper .title-special {
  font-size: 2.5rem;
}

.cordoglio-list-wrapper {
  background: #e7e7e7;
}

.cordoglio-list ul {
  list-style: none;
  padding-left: 0;
}

.data-cordoglio {
  text-transform: lowercase;
  position: relative;
  width: 180px;
  margin-bottom: -10px;
}

.data-cordoglio::after {
  content: "";
  background: url('images/frontend/ribbon_titolo_cordoglio.svg');
  background-size: cover;
  width: 180px;
  height: 37px;
  display: block;
  position: absolute;
  z-index: 0;
  top: 0;
}

.data-cordoglio span {
  z-index: 1;
  position: relative;
  width: 100%;
  text-align: center;
  display: block;
  font-weight: bold;
}

.text-cordoglio {
  margin: 0 13px;
  padding-left: 20px;
}


/* FORM */
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: 6px;
  border: 0;
  padding: .15rem 0.5rem;
  border-style: outset;
  background: #f2f2f4;
}

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

input[type="text"],
input[type="password"],
input[type="search"],
input[type="email"],
input[type="url"],
input[type="tel"],
textarea {
  display: block;
  width: calc(100% - 1.75rem);
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

form label, .label,
.necro-single .w-privacy {
  font-size: 14px;
  font-style: italic;
  line-height: 1.5;
}

.necro-single .w-privacy {
  text-decoration: underline;
}

.alert {
  position: relative;
  padding: .75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-top-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-left-color: transparent;
  border-radius: .25rem;
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}
#messaggio-cordoglio a[data-target="#esempi-mess"] {
  cursor: pointer;
}

#esempi-mess,#esempi-mess-anni {
  margin: 20px 0 20px;
  display: none;
}

#esempi-mess ul,#esempi-mess-anni ul {
  padding-left: 13px;
  font-style: italic;
}

#esempi-mess ul li, #esempi-mess-anni ul li {
  margin-bottom: 7px;
}
.single-necrologio #esempi-mess-anni, .single-anniversari #esempi-mess {display:none !important;}

/**
* SAN SIRO
**/
.necro-single.sansiro .necrologio-wrap-header {
  background: url('images/frontend/necro_header_sansiro.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center bottom;
}
.necro-single.sansiro .wrap-necrologio {
  background: #efeeec;
}
.necro-single.sansiro .btn-primary {
  background: #757471;
}
.necro-single.sansiro .btn-primary:hover {
  background: #aaa;
}
.necro-single.sansiro .btn-primary[href="#scrivi"] {
  background: #D0CDC3;
}
.necro-single.sansiro .btn-primary[href="#leggi"] {
  background: #AEA69B;
}
.necro-single.sansiro .btn-w-icon, .necro-single.sansiro .cordoglio {
  background: #e6e5e0;
}