.ev-card-page{
  padding:34px 16px 64px;
  background:#f6f7f8;
  min-height:60vh;
}
.ev-card-page-inner{
  max-width:760px;
  margin:0 auto;
}
.ev-card{
  --ev-navy:#182a39;
  --ev-accent:#fe0103;
  --ev-line:#e6eaed;
  box-sizing:border-box;
  width:min(100%,560px);
  margin:0 auto;
  padding:0 0 30px;
  background:#fff;
  border-radius:18px;
  box-shadow:0 12px 36px rgba(20,35,47,.09);
  overflow:hidden;
  color:var(--ev-navy);
  font-family:inherit;
  text-align:center;
}
.ev-card *{box-sizing:border-box}

/* Parte alta neutra e coerente con il sito */
.ev-top{
  position:relative;
  padding:44px 30px 30px;
  background:#fff;
  color:var(--ev-navy);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:14px;
  text-align:left;
  border-bottom:1px solid var(--ev-line);
}
.ev-top-accent{
  width:52px;
  height:4px;
  border-radius:99px;
  background:var(--ev-accent);
}
.ev-card-kicker{
  font-size:12px;
  line-height:1.2;
  letter-spacing:.31em;
  font-weight:800;
  color:var(--ev-navy);
}
.ev-brand-sub{
  max-width:450px;
  font-size:23px;
  line-height:1.36;
  font-weight:400;
  color:var(--ev-navy);
  letter-spacing:-.015em;
}

.ev-profile-copy{
  padding:30px 24px 0;
}
.ev-card h1{
  font-size:36px;
  line-height:1.1;
  margin:0 10px 6px;
  color:var(--ev-navy);
  letter-spacing:-.028em;
}
.ev-card .ev-role{
  margin:8px 16px 0;
  color:#687782;
  font-size:19px;
}
.ev-company{
  font-size:18px;
  font-weight:750;
  margin:16px 18px 26px;
  color:var(--ev-navy);
}

/* Azioni */
.ev-actions{
  display:grid;
  grid-template-columns:1.12fr 1fr 1fr;
  gap:12px;
  padding:0 26px 26px;
}
.ev-actions a{
  display:flex;
  text-decoration:none!important;
  border:1px solid #d9dfe4;
  background:#fff;
  border-radius:12px;
  color:var(--ev-navy)!important;
  padding:14px 10px;
  font-size:15px;
  line-height:1.25;
  font-weight:750;
  min-height:60px;
  align-items:center;
  justify-content:center;
  transition:.18s ease;
}
.ev-actions a:hover,
.ev-actions a:focus{
  border-color:#bdc8cf;
  box-shadow:0 5px 14px rgba(19,43,59,.07);
}
.ev-actions .ev-primary{
  color:#fff!important;
  background:var(--ev-accent);
  border-color:var(--ev-accent);
  box-shadow:0 5px 14px rgba(254,1,3,.13);
}

/* Recapiti */
.ev-details{
  margin:0 28px;
  border-top:1px solid var(--ev-line);
  text-align:left;
}
.ev-details div{
  border-bottom:1px solid var(--ev-line);
  padding:17px 8px;
  display:grid;
  grid-template-columns:110px 1fr;
  gap:18px;
  align-items:start;
  overflow-wrap:anywhere;
  font-size:15px;
}
.ev-details span{
  font-weight:750;
  color:var(--ev-navy);
}
.ev-details a{
  color:var(--ev-navy)!important;
  text-align:left;
  text-decoration:none;
}

/* QR */
.ev-qr{
  margin:28px 28px 0;
  padding:18px;
  border:1px solid var(--ev-line);
  border-radius:12px;
  background:#fafbfb;
  text-align:center;
}
.ev-qr canvas,
.ev-admin-qr canvas{
  display:block;
  width:220px;
  height:220px;
  max-width:100%;
  margin:0 auto;
  background:#fff;
}
.ev-admin-qr canvas{
  width:180px;
  height:180px;
  margin:8px 0;
}
.ev-qr p{
  font-size:12px;
  margin:10px 0;
}
.ev-download-qr{
  appearance:none;
  border:1px solid #d1d8de;
  background:#fff;
  color:var(--ev-navy);
  border-radius:8px;
  padding:10px 13px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}
.ev-download-qr:hover{border-color:var(--ev-accent)}

/* Directory */
.ev-directory{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
}
.ev-person{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none!important;
  background:#fff;
  border:1px solid #e4e6e8;
  padding:14px;
  border-radius:12px;
}
.ev-person img{
  width:52px;
  height:52px;
  border-radius:50%;
  object-fit:cover;
}
.ev-person strong,.ev-person small{display:block}
.ev-person small{opacity:.7}

@media(max-width:600px){
  .ev-card-page{
    padding:0 0 34px;
    background:#fff;
  }
  .ev-card{
    width:100%;
    border-radius:0;
    box-shadow:none;
  }
  .ev-top{
    padding:36px 24px 26px;
  }
  .ev-card-kicker{
    font-size:11px;
  }
  .ev-brand-sub{
    font-size:21px;
    line-height:1.35;
  }
  .ev-profile-copy{
    padding-top:28px;
  }
  .ev-card h1{
    font-size:32px;
  }
  .ev-card .ev-role{
    font-size:18px;
  }
  .ev-actions{
    grid-template-columns:1fr 1fr 1fr;
    gap:10px;
    padding:0 22px 24px;
  }
  .ev-actions a{
    padding:12px 7px;
    font-size:14px;
    min-height:64px;
  }
  .ev-details{
    margin:0 22px;
  }
  .ev-details div{
    grid-template-columns:96px 1fr;
    gap:12px;
    padding:16px 6px;
  }
  .ev-qr{
    margin:24px 22px 0;
  }
}

@media(max-width:390px){
  .ev-card h1{font-size:29px}
  .ev-brand-sub{font-size:19px}
  .ev-actions{gap:8px;padding-left:16px;padding-right:16px}
  .ev-actions a{font-size:13px}
  .ev-details div{grid-template-columns:88px 1fr}
}


/* V1.8 - Selettore lingua Biglietto digitale */
.ev-lang-switch{
  position:absolute;
  top:16px;
  right:18px;
  display:flex;
  align-items:center;
  gap:4px;
  z-index:4;
}
.ev-lang-switch a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:30px;
  height:28px;
  padding:0 7px;
  border-radius:7px;
  border:1px solid #e2e6e9;
  background:#fff;
  color:#6a7781!important;
  text-decoration:none!important;
  font-size:11px;
  font-weight:800;
  letter-spacing:.04em;
}
.ev-lang-switch a:hover,
.ev-lang-switch a:focus{
  border-color:#c4ccd2;
  color:var(--ev-navy)!important;
}
.ev-lang-switch a.is-active{
  border-color:var(--ev-accent);
  color:var(--ev-accent)!important;
  background:#fff;
}

@media(max-width:600px){
  .ev-lang-switch{
    top:14px;
    right:16px;
  }
}


/* V1.9 - Chiudi dentro il biglietto, allineato alle lingue */
.ev-card-top-actions{
  position:absolute;
  top:16px;
  right:18px;
  display:flex;
  align-items:center;
  gap:8px;
  z-index:5;
}

.ev-card-top-actions .ev-lang-switch{
  position:static!important;
  top:auto!important;
  right:auto!important;
  margin:0!important;
}

.ev-card-close{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:28px;
  min-width:56px;
  padding:0 10px;
  border-radius:7px;
  border:1px solid #e2e6e9;
  background:#fff;
  color:#6a7781!important;
  text-decoration:none!important;
  font-size:11px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
}

.ev-card-close:hover,
.ev-card-close:focus{
  border-color:var(--ev-accent);
  color:var(--ev-accent)!important;
  background:#fff;
  text-decoration:none!important;
}

@media(max-width:600px){
  .ev-card-top-actions{
    top:14px;
    right:16px;
    gap:6px;
  }

  .ev-card-close{
    min-width:50px;
    padding:0 8px;
  }
}
