/*
 * Farmacia Liviero — palette del logo.
 * Questo file viene caricato dopo la skin Medinova e ne personalizza i colori
 * senza modificare i file originali del template.
 */
:root {
  --brand-primary: #95ae8c;
  --brand-primary-rgb: 149, 174, 140;
  --brand-primary-dark: #52634d;
  --brand-primary-hover: #6f8567;
  --brand-secondary: #b4827b;
  --brand-secondary-rgb: 180, 130, 123;
  --brand-secondary-dark: #7d554f;
  --brand-secondary-hover: #966a64;
  --brand-ink: #263126;

  /* Variabili lette direttamente dai componenti Medinova. */
  --theme-color1: var(--brand-primary);
  --theme-color1-rgb: var(--brand-primary-rgb);
  --theme-color2: var(--brand-secondary);
  --theme-color2-rgb: var(--brand-secondary-rgb);
}

/* Link e testi colorati usano le varianti scure per mantenere il contrasto. */
.text-theme-colored1,
.text-hover-theme-colored1:hover,
ul.list.theme-colored1 li::before,
.list-icon.theme-colored1 li i,
.tm-sc-blog.blog-style-default article .entry-content .entry-meta i {
  color: var(--brand-primary-dark) !important;
}

.text-theme-colored2,
.text-hover-theme-colored2:hover {
  color: var(--brand-secondary-dark) !important;
}

a {
  color: var(--brand-primary-dark);
}

a:hover,
a:focus {
  color: var(--brand-secondary-dark);
}

.border-theme-colored1,
.border-1px-theme-colored1,
.btn-outline-theme-colored1,
.form-check-input:focus {
  border-color: var(--brand-primary) !important;
}

.border-theme-colored2,
.border-1px-theme-colored2,
.btn-outline-theme-colored2 {
  border-color: var(--brand-secondary) !important;
}

.bg-theme-colored1,
.badge.bg-theme-colored1,
.list-icon.theme-colored1.square li i,
.list-icon.theme-colored1.rounded li i,
.progress-item .progress-bar,
.product .tag-sale {
  background-color: var(--brand-primary) !important;
}

.bg-theme-colored2,
.badge.bg-theme-colored2 {
  background-color: var(--brand-secondary) !important;
}

header#header .header-top {
  background-color: var(--brand-primary) !important;
}

/* Pulsanti primari. */
.btn-theme-colored1 {
  color: #fff !important;
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

.menuzord.theme-color1 .menuzord-menu > li.active > a,
.menuzord.theme-color1 .menuzord-menu > li:hover > a,
.menuzord.theme-color2 .menuzord-menu > li.active > a,
.menuzord.theme-color2 .menuzord-menu > li:hover > a {
  color: #fff !important;
}

.btn-theme-colored1:hover,
.btn-theme-colored1:focus,
.btn-check:checked + .btn-theme-colored1,
.btn-check:active + .btn-theme-colored1,
.btn-theme-colored1:active,
.btn-theme-colored1.active {
  color: #fff !important;
  background-color: var(--brand-primary-dark) !important;
  border-color: var(--brand-primary-dark) !important;
}

.btn-outline-theme-colored1 {
  color: var(--brand-primary-dark) !important;
  background-color: transparent;
}

.btn-outline-theme-colored1:hover,
.btn-outline-theme-colored1:focus,
.btn-check:checked + .btn-outline-theme-colored1,
.btn-check:active + .btn-outline-theme-colored1,
.btn-outline-theme-colored1:active {
  color: var(--brand-ink) !important;
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

/* Pulsanti secondari. */
.btn-theme-colored2 {
  color: #fff !important;
  background-color: var(--brand-secondary) !important;
  border-color: var(--brand-secondary) !important;
}

.btn-theme-colored2:hover,
.btn-theme-colored2:focus,
.btn-check:checked + .btn-theme-colored2,
.btn-check:active + .btn-theme-colored2,
.btn-theme-colored2:active,
.btn-theme-colored2.active {
  color: #fff !important;
  background-color: var(--brand-secondary-dark) !important;
  border-color: var(--brand-secondary-dark) !important;
}

.btn-outline-theme-colored2 {
  color: var(--brand-secondary-dark) !important;
  background-color: transparent;
}

.btn-outline-theme-colored2:hover,
.btn-outline-theme-colored2:focus,
.btn-check:checked + .btn-outline-theme-colored2,
.btn-check:active + .btn-outline-theme-colored2,
.btn-outline-theme-colored2:active {
  color: #fff !important;
  background-color: var(--brand-secondary) !important;
  border-color: var(--brand-secondary) !important;
}

.btn-theme-colored1:focus,
.btn-outline-theme-colored1:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--brand-primary-rgb), 0.35) !important;
}

.btn-theme-colored2:focus,
.btn-outline-theme-colored2:focus {
  box-shadow: 0 0 0 0.25rem rgba(var(--brand-secondary-rgb), 0.35) !important;
}

/* Overlay della hero e varianti trasparenti usate dal template. */
.layer-overlay.overlay-theme-colored1::before { background-color: rgba(var(--brand-primary-rgb), 0.9) !important; }
.layer-overlay.overlay-theme-colored1-1::before { background-color: rgba(var(--brand-primary-rgb), 0.1) !important; }
.layer-overlay.overlay-theme-colored1-2::before { background-color: rgba(var(--brand-primary-rgb), 0.2) !important; }
.layer-overlay.overlay-theme-colored1-3::before { background-color: rgba(var(--brand-primary-rgb), 0.3) !important; }
.layer-overlay.overlay-theme-colored1-4::before { background-color: rgba(var(--brand-primary-rgb), 0.4) !important; }
.layer-overlay.overlay-theme-colored1-5::before { background-color: rgba(var(--brand-primary-rgb), 0.5) !important; }
.layer-overlay.overlay-theme-colored1-6::before { background-color: rgba(var(--brand-primary-rgb), 0.6) !important; }
.layer-overlay.overlay-theme-colored1-7::before { background-color: rgba(var(--brand-primary-rgb), 0.78) !important; }
.layer-overlay.overlay-theme-colored1-8::before { background-color: rgba(var(--brand-primary-rgb), 0.8) !important; }
.layer-overlay.overlay-theme-colored1-9::before { background-color: rgba(var(--brand-primary-rgb), 0.9) !important; }

.layer-overlay.overlay-theme-colored2::before { background-color: rgba(var(--brand-secondary-rgb), 0.9) !important; }
.layer-overlay.overlay-theme-colored2-7::before { background-color: rgba(var(--brand-secondary-rgb), 0.7) !important; }
.layer-overlay.overlay-theme-colored2-8::before { background-color: rgba(var(--brand-secondary-rgb), 0.8) !important; }
.layer-overlay.overlay-theme-colored2-9::before { background-color: rgba(var(--brand-secondary-rgb), 0.9) !important; }

/* Elementi accessori Medinova. */
.icon-theme-colored1 a,
.icon-box.iconbox-theme-colored1 .icon,
.tm-widget-contact-info.contact-icon-theme-colored1 i {
  color: var(--brand-primary-dark) !important;
}

.icon-box.iconbox-theme-colored1 .icon.icon-dark,
.tm-sc-blog.blog-style-default article .entry-header .link,
.scrollToTop {
  background: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}

.line-bottom-theme-colored1::after,
.line-bottom-theme-colored1::before,
.widget .widget-title.widget-title-line-bottom.line-bottom-theme-colored1::after,
footer#footer .widget .widget-title.widget-title-line-bottom.line-bottom-theme-colored1::after {
  background-color: var(--brand-primary) !important;
}

.form-check-input:checked {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
}

::selection {
  color: var(--brand-ink);
  background: var(--brand-primary);
}
