/* ==== LAYOUT: GENERAL ==== */

.grid-container {
	max-width: 85rem !important;
}

.ncr-margin-bottom {
	margin-bottom: 30px;
}

.ncr-relative{
	position: relative;
}

.ncr-absolute{
	position: absolute;
}

.align-center {
	text-align: center;
}

.text-align-right {
	text-align: right;	
}

.barra-mobile-fissa {
	display: none !important;
}

.box-indirizzo {
	width: 100%;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

.show-desktop {
	display: block;
}

.custom-logo {
	width: 165px !important;
}

.home #ncr-header {
  background-color: #fafafa;
  padding-bottom: 320px;
  position: relative;
}

.home #ncr-header .ncr-anim {
  width: 350px;
  height: 350px;
  position: absolute;
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  max-width: 95%;
}

#ncr-header .icon {
	margin-left: 18px;
}

.ncr-top-bar{
	padding-top: 15px;
	padding-bottom: 15px;
}

.grid-center {
	margin: 0 auto !important;
}

.ncr-grid-full {
	width: 100% !important;
}

.ncr-grid-slide {
	padding-top: 5%;
	padding-bottom: 5%;
}

body,
p,
a,
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Bebas Neue', sans-serif !important;
}

body,
p,
a {
	font-family: 'PT Sans', sans-serif !important;
}

.ncr-divider-80 {
  display: block;   /* assicura che sia un blocco */
  width: 100%;      /* visibile a tutta larghezza */
  height: 80px;     /* l’altezza desiderata */
}

.icon:hover {
    color: #a90b2b;
}

/*TIPOGRAFIA*/

.breadcrumb-back, .breadcrumb-back:hover{
	color: #a81829;
}

.ncr-text-left {
	text-align: left !important;
}

/*HOME*/

.ncr-main-home {
	padding-bottom: 100px;
}

.home-block {
	padding: 25px !important;
	text-align: center;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
	border: 1px solid #aaa;
}

.btn-primary {
    color: #fff;
    background-color: #A90B2B;
    border: 2px solid #A90B2B;
    text-decoration: none;
    font-size: 15px;
    text-transform: uppercase;
    display: inline-block;
    width: auto;
    padding: 10px 20px;
	font-family: 'PT Sans', sans-serif !important;
	font-weight: 600 !important;
}

.btn-primary:hover {
    color: #fff;
    background-color: #8e0823;
}

.search-btn {
	color: #fff;
    background-color: #A90B2B;
    border: 2px solid #A90B2B;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    display: inline-block;
    width: auto;
    padding: 5px 10px;
	height: 40px;
	cursor: pointer;
	font-family: 'PT Sans', sans-serif !important;
	font-weight: 600 !important;
}

.search-btn:hover {
    color: #fff;
    background-color: #8e0823;
}

.search-box {
    display: flex;
    align-items: center; /* allinea input e bottone verticalmente */
    width: 100%;
}

.search-input {
	margin-top: auto;
    margin-bottom: auto;
	flex: 1;
	padding: 0.75rem 1rem;
	border: none;
	outline: none;
	display: inline-block !important;
	width: 80% !important;
	height: 40px !important;
	margin-bottom: 0 !important;
	margin-right: 5px !important;
}

/*ultimi ricordi*/

.ultimi-ricordi {
	flex: 1;
	width: 100%;
	overflow-y: scroll;
	padding-right: 10px; /* per non coprire il contenuto dalla scrollbar */
	scrollbar-width: thin; /* Firefox */
	scrollbar-color: #ccc transparent;
	margin-bottom: 30px;
}

.ultimi-ricordi__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 1rem; /* spazio tra i commenti */
}

.ultimi-ricordi__item {
    background: #fff;
    padding-bottom: 1rem;
	margin-bottom: 1rem;
    border-bottom: 1px solid #f4f4f4;
    /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); */
    transition: transform 0.2s 
ease, box-shadow 0.2s 
ease;
}

.ultimi-ricordi__meta {
	font-size: 0.85rem;
	color: #555;
	margin-bottom: 0.5rem;
	text-align: left;
}

.ultimi-ricordi__meta strong.ultimi-ricordi__autore {
	color: #000;
	font-weight: 600;
}

.ultimi-ricordi__meta a.ultimi-ricordi__post {
	color: #a90b2b;
	text-decoration: none;
}

.ultimi-ricordi__meta a.ultimi-ricordi__post:hover {
	text-decoration: underline;
}

.ultimi-ricordi__meta time {
	color: #999;
	margin-left: 0.3rem;
}

.ultimi-ricordi__messaggio {
    font-size: 15px;
    line-height: 1.4;
    color: #333;
    padding: 15px;
    background: #fafafa;
    word-wrap: break-word;
    text-align: left;
}

@media (max-width: 480px) {
	.ultimi-ricordi__item {
		padding: 0.75rem;
	}
	.ultimi-ricordi__messaggio {
		padding: 0.4rem;
	}
}

.ncr-ultimi-commenti {
	position: relative;
	max-height: 500px; /* o l’altezza che vuoi */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
}

/* scrollbar personalizzata (Chrome, Edge, Safari) */
.ultimi-ricordi::-webkit-scrollbar {
	width: 8px;
}
.ultimi-ricordi::-webkit-scrollbar-track {
	background: transparent;
}
.ultimi-ricordi::-webkit-scrollbar-thumb {
	background-color: #ccc;
	border-radius: 4px;
}



/* SINGLE */

.profilo-defunto h1 {
	margin-bottom: 20px !important;
	font-weight: 400!important;
}

.profilo-defunto .ncr-icone-box {
    margin-bottom: 30px;
}

.icon-right.text-right {
  display: flex;
  justify-content: flex-end; /* allinea tutto a destra */
  align-items: center;       /* centra verticalmente icona e testo */
  gap: 8px;                  /* spazio tra icona e testo */
}

.icon-right.text-right .icon-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}

span.nome, span.cognome {
    display: block;
	line-height: 1;
}

p.date-line span {
    font-size: 24px;
}

.profilo-defunto h1 {
    font-size: 70px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: left;
}

section.box-testi-omaggio.box-lapide {
    text-align: left;
}

.ncr-box-commento {
	background-color: #f2f4f7 !important;
	min-height: 285px;
}

.ncr-create-pdf.btn-leggi-tutti {
	position: relative;
    left: unset;
    top: unset;
    transform: none !important;
    bottom: unset !important;
    margin-top: 30px;
    display: inline-block;
    width: auto;
    margin-bottom: 12px;
	cursor: pointer;
}

.ncr-create-pdf svg {
  vertical-align: middle;
  width: 20px;
  height: 20px;
  margin-right: 4px;
}

.ncr-create-pdf + p {
	font-size: 12px;
	font-style: italic;
}

.btn-leggi-tutti {
    /* left: 0 !important; */
    bottom: 20px !important;
    width: 90%;
    margin: 0 auto;
    transform: translate(-50%, 0);
}

.box-luogo {
    min-height: 230px !important;
}

.mappa-google {
	margin-bottom: 65px !important; 
}

.btn-leggi-tutti.btn-mappa-toggle:focus {
	color: #fff;
}


/* ARCHIVE */

.card-archive-name {
    bottom: 0;
    background-color: #ac152ddb;
    width: 100%;
    text-align: center;
    padding: 15px;
    color: #fff;
    font-weight: 700;
	font-size: 18px;
}
.necrologia-card {
	border-radius: 0 !important;
}

/* MANDA UN TELEGRAMMA*/

.manda-un-telegramma-container {
    padding: 30px 20px 100px;
    max-width: 500px !important;
}

.step-contenuto {
    margin-top: 60px;
}

.step-contenuto form label {
 	display: block;
 	margin-bottom: 12px;
 	font-weight: 500;
	text-align: left;
}
.step-contenuto input {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border-radius: 0;
    border: 1px solid #ccc;
}
.barra-navigazione-telegramma {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #ccc;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  box-shadow: 0 -2px 10px rgb(0 0 0 / 10%);
  z-index: 999;
}
.barra-navigazione-telegramma .btn-indietro,
.barra-navigazione-telegramma .btn-avanti {
  background-color: #a81829;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.riepilogo-step-precedente {
  background: #fff3e0;
  padding: 10px 15px;
  border-left: 4px solid #ff9800;
  margin-bottom: 20px;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.matita-edit {
  text-decoration: none;
  font-size: 16px;
  color: #444;
  margin-left: 10px;
}
.matita-edit:hover {
  color: #000;
}
.riepilogo-step-precedente {
  margin-bottom: 10px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 5px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.riepilogo-step-precedente .matita-edit {
  margin-left: 10px;
  text-decoration: none;
  font-size: 18px;
  color: #0073aa;
}
.riepilogo-step-precedente .matita-edit:hover {
  color: #005177;
}
.cestino-delete {
  margin-left: 8px;
  color: darkred;
  text-decoration: none;
  font-size: 16px;
}
.cestino-delete:hover {
  color: red;
}

.barra-progressiva-step {
  display: flex;
  justify-content: center;
  margin: 20px 0;
  gap: 10px;
}
.step-bullet {
  width: 30px;
  height: 30px;
  background-color: #e0e0e0;
  border-radius: 50%;
  text-align: center;
  line-height: 30px;
  font-weight: bold;
  color: #555;
  transition: all 0.3s ease;
}
.step-bullet.attivo {
  background-color: #a81829;
  color: #fff;
}
.step-bullet.completato {
  background-color: #4caf50;
  color: #fff;
}

/* INVIA UN PENSIERO */


.form-ricordo-container form input[type="checkbox"] {
    width: auto;
}

.invia-un-pensiero-container {
  padding: 60px 20px;
  text-align: center;
}

.invia-un-pensiero-container h1 {
  font-size: 2.2rem;
  color: #5e5b57;
  margin-bottom: 10px;
}

.ncr-info-product {
    margin-top: 20px;
}

.invia-un-pensiero-container .sottotitolo {
  font-size: 1.1rem;
  color: #7b766f;
  margin-bottom: 40px;
}

.scelte-pensiero {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.scelta-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* background-color: #fffdf9; */
    border: 1px solid #aaa;
    border-radius: 12px;
    padding: 30px 40px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, background-color 0.3s;
    font-size: 1.2rem;
    width: 220px;
}

.scelta-box span {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.scelta-box:hover {
  /*background-color: #e7e1d6;*/
  transform: translateY(-3px);
}

main.manda-un-pensiero-container {
  padding: 40px 20px 100px;
}
main h1 {
  text-align: center;
  color: #ad172c;
  color: #ad172c;
  margin-bottom: 82px;
  font-size: 71px;
}
.ncr-home-title {
  margin-top: -143px;
  position: relative;
}
.grid-prodotti {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.card-prodotto {
    background: #fff;
    border: 1px solid #aaa;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
	box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
}

.card-prodotto .immagine img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.card-prodotto h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 6px;
}
.card-prodotto .prezzo {
  font-weight: bold;
  color: #5e5b57;
  margin-bottom: 10px;
}
.quantita-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
}
.quantita-wrapper input[type="number"] {
    width: 50px;
    text-align: center;
    border: 1px solid #aaa;
    border-radius: 9px;
    font-size: 1rem;
    margin: 0;
    height: 35px;
}
.quantita-wrapper button {
    width: 30px;
    height: 30px;
    border-radius: 20px;
    font-size: 18px;
    background: #aa172b;
    color: #fff;
    border: none;
    cursor: pointer;
}
.quantita-wrapper button:hover {
  	background: #951425;
}

.barra-bottom {
  	position: fixed;
  	bottom: 0;
  	left: 0;
  	right: 0;
  	background: #fff;
  	padding: 15px 20px;
  	border-top: 1px solid #ccc;
  	text-align: center;
  	z-index: 999;
	box-shadow: 0 -2px 10px rgb(0 0 0 / 10%);
}
.btn-checkout {
    background-color: #fff;
	border: 2px solid #aa172b;
    color: #aa172b;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
}
.btn-checkout:hover {
	background-color: #aa172b;
	color: #fff;
}


/* BARRA PENSIERO */

.manda-pensiero-fissa {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: #A90B2B;
  padding: 10px 16px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  text-align: center;
  z-index: 999;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
}

.manda-pensiero-fissa .manda-pensiero-btn {
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: inline-block;
  flex: 1;
  text-align: center;
  padding: 11px 16px;
  line-height: 1.2;
}

.manda-pensiero-fissa .manda-pensiero-btn--outline {
  background-color: transparent;
  border: 2px solid rgba(255,255,255,0.85);
  border-radius: 6px;
  color: #fff;
  padding: 11px 16px;
}

.barra-mobile-fissa {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  z-index: 998;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.barra-mobile-fissa .nav-item {
  text-align: center;
  flex-grow: 1;
  font-size: 12px;
  color: #333;
  text-decoration: none;
}

.barra-mobile-fissa .nav-item img {
  width: 24px;
  height: 24px;
  margin-bottom: 2px;
}

.barra-mobile-fissa .nav-item span {
  display: block;
  font-size: 11px;
}

.manda-pensiero-desktop {
  width: 100%;
  padding: 18px 0;
  z-index: 999;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
}

.manda-pensiero-desktop .manda-pensiero-btn {
  color: #fff;
  background-color: #A90B2B;
  border: 2px solid #A90B2B;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  padding: 15px 50px;
  transition: background-color .2s ease, color .2s ease;
}

.manda-pensiero-desktop .manda-pensiero-btn:hover {
  color: #fff;
  background-color: #8e0823;
}

.manda-pensiero-desktop .manda-pensiero-btn--outline {
  background-color: transparent;
  border-color: #A90B2B;
  color: #A90B2B;
}

.manda-pensiero-desktop .manda-pensiero-btn--outline:hover {
  background-color: #A90B2B;
  color: #fff;
}

/* SINGLE NECROLOGIA */

.ncr-contenuto-necrologio {
	margin: 28px auto;
	line-height: 1.7;
	font-size: 16px;
	color: #333;
}

.ncr-contenuto-necrologio p {
	margin: 0 0 14px;
}

.ncr-contenuto-necrologio img {
	max-width: 100%;
	height: auto;
}

.separatore-onda {
	line-height: 0;
	position: relative;
	margin-top: 60px;
}

.separatore-onda svg {
	display: block;
	width: 100%;
	height: 100px;
}
.mappa-wrapper {
  width: 100% !important;
  max-width: 600px;
  margin: 0 auto;
  padding: 12px 0;
}

@media screen and (max-width: 480px) {
  .mappa-wrapper iframe {
    width: 280px !important;
    height: 200px;
  }
}


.mappa-wrapper {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 12px 0;
}

.mappa-wrapper iframe {
  width: 100% !important;
  height: 250px !important;
  border: 0;
}

@media screen and (max-width: 480px) {
  .mappa-wrapper iframe {
    width: 280px !important;
    height: 200px !important;
  }
}

/* CONTACT FORM */


/* caricamento file */

input[type="file"]{
	height: auto !important;
	border: none !important;
}

input[type="file"]{
	width: 100%;
}

input[type="file"]::-webkit-file-upload-button {
	display: none !important;
}

input[type="file"]::before {
	content: 'Scegli file' !important;
	border: 2px solid #ac182b !important;
	background-color: transparent !important;
	padding: 5px 15px !important;
	border-radius: 0 !important;
	color: #ac182b !important;
	margin: 5px 15px 5px 0 !important;
	display: inline-block !important;
	-webkit-user-select: none;
	cursor: pointer !important;
}
input[type="file"]:hover::before {
	background-color: #ac182b !important;
	color: #fff !important;
}
input[type="file"]:active::before {
	background: -webkit-linear-gradient(top, #e3e3e3, #f9f9f9) !important;
}

/* SHARE */

.share-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 9999;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    padding: 35px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.share-popup.show {
  transform: translateY(0);
}

.share-popup-inner {
  max-width: 500px;
  margin: 0 auto;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  justify-items: center;
  align-items: center;
}

.share-btn {
  background: none;
  border: none;
  padding: 4px;
}

.share-btn img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.share-popup-handle {
  width: 48px;
  height: 4px;
  background: #ccc;
  border-radius: 4px;
  margin: 0 auto 12px auto;
}

/* COMMENTO */

.js-open-commenti  {
    display: inline-block;
    margin-top: 15px;
    text-decoration: none;
    background: #333333;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    color: #fff;
    transition: background 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    text-align: center;
	cursor: pointer;
}

.js-open-commenti:hover {
	color: #fff;
}

.filtro-commenti label {
    width: 20% !important;
}

.ncr-intestazione-commento h4 {
	margin: 0px;
}

.ncr-intestazione-commento {
	margin-bottom: 10px;
}

.commento-principale {
    border: 1px solid #aaa;
    border-radius: 10px !important;
}

.box-commento-singolo, .ricordo-box {
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    /* box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06); */
}

.risposta-annidata {
    margin-left: 35px;
    border: 1px solid #aaa;
    background-color: #fdfdfd;
	border-radius: 10px !important;
	width: 95%;
	position: relative; /* Necessario per ancorare il ::before */
  	padding-left: 20px; /* Spazio per la linea */
}

.commento-principale + .risposta-annidata:before {
    content: "";
    position: absolute;
    left: -3px;
    top: -18px;
    width: 17px;
    height: 65%;
    border-left: 1px solid #aaaaaa;
    border-bottom: 1px solid #aaaaaa;
    box-sizing: border-box;
    border-radius: 0 0 0 6px;
    margin-left: -15px;
    margin-top: 5px;
}

.btn-preghiera {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 2px;
    border: none;
    background-color: #fff;
    color: #333;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}
.btn-preghiera.pregato {
    background-color: #fff;
    color: #111;
}

.ricordo-actions button {
    font-family: 'PT Sans';
    font-weight: 700;
}

.manda-pensiero-bar.always-visible {
    bottom: 0;
}

.btn-segnala {
    color: #A90B2B;
    cursor: pointer;
}

.moderazione-tools {
	margin-top: 20px;
}

.ncr-accordion {
    transition: opacity .2s ease;
    width: 95%;
    margin: 0 auto;
    display: block;
}

/* --- Rifiniture header preview --- */
.ncr-commenti-close{
	width: 32px; 
	height: 32px;
}

.ncr-commenti-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: 30px 25px;
    background: #fff;
    border-top: 1px solid #ececec;
    box-shadow: 0px -4px 7px rgba(0, 0, 0, .04);
    border-radius: 20px 20px 0 0 !important;
}

.ncr-commenti-header__left{
  display: flex; align-items: center; gap: .6rem;
  min-width: 0;
}

.ncr-commenti-close{
  display: inline-flex; align-items:center; justify-content:center;
  width: 40px; height: 40px;
  font-size: 30px; line-height: 1;
  border-radius: 999px; border: 1px solid #ddd;
  text-decoration: none; color: #333;
}

.ncr-commenti-close:hover{ 
	background: #f6f6f6;
	color: #a90b2c; 
}

/* v sporco */


/* Wrapper per tutti i video Vimeo o iframe generici */
.vimeo-wrapper,
.bunny-wrapper,
.galleria-ricordo iframe,
.galleria-ricordo video {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
}

/* Immagini del ricordo */
.img-ricordo {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.img-ricordo:hover {
  transform: scale(1.02);
}
	

.ncr-commenti-avatar{
  width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: 0 0 auto;
}




/* --- LISTA COMMENTI COMPATTA --- */

#pannello-commenti .comment-list,
#pannello-commenti .children{
  margin-left: 0;
  padding-left: 0;
  list-style: none;
}
#pannello-commenti .comment-list > li{
  padding: .75rem .9rem;
  margin-bottom: .6rem;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
#pannello-commenti .comment-author{ margin-bottom: .25rem; font-weight: 600; }
#pannello-commenti .comment-metadata{ font-size: .8rem; color:#666; margin-bottom: .35rem; }
#pannello-commenti .comment-content{ line-height: 1.45; font-size: .96rem; }

/* risposte annidate appena rientrate ma senza buchi enormi */
#pannello-commenti .children > li{
  margin-top: .5rem;
  margin-left: .75rem;
  border-color: #f0f0f0;
}

/* --- FORM COMPATTO E IN PRIMO PIANO --- */
#pannello-commenti .comment-respond{
  position: relative; /* crea contesto per lo z-index */
  z-index: 1001;      /* sopra la header/miniatura */
  padding: .9rem;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  margin-bottom: .9rem;
}

#pannello-commenti .comment-reply-title{
  font-size: 1rem;
  margin: 0 0 .5rem;
}

#pannello-commenti .comment-form p{
  margin: .4rem 0;
}

#pannello-commenti .comment-form label{
  font-size: .85rem;
  color: #666;
  display: inline-block;
  margin-bottom: .2rem;
}

#pannello-commenti .comment-form input[type="text"],
#pannello-commenti .comment-form input[type="email"],
#pannello-commenti .comment-form input[type="url"],
#pannello-commenti .comment-form textarea{
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: .95rem;
  outline: none;
}
#pannello-commenti .comment-form textarea{
  min-height: 120px; /* abbastanza alto ma senza esagerare */
  resize: vertical;
}

#pannello-commenti .form-submit{
  margin-top: .5rem;
}
#pannello-commenti .form-submit input[type="submit"]{
  padding: .55rem .9rem;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #f8f8f8;
  cursor: pointer;
}
#pannello-commenti .form-submit input[type="submit"]:hover{
  background: #f1f1f1;
}

/* consenso cookie più discreto */
#pannello-commenti .comment-form-cookies-consent{
  font-size: .8rem; color:#666;
}

/* --- HEADER MINIATURA SOTTO IL FORM --- */
/* Se la tua header sticky usa z-index alto, abbassiamolo un filo */
.ncr-commenti-header{
  z-index: 1000; /* il form sta a 1001 */
}
	
/* --- 1) Stare attaccati al bordo basso --- */

/* azzera margini/padding ereditati che creano fessure */
html, body { height: 100%; margin: 0 !important; padding: 0 !important; }

/* il container dei commenti non deve “alzarsi”: niente margin-bottom
   e lasciamo uno spazio di sicurezza per la barra fissa (vedi sotto) */
main.necrologia-container{
  margin: 0 !important;
  padding-bottom: 76px !important; /* = altezza barra + 8px */
}

/* barra "Scrivi un pensiero…" fissata al fondo, senza gap */
.manda-pensiero-bar.always-visible{
  position: fixed !important;
  left: 0; right: 0; bottom: 0;
  z-index: 1100;            /* sopra tutto il contenuto */
  background: #fff;
  border-top: 1px solid #eaeaea;
  padding: 6px 12px !important;
  margin: 0 !important;
  box-shadow: 0 -2px 8px rgba(0,0,0,.05);
}

/* bottone dentro la barra più compatto */
.manda-pensiero-bar .manda-pensiero-btn{
  display: inline-block;
  padding: .55rem .9rem !important;
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #f8f8f8;
}

/* su mobile, evita il “salto” del viewport */
@media (max-width: 768px){
  main.necrologia-container{ padding-bottom: 86px !important; }
}

/* --- 2) Commenti più raccolti --- */
/*.ricordo-box.commento-principale,
.ricordo-box.risposta-annidata{
  padding: .65rem .8rem !important;
  margin-bottom: .55rem !important;
  border: 1px solid #eee;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}*/

.ncr-intestazione-commento h4{
  font-size: .95rem !important;
  margin: 0 0 .15rem !important;
}
.ncr-intestazione-commento small{
  font-size: .78rem !important; color: #666;
}
.ricordo-box p{
  margin: .4rem 0 .35rem !important;
  line-height: 1.45 !important;
  font-size: .95rem !important;
}

/* azzera spazi interni del grid delle azioni */
/*.ricordo-actions{ margin-top: .35rem !important; }
.ricordo-actions .cell{ padding: 0 .25rem !important; }
.ricordo-actions button{
  padding: .4rem .65rem !important;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fafafa;
}*/

/* media più compatti */
.galleria-ricordo .media-contenitore{ margin: 4px !important; }
.img-ricordo{ border-radius: 8px; }


/* --- 3) Maschera/form SEMPRE sopra alla miniatura --- */

/* header con miniatura rimane sotto il form */
.ncr-commenti-header{ z-index: 1000 !important; }

/* form a step (popup) sale sopra tutto */
#form-ricordo-popup{
  position: fixed !important;
  left: 0; right: 0; bottom: 0;
  /* se nel tuo markup il popup ha già dimensioni/overlay,
     questi sono solo di sicurezza */
  z-index: 1200 !important;   /* > header (1000) e > barra (1100) */
  max-height: 92dvh;          /* sollevato dal top su mobile */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;           /* se è un bottom-sheet */
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  box-shadow: 0 -6px 20px rgba(0,0,0,.18);
}

/* stato “attivo” del popup: assicurati che la tua classe .attivo lo mostri */
#form-ricordo-popup.attivo{ transform: translateY(0) !important; opacity: 1 !important; }

/* pulsante chiudi del popup sempre cliccabile */
#chiudi-popup{ position: sticky; top: 0; z-index: 1210; }

/* lightbox sopra tutto */
#lightbox{ z-index: 1300 !important; }

/* se esiste un wrapper della miniatura con z-index alto, abbassiamolo */
.ncr-miniatura,
.ncr-commenti-header__left,
.ncr-commenti-avatar{
  z-index: 1 !important;
}

/* Stato: bordo laterale e fondo molto soft */
.ricordo-box.stato-pending{
  border-left: 4px solid #d4b106; /* ambra tenue */
  background: #fffdf5;            /* crema leggerissima */
}
.ricordo-box.stato-nascosto{
  border-left: 4px solid #999;
  background: #fafafa;
  opacity: .9;
}

/* Badge stato */
.badge-stato{
  display: inline-block;
  margin-left: .4rem;
  padding: .15rem .45rem;
  font-size: .72rem;
  line-height: 1;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
}
.badge-pending{ background:#fff7e6; }
.badge-nascosto{ background:#f2f2f2; }

/* Pulsanti moderazione nuovi */
.btn-approva,
.btn-mostra,
.btn-nascondi{
  padding: .4rem .65rem !important;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fafafa;
  cursor: pointer;
}
.btn-approva{ border-color:#d4b106; }
.btn-approva:hover{ background:#fff7e6; }

/*FOOTER*/

/*#ncr-goup {
  position: fixed;
  width: 70px;
  height: 70px;
  float: right;
  right: 20px;
  border-radius: 35px;
  text-align: center;
  background-color: #45ab3c;
  bottom: -200px;
  -moz-transition: all, 0.2s;
  -o-transition: all, 0.2s;
  -webkit-transition: all, 0.2s;
  transition: all, 0.2s;
  z-index: 1;
  cursor: pointer;
  border: 3px solid #fff;
}

#ncr-goup.goup-active{
  bottom: 100px;
}

#ncr-goup i.fas.fa-chevron-up {
  color: #fff;
  transform: translate(0%, 70%);
}

#ncr-goup img {
  transform: translateY(-2px);
  padding: 13px;
}

#ncr-goup.goup-active {
    bottom: 100px;
}*/


.ncr-footer-bg {
	background-color: #a8a8a0;
}

.footer-column #media_image-2 img {
	width: 200px;
}

footer {
	color: #fff;
	list-style: none;
	padding-top: 48px;
	padding-bottom: 32px;
}

.footer-column {
	padding-right: 20px;
	margin-bottom: 0;
}

@media only screen and (max-width: 39.99875em) {
	footer {
		padding-top: 32px;
		padding-bottom: 24px;
	}
	.footer-column {
		margin-bottom: 28px;
	}
	.footer-column:last-child {
		margin-bottom: 0;
	}
}

footer h2 {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	margin: 0 0 14px;
}

footer a {
	color: #fff;
	font-weight: 600;
}

.widget_text p {
	line-height: 26px;
    font-size: 15px;
    margin: 0 0 6px;
}

/* Mappa nel footer: ridimensionata e nascondibile all'occorrenza */
.widget iframe {
	max-width: 100%;
	height: 180px;
	border-radius: 6px;
	display: block;
	margin-top: 8px;
}

footer.ncr-footer-bg.nascondi-mappa .widget iframe {
	display: none;
}

/* ── Footer minimale (gestito da Impostazioni → Footer) ───────────── */
.ncr-foot .ncr-foot-title {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	margin: 0 0 10px;
}

.ncr-foot p {
	font-size: 13px;
	line-height: 20px;
	margin: 0 0 5px;
}

.ncr-foot .ncr-foot-line {
	font-weight: 400;
}

.ncr-foot .ncr-foot-link {
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid rgba(255,255,255,0.4);
}

.ncr-foot .ncr-foot-link:hover {
	border-bottom-color: #fff;
}

.ncr-foot .ncr-foot-muted {
	opacity: 0.75;
	font-size: 12px;
}

.ncr-foot .ncr-foot-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: #ad172c;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	padding: 7px 16px;
	border: 1px solid #ad172c;
	border-radius: 6px;
	text-decoration: none;
	margin-top: 10px;
	transition: background-color .2s ease, color .2s ease;
}

.ncr-foot .ncr-foot-btn:hover {
	background: #fff;
	color: #ad172c;
}

.ncr-foot .ncr-foot-btn svg {
	width: 15px;
	height: 15px;
}

.ncr-foot .ncr-foot-legal {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.ncr-foot .ncr-foot-legal a {
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	background: rgba(255,255,255,0.15);
	border-radius: 4px;
	text-decoration: none;
	color: #fff;
	transition: background-color .2s ease;
}

.ncr-foot .ncr-foot-legal a:hover {
	background: rgba(255,255,255,0.3);
}

.widget_text a[href*="tel"] {
  display: block;
  margin-top: 12px;
}

.widget_text a[href*="tel"] svg {
  margin-right: 4px;
}

.widget a[href*="tel"] {
	background-color: #ad172c;
    padding: 12px 24px;
    display: inline-block;
	border: 1px solid #ad172c;
}

.widget a[href*="tel"]:hover {
	color: #ad172c;
	background-color: white;
}

.widget a[href*="tel"] svg {
	vertical-align: middle;
    margin-right: 4px;
    width: 20px;
    height: 20px;
}

ul#menu-menu-footer {
	display: block;
	text-transform: uppercase;
	font-size: 18px;
}

ul#menu-menu-footer a {
	color: #fff;
	padding: 0.7rem 0;
}

.ncr-footer-copyright-wrapper {
	padding: 30px 20px
}
.ncr-footer-bottom-line {
    background-color: #000;
    color: #fff;
    padding: 1% 0px;
}
.ncr-copyright-footer {
    display: inline-block;
}
.ncr-credits {
    text-align: right;
}

.ncr-logo-footer {
    padding: 0 0 0 30px;
    vertical-align: super;
}

.ncr-link-logo-footer img {
	width: 250px;
}

/* WOOCOMMERCE */


.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button {
    font-size: 100%;
    margin: 0;
    line-height: 1;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    overflow: visible;
    padding: .618em 1em;
    font-weight: 700;
    border-radius: 3px;
    left: auto;
    color: #fff;
    background-color: #aa172b;
    border: 0;
    display: inline-block;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
    text-transform: uppercase;
}

.woocommerce-error, .woocommerce-info, .woocommerce-message
Specificity: (0,1,0)
 {
    padding: 1em 2em 1em 3.5em;
    margin: 0 0 2em;
    position: relative;
    background-color: #f5f5f5;
    color: #515151;
    border-top: 3px solid #720eec;
    list-style: none outside;
    width: auto;
    word-wrap: break-word;
}

.woocommerce-info {
    border-top-color: #aa172b;
}

.woocommerce-info::before {
    color: #aa172b;
}

.woocommerce-Address-title.title a {
    color: #aa172b;	
}



.ncr-payment .wp-block-woocommerce-checkout > div, .ncr-cart .wp-block-woocommerce-checkout > div, .ncr-cart .custom-cart-container {
    max-width: 100% !important;
}

/*carrello*/
.custom-cart-container {
    max-width: 960px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 0 10px #ccc;
}
.custom-cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}
.custom-cart-table th,
.custom-cart-table td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
  text-align: left;
}
.custom-cart-table th {
  background: #f4f4f4;
}
.custom-cart-table img {
  max-width: 60px;
  height: auto;
  border-radius: 6px;
  margin-bottom: 5px;
}
.remove-link {
  color: red;
  text-decoration: none;
  font-weight: bold;
}

.btn-save,
.btn-checkout {
	display: inline-block;
    margin-top: 20px;
    margin-right: 15px;
    padding: 10px 20px;
    border-radius: 0 !important;
    text-decoration: none;
    font-weight: bold;
    background: #ffffff;
    color: #aa172b;
    transition: all 0.3s ease;
    border: 2px solid #aa172b;
	text-transform: uppercase;
	height: 48px;
}

.btn-save:hover,
.btn-checkout:hover {
  	background: #aa172b;
  	color: #fff;
}

/* account */

.logged-in main {
	margin-top: 70px;
}


.wc-block-checkout, .woocommerce {
    background-color: #fff !important;
}

.woocommerce-MyAccount-navigation ul li {
    list-style: none;
	padding: 8px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
    position: relative;
	color: #000;
}

.woocommerce-MyAccount-navigation ul li a {
    color: #5e5b57;
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 21px;
    font-weight: 300;
    letter-spacing: 0.8px;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    color: #aa172b;
}

li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--dashboard.is-active {
    list-style-type: none;
	color: #aa172b;
    padding: 8px 15px;
}

.woocommerce-MyAccount-navigation-link.is-active a {
	color: #aa172b !important;
}


/* ==== LAYOUT: HEADER / MENU ==== */



/* MEDIA QUERY */

/* CUSTOM MEDIA QUERY */

/* MEDIUM */

@media only screen and (max-width: 63.99875em) {
	
	.header-logo {
		text-align: center;
	}
	
	.custom-logo {
		width: 155px !important;
	}
	
	.menu-icons {
		display: none;
	}

  .ncr-home-title {
    margin-top: -111px;
  }
	
	.barra-mobile-fissa {
		display: flex !important;
	}

	.manda-pensiero-fissa {
  		display: flex;
  		align-items: center;
  		gap: 10px;
	}

	.manda-pensiero-desktop {
		display: none;
	}
	
	.hide-mobile{
		display: none;
	}
	
	.mobile-center {
		text-align: center !important;
	}

	.profilo-defunto {
	  	text-align: center;
	}
	
	.manda-pensiero-desktop {
	  	text-align: center;
	}
	
	.action-bar {
		margin-bottom: 30px;
	}
	
	.single-necrologie main {
		padding-bottom: 15% !important;
	}
	.ncr-divider-80 {
	  display: block;   /* assicura che sia un blocco */
	  width: 100%;      /* visibile a tutta larghezza */
	  height: 50px;     /* l’altezza desiderata */
	}
	.profilo-defunto h1 {
		text-align: center !important;
	}

}


/* SMALL */

@media only screen and (max-width: 39.99875em) {
	.ncr-home-title {
    margin-top: -69px;
}
  main h1 {
    font-size: 54px;
}
	.custom-logo {
		width: 145px !important;
	}

	.ncr-archive {
		margin-bottom: 20px;
	}
	
	.single-necrologie main {
		padding-bottom: 30% !important;
	}
	
	.profilo-defunto h1 {
		text-align: center !important;
	}
	.ncr-divider-80 {
	  display: block;   /* assicura che sia un blocco */
	  width: 100%;      /* visibile a tutta larghezza */
	  height: 20px;     /* l’altezza desiderata */
	}

}

/* 20.10 */

.ncr-cover-img {
  border-radius: 14px;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 320px;
}

.cover-image {
  width: 200px;
  height: 200px;
  background-position: center center;
  background-size: cover;
  border-radius: 50%;
  margin: -100px auto 0;
  border: 4px solid #A90B2B;
}

.single-necrologie .ncr-grid-slide:not(.barra-mobile-fissa) {
  padding-top: 0;
  padding-bottom: 14px;
}

.single-necrologie .ncr-icone-box {
  margin-top: 22px;
}

.ncr-divider-20 {
  height: 20px; 
}

p.date-line span {
  display: block;
}

.profilo-defunto .ncr-icone-box {
  margin-top: 2px;
  margin-bottom: 18px;
}

.ncr-icone-box .ncr-single-share-button {
  margin-right: 12px;
  display: inline-block;
}

.ncr-icone-box .ncr-single-share-button .counter {
  margin-right: 0;
}

.ncr-icone-box .ncr-single-share-button img {
  width: 22px;
  height: auto;
  margin-right: 6px;
}

.ncr-icone-box .ncr-single-share-button .comment-counter img {
  margin-top: 2px;
}

.ncr-icone-box .ncr-single-share-button .share-btn {
  display: inline-block;
}

.ncr-icone-box .ncr-single-share-button .share-btn img {
  margin-left: 4px;
}

.box-luogo {
  padding-top: 22px;
}

body main {
  margin-top: 38px !important;
}

@media only screen and (max-width: 63.99875em) {
  .mobile-center {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .single-necrologie .box-luogo .ncr-absolute {
    left: 5%;
  }

  .profilo-defunto .ncr-icone-box {
    display: inline-flex;
    margin-top: 2px;
  }
}

@media only screen and (max-width: 39.9988em) {
  .profilo-defunto h1 {
    font-size: 53px;
    line-height: 67px;
  }
}