
body{
  font-family: "proxima-nova", sans-serif;
}

/* Map & panel */
#map { width: 100%; height: calc(100vh - 96px); min-height: 560px; }
#passportPanel { max-height: calc(100vh - 96px); overflow: auto; }

/

/* === PASSPORT LOOK === */
:root{
  --passport-bg: #FFCCCC;
  --passport-ink: #2b2f36;
  --passport-accent: #0d6efd; /* bootstrap primary */
  --passport-dot: rgba(0,0,0,.04);
  --passport-shadow: 0 14px 30px rgba(0,0,0,.10);
}

.passport-card{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 14px 1fr; /* left page | spine | right page */
  border-radius: 22px;
  box-shadow: var(--passport-shadow);
  overflow: hidden;
  background: transparent;
  isolation: isolate; /* so the before/after are clipped */
  transition: transform .18s ease, box-shadow .18s ease;
}
.passport-card:hover{ transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,.14); }

.passport-page{
  background:
   #FFCCCC;
  padding: 18px 20px 16px;
  color: var(--passport-ink);
  min-height: 132px;
  position: relative;
}

/* spine / dorso a trattini */
.passport-spine{
  background:
    repeating-linear-gradient(90deg, transparent 0 5px, rgba(0,0,0,.07) 5px 6px) ,
    linear-gradient(180deg, #f6f7f9 0%, #eceef2 100%);
}

/* header */
.passport-title{
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  margin: 0 0 6px 0;
}

.passport-meta{
  font-size: 12px;
  color: #6b7280;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.passport-route{
  font-size: 13px;
  margin-top: 8px;
}

.passport-quote{
  margin-top: 8px;
  font-style: italic;
  font-size: 12.5px;
  color: #444;
}

/* avatar tondo opzionale */
.passport-avatar{
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.05);
}

/* MRZ (machine readable zone) */
.passport-mrz{
font-family: "proxima-nova", sans-serif;
  font-size: 11px;
  letter-spacing: .08em;
  color: #8b9098;
  border-top: 1px solid rgba(0,0,0,.06);
  margin-top: 10px;
  padding-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* CTA */
.passport-actions{
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.passport-actions .btn{
  --bs-btn-padding-y: .28rem;
  --bs-btn-padding-x: .6rem;
  --bs-btn-font-size: .82rem;
  border-radius: 999px;
}

/* layout della colonna destra (lista) */
.passport-list{
  display: grid;
  gap: 14px;
}



.passport-card::after{
  content:'';
  position:absolute; inset:0;
  background: radial-gradient(40% 60% at 50% 100%, rgba(0,0,0,.06), transparent 60%);
  opacity:.0; transition: opacity .2s ease;
  pointer-events:none;
}
.passport-card:hover::after{ opacity:.8; }



.marker-avatar{
  width:58px; height:58px; border-radius:50%;
  background-size:cover; background-position:center;
  box-shadow:0 0 0 2px #fff, 0 6px 14px rgba(0,0,0,.2);
}



.passport-card.is-active { box-shadow: 0 18px 40px rgba(13,110,253,.25); transform: translateY(-2px); }

/* === Large pink passport (mockup style) === */
.passport-card-lg{
  background:#f9e1e1;           /* soft pink */
  border-radius:22px;
  box-shadow:0 14px 30px rgba(0,0,0,.10);
  transition:transform .18s ease, box-shadow .18s ease;
}
.passport-card-lg:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 40px rgba(0,0,0,.14);
}

/* Bigger avatar inside large card only */
.passport-card-lg .passport-avatar{
  width:68px; height:68px; border-radius:50%; object-fit:cover;
  box-shadow:0 0 0 3px #fff, 0 0 0 4px rgba(0,0,0,.08);
}

/* Label/value rows (Nome:, Cognome:, ecc.) */
.label-row{ display:flex; gap:.75rem; align-items:baseline; line-height:1.3; }
.label-row .lbl{ min-width:11rem; color:#2c2c2c; font-style:italic; }
.label-row .val{ font-weight:700; letter-spacing:.5px; text-transform:uppercase; }
.label-row .val.name{ font-size:1.75rem; }

/* Q&A paragraphs */
.q-title{ font-style:italic; font-weight:700; }
.q-body{ max-width:42ch; color:#333; }

/* Round “stamps” on the right */
.stamp{
  width:132px; height:132px; border-radius:50%;
  border:3px dashed #1e1e1e; position:relative; background:transparent;
}
.stamp:after{ content:""; position:absolute; inset:10px; border:2px solid #1e1e1e; border-radius:50%; }
.stamp-b{ width:160px; height:160px; }

/* Route line (plane icon + text) */
.route-line svg{ display:block; }
.route-line svg path{ fill:#111; }

/* Active state when clicking “Percorso” */
.passport-card-lg.is-active{
  outline:3px solid #0d6efd; outline-offset:2px;
}

/* Optional: make the list show one big card per row; add this if needed */
@media (min-width: 992px){
  .passport-list{ grid-template-columns: 1fr; }
}
/* ---------------- ROOTS card ---------------- */
.passport-card{
  --bg: #FFCCCC;
  --txt:#111;
  --muted: rgba(0,0,0,.65);
  --radius: 26px;
  --shadow: 0 18px 40px rgba(0,0,0,.10);
  background: var(--bg);
  color: var(--txt);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.4vw, 36px);
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(25,79,255,.25);
}

/* layout: 1 colonna mobile, 2 su desktop */
.passport-card .card-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 28px);
  align-items:start;
}
@media (min-width: 992px){
  .passport-card .card-grid{
    grid-template-columns: 1.2fr .8fr;
  }
}

/* blocco etichette */
.label-col .label-row{
  display:grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items:baseline;
  margin-bottom: 4px;
}
.label-col .lbl{
  font-style: italic;
  color: var(--muted);
  font-size: clamp(14px, 0.9vw, 14px);
}
.label-col .val{
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  line-height: 1.05;
  font-size: clamp(18px, 1.2vw, 18px);
}
.label-col .val.name{
  font-size: clamp(20px, 1.6vw, 20px);
}

/* avatar */
.passport-avatar{
  width: clamp(72px, 9vw, 120px);
  height: clamp(72px, 9vw, 120px);
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}

/* Q&A */
.q-title{
  font-weight:700;
  font-style: italic;
  margin: 12px 0 4px;
  font-size: clamp(16px, 1.6vw, 18px);
}
.q-body{
  margin: 0 0 10px;
  font-size: clamp(15px, 1.5vw, 16px);
  color:#2a2a2a;
}

/* colonna destra */
.right-col{ position:relative; }

/* tratte */
.routes{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 8px;
}
@media (min-width: 992px){
  .routes{
    grid-template-columns: 1fr 1px 1fr;
    align-items:start;
  }
}
.routes .divider{ display:none; }
@media (min-width: 992px){
  .routes .divider{ display:block; width:1px; background:#000; opacity:.45; height:120px; margin:auto; }
}
.route .anno{
  font-style: italic; color: var(--muted);
  font-size: clamp(14px, 1.3vw, 16px);
  margin-bottom: 4px;
}
.route .row{
  display:flex; align-items:center; gap:10px;
}
.material-symbols-outlined{
  font-variation-settings: 'FILL' 0, 'wght' 700, 'GRAD' 0, 'opsz' 24;
  font-size: 22px; line-height:1;
}
.route .legs .from,
.route .legs .to{ text-transform: uppercase; }
.route .legs .from{ font-weight:700; }

/* CTA */
.cta-row{ margin-top: 14px; display:flex; gap:10px; flex-wrap:wrap; }
.btn-root{
  background:#111; color:#fff; border:0; border-radius:10px;
  padding:10px 16px; font-weight:700; font-size:14px;
}
.badge-lang{
  background:#fff; border-radius:999px; padding:6px 10px; font-weight:700;
  border:1px solid rgba(0,0,0,.08); font-size:12px;
}

/* stato attivo */
.passport-card.is-active{ outline: 2px solid #111; outline-offset: 2px; }





/* modalità compatta: testi e padding più piccoli */
.passport-card.passport-compact{
  padding: clamp(12px, 1.6vw, 22px);
  border-radius: 22px;
}

/* etichette + valori */
.passport-card.passport-compact .label-col .lbl{
  font-size: clamp(12px, .9vw, 14px);
}
.passport-card.passport-compact .label-col .val{
  font-size: clamp(14px, 1.4vw, 20px);
  letter-spacing: .005em;
}
.passport-card.passport-compact .label-col .val.name{
  font-size: clamp(16px, 1.7vw, 22px);
}

/* avatar più piccolo */
.passport-card.passport-compact .passport-avatar{
  width: clamp(56px, 6.5vw, 88px);
  height: clamp(56px, 6.5vw, 88px);
}

/* Q&A più stretti */
.passport-card.passport-compact .q-title{
  font-size: clamp(14px, 1.1vw, 16px);
  margin: 8px 0 2px;
}
.passport-card.passport-compact .q-body{
  font-size: clamp(13px, 1vw, 15px);
  margin-bottom: 8px;
}

/* tratte più piccole */
.passport-card.passport-compact .route .anno{
  font-size: clamp(12px, .95vw, 14px);
}
.passport-card.passport-compact .material-symbols-outlined{
  font-size: 18px;
}
.passport-card.passport-compact .routes{
  gap: 12px;
}
@media (min-width: 992px){
  .passport-card.passport-compact .routes .divider{
    height: 90px;
  }
}

/* CTA compatte */
.passport-card.passport-compact .btn-root{
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 8px;
}
.passport-card.passport-compact .badge-lang{
  padding: 4px 8px;
  font-size: 11px;
}





  .diaspora-globe-wrap{
    position: relative;
    width: 100%;
    height: clamp(360px, 60vh, 720px); /* responsive */
    background: #fff;                  /* sfondo bianco */
    overflow: hidden;
  }
  #diaspora-globe{
    display: block;
    width: 100%;
    height: 100%;
  }
  /* opzionale: separazione visiva dal resto */
  .diaspora-globe-wrap + section{ margin-top: 2rem; }












.rp-card {
  background: #ffcccc;
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
  position: relative;

}

.rp-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* QUI metti la tua texture di grana */
  background-image: url("https://www.rootsmap.it/wp-content/plugins/diaspora-passports/assets/img/grain.jpg");
  background-size: 200px 200px;
  background-repeat: repeat;

  mix-blend-mode: multiply;
  opacity: 0.35;
}

.rp-inner {
  position: relative;
}

.rp-inner::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 50%;
  width: 2px;
  background: rgba(0,0,0,0.12);
}

@media (max-width: 767.98px) {
  .rp-inner::before { display: none; }
}

.rp-page {
  padding: 0.75rem 1.25rem;
}

.rp-page-left {
  border-right: 1px solid rgba(0,0,0,0.08);
}

@media (max-width: 767.98px) {
  .rp-page-left {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 1rem;
  }
}

.rp-photo {
  position: relative;
  width: 140px;
  height: 140px;
  overflow: hidden;
}

.rp-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}


/* Overlay con grana */
.rp-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* QUI metti la tua texture di grana */
  background-image: url("https://www.rootsmap.it/wp-content/plugins/diaspora-passports/assets/img/grain.jpg");
  background-size: 200px 200px;
  background-repeat: repeat;

  mix-blend-mode: multiply;
  opacity: 0.35;
}

.rp-line { margin-bottom: 0.25rem; }

.rp-line-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a5c4a;
  margin-right: 0.5rem;
  white-space: nowrap;
}

.rp-line-value {
  flex: 1;
  border-bottom: 1px dotted rgba(0,0,0,0.45);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.8rem;
  padding-bottom: 2px;
}

.rp-question {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a5c4a;
}

.rp-answer {
    text-transform: uppercase;
  border-bottom: 1px dotted rgba(0,0,0,0.4);
  padding-bottom: 3px;
  font-size: 0.8rem;
}

.rp-stamps-title {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: #6a5c4a;
}

.rp-stamp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.rp-stamp-grid svg {
  width: 100%;
  height: auto;
  display: block;
}

.rp-route-caption {
  font-style: italic;
  font-size: 0.8rem;
}

.rp-actions .btn {
  border-radius: 999px;
  padding-inline: 0.9rem;
}

.rp-page small {
  font-size: 0.65rem;
}

.rp-stamp-cell {
  height: 120px;
}

.rp-stamp-empty {
  border: 1.5px dashed #999;
  background: transparent;
}





.rp-card-focus {
  outline: 3px solid #0d6efd;
  box-shadow: 0 0 0 3px rgba(13,110,253,0.35);
}





/* Mobile: solo pagina sinistra del passaporto */
@media (max-width: 991.98px) {
  .rp-page-right {
    display: none !important;
  }

  .rp-card {
    max-width: 100%;
  }

  .rp-route-caption-mobile {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: .05em;
  }
}




/* Mobile: mappa fullscreen quando il collapse è aperto */
@media (max-width: 991.98px) {
  #mapCollapse.show {
    position: fixed;
    inset: 0;
    z-index: 1050;
    margin: 0 !important;
    border-radius: 0;
    background: #000;
  }

  #mapMobile {
    width: 100vw;
    height: 100vh;
  }

  body.map-open {
    overflow: hidden;
  }
}





.passport-list {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.passport-list .rp-card {
  width: 100%;
  max-width: 100%;
}




.page-template-page-diaspora-piattaforma .site-footer {
  display: none;
}




.page-template-page-diaspora-piattaforma .row.g-0.d-lg-flex {
  min-height: calc(100vh - 80px); /* sostituisci 80 con l’altezza reale dell’header */
}





.rp-card-mini {
  background: #F1C1BB; /* il tuo rosa passaporto */
  border-radius: 14px;
  padding: 20px 24px;
}

.rp-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.rp-line-label {
  opacity: 0.7;
  margin-right: 8px;
}




.passport-photo {
  width: 120px;
  height: 150px;
  object-fit: cover;
  background-color: #d8a9a4; /* rosa passaporto per placeholder */
  display: block;
  border-radius: 4px;
}