/* Foto a tutto schermo */
a.foto-grande { display: block; width: 100%; height: 100%; color: inherit; text-decoration: none; cursor: zoom-in; }
a.foto-grande img { cursor: zoom-in; }
a.foto-grande[hidden] { display: none; }
a.foto-grande:focus-visible { outline: 2px solid #A37E3F; outline-offset: 3px; }
.fg-velo { position: fixed; inset: 0; z-index: 100050; display: none; align-items: center; justify-content: center; background: rgba(15, 27, 41, 0.96); overscroll-behavior: contain; }
.fg-velo.fg-si { display: flex; }
.fg-velo img { display: block; max-width: 88vw; max-height: 84vh; width: auto; height: auto; object-fit: contain; border-radius: 2px; box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.7); }
.fg-velo button { position: absolute; width: 56px; height: 56px; padding: 0; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(250, 246, 236, 0.3); border-radius: 50%; background: rgba(15, 27, 41, 0.35); color: #FAF6EC; cursor: pointer; transition: background 0.3s ease, border-color 0.3s ease; }
.fg-velo button:hover, .fg-velo button:focus-visible { background: #A37E3F; border-color: #A37E3F; outline: none; }
.fg-velo button svg { width: 19px; height: 19px; }
.fg-velo .fg-chiudi { top: 24px; right: 24px; }
.fg-velo .fg-indietro { left: 24px; top: 50%; transform: translateY(-50%); }
.fg-velo .fg-avanti { right: 24px; top: 50%; transform: translateY(-50%); }
.fg-conta { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); color: #FAF6EC; font-size: 12px; font-weight: 500; letter-spacing: 0.24em; opacity: 0.75; white-space: nowrap; }
.fg-sola .fg-indietro, .fg-sola .fg-avanti, .fg-sola .fg-conta { display: none !important; }
body.fg-aperta { overflow: hidden; }
@media (max-width: 700px) {
  .fg-velo img { max-width: 94vw; max-height: 74vh; }
  .fg-velo button { width: 48px; height: 48px; }
  .fg-velo .fg-chiudi { top: 16px; right: 16px; }
  .fg-velo .fg-indietro, .fg-velo .fg-avanti { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: none; }
  .fg-velo .fg-indietro { left: 16px; }
  .fg-velo .fg-avanti { right: 16px; }
  .fg-conta { bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
}
