/* Le tavole mantengono la grafica esportata. Solo adattamento della viewport e interazione. */
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body { min-height: 100dvh !important; }
button, a, [role="button"], [data-quaderno-clickable] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button, a { transition: transform 140ms ease, opacity 140ms ease, background-color 180ms ease; }
button:active, [role="button"]:active { transform: scale(.975); }
:focus-visible { outline: 2px solid #3e5c46; outline-offset: 4px; }
[data-quaderno-clickable] { cursor: pointer; }
.quaderno-chosen { box-shadow: inset 0 0 0 2px #3e5c46; }
body { animation: quaderno-appear 160ms ease both; }
/* Un transform sul body cambia il riferimento dei discendenti position: fixed. */
@keyframes quaderno-appear { from { opacity: .35; } to { opacity: 1; } }
.quaderno-tabbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  padding: 0 20px calc(12px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  pointer-events: none;
}
.quaderno-tabbar-surface {
  height: 64px;
  padding: 8px 16px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 9999px;
  background: rgb(255 255 255 / .85);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 8px 32px rgb(27 28 25 / .08);
  pointer-events: auto;
}
.quaderno-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 48px;
  gap: 2px;
  color: #424842;
  text-decoration: none;
}
.quaderno-tab[aria-current="page"] { color: #274430; }
.quaderno-tab > .material-symbols-outlined { font-size: 24px; line-height: 24px; }
.quaderno-tab-label { font: 600 11px/14px Inter, sans-serif; letter-spacing: .02em; }
.quaderno-tab > .indicator { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0; }
.quaderno-tab[aria-current="page"] > .indicator { opacity: 1; }
.quaderno-has-tabs > main { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)) !important; }
.quaderno-fixed-surface {
  max-width: 480px !important;
  margin-inline: auto !important;
  left: 0 !important;
  right: 0 !important;
}
.quaderno-sheet {
  max-height: calc(100dvh - 12px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  z-index: 60 !important;
}
.quaderno-sheet > * { flex-shrink: 0; }
.quaderno-sheet > main, .quaderno-sheet > .overflow-y-auto { min-height: 0; flex-shrink: 1; }
.quaderno-sheet-heading { position: sticky; top: 0; z-index: 2; background: #fff; }
.quaderno-sheet-actions { position: sticky; bottom: 0; z-index: 2; background: #fff; padding-bottom: max(16px,env(safe-area-inset-bottom,0px)); }
.quaderno-dialog-backdrop { overflow-y: auto !important; align-items: center; }
.quaderno-dialog-card { max-height: calc(100dvh - 32px); overflow-y: auto; flex-shrink: 0; }
#delete-modal { overflow-y: auto; }
#delete-modal > div { max-height: calc(100dvh - 32px); overflow-y: auto; }
button, a, input, select, textarea { scroll-margin-block: 16px; }
body[data-quaderno-view="F03"] input[type="time"] { width: 100%; min-width: 0; max-width: 100%; }
body[data-quaderno-view="F03"] #timezoneSelect { width: 0; min-width: 0; flex: 1; }
.w-13 { width: 3.25rem; }
@media (min-width: 560px) {
  html { background: #e9e8e3 !important; }
  body { width: 480px !important; max-width: 480px; margin-inline: auto !important; box-shadow: 0 0 70px #1b1c1910; }
  body header.fixed, body nav.fixed, body footer.fixed, body > header, body > nav, body > footer { max-width: 480px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { animation: none; }
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
