/* =====================================================================================================================
   Vidori style kit (shared by the demo page, the chat widget, the incentives page and the site-survey PWA).
   Design tokens: Montserrat, brand red, square corners everywhere.
   Mobile first. No build step. Fonts are bundled (assist/static/fonts, SIL OFL) so it works offline.

   CSS VARIABLES (on :root)
     --vd-red #E30512        brand red (header bar, kickers, badges, links on hover)
     --vd-red-dark #B80410   hover state of red buttons
     --vd-ink #242424        headings          --vd-dark #212121   primary button / user bubble / footer
     --vd-text #777777       body text         --vd-link #333333   links and dark text
     --vd-bg-soft #F7F7F7    light background  --vd-line #EEEEEE / --vd-line-2 #D9DBDC   borders
     --vd-font               'Montserrat', Arial, Helvetica, sans-serif
     --vd-header-h 60px      fixed header height     --vd-radius 0   (square corners, never rounded)

   GENERIC CLASSES (use them in chat.css / the PWA instead of re-inventing the look)
     .vd-btn            dark button: #212121, white, UPPERCASE, weight 600, 14px, radius 0, min-height 44px
     .vd-btn--red       red variant (primary call to action, record button)
     .vd-btn--ghost     transparent with dark border;  .vd-btn--block full width;  .vd-btn[disabled] dimmed
     .vd-chip           square quick-reply chip (border 1px, 13px); .vd-chip--active filled dark; works on <button>/<a>
     .vd-card           white box, 1px #D9DBDC border, radius 0, padding 16px;  .vd-card--soft = #F7F7F7 background
     .vd-field          form group: <div class="vd-field"><label>..</label><input|select|textarea></div> (44px high inputs)
     .vd-badge          small uppercase label; modifiers --red (NUOVO), --dark, --hot, --warm, --cold, --ok, --warn
     .vd-title          centred section title (22px/400) with the short grey underline
     .vd-sr-only        visually hidden text for screen readers
   Page pieces: .vd-header (red bar) + .vd-brand + .vd-lang, .vd-wrap, .vd-footer.
   ===================================================================================================================== */

@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --vd-red: #E30512; --vd-red-dark: #B80410;
  --vd-ink: #242424; --vd-dark: #212121; --vd-text: #777777; --vd-link: #333333;
  --vd-bg-soft: #F7F7F7; --vd-line: #EEEEEE; --vd-line-2: #D9DBDC;
  --vd-font: 'Montserrat', Arial, Helvetica, sans-serif;
  --vd-header-h: 60px; --vd-radius: 0;
  --vd-ok: #2f7d4f; --vd-warn: #b36b00;
}

*, *::before, *::after { box-sizing: border-box; }
:where(html) { -webkit-text-size-adjust: 100%; }
:where(body) { margin: 0; font-family: var(--vd-font); font-size: 14px; font-weight: 300; line-height: 1.7; color: var(--vd-text); background: #fff; }
:where(h1, h2, h3, h4) { color: var(--vd-ink); font-weight: 400; margin: 0 0 .5em; line-height: 1.2; }
:where(a) { color: var(--vd-link); text-decoration: none; }
:where(a:hover) { color: var(--vd-red); }
:where(img) { max-width: 100%; display: block; }
:where(button, input, select, textarea) { font-family: inherit; }
.vd-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ generic components */
.vd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 28px;
  background: var(--vd-dark); color: #fff; border: 1px solid var(--vd-dark); border-radius: var(--vd-radius);
  font: 600 14px/1 var(--vd-font); text-transform: uppercase; letter-spacing: .02em; cursor: pointer; text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.vd-btn:hover { background: #000; border-color: #000; color: #fff; }
.vd-btn--red { background: var(--vd-red); border-color: var(--vd-red); }
.vd-btn--red:hover { background: var(--vd-red-dark); border-color: var(--vd-red-dark); }
.vd-btn--ghost { background: transparent; color: var(--vd-dark); }
.vd-btn--ghost:hover { background: var(--vd-dark); color: #fff; }
.vd-btn--block { display: flex; width: 100%; }
.vd-btn[disabled], .vd-btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.vd-btn:focus-visible, .vd-chip:focus-visible, .vd-field :is(input, select, textarea):focus-visible { outline: 2px solid var(--vd-red); outline-offset: 2px; }

.vd-chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; background: #fff; color: var(--vd-link);
  border: 1px solid var(--vd-line-2); border-radius: var(--vd-radius); font: 400 13px/1 var(--vd-font); cursor: pointer; text-decoration: none;
}
.vd-chip:hover { border-color: var(--vd-dark); color: var(--vd-dark); }
.vd-chip--active { background: var(--vd-dark); border-color: var(--vd-dark); color: #fff; }

.vd-card { background: #fff; border: 1px solid var(--vd-line-2); border-radius: var(--vd-radius); padding: 16px; }
.vd-card--soft { background: var(--vd-bg-soft); border-color: var(--vd-line); }

.vd-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.vd-field label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--vd-ink); }
.vd-field :is(input, select, textarea) {
  min-height: 44px; padding: 10px 12px; border: 1px solid var(--vd-line-2); border-radius: var(--vd-radius); background: #fff;
  font: 400 14px/1.4 var(--vd-font); color: var(--vd-ink); width: 100%;
}
.vd-field textarea { min-height: 96px; resize: vertical; }

.vd-badge {
  display: inline-block; padding: 2px 8px; border-radius: var(--vd-radius); background: var(--vd-bg-soft); border: 1px solid var(--vd-line-2);
  font: 600 11px/1.5 var(--vd-font); text-transform: uppercase; letter-spacing: .04em; color: var(--vd-link);
}
.vd-badge--red, .vd-badge--new { background: var(--vd-red); border-color: var(--vd-red); color: #fff; }
.vd-badge--dark { background: var(--vd-dark); border-color: var(--vd-dark); color: #fff; }
.vd-badge--hot { background: #fde8ea; border-color: var(--vd-red); color: var(--vd-red); }
.vd-badge--warm { background: #fff4d6; border-color: #f0d58a; color: var(--vd-warn); }
.vd-badge--cold { background: #eef3f8; border-color: #c9d6e3; color: #46627f; }
.vd-badge--ok { background: #e8f4ec; border-color: #b8d9c4; color: var(--vd-ok); }
.vd-badge--warn { background: #fff4d6; border-color: #f0d58a; color: var(--vd-warn); }

.vd-title { text-align: center; color: var(--vd-link); font-size: 22px; font-weight: 400; margin: 0 0 36px; }
.vd-title::after { content: ""; display: block; width: 44px; height: 2px; background: var(--vd-line-2); margin: 14px auto 0; }


/* ------------------------------------------------------------------ page header (red bar, text wordmark, language switch) */
.vd-has-header { padding-top: var(--vd-header-h); }
.vd-header {
  position: fixed; inset: 0 0 auto 0; height: var(--vd-header-h); z-index: 1000; background: var(--vd-red); color: #fff;
  display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
}
.vd-brand { color: #fff; font: 600 17px/1 var(--vd-font); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.vd-brand:hover { color: #fff; }
.vd-header-right { display: flex; align-items: center; gap: 14px; }
.vd-lang { display: flex; gap: 2px; }
.vd-lang button {
  min-width: 36px; height: 36px; padding: 0 8px; background: transparent; border: 1px solid transparent; color: #fff; cursor: pointer;
  font: 600 12px/1 var(--vd-font); border-radius: var(--vd-radius); opacity: .75;
}
.vd-lang button[aria-pressed="true"] { opacity: 1; border-color: #fff; }

/* ------------------------------------------------------------------ layout helpers + footer */
.vd-wrap { max-width: 1240px; margin: 0 auto; }
.vd-footer { background: var(--vd-dark); color: #b5b5b5; padding: 28px 16px; font-size: 13px; }
.vd-footer p { margin: 0 0 6px; }
.vd-note { border: 1px solid #555; padding: 12px 14px; color: #fff; margin: 0 0 18px; }
.vd-disclaimer { margin: 0; text-align: center; font-weight: 600; color: #fff; }

@media (max-width: 720px) {
  .vd-header { padding: 0 12px; }
  .vd-brand { font-size: 14px; }
  .vd-lang button { min-width: 32px; padding: 0 4px; }
}
