/* Pannello laterale "scheda in sintesi" (proposte A, B, C). Colori e font del brand. */
.anteprima { position: fixed; inset: 0; z-index: 2000; }
.anteprima[hidden] { display: none; }
html.anteprima-aperta, html.anteprima-aperta body { overflow: hidden; }
.anteprima-velo { position: absolute; inset: 0; background: rgba(12, 22, 58, .52); opacity: 0; transition: opacity .4s ease; }
.anteprima-pannello {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%);
  background: #fff; color: #1d1d1f; overflow-y: auto; overscroll-behavior: contain;
  box-shadow: -30px 0 80px -30px rgba(18, 38, 106, .45);
  transform: translateX(104%); transition: transform .45s cubic-bezier(.22, .8, .2, 1);
  font-family: "PT Sans", system-ui, sans-serif; outline: none;
}
.anteprima.is-aperta .anteprima-velo { opacity: 1; }
.anteprima.is-aperta .anteprima-pannello { transform: none; }
.anteprima-chiudi {
  position: sticky; top: 16px; float: right; margin: 16px 16px 0 0; z-index: 2;
  width: 46px; height: 46px; border: 0; border-radius: 50%; background: #EDEFF6; color: #18317F;
  display: grid; place-items: center; cursor: pointer;
}
.anteprima-chiudi:hover { background: #dfe3f0; }
.anteprima-chiudi:focus-visible, .anteprima-btn:focus-visible { outline: 3px solid #F78E1E; outline-offset: 3px; }
.anteprima-corpo { padding: 28px 40px 40px; clear: both; }
.anteprima-img { background: #F4F2ED; border-radius: 22px; height: 230px; display: grid; place-items: center; overflow: hidden; margin: 8px 0 28px; }
.anteprima .anteprima-img img { display: block; width: auto; height: auto; max-width: 78%; max-height: 190px; object-fit: contain; mix-blend-mode: multiply; clip-path: none; transform: none; opacity: 1; position: static; }
.anteprima .anteprima-img.is-foto img { max-width: none; max-height: none; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.anteprima h2 { font-family: "PT Sans Narrow", "PT Sans", system-ui, sans-serif; font-weight: 700; font-size: 36px; line-height: 1.08; color: #18317F; margin: 0 0 14px; }
.anteprima-intro { font-size: 18px; line-height: 1.55; margin: 0 0 22px; }
.anteprima-dati { margin: 0 0 30px; }
.anteprima-dati div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid #E4E1D8; }
.anteprima-dati div:first-child { border-top: 1px solid #E4E1D8; }
.anteprima-dati dt { font-weight: 700; color: #18317F; font-size: 16px; }
.anteprima-dati dd { margin: 0; font-size: 17px; line-height: 1.45; }
.anteprima-dati dd span { display: block; font-size: 16px; margin-top: 2px; }
.anteprima-azioni { display: flex; flex-wrap: wrap; gap: 12px; }
.anteprima-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px;
  border-radius: 999px; font-weight: 700; font-size: 17px; text-decoration: none;
  background: #18317F; color: #fff; transition: transform .2s, background .2s;
}
.anteprima-btn:hover { transform: translateY(-2px); background: #12266a; }
.anteprima-btn--sec { background: #F78E1E; color: #1d1d1f; }
.anteprima-btn--sec:hover { background: #ee8210; }
@media (max-width: 600px) {
  .anteprima-corpo { padding: 20px 20px 32px; }
  .anteprima-img { height: 190px; margin-bottom: 22px; }
  .anteprima .anteprima-img img { max-height: 156px; }
  .anteprima h2 { font-size: 30px; }
  .anteprima-dati div { grid-template-columns: 96px 1fr; gap: 12px; }
  .anteprima-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .anteprima-velo, .anteprima-pannello { transition: none; }
}

/* touch: il primo tocco applica l'hover e lo lascia attaccato; qui il sollevamento non parte (web-build, motion-craft sez. 6) */
@media (hover: none), (pointer: coarse) {
  .anteprima-btn:hover { transform: none; }
}
