/* Vittoria Italiana - pulsante flottante (vi_fab 1.0.1) */
.vi-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 2147482100; transition: opacity .2s, transform .2s; }
.vi-fab--off { opacity: 0; transform: translateY(14px); pointer-events: none; }
.vi-fab__btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 56px; max-width: calc(100vw - 32px); padding: 0 22px; border: 2px solid #f5cd64; border-radius: 28px; background: #1d5a1c; color: #fdf8ea !important; font: 700 1rem/1.1 var(--vi-sans, system-ui, sans-serif); text-decoration: none !important; box-shadow: 0 10px 28px rgba(28, 23, 16, .38); cursor: pointer; }
.vi-fab__btn:hover { background: #174414; }
.vi-fab__btn:focus-visible { outline: 3px solid #1c1710; outline-offset: 3px; }
.vi-fab__btn svg { flex: none; color: #f5cd64; }
.vi-fab__btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vi-fab__btn .vi-fab__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 7px 0; text-align: left; }
.vi-fab__btn .vi-fab__main { font-size: 1.05rem; line-height: 1.2; white-space: normal; }
@media (max-width: 360px) {
  .vi-fab__btn { padding: 0 16px; }
  .vi-fab__btn .vi-fab__main { font-size: .98rem; }
}
.vi-fab__btn .vi-fab__sub { font-size: .82rem; font-weight: 500; line-height: 1.25; color: #f6e7b4; white-space: normal; }

.vi-fab-lock { overflow: hidden; }
.vi-fab-sheet { position: fixed; inset: 0; z-index: 2147482200; }
.vi-fab-sheet[hidden] { display: none; }
.vi-fab-sheet__bg { position: absolute; inset: 0; background: rgba(28, 23, 16, .55); }
.vi-fab-sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 82vh; overflow: auto; padding: 0 18px calc(20px + env(safe-area-inset-bottom, 0px)); background: #fdf8ea; color: #1c1710; border-radius: 20px 20px 0 0; border-top: 4px solid #1d5a1c; box-shadow: 0 -12px 40px rgba(0, 0, 0, .3); }
.vi-fab-sheet__head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 14px 0 8px; background: #fdf8ea; font: 700 1.2rem/1.2 var(--vi-serif, Georgia, serif); color: #6b4f12; }
.vi-fab-sheet__x { width: 44px; height: 44px; border: 0; border-radius: 50%; background: #f3e9c8; color: #1c1710; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.vi-fab-sheet a { text-decoration: none; }
.vi-fab-sheet__tutti { display: flex; align-items: center; min-height: 52px; margin: 4px 0 8px; padding: 0 16px; border-radius: 12px; background: #1d5a1c; color: #fff !important; font-weight: 700; }
.vi-fab-sheet__gruppo { padding: 10px 0; border-top: 1px solid #e6d9b3; }
.vi-fab-sheet__cat { display: flex; align-items: center; min-height: 44px; color: #1c1710 !important; font-weight: 700; font-size: 1.05rem; }
.vi-fab-sheet__sub { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.vi-fab-sheet__sub a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid #b8891f; border-radius: 20px; background: #fff; color: #1c1710 !important; font-size: .95rem; }
.vi-fab-sheet__sub a:hover { background: #f5cd64; }
@media (min-width: 768px) {
  .vi-fab-sheet__bg { background: rgba(28, 23, 16, .25); }
  .vi-fab-sheet__panel { left: auto; right: 16px; bottom: 88px; width: 380px; max-height: 70vh; border-radius: 16px; border: 1px solid #e6d9b3; border-top: 4px solid #1d5a1c; }
}
