/* @import url("theme-default.d/vv-container.css"); */
@import url("theme-default.d/media_popup.css");
@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@300;400;700&family=Baloo+2:wght@400;600;700&family=Fredoka:wght@300;400;500;600;700&display=swap');

body.theme-default {
  --bg-color: #f0f0f0;
  --text-color: #222;
  --accent-color: #007bff;
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: url('/vittrosviaggi_shared/wallpaper/home-default.jpg') no-repeat center center fixed;
  background-size: cover;
  --paper: rgba(255, 245, 157, .68);
  --paper-border: rgba(233, 196, 0, .55);
  --paper-text: #1a1a1a;
  padding: 4px 0;
}

button,
input[type="submit"],
select {
  background-color: #219324;
  color: white;
  border: none;
  padding: 0.5em 1em;
  border-radius: 5px;
  cursor: pointer;
}

green_button,
input[type="submit"],
select {
  background: #1f8f57;

  color: white;
  border: none;
  padding: 0.5em 1em;
  border-radius: 5px;
  cursor: pointer;
}


.login-box {
  position: relative;
  top: 20px;
  left: -40px;
  background-color: rgba(222, 240, 227, 0.4);
  border: 2px solid #74e0d7;
  width: 400px;
  max-width: 100%;
  padding: 2em;
  border-radius: 20px;
  box-shadow: 0 0 15px rgba(139, 69, 19, 0.5);
  backdrop-filter: blur(4px);
}

a {
  color: var(--accent-color);
}

body,
html {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
}

main {
  flex: 1;
  padding: 1em;
}

body:hover footer {
  opacity: 1;
  pointer-events: auto;
}

.footer-hover-zone {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  z-index: 98;
}

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 1em;
  color: #444;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(2px);
  padding: 0.4em 0.6em;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 99;
}

#contenuto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 100px;
  padding: 10px;
}

.theme-default .lista h3,
.theme-default .lista li {
  color: #1a1a1a;
}

.theme-default .lista li:hover {
  background: rgba(244, 212, 65, .35);
}

.theme-default .lista li.active {
  background: rgba(244, 212, 65, .55);
  font-weight: 700;
}

/* usato in: lib/header_badge.php */
.vv-audio-mini {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  margin-right: .5rem;
  vertical-align: middle;
}

#vvAudioMenu {
  position: absolute;
  right: 0 !important;
  top: calc(100% + 6px);
  z-index: 2147483647;
  background: #fff;
  border: 1px solid #cfd7e6;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
  display: none;
  left: auto !important;
  max-width: min(92vw, 360px);
}

#vvAudioMenu button {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px 6px;
}

/* base comune */
.vvAudio_Menu button {
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  padding: 6px 8px;
  transition: transform 0.1s, filter 0.15s;
}

.vvAudio_Menu input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 4px;
  background: rgba(38, 167, 103, 0.25);
  outline: none;
}

.vvAudio_Menu input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 4px;
  background: linear-gradient(to right,
      #26a767 var(--value, 50%),
      rgba(38, 167, 103, 0.2) var(--value, 50%));
}

/* hover */
.vvAudio_Menu button:hover {
  filter: brightness(1.1);
  transform: scale(1.05);
}

.vv-audio-play {
  background: #1f8f57;
}

.vv-audio-next {
  background: #26a767;
}

.vv-audio-mute {
  background: #4cc38a;
}

#vvAudioMenu input[type=range] {
  width: 100%;
}

/* base comune */
#vvAudioSeek,
#vvAudioVol {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(38, 167, 103, 0.25);
  outline: none;
}

/* track Chrome / Edge / Safari */
#vvAudioSeek::-webkit-slider-runnable-track,
#vvAudioVol::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(38, 167, 103, 0.25);
}

/* thumb Chrome / Edge / Safari */
#vvAudioSeek::-webkit-slider-thumb,
#vvAudioVol::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: #1f8f57;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

/* Firefox track */
#vvAudioSeek::-moz-range-track,
#vvAudioVol::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(38, 167, 103, 0.25);
}

/* Firefox thumb */
#vvAudioSeek::-moz-range-thumb,
#vvAudioVol::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #1f8f57;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.vv-grid-thumbs {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* === Toolbar VV sticky ==================================== */
#vv-toolbar {
  position: sticky;
  top: var(--vv-top, 72px);
  z-index: 5000;
}

#vv-audio-root {
  position: fixed;
  left: -9999px;
  width: 0;
  height: 0;
  overflow: hidden;
}

:root {
  --vv-w: 1250px;
  --vv-top: 56px;
  --vv-bottom: 42px;
  --vv-side: clamp(12px, 4vw, 32px);
  --vv-max: 3200px;
  --vv-radius: 16px;
  --vv-toolbar-h: 48px;
  --vv-safe: 48px;
  --vv-maxw: 1200px;
  --vv-gap: 1rem;
  --login-x: 50%;
  --login-y: 20vh;
  --vv-footer: 44px;
  --vv-container-alpha: .85;
  --vv-container-blur: 6px;
  --vv-header-clear: 64px;
  --vv-h: 620px;
  --vv-left: 48px;
  --vv-topoff: 16px;
  --vv-alpha: .92;
  --vv-blur: 4px;
  --vv-right: 48px;
  --vv-minw: 780px;
  --vv-minh: 320px;
  --vv-alpha-slot: .98;
  --ve-accent: #f4d441;
  --ve-accent-ink: #2b2b2b;
  --vv-content: 72ch;
  --vit-sidebar-bg: rgba(244, 212, 65, .18);
  --vit-sidebar-fg: #222;
  --vit-sidebar-border: rgba(0, 0, 0, .08);
  --vv-green: #2e7d32;
  --vv-green-light: #3fa34d;
  --vv-green-dark: #1b5e20;

}

.vv-wrap {
  margin-inline: auto;
  max-width: var(--vv-max);
  margin: calc(var(--vv-top)) auto 2rem;
  padding: 1rem;
}


.vv-card iframe,
.vv-card img,
.vv-card video {
  display: block;
  max-width: 100%;
  height: auto;
}

body.page-home {
  padding-top: var(--vv-top) !important;
  padding-bottom: var(--vv-bottom) !important;
}

.vv-select {
  width: 100%;
  padding: .45rem .6rem;
  border: 1px solid #bbb;
  border-radius: 10px;
  background: #fff;
}

.vv-select:focus {
  outline: 2px solid #5aa7ff33;
}

.vv-post-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.vv-top-fixed {
  display: none !important;
}

.vv-input,
.vv-select {
  border-color: #b9c7da;
}

.vv-primary {
  border-color: transparent;
  background: #eef3ff;
}

.vv-wallpaper::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .30), rgba(255, 255, 255, .30)), var(--vv-bg) center/cover no-repeat fixed;
  z-index: -1;
}

#global-user-badge {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 2147483647;
  pointer-events: auto;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, sans-serif;
}

.vv-badge {
  display: inline-block;
  margin-left: .4rem;
  padding: .1rem .45rem;
  font-size: .75em;
  border-radius: 999px;
  border: 1px solid #d9e2ef;
  background: #f3f6ff;
  color: #2d3b55;
  vertical-align: baseline;
}

.vv-badge--bozza {
  background: #eef0f5;
  color: #555;
  border-color: #d0d7e6;
}

.vv-slot-title {
  margin: 0;
  padding-right: .75rem;
  border-right: 1px solid rgba(0, 0, 0, .10);
  flex: 1 1 280px;
  min-width: 220px;
}

.vv-slot-filters {
  display: flex;
  gap: .5rem 1rem;
  align-items: end;
}

.vv-card {
  background: rgba(255, 255, 255, var(--vv-alpha));
  backdrop-filter: blur(var(--vv-blur));
  border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

#global-user-badge .who {
  color: #111;
}

#vvAudioNow {
  display: block;
  max-width: 100%;
}

#global-user-badge .menu {
  position: absolute;
  right: 0;
  left: auto;
  z-index: 2147483647;
  pointer-events: auto;
  max-width: min(92vw, 360px);
  display: none;
  top: calc(100% + 6px);
  min-width: 240px;
  background: #fff;
  border: 1px solid #cfd7e6;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .15);
  padding: 6px;
}

#global-user-badge .menu[aria-hidden="false"] {
  display: block !important;
}

.vv-trad-widget {
  display: inline-flex;
  gap: .5rem;
  align-items: center;
}

.vv-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: .6rem 1rem;
  align-items: center;
}

.vv-input {
  width: 100%;
  padding: .45rem .6rem;
  border: 1px solid #bbb;
  border-radius: 8px;
}

.vv-banner {
  padding: .6rem 1rem;
  border-radius: 10px;
  margin: .8rem 0;
}

.vv-ok {
  background: #e6ffed;
  border: 1px solid #b7f5c1;
}

.vv-warn {
  background: #fff3cd;
  border: 1px solid #ffeeba;
}

.vv-err {
  background: #ffe6e6;
  border: 1px solid #ffb3b3;
}

code.cmd {
  display: block;
  white-space: pre-wrap;
  background: #0f1627;
  color: #e8eefb;
  border: 1px solid #22304f;
  border-radius: 8px;
  padding: 10px;
  word-break: break-all;
}

.admin-box {
  max-width: 1000px;
  margin: auto;
  padding: 2em;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

h1 {
  text-align: center;
}

select {
  padding: 0.5em;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2em;
}

td,
th {
  border-bottom: 1px solid #ccc;
  padding: 0.5em;
  text-align: center;
}

form.inline {
  display: inline;
}

body {
  font-family: sans-serif;
  margin: 0;
  background-size: cover;
  padding: 2em;
  background-color: #f4f4f4;
  text-align: center;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1rem;
  border-bottom: 1px solid #eee;
}

.list {
  max-width: 900px;
  margin: 1rem auto;
  padding: 0 1rem;
}

.post {
  padding: .75rem 0;
  border-bottom: 1px solid #eee;
}

.post a {
  text-decoration: none;
  font-size: 1.05rem;
}

.muted {
  opacity: .7;
  font-size: .9rem;
}

header.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  backdrop-filter: blur(2px);
  background: rgba(255, 255, 255, .35);
}

header.toolbar .actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  gap: 12px;
  padding: 12px;
  background: #f6f7fb;
}

.sx {
  border-right: 1px solid rgba(0, 0, 0, .06);
  background: rgba(244, 212, 65, .18);
  backdrop-filter: blur(1px);
  display: flex;
  flex-direction: column;
}

.dx {
  padding: 14px;
  overflow: auto;
}

.grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: .6rem 1rem;
  align-items: center;
}

.thumb {
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 10px;
  padding: 6px;
  display: block;
  text-align: center;
  text-decoration: none;
  background: rgba(255, 255, 255, .65);
}

.thumb img {
  max-width: 100%;
  max-height: 140px;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

.thumb .fname {
  font-size: 12px;
  opacity: .85;
  margin-top: 6px;
}

.thumb.sel {
  outline: 3px solid var(--ve-accent);
}

.hint {
  opacity: .7;
  font-size: 13px;
  padding: 8px 12px;
}

.sec {
  border-bottom: 1px dashed rgba(0, 0, 0, .08);
}

.col {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.card {
  background: #fff;
  border: 1px solid #e6e8f0;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.card h3 {
  margin: .75rem 1rem;
  font-size: 1rem;
}

.card .body {
  padding: 0 1rem 1rem;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.35;
}

textarea {
  flex: 1 1 auto;
  min-height: 0;
  border: 0;
  outline: 0;
  resize: none;
  padding: 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
}

.toolbar {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 10px;
}

.note {
  font-size: .85rem;
  color: #667085;
  margin: 0 1rem .5rem;
}

figure {
  margin: 0 0 1rem;
}

figcaption {
  font-size: .9rem;
  opacity: .8;
  text-align: center;
  margin-top: .25rem;
}

fieldset {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  max-width: 860px;
}

pre {
  background: #f7f7f7;
  padding: 1rem;
  border-radius: 8px;
  max-height: 45vh;
  overflow: auto;
}

label {
  font-weight: 600;
}

input[type=date],
input[type=text],
select {
  width: 100%;
  padding: .45rem .6rem;
  border: 1px solid #bbb;
  border-radius: 8px;
}

small {
  color: #555;
}

.banner {
  padding: .6rem 1rem;
  border-radius: 8px;
  margin: .8rem 0;
}

.warn {
  background: #fff3cd;
  border: 1px solid #ffeeba;
}

.ok {
  background: #e6ffed;
  border: 1px solid #b7f5c1;
}

.err {
  background: #ffe6e6;
  border: 1px solid #ffb3b3;
}

summary {
  font-weight: 600;
  cursor: pointer;
}

input[type=text] {
  width: 100%;
  padding: .45rem .6rem;
  border: 1px solid #bbb;
  border-radius: 8px;
}

#global-user-badge .menu a {
  display: block;
  width: 100%;
  padding: 8px 10px;
  color: #222;
  text-decoration: none;
  border-radius: 8px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

#global-user-badge .menu a:hover {
  background: #f0f4fb;
}

#global-user-badge .sep {
  height: 1px;
  background: #eef2f9;
  margin: 6px 0;
}

img:hover {
  border-color: blue;
}

.upload-box {
  background: white;
  padding: 2em;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.upload-box h2 {
  margin-bottom: 1em;
}

.upload-box input[type="file"] {
  margin-bottom: 1em;
}

.upload-box button {
  margin-top: 1em;
}

.upload-box img.piggies {
  width: 100px;
  margin: 1em auto;
  display: block;
  opacity: 0.9;
}

.msg {
  margin-top: 1em;
  font-weight: bold;
}

@media (max-width: 576px) {
  .login-box {
    position: static;
    margin: 1rem auto;
    width: 90%;
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  :root {
    --vv-header-clear: 48px;
  }
}

@media (max-width: 720px) {
  .vv-deskpanel {
    left: 0;
    width: calc(100% - 2px);
    height: 50vh;
  }
}

@media (max-width: 900px) {
  .vv-slot-title {
    border-right: 0;
    margin-bottom: .25rem;
  }

  .wrap {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  :root {
    --vv-content: min(90vw, 72ch);
  }
}

@media (max-width:640px) {
  .wrap {
    grid-template-columns: 1fr;
  }

  .sx {
    height: 35vh;
  }

  .dx {
    height: 65vh;
  }
}

/* build-ts:20250915_171621 */
/* usato in visualizza_post.php e in */
.vv-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}

.vv-post-header h1 {
  margin: 0;
  font-size: 1.8rem;
}

/* Wallpaper globale di fallback */
/* Header post riusabile */
.vv-post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.vv-post-header h1 {
  margin: 0;
  line-height: 1.2;
}

.vv-trad-widget {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.vv-trad-widget select {
  padding: .25rem .5rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}

/* Flow pagina post */
body.theme-default.page-visualizza-post {
  display: block;
  height: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Toaster minimale */
.vv-toast {
  position: fixed;
  top: .75rem;
  right: .75rem;
  z-index: 9999;
  background: rgba(30, 30, 30, .92);
  color: #fff;
  padding: .55rem .75rem;
  border-radius: .5rem;
  font-size: .95rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  transition: opacity .25s ease, transform .25s ease;
}

.vv-toast.hide {
  opacity: 0;
  transform: translateY(-8px);
}

.vv-float-left {
  float: left;
  margin: 0 15px 10px 0;
  max-width: 40%;
  height: auto;
}

.vv-float-right {
  float: right;
  margin: 0 0 10px 15px;
  max-width: 40%;
  height: auto;
}

.vv-center {
  display: block;
  margin: 10px auto;
  max-width: 70%;
  height: auto;
}

@media (max-width:700px) {

  .vv-float-left,
  .vv-float-right {
    float: none !important;
    display: block;
    margin: 10px auto;
    max-width: 100%;
  }
}

/* Media query per evitare accecamenti su schermi piccoli */
@media (max-width: 768px) {
  body[class*="bg-"] {
    background-blend-mode: multiply;
  }
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  /* ≈ 16px, non forziamo 24 */
  line-height: 1.5;
}

/* Google Fonts (spostato in cima — @import richiede posizione top-of-file) */

/* Default: leggibile */
:root {
  --vv-font-ui: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --vv-font-title: var(--vv-font-ui);
  --vv-font-body: var(--vv-font-ui);
}

/* Preset 1: Comic Neue */
body.vv-font-comicneue {
  --vv-font-title: "Comic Neue", var(--vv-font-ui);
  --vv-font-body: "Comic Neue", var(--vv-font-ui);
}

/* Preset 2: Baloo 2 */
body.vv-font-baloo {
  --vv-font-title: "Baloo 2", var(--vv-font-ui);
  --vv-font-body: var(--vv-font-ui);
  /* testo normale, Baloo solo titoli */
}

/* Preset 3: Fredoka */
body.vv-font-fredoka {
  --vv-font-title: "Fredoka", var(--vv-font-ui);
  --vv-font-body: "Fredoka", var(--vv-font-ui);
}

.vv-post-title,
h1,
h2,
h3,
.vv-h1,
.vv-h2,
.vv-h3 {
  font-family: var(--vv-font-title);
}

:root {
  --vv-font-ui: "Fredoka", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --vv-font-body: var(--vv-font-ui);
}

/* === Visibility pill (lista post) === */
.vv-visibility-pill {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  border: 1px solid rgba(0, 0, 0, .12);
  text-shadow: none;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.vv-visibility-pill.is-public {}

.vv-visibility-pill.is-private {}

.vv-visibility-pill.is-nat {}

.vv-btn,
.vv-badge,
.vv-lang {
  background: var(--vv-green);
  color: #fff;
  border: 1px solid var(--vv-green-dark);
  border-radius: 8px;
  padding: 4px 8px;
}

.vv-btn:hover,
.vv-lang:hover {
  background: var(--vv-green-light);
}

.vv-audio-player {
  background: rgba(46, 125, 50, 0.15);
  border: 1px solid var(--vv-green);
  border-radius: 10px;
  backdrop-filter: blur(4px);
}