/* Volgarino Privacy & Cookie — CSS isolato dal tema WordPress. */
:root {
  --vpc-accent: #647A37;
  --vpc-ink: #1D2A1C;
  --vpc-text: #495348;
  --vpc-muted: #728070;
  --vpc-line: #E2E8DB;
  --vpc-pale: #F1F5E9;
  --vpc-shadow: 0 22px 70px rgba(16, 36, 44, .16);
}
#vpc-banner[hidden], #vpc-overlay[hidden], #vpc-overlay [hidden],
#vpc-auto-footer [hidden], .vpc-footer-links [hidden], .vpc-embed-wrapper iframe[hidden] { display: none !important; }
body.vpc-modal-open { overflow: hidden !important; }

.vpc-banner, .vpc-overlay, .vpc-footer-links, #vpc-auto-footer,
.vpc-standalone, .vpc-embed-wrapper { box-sizing: border-box; }
.vpc-banner *, .vpc-overlay *, .vpc-footer-links *, #vpc-auto-footer *,
.vpc-standalone *, .vpc-embed-wrapper * { box-sizing: border-box; }

/* Collegamenti riconosciuti nel footer e nel form, creati da JavaScript. */
a.vpc-recognized-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  text-underline-offset: .22em;
  cursor: pointer;
}
/* Titoli Elementor: alcuni temi annullano la sottolineatura dei link nel widget Heading. */
.elementor-heading-title a.vpc-recognized-link {
  color: inherit !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: .20em !important;
}
.elementor-heading-title a.vpc-recognized-link:hover,
.elementor-heading-title a.vpc-recognized-link:focus-visible {
  color: var(--vpc-accent) !important;
}
a.vpc-recognized-link:hover, a.vpc-recognized-link:focus-visible {
  color: var(--vpc-accent);
  text-decoration-color: currentColor;
}
a.vpc-recognized-link:focus-visible, .vpc-footer-links a:focus-visible,
.vpc-btn:focus-visible, .vpc-close:focus-visible, .vpc-switch input:focus-visible + .vpc-switch-track {
  outline: 3px solid rgba(100, 122, 55, .34);
  outline-offset: 3px;
}

/* Widget / barra footer: rispettare la grafica del tema. */
#vpc-auto-footer {
  width: 100%;
  padding: 13px 18px 16px;
  display: flex;
  justify-content: center;
}
.vpc-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
}
.vpc-footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 8px;
  transition: background .16s ease, color .16s ease;
  cursor: pointer;
}
.vpc-footer-links a:hover { background: rgba(127, 161, 166, .15); color: var(--vpc-accent); }
.vpc-footer-links svg { width: 15px; height: 15px; flex: 0 0 15px; }
.vpc-footer-sep { opacity: .32; user-select: none; }

/* Banner compatto, con azioni equivalenti per accettare o rifiutare. */
.vpc-banner {
  position: fixed !important;
  z-index: 2147483000 !important;
  left: 22px;
  right: 22px;
  bottom: 22px;
  width: min(1040px, calc(100% - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 196px;
  gap: 18px;
  align-items: start;
  padding: 24px 29px 24px 23px;
  border: 1px solid rgba(215, 229, 231, .92);
  border-radius: 22px;
  background: #ffffff;
  color: var(--vpc-ink);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: var(--vpc-shadow);
}
.vpc-banner-illustration, .vpc-dialog-icon {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border-radius: 14px;
  background: var(--vpc-pale);
  color: var(--vpc-accent);
}
.vpc-banner-illustration svg { width: 26px; height: 26px; }
.vpc-banner h2 {
  margin: 0 0 6px !important;
  padding: 0;
  font: 700 21px/1.25 inherit;
  font-family: inherit;
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  color: var(--vpc-ink);
  text-transform: none;
  letter-spacing: -.025em;
}
.vpc-banner p { margin: 0 !important; font-size: 13.5px; line-height: 1.6; color: var(--vpc-text); }
.vpc-banner-legal { display: flex; gap: 11px; margin-top: 11px; font-size: 12px; align-items: center; }
.vpc-banner-legal span { color: #a1b0b5; }
.vpc-banner-legal a { color: var(--vpc-accent); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.vpc-banner-actions { display: grid; gap: 8px; padding-top: 0; }
.vpc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 41px;
  width: auto;
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid var(--vpc-line);
  font: 600 13px/1.25 inherit;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.vpc-btn:active { transform: translateY(1px); }
.vpc-btn-primary { color: #fff; background: var(--vpc-accent); border-color: var(--vpc-accent); }
.vpc-btn-primary:hover { color: #fff; background: #115662; border-color: #115662; }
.vpc-btn-outline { background: #fff; color: var(--vpc-ink); border-color: #ccdadd; }
.vpc-btn-outline:hover { background: #f4f8f9; color: var(--vpc-ink); }
.vpc-btn-quiet { color: var(--vpc-accent); background: transparent; border-color: transparent; }
.vpc-btn-quiet:hover { color: #104e59; background: var(--vpc-pale); }
.vpc-btn-quiet svg { width: 16px; height: 16px; }
.vpc-close {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  border-radius: 10px;
  padding: 7px;
  background: transparent;
  color: #607780;
  cursor: pointer;
}
.vpc-close:hover { color: var(--vpc-ink); background: #eef4f5; }
.vpc-close svg { width: 18px; height: 18px; }
.vpc-banner-close { position: absolute; right: 8px; top: 8px; width: 27px; height: 27px; }

/* Finestra informativa e centro preferenze. */
.vpc-overlay {
  position: fixed !important;
  z-index: 2147483100 !important;
  inset: 0;
  background: rgba(15, 30, 36, .62);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  backdrop-filter: blur(5px);
}
.vpc-dialog {
  display: flex;
  flex-direction: column;
  width: min(740px, 100%);
  height: auto;
  max-height: min(91vh, 830px);
  background: #fff;
  color: var(--vpc-ink);
  border-radius: 22px;
  border: 1px solid rgba(224, 233, 235, .8);
  overflow: hidden;
  box-shadow: 0 25px 90px rgba(0, 15, 24, .28);
  outline: none;
}
.vpc-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 21px 26px 19px;
  border-bottom: 1px solid var(--vpc-line);
  flex-shrink: 0;
}
.vpc-dialog-head-title { display: flex; gap: 13px; align-items: center; }
.vpc-dialog-icon { width: 44px; height: 44px; border-radius: 13px; }
.vpc-dialog-icon svg { width: 23px; height: 23px; }
.vpc-eyebrow { margin: 0 0 2px !important; color: var(--vpc-muted); text-transform: uppercase; font-size: 10.5px !important; font-weight: 700; letter-spacing: .085em; }
.vpc-dialog-head h2 {
  margin: 0 !important;
  padding: 0;
  color: var(--vpc-ink);
  font-family: inherit;
  font-size: 21px;
  line-height: 1.27;
  font-weight: 750;
  text-transform: none;
}
.vpc-dialog-body { padding: 28px 30px 32px; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.vpc-policy-content { color: var(--vpc-text); font-size: 14px; line-height: 1.78; overflow-wrap: anywhere; }
.vpc-policy-content p { margin: 0 0 16px !important; color: inherit; font-size: inherit; line-height: inherit; }
.vpc-policy-content h3 { margin: 23px 0 9px !important; color: var(--vpc-ink); font-family: inherit; font-size: 16px; font-weight: 720; line-height: 1.4; text-transform: none; }
.vpc-policy-content h3:first-child { margin-top: 0 !important; }
.vpc-policy-content ul { margin: 9px 0 18px 21px !important; padding: 0; list-style: disc; }
.vpc-policy-content li { padding-left: 2px; margin: 0 0 8px; }
.vpc-policy-content a { color: var(--vpc-accent); text-decoration: underline; text-underline-offset: 3px; }
.vpc-policy-content code { font-size: .9em; border-radius: 5px; background: #f1f5f6; padding: 2px 5px; }
.vpc-dialog-foot { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 15px 25px; border-top: 1px solid var(--vpc-line); flex-shrink: 0; background: #fafcfc; }
.vpc-dialog-foot-note { display: inline-flex; gap: 8px; align-items: center; color: var(--vpc-muted); font-size: 11.5px; }
.vpc-dialog-foot-note svg { width: 16px; height: 16px; }
#vpc-pref-actions { display: flex; gap: 9px; align-items: center; }
.vpc-pref-intro { margin: 0 0 18px; color: var(--vpc-text); font-size: 14px; line-height: 1.6; }
.vpc-pref-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--vpc-line);
  cursor: pointer;
}
.vpc-pref-row strong { color: var(--vpc-ink); font-size: 14.2px; font-weight: 700; }
.vpc-pref-row p { margin: 3px 0 0 !important; color: var(--vpc-muted); font-size: 12.8px; line-height: 1.5; }
.vpc-always { white-space: nowrap; padding: 7px 10px; border-radius: 30px; background: #e7f5ee; color: #227453; font-size: 10.5px; font-weight: 720; }
.vpc-switch { position: relative; flex: 0 0 44px; width: 44px; height: 25px; }
.vpc-switch input { position: absolute; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.vpc-switch-track { display: block; width: 44px; height: 25px; background: #c3d0d4; border-radius: 40px; transition: background .2s ease; }
.vpc-switch-track::before { content: ''; display: block; position: absolute; left: 3px; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #243c4350; transition: transform .2s ease; }
.vpc-switch input:checked + .vpc-switch-track { background: var(--vpc-accent); }
.vpc-switch input:checked + .vpc-switch-track::before { transform: translateX(19px); }
.vpc-pref-footnote { color: var(--vpc-muted); font-size: 11.5px; line-height: 1.65; margin: 18px 0 0; }

/* Segnaposto sicuro per Google Maps finché non è consentito il caricamento. */
.vpc-embed-wrapper { width: 100%; min-width: 0; }
.vpc-embed-wrapper iframe:not([hidden]) { display: block; max-width: 100%; }
.vpc-embed-prompt { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 9px; min-height: 220px; padding: 25px; border-radius: 14px; border: 1px dashed #b7ced1; background: #f4f9f9; color: var(--vpc-ink); }
.vpc-embed-symbol { font-size: 27px; color: var(--vpc-accent); }
.vpc-embed-prompt strong { font-size: 15px; }
.vpc-embed-prompt p { margin: 0 0 4px !important; color: var(--vpc-text); font-size: 12.5px; }

/* Versioni delle policy senza JavaScript: link leggibile da tutti. */
.vpc-standalone-page { background: #f2f6f7; margin: 0; }
.vpc-standalone { max-width: 850px; padding: 40px 20px 70px; margin: auto; font-family: system-ui, -apple-system, sans-serif; }
.vpc-standalone-card { background: #fff; border-radius: 22px; padding: 36px 42px; border: 1px solid var(--vpc-line); box-shadow: 0 12px 38px rgba(13, 42, 50, .06); }
.vpc-standalone-card h1 { font-size: 29px; color: var(--vpc-ink); margin: 0 0 25px; }
.vpc-back-link { display: inline-block; margin-bottom: 18px; color: var(--vpc-accent); text-decoration: none; }

@media (max-width: 850px) {
  .vpc-banner { grid-template-columns: 44px 1fr; gap: 13px; padding: 21px 20px; }
  .vpc-banner-illustration { width: 44px; height: 44px; }
  .vpc-banner-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; }
  .vpc-banner-actions .vpc-btn { flex: 1 1 130px; }
}
@media (max-width: 580px) {
  .vpc-banner { left: 10px; right: 10px; bottom: 10px; width: calc(100% - 20px); border-radius: 16px; grid-template-columns: 1fr; gap: 9px; padding: 17px 16px 16px; }
  .vpc-banner-illustration { display: none; }
  .vpc-banner h2 { font-size: 18px; padding-right: 22px; }
  .vpc-banner p { font-size: 12.5px; }
  .vpc-banner-actions { grid-column: 1; display: grid; grid-template-columns: 1fr 1fr; }
  .vpc-banner-actions .vpc-btn { min-height: 40px; padding: 9px; }
  .vpc-banner-actions .vpc-btn-quiet { grid-column: 1 / -1; min-height: 32px; }
  .vpc-overlay { padding: 10px; }
  .vpc-dialog { border-radius: 15px; max-height: 96dvh; }
  .vpc-dialog-head { padding: 16px; }
  .vpc-dialog-head h2 { font-size: 18px; }
  .vpc-dialog-icon { width: 37px; height: 37px; }
  .vpc-dialog-body { padding: 20px 18px; }
  .vpc-dialog-foot { padding: 12px 15px; }
  .vpc-dialog-foot-note { display: none; }
  #vpc-pref-actions { width: 100%; }
  #vpc-pref-actions .vpc-btn { flex: 1 1 0; }
  .vpc-pref-row { gap: 10px; }
  .vpc-always { padding: 6px 7px; white-space: normal; text-align: center; }
  .vpc-standalone-card { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .vpc-btn, .vpc-switch-track, .vpc-switch-track::before, .vpc-footer-links a { transition: none !important; }
}
