@import url("https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Red+Hat+Text&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Antic+Didone&display=swap");

.pad-cimitero,
.pad-defunto {
  border: 1px solid #eee;
  /*box-shadow: 0px 0px 10px #AAA;*/
  padding: 10px;
  background: white;
  margin: 10px;
  width: 100%;
}

.pad-cimitero h2 {
  color: #3a2556;
  border-bottom: 2px solid #271341;
  font-size: 25px;
  padding-bottom: 10px;
}

h2:hover {
  text-shadow: 0 0 transparent !important;
}

.titolo {
  color: #271341;
  font-size: 60px;
  text-align: center;
  font-family: Cinzel Decorative;
}

.elenco-comuni {
  /*border: 1px solid rgba(0,0,0,.125);
    margin:  5px;
    padding: 15px;
    box-sizing: border-box;
    height:250px;
    width:250px;*/
  border: 1px solid rgba(0, 0, 0, 0.125);
  margin: 5px;
  padding: 15px;
  box-sizing: border-box;
  height: auto;
}

.elenco-comuni:hover {
  box-shadow: 0px 0px 10px 0px #888888;
}

h2 {
  text-align: center;
  font-family: Cinzel Decorative;
  word-break: break-word;
}

h3,
h4 {
  font-family: "Red Hat Text";
  font-size: 20px;
  color: #271341;
}

p {
  font-family: "Red Hat Text";
  font-size: 15px;
}

.link-cimitero {
  background: #ddd;
  color: black;
  padding: 5px;
  width: 200px;
  display: block;
  text-align: center;
}

.link-cimitero:hover {
  background: #f5f5f5;
}

.link-visita-cimitero {
  background: #999;
  color: white;
  padding: 5px;
  width: 200px;
  display: block;
  text-align: center;
}

.link-visita-cimitero:hover {
  background: #aaa;
}

.link-necrologio {
  width: 300px;
  font-size: 25px;
  height: 50px;
  margin: 0 auto;
  text-decoration: underline;
  font-family: "Red Hat Text";
}

.portami {
  padding: 10px;
  text-align: center;
  width: 300px;
  margin: 0 auto;
  font-size: 20px;
}

.viola {
  border: 1px solid #631163;
  background: #271341;
}

.grigio {
  border: 1px solid #271341;
  background: #271341;
}

.disabled {
  pointer-events: none;
}

.portami a {
  color: #ddd;
  font-family: "Red Hat Text";
  text-transform: uppercase;
  font-weight: 900;
}

.titolo-tomba,
.sottotitolo-tomba {
  font-family: "Cinzel Decorative";
  /*text-transform:uppercase;*/
}

.titolo-tomba {
  color: #271341;
}

p {
  margin-bottom: 0px;
  margin-top: 0px !important;
  font-family: "Red Hat Text";
}

.foto-defunto {
  border-radius: 50%;
}

.fiore {
  margin: 5px;
}

.titolo-comune {
  font-size: 30px;
}

#search-api,
.search-tomba {
  position: relative;
  height: 64px;
  width: 660px;
  max-width: 100% !important;
  background: #fff;
  /* margin: 0 20px; */
  border-radius: 32px;
  box-shadow:
    0 4px 8px 0 hsla(60, 1%, 41%, 0.1),
    0 2px 4px 0 hsla(60, 1%, 41%, 0.1),
    0 1px 2px 0 rgba(28, 28, 28, 0.1);
  margin: 0 auto;
  margin-top: 31px;
}

.search-tomba {
  font-size: 25px;
  text-align: center;
}

.button-cerca {
  background: #271341;
  color: #ddd;
  padding: 5px;
  min-width: 200px;
  border-radius: 5px;
  border: transparent;
  font-size: 20px;
}

.button-cerca:hover {
  background: #ddd;
  color: #271341;
}

.button-cerca a {
  color: #ddd;
}

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

.form-control::placeholder {
  color: #aaa;
  text-align: center;
}

.search-i {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.ScriptTop {
  background: #fff none repeat scroll 0 0;
  float: left;
  font-size: 0.69em;
  font-weight: 600;
  line-height: 2.2;
  padding: 12px 0;
  text-transform: uppercase;
  width: 100%;
}

.pad-defunto h2 {
  font-family: Antic Didone;
  font-size: 25px;
  color: #271341;
  font-weight: 900;
}

.terza-colonna h2 {
  font-family: "Red Hat Text";
}

.terza-colonna h3 {
  font-family: "Red Hat Text";
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  word-break: break-word;
}

.prima-colonna {
  background: #fcfbf3;
}

.terza-colonna {
  background: #fff9fe;
}

.sottotitolo {
  font-size: 25px;
  color: grey;
  font-family: Antic Didone;
  font-weight: 900;
}

.mappa-italia {
  width: 500px;
  height: 635px;
}

.button-image {
  border: transparent;
  background: transparent;
}

.ultra-small {
  font-size: 11px;
}

/* To Navigation Style 1*/
.ScriptTop ul {
  margin: 24px 0;
  padding: 0;
  text-align: left;
}
.ScriptTop li {
  list-style: none;
  display: inline-block;
}
.ScriptTop li a {
  background: #6a4aed none repeat scroll 0 0;
  color: #fff;
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 18px;
  text-decoration: none;
  text-transform: capitalize;
}
.ScriptTop li a:hover {
  background: #000;
  color: #fff;
}

.cerca-mobile {
  display: none;
}

.card {
  border: 1px solid #ccc;
  height: 270px;
}

.card:hover {
  box-shadow: 0px 0px 0px 0px;
}

#search {
  display: none;
}

h1.title {
  margin-top: 160px;
}
.link a {
  text-decoration: underline;
}

.pad-cimitero {
  background: transparent;
  border: 1px solid transparent;
  box-shadow: 0 0 transparent;
}

.pad-cimitero .foto {
  max-width: 100px;
  border: 2px solid #cda434;
  max-height: 133px;
  box-shadow: 5px 5px 5px #ccc;
  -webkit-box-shadow: 5px 5px 5px #ccc;
  -moz-box-shadow: 5px 5px 5px #ccc;
}

.data {
  font-size: 13px;
  color: #444;
}

.pulsante {
  padding: 20px;
  color: white;
  background: #271341;
  font-size: 20px;
  border: transparent;
}

.pad-defunto-cimitero {
  float: left;
  width: 45%;
  height: 250px;
  margin: 5px;
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.pad-defunto-cimitero h3 {
  font-size: 20px;
}

.pad-defunto-cimitero img {
  border-radius: 50%;
}

.background-comune {
  cursor: pointer;
  background-size: cover;
  position: relative;
}

.background-comune::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(
    255,
    255,
    255,
    0.8
  ); /* Sfondo nero opaco per l'overlay */
  z-index: 1; /* Posiziona l'overlay sotto il testo */
}

.testo-pad-comune {
  position: relative;
  z-index: 1;
}

.breadcrumb-item.active {
  font-size: 15px !important;
}

.breadcrumb-comuni a {
  color: #222;
}

input,
input::placeholder {
  font-size: 18px;
}

/* ******************************************************
	Script Header
*********************************************************/

.ScriptHeader {
  float: left;
  width: 100%;
  padding: 2em 0;
}
.rt-heading {
  margin: 0 auto;
  text-align: center;
}
.Scriptcontent {
  line-height: 28px;
}
.ScriptHeader h1 {
  font-family:
    "brandon-grotesque", "Brandon Grotesque", "Source Sans Pro", "Segoe UI",
    Frutiger, "Frutiger Linotype", "Dejavu Sans", "Helvetica Neue", Arial,
    sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  color: #6a4aed;
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  line-height: normal;
}
.ScriptHeader h2 {
  color: #312c8f;
  font-size: 20px;
  font-weight: 400;
  margin: 5px 0 0;
  line-height: normal;
}
.ScriptHeader h1 span {
  display: block;
  padding: 0;
  font-size: 22px;
  opacity: 0.7;
  margin-top: 5px;
}
.ScriptHeader span {
  display: block;
  padding: 0;
  font-size: 22px;
  opacity: 0.7;
  margin-top: 5px;
}

/* ******************************************************
	Live Demo
*********************************************************/

/* ******************************************************
	Responsive Grids
*********************************************************/

.rt-container {
  margin: 0 auto;
  padding-left: 12px;
  padding-right: 12px;
}
.rt-row:before,
.rt-row:after {
  display: table;
  line-height: 0;
  content: "";
}

.rt-row:after {
  clear: both;
}
[class^="col-rt-"] {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  padding: 0 15px;
  min-height: 1px;
  position: relative;
}

.button-suggerisci {
  background: #271341;
  color: #e0e0e0;
  width: 100%;
  height: 50px;
  border: 1px solid #271341;
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(140, 117, 140, 0.25);
  border: #271341;
}

.accordion-button:not(.collapsed) {
  color: #271341;
  background-color: #fdeffd;
}

.accordion-button:focus {
  border-color: #e5d5e5;
  box-shadow: 0 0 0 0.25rem rgba(242, 227, 242, 0.25);
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23271341'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion:hover {
  background: white;
}

.modal-content {
  max-width: 100%;
  width: 100%;
}

.modal {
  height: auto;
  z-index: 2050 !important;
}

@media (min-width: 768px) {
  .rt-container {
    width: 750px;
  }
  [class^="col-rt-"] {
    float: left;
    width: 49.9999999999%;
  }
  .col-rt-6,
  .col-rt-12 {
    width: 100%;
  }
}

@media (min-width: 1200px) {
  .rt-container {
    width: 1170px;
  }
  .col-rt-1 {
    width: 16.6%;
  }
  .col-rt-2 {
    width: 30.33%;
  }
  .col-rt-3 {
    width: 50%;
  }
  .col-rt-4 {
    width: 67.664%;
  }
  .col-rt-5 {
    width: 83.33%;
  }
}

@media only screen and (min-width: 240px) and (max-width: 768px) {
  .content-ricerca {
    max-width: 300px;
    margin: 0 auto;
  }

  .ScriptTop h1,
  .ScriptTop ul {
    text-align: center;
  }
  .ScriptTop h1 {
    margin-top: 0;
    margin-bottom: 15px;
  }
  .ScriptTop ul {
    margin-top: 12px;
  }

  .ScriptHeader h1,
  .ScriptHeader h2,
  .scriptnav ul {
    text-align: center;
  }
  .scriptnav ul {
    margin-top: 12px;
  }
  #float-right {
    float: none;
  }

  h4 {
    font-size: 15px;
  }

  .pulsante {
    padding: 10px;
  }

  .titolo {
    font-size: 40px;
  }
}

.slide {
  width: 100%;
  height: 300px;
  overflow: hidden;
  position: relative;
  background-color: #fffcff;
}
.slide > div {
  width: 100%;
  height: 100%;
  background-size: cover;
  position: absolute;
  animation: slide 25s infinite;
  opacity: 0;
}
.slide > div:nth-child(2) {
  animation-delay: 5s;
}
.slide > div:nth-child(3) {
  animation-delay: 10s;
}
.slide > div:nth-child(4) {
  animation-delay: 15s;
}
.slide > div:nth-child(5) {
  animation-delay: 20s;
}

.container {
  margin: 0 auto;
}

@keyframes slide {
  10% {
    opacity: 1;
  }
  20% {
    opacity: 1;
  }
  30% {
    opacity: 0;
  }
  40% {
    transform: scale(1.1);
  }
}

@media screen and (max-width: 500px) {
  .mobile {
    display: block !important;
  }

  .prima-colonna {
    order: 2;
  }
  .seconda-colonna {
    order: 1;
  }
  .terza-colonna {
    order: 3;
    padding: 0px !important;
  }

  .mappa {
    display: none;
  }

  .info-cimitero {
    order: 2;
  }
  .info-tomba {
    order: 1;
  }

  .portami {
    width: 100%;
    font-size: 18px;
  }
}

/* ======================================================================
   FLUSSO FOTO TOMBA / GEOLOCALIZZAZIONE
   Stili condivisi dalle pagine:
     - scelta-foto-tomba.php           (.scelta-*)
     - add-foto-tomba.php              (.form-foto-*, .message)
     - add-foto-tomba-no-coordinate.php (.form-foto-*, .message)
     - upload-foto-tomba.php           (.upload-result, .upload-msg,
                                        .upload-cta, .coord-*, fix Leaflet)
     - geolocalizzazione-tomba.php     (.upload-result, .upload-msg, .upload-cta,
                                        .coord-btn, .geo-steps)
   ====================================================================== */

/* --- scelta-foto-tomba ------------------------------------------------ */

.scelta-foto {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.scelta-foto-lead {
  text-align: center;
  font-size: 1.25rem;
  margin: 8px 0 0;
  line-height: 1.4;
}
.scelta-foto-lead strong {
  word-break: break-word;
}

.scelta-foto-defunto {
  text-align: center;
  margin: 40px 0;
}
.scelta-foto-defunto-img {
  max-width: 140px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.scelta-foto-title {
  font-size: 2.25rem;
  color: #271341;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  line-height: 1.2;
}
.scelta-foto-title img {
  flex-shrink: 0;
}

.scelta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 0;
}
.scelta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #271341;
  color: #fff !important;
  padding: 24px 20px;
  min-width: 260px;
  max-width: 320px;
  flex: 1 1 260px;
  font-size: 1.1rem;
  font-weight: 700;
  border: 1px solid #271341;
  border-radius: 6px;
  text-decoration: none;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}
.scelta-btn:hover,
.scelta-btn:focus {
  transform: translateY(-1px);
  opacity: 0.95;
  text-decoration: none;
  color: #fff;
}
.scelta-btn--alt {
  background: #fff;
  color: #271341 !important;
}
.scelta-btn--alt:hover,
.scelta-btn--alt:focus {
  color: #271341;
}

/* --- add-foto-tomba(-no-coordinate) ----------------------------------- */

.form-foto {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.form-foto-title {
  font-size: 1.875rem;
  color: #271341;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
  line-height: 1.25;
}
.form-foto-title img {
  flex-shrink: 0;
}

.form-foto-lead {
  text-align: center;
  color: #555;
  margin: 0 0 16px;
}

.form-foto-prereq {
  max-width: 460px;
  margin: 0 auto;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  text-align: left;
}
.form-foto-prereq img {
  width: 12px;
  vertical-align: -1px;
  margin-right: 6px;
}
.form-foto-prereq-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}
/* Il testo della riga eredita il colore dallo stato del pallino. */
.form-foto-prereq-row:has(.form-foto-check.is-ok) {
  color: #2e7d32;
}
.form-foto-prereq-row:has(.form-foto-check.is-ko) {
  color: #c62828;
}

/* Indicatori di stato sotto "Verifica di:" in add-foto-tomba.php.
   Stati: is-ok (verde + ✓), is-ko (rosso + ✕), is-pending (grigio). */
.form-foto-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #bdbdbd;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}
.form-foto-check.is-ok {
  background: #2e7d32;
}
.form-foto-check.is-ok::before {
  content: "\2713";
}
.form-foto-check.is-ko {
  background: #c62828;
}
.form-foto-check.is-ko::before {
  content: "\2715";
}
.form-foto-check.is-pending {
  background: #bdbdbd;
}

.form-foto-preview {
  margin: 32px auto;
  max-width: 320px;
  aspect-ratio: 4 / 3;
  border: 1px dashed #c9c2bb;
  border-radius: 8px;
  background: #f8f6f2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.form-foto-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #999;
  font-size: 0.9rem;
  text-align: center;
  padding: 12px;
}
.form-foto-preview-placeholder img {
  width: 56px;
  height: 56px;
  opacity: 0.5;
}
.form-foto-preview:not(.has-image) img#img-output {
  display: none;
}
.form-foto-preview.has-image {
  width: fit-content;
  max-width: 100%;
  aspect-ratio: auto;
  border: 1px solid #e5e0db;
  background: #fff;
  padding: 4px;
  display: block;
}
.form-foto-preview.has-image .form-foto-preview-placeholder {
  display: none;
}
.form-foto-preview.has-image img#img-output {
  display: block;
  max-width: 100%;
  max-height: 30vh;
  width: auto;
  height: auto;
  border-radius: 6px;
}

.form-foto-form {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
}

.form-foto-capture {
  text-align: center;
  margin-bottom: 8px;
}
.form-foto-capture-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #271341;
  color: #fff;
  padding: 16px 28px;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1px solid #271341;
  text-decoration: none;
  cursor: pointer;
  min-width: 240px;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}
.form-foto-capture-btn:hover,
.form-foto-capture-btn:focus {
  transform: translateY(-1px);
  opacity: 0.95;
  color: #fff;
  text-decoration: none;
}
.form-foto-capture-btn img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.form-foto-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.form-foto-actions input {
  min-width: 140px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
}
.form-foto-btn-primary {
  background: #271341;
  color: #fff !important;
  border: 1px solid #271341;
}
.form-foto-btn-primary:disabled {
  background: #bdbdbd;
  border-color: #bdbdbd;
  cursor: not-allowed;
  opacity: 0.7;
}
.form-foto-btn-secondary {
  background: #fff;
  color: #271341 !important;
  border: 1px solid #271341;
}

/* Le pagine foto usano <input type="file"> nascosto + <label> stilizzata. */
.form-foto-form input[type="file"] {
  display: none;
}

.message {
  max-width: 480px;
  margin: 16px auto;
  text-align: center;
  font-weight: 600;
  white-space: pre-wrap;
  min-height: 1.4em;
  padding: 10px;
  border-radius: 6px;
}
.message.success {
  color: #2e7d32;
}
.message.error {
  color: #c62828;
}
.message.info {
  color: #555;
}

/* --- upload-foto-tomba (esito + step + coord) e geolocalizzazione-tomba */

.upload-result {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.upload-result-title {
  font-size: 1.875rem;
  color: #271341;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
  line-height: 1.25;
}
.upload-result-title img {
  flex-shrink: 0;
}
.upload-result-lead {
  text-align: center;
  color: #555;
  margin: 0 auto 16px;
  max-width: 520px;
}

.upload-msg {
  max-width: 480px;
  margin: 20px auto 0;
  padding: 10px 14px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  min-height: 1.4em;
  white-space: pre-wrap;
}
.upload-msg.success {
  background: #e8f5e9;
  color: #2e7d32;
}
.upload-msg.error {
  background: #ffebee;
  color: #c62828;
}
.upload-msg.info {
  background: #f0f0f0;
  color: #555;
}

.upload-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 56px 0 16px;
}
/* Riga "solo exit": va sempre in fondo, separata dalle azioni primarie
   da un margin-top contenuto, non i 56px pieni della riga d'azione. */
.upload-cta.upload-cta--exit {
  margin: 16px 0 0;
}
.upload-cta a,
.upload-cta button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 180px;
  padding: 12px 22px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}
.upload-cta a:hover,
.upload-cta a:focus,
.upload-cta button:hover,
.upload-cta button:focus {
  transform: translateY(-1px);
  opacity: 0.95;
  text-decoration: none;
}
/* Specificità .upload-cta a (0,1,1) > .upload-cta-exit (0,1,0):
   senza il prefisso .upload-cta il bordo trasparente della regola base
   sovrascriverebbe quello viola del secondario. */
.upload-cta .upload-cta-exit {
  background: #fff;
  color: #271341 !important;
  border: 1px solid #271341;
}
.upload-cta .upload-cta-next {
  background: #271341;
  color: #fff !important;
  border: 1px solid #271341;
}
.upload-cta .upload-cta-next img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.coord-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.coord-btn {
  border: 1px solid #271341;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 280px;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease;
}
.coord-btn-primary {
  background: #271341;
  color: #fff;
}
.coord-btn-secondary {
  background: #fff;
  color: #271341;
}
.coord-btn-success {
  background: #2e7d32;
  color: #fff;
  border-color: #2e7d32;
  margin-top: 12px;
}
.coord-btn-danger {
  background: #fff;
  color: #c62828;
  border-color: #c62828;
}
.coord-btn:hover,
.coord-btn:focus {
  transform: translateY(-1px);
  opacity: 0.95;
}

.coord-panel {
  margin: 20px;
  padding: 16px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
}
.coord-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}
.coord-input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}
.coord-map {
  width: 100%;
  height: 360px;
  border-radius: 10px;
  overflow: hidden;
  margin: 24px 0;
  /* Confina gli z-index interni di Leaflet (fino a 1000) in uno stacking
     context locale, così la mappa non finisce sopra la #topbar (fixed,
     senza z-index esplicito) durante lo scroll. */
  isolation: isolate;
}
.coord-actions-center {
  display: flex;
  justify-content: center;
}

/* Fix Leaflet: stile.css ha "img { max-width: 100% }" globale, che rompe
   le tile della mappa (256x256 vengono ridimensionate). */
.leaflet-container .leaflet-tile,
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer {
  max-width: none !important;
  max-height: none !important;
}

/* --- geolocalizzazione-tomba: box istruzioni app esterna -------------- */

.geo-steps {
  max-width: 520px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fafafa;
  color: #555;
  line-height: 1.55;
}
.geo-steps h3 {
  text-align: center;
  font-size: 1rem;
  margin: 0 0 10px;
  color: #271341;
}
.geo-steps a {
  text-decoration: underline;
}

/* --- responsive condiviso flusso foto --------------------------------- */

@media (max-width: 600px) {
  .scelta-foto-title {
    font-size: 1.75rem;
    gap: 10px;
  }
  .scelta-foto-title img {
    height: 40px;
    width: 40px;
  }
  .form-foto-title,
  .upload-result-title {
    font-size: 1.5rem;
    gap: 10px;
  }
  .form-foto-title img,
  .upload-result-title img {
    height: 36px;
    width: 36px;
  }
  .scelta-buttons {
    margin: 24px 0 0;
  }
  .scelta-btn {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
}
