/* Tema "cna": loaded after vouchermatch.css. Semiodigital palette stays, CNA blue
   (#005ca9, from catania.cna.it) takes the role of the secondary accent; white
   header with the CNA Catania logo, CNA blue to navy hero. */

.theme-cna {
  --cna-blue: #005ca9;       /* 6.8:1 on white, 6.3:1 on the page background */
  --cna-blue-dark: #004a88;
  --vm-lightblue: #005ca9;
  --bs-focus-ring-color: rgba(0, 92, 169, 0.3);
}

/* Plain text links only: :where() keeps specificity below .btn-*, .badge-*, hero and alert rules. */
:where(.theme-cna main) a:not([class]) {
  color: var(--cna-blue);
}

.theme-cna .btn-outline-blue {
  color: var(--cna-blue);
  border-color: var(--cna-blue);
}

.theme-cna .btn-outline-blue:hover,
.theme-cna .btn-outline-blue:focus {
  background-color: var(--cna-blue);
  border-color: var(--cna-blue);
  color: #fff;
}

.theme-cna .form-control:focus,
.theme-cna .form-select:focus,
.theme-cna .form-check-input:focus {
  border-color: var(--cna-blue);
  box-shadow: 0 0 0 0.2rem rgba(0, 92, 169, 0.2);
}

.theme-cna .form-check-input:checked {
  background-color: var(--cna-blue);
  border-color: var(--cna-blue);
}

.theme-cna .vm-steps-light li::before {
  background: var(--cna-blue);
  color: #fff;
}

.theme-cna .badge-verified {
  background-color: var(--cna-blue);
  color: #fff;
}

/* ---- Hero ---- */

/* Logo row: CNA Catania first at its usual 40px; SinergIA is wide, 32px matches its weight. */
.theme-cna .vm-hero-by .vm-hero-logos a:first-child img {
  height: 40px;
}

.theme-cna .vm-hero-by .vm-hero-logos a + a img {
  height: 32px;
}

@media (max-width: 575.98px) {
  .theme-cna .vm-hero-by .vm-hero-logos a:first-child img {
    height: 34px;
  }

  .theme-cna .vm-hero-by .vm-hero-logos a + a img {
    height: 26px;
  }
}

/* Dates box on the right of the hero. */
.vm-hero-aside {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--vm-radius);
}

.vm-hero-aside .vm-eyebrow {
  color: var(--vm-yellow);
}

.vm-timeline-dark {
  border-left-color: rgba(255, 255, 255, 0.25);
}

.vm-timeline-dark li {
  color: #fff;
  padding-bottom: 1.1rem;
}

.vm-timeline-dark li::before {
  border-color: transparent;
}

/* ---- White CNA header ---- */

.theme-cna .vm-navbar {
  background-color: #fff;
  border-bottom: 3px solid var(--vm-yellow);
  box-shadow: 0 1px 8px rgba(17, 24, 62, 0.06);
}

.theme-cna .vm-navbar .navbar-brand {
  color: var(--vm-blue);
}

.theme-cna .vm-navbar .navbar-brand .vm-accent {
  color: var(--cna-blue);
}

.theme-cna .vm-navbar .nav-link {
  color: var(--vm-blue);
}

.theme-cna .vm-navbar .nav-link:hover,
.theme-cna .vm-navbar .nav-link:focus {
  color: var(--cna-blue);
}

.vm-nav-cna {
  align-items: center;
  padding-right: 1rem;
  border-right: 1px solid #dfe3ee;
}

.vm-nav-cna img {
  height: 34px;
  width: auto;
}

.theme-cna .vm-by {
  color: var(--vm-muted);
  border-left-color: #dfe3ee;
}

/* Semiodigital stays in the header but quieter: small, greyscale, colour on hover. */
.theme-cna .vm-by {
  font-size: 0.65rem;
}

.theme-cna .vm-by img {
  height: 20px;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.2s ease, opacity 0.2s ease;
}

.theme-cna .vm-by:hover {
  color: var(--vm-blue);
}

.theme-cna .vm-by:hover img,
.theme-cna .vm-by:focus img {
  filter: none;
  opacity: 1;
}

.theme-cna .vm-hero {
  background: linear-gradient(120deg, var(--cna-blue) 0%, #0d3a75 55%, var(--vm-blue) 100%);
}

/* #8fd3fe is only 4.2:1 on CNA blue: hero links go white + underline (6.8:1). */
.theme-cna .vm-hero a:not(.btn) {
  color: #fff;
}

.theme-cna .vm-hero-note {
  color: #dfe9f5; /* 5.5:1 on CNA blue */
}

/* ---- Footer ---- */

.vm-footer-sinergia {
  width: fit-content;
  line-height: 0;
}

.vm-footer-sinergia img {
  height: 32px;
  width: auto;
}
