/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com
Saved: Jul 01 2026 | 14:36:12 */
/* ===== FONT LATO LOCALE (ex snippet 274 — accorpato qui) ===== */
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/lato-v25-latin_latin-ext-regular.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: italic; font-weight: 400; font-display: swap; src: url('/wp-content/uploads/fonts/lato-v25-latin_latin-ext-italic.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url('/wp-content/uploads/fonts/lato-v25-latin_latin-ext-700.woff2') format('woff2'); }
@font-face { font-family: 'Lato'; font-style: italic; font-weight: 700; font-display: swap; src: url('/wp-content/uploads/fonts/lato-v25-latin_latin-ext-700italic.woff2') format('woff2'); }
:root { --font-body: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif; --font-heading: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif; }
body { font-family: var(--font-body) !important; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading) !important; }

/******* Do not edit this file *******
Simple Custom CSS and JS - by Silkypress.com */
/* ============================================================
   FONDAZIONE VILLA D'ARGENTO — Palette colori e accessibilita
   ============================================================
   Fonte unica della SKIN del sito: colori, contrasti, focus.
   La struttura (layout, posizionamento, dimensioni) sta nel
   Customizer. Qui solo regole di colore/stato visivo.

   CONFORMITA WCAG 2.2 AA:
   - Bottoni Villa: #1D6FB8 su bianco = 4.53:1 (AA OK)
   - Link/heading: contrasti verificati >= 4.5:1
   - Focus visibile: outline 3px #1D6FB8 anche con hide-focus-outline
   - Slider news: testo bianco su #1D6FB8 = 4.53:1 (AA OK)
   ============================================================ */


/* === 1. PALETTE GLOBALE: link, heading ====================== */

a       { color: #1D6FB8 !important; }
a:hover { color: #155a96 !important; }

h1, h2, h3, h4, h5, h6 {
  color: #1E293B;
}


/* === 2. BOTTONI ============================================= */

/* Bottoni Kadence/WP block (default tema) */
.wp-block-button__link,
.kb-btn,
.kt-button {
  background-color: #1D6FB8 !important;
  border-color: #1D6FB8 !important;
  color: #ffffff !important;
}
.wp-block-button__link:hover,
.kb-btn:hover,
.kt-button:hover {
  background-color: #155a96 !important;
  border-color: #155a96 !important;
}

/* Bottoni outline */
.wp-block-button.is-style-outline .wp-block-button__link,
.kt-btn-outline {
  background-color: transparent !important;
  border-color: #1D6FB8 !important;
  color: #1D6FB8 !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.kt-btn-outline:hover {
  background-color: #1D6FB8 !important;
  color: #ffffff !important;
}

/* Bottoni custom Villa (sezione Orari, 5x1000) */
a.villa-btn-primary {
  background: #1D6FB8 !important;
  border-color: #1D6FB8 !important;
  color: #ffffff !important;
}
a.villa-btn-primary:hover {
  background: transparent !important;
  color: #1D6FB8 !important;
}

a.villa-btn-outline {
  color: #ffffff !important;
  border-color: rgba(255,255,255,0.65) !important;
}
a.villa-btn-outline:hover {
  border-color: #1D6FB8 !important;
  color: #1D6FB8 !important;
}

/* Bottone sezione Benvenuti */
.villa-welcome-btn       { background: #1D6FB8 !important; color: #ffffff !important; }
.villa-welcome-btn:hover { background: #155a96 !important; color: #ffffff !important; }
.villa-welcome-label     { color: #1D6FB8 !important; }

/* Bottoni sezione Ospitalita */
.villa-ospitalita-btn-primary       { background: #1D6FB8 !important; color: #ffffff !important; }
.villa-ospitalita-btn-primary:hover { background: #155a96 !important; color: #ffffff !important; }


/* === 3. SLIDER NEWS (palette) =============================== */

.villa-news-text-col {
  background: #1D6FB8 !important;
}
.villa-news-tag {
  color: #1E293B !important;
  background-color: rgba(255, 255, 255, 0.85) !important;
}
.villa-news-slide-title {
  color: #ffffff !important;
  text-shadow: none !important;
}
.villa-news-slide-desc {
  color: #ffffff !important;
}
.villa-news-btn {
  border-color: #ffffff !important;
  background: rgba(255,255,255,0.92) !important;
  color: #1D6FB8 !important;
}
.villa-news-btn:hover {
  background: #ffffff !important;
  color: #155a96 !important;
}

/* Dots slider news — conformi WCAG 1.4.11 (Non-text Contrast).
   Inactive #5a7ca8 su #f8fafc = 4.11:1, Active #1D6FB8 = 5.00:1 */
.villa-dot,
.villa-news-dots button.villa-dot,
#villaNewsDots button.villa-dot {
  background: #5a7ca8 !important;
}
.villa-dot.active,
.villa-news-dots button.villa-dot.active,
#villaNewsDots button.villa-dot.active {
  background: #1D6FB8 !important;
}


/* === 4. CARD SERVIZI: bordo e icone ========================= */
/* Sezione "I nostri servizi" Home: 4 card scure con accenti blu */

.kt-blocks-info-box-link-wrap {
  border-top-color: #4C9EE0 !important;
}

/* Link "Scopri di piu" delle card */
.kt-blocks-info-box-learnmore {
  color: #4C9EE0 !important;
}
.kt-blocks-info-box-learnmore:hover {
  color: #74b9e8 !important;
}

/* Icone SVG card (color tono Kadence accent) */
.kb-svg-icon-wrap svg {
  color: #4c9ee0 !important;
  stroke: #4c9ee0 !important;
}


/* === 5. FIX WCAG colori specifici =========================== */

/* Label "Il nostro codice fiscale" nella sezione 5x1000 */
.va-stat-box span:first-child {
  color: #475569 !important;
}

/* Menu voce attiva (current-menu-item gestita da WordPress).
   WordPress aggiunge automaticamente current-menu-item al li
   corrispondente alla pagina corrente (voci di tipo page_link). */
#primary-menu > li.current-menu-item > a {
  color: #1D6FB8 !important;
  border-bottom: 2px solid #1D6FB8 !important;
  font-weight: 600 !important;
}

/* Voce genitore della pagina corrente: semibold senza border */
#primary-menu > li.current-menu-ancestor > a,
#primary-menu > li.current-menu-parent > a {
  color: #1D6FB8 !important;
  font-weight: 600 !important;
}

/* Voce attiva nei sub-menu (incluso mega menu Servizi alla persona) */
#masthead .main-navigation .sub-menu li.current-menu-item > a,
#masthead .main-navigation .sub-menu li.current-menu-ancestor > a {
  color: #1D6FB8 !important;
  background: #EBF3FB !important;
  font-weight: 600 !important;
}

/* Mega menu Servizi alla persona: evidenzia l'AREA cliccata (livello 1
   del sottomenu di menu-item-31). Le sottovoci sono ancore della stessa
   pagina-Area, quindi non si evidenziano singolarmente: la voce davvero
   "attiva" e' l'Area che contiene quell'ancora. */
#menu-item-31 > .sub-menu > li.current-menu-item > a,
#menu-item-31 > .sub-menu > li.current-menu-ancestor > a {
  color: #1D6FB8 !important;
  border-bottom-color: #1D6FB8 !important;
}


/* === 6. FOCUS VISIBILE (WCAG 2.4.7 / 2.4.11) ================ */
/* SOLO da navigazione tastiera (:focus-visible), NON al click mouse.
   Questo evita il rettangolo blu indesiderato sui link nav quando
   si clicca col mouse, ma mantiene il focus visibile per chi naviga
   con Tab (requisito WCAG AA).
   Combatte body.hide-focus-outline di Kadence. */

html body.hide-focus-outline :focus-visible,
:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #1D6FB8 !important;
  outline-offset: 2px !important;
  outline-style: solid !important;
}

/* Click mouse sui link nav top-level: NESSUN outline visibile.
   La voce attiva e gia indicata da .current-menu-item (border-bottom blu). */
#primary-menu > li > a:focus:not(:focus-visible),
.main-navigation a:focus:not(:focus-visible) {
  outline: none !important;
}


/* === 7. SR-ONLY (screen-reader only) ======================== */

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* === FIX WCAG — link-bottoni con background inline
   207.css imposta a { color: #1D6FB8 !important } globalmente.
   Quando un <a> ha background:#1D6FB8 inline (bottoni primari),
   il testo risulta blu su blu → illeggibile.
   Override con specificità massima: html body + attribute selector. */
html body a[style*="background:#1D6FB8"],
html body a[style*="background: #1D6FB8"] {
  color: #ffffff !important;
}
html body a[style*="background:#1D6FB8"]:hover,
html body a[style*="background: #1D6FB8"]:hover {
  color: #ffffff !important;
}

/* Stessa fix per link-bottoni con background:#1a2e4a (dark navy inline) */
html body a[style*="background:#1a2e4a"],
html body a[style*="background: #1a2e4a"] {
  color: #ffffff !important;
}
/* ===== SEZIONE SCURA RIUTILIZZABILE =====
   Aggiungi la classe CSS "va-bg-dark" a una Riga Kadence (Avanzate > Classi CSS aggiuntive)
   per ottenere sfondo scuro + testo chiaro accessibile, anche su pagine nuove. ===== */
.va-bg-dark { background-color: #1a2e4a !important; }
.va-bg-dark, .va-bg-dark h1, .va-bg-dark h2, .va-bg-dark h3, .va-bg-dark h4, .va-bg-dark h5, .va-bg-dark h6, .va-bg-dark p, .va-bg-dark li { color: #F8FAFC !important; }
.va-bg-dark p.wp-block-paragraph { color: #CBD5E1 !important; }
.va-bg-dark a { color: #CFE2F5 !important; }
