/* Pagina Gli Osmosetti: riquadri cliccabili e pannello laterale con la spiegazione di ogni Osmosetto. */
.osm-card { display: block; width: 100%; margin: 0; font: inherit; color: inherit; text-align: left; border: 0; cursor: pointer; }
.osm-card:focus-visible { outline: 3px solid var(--color-ink); outline-offset: 3px; }
.osm-card-img img { transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
.osm-card:hover .osm-card-img img, .osm-card:focus-visible .osm-card-img img { transform: scale(1.05); }
.osm-plus { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #FFFFFF; color: var(--color-ink); font-size: 1.3rem; font-weight: 700; line-height: 1; transition: background-color 0.25s ease, transform 0.25s ease; }
.osm-card:hover .osm-plus, .osm-card:focus-visible .osm-plus { background: var(--color-ink); color: #FFF6EC; transform: rotate(90deg); }

.osm-overlay { position: fixed; inset: 0; z-index: 80; background: rgba(26,43,74,0.4); opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.osm-overlay[data-open="true"] { opacity: 1; pointer-events: auto; }
.osm-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(600px, 100%); overflow-y: auto; background: #FFF6EC;
  box-shadow: -20px 0 60px -20px rgba(26,43,74,0.35);
  transform: translateX(105%); visibility: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.45s;
}
.osm-drawer[data-open="true"] { transform: translateX(0); visibility: visible; transition-delay: 0s; }
.osm-drawer:focus { outline: none; }
.osm-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(20px, 4vw, 36px) 12px; background: #FFF6EC; }
.osm-close { flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #FFFFFF; color: #1A2B4A; font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.osm-close:hover { background: #FFE7D2; }
.osm-close:focus-visible, .osm-link:focus-visible, .osm-caso:focus-visible { outline: 3px solid #3AB3D9; outline-offset: 3px; }
.osm-link:hover { color: #1A2B4A; }
.osm-caso { transition: transform 0.2s ease; }
.osm-caso:hover { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .osm-drawer, .osm-overlay, .osm-card-img img, .osm-plus, .osm-caso { transition: none !important; }
  .osm-card:hover .osm-plus, .osm-card:focus-visible .osm-plus { transform: none; }
}
.osm-panel[hidden] { display: none !important; }
