﻿/* ============================================
   WELL-E — Global Custom Styles
   Override Bootstrap 5 con colori brand WellE
   ============================================ */

/* ── Override variabili Bootstrap ─────────── */
[data-bs-theme], :root {
  --bs-primary: #5fe29b;
  --bs-primary-rgb: 95, 226, 155;
  --bs-secondary: #000069;
  --bs-secondary-rgb: 0, 0, 105;
  --bs-dark: #1a1a2e;
  --bs-dark-rgb: 26, 26, 46;
  --bs-body-color: #1a1a2e;
  --bs-body-font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  overflow-x: hidden;
}
a
{
text-decoration:none;color: #000069;
}
/* ── Bottoni Bootstrap con colori brand ───── */
.btn-primary {
  --bs-btn-bg: #5fe29b;
  --bs-btn-border-color: #5fe29b;
  --bs-btn-color: #000069;
  --bs-btn-hover-bg: #3cc77a;
  --bs-btn-hover-border-color: #3cc77a;
  --bs-btn-hover-color: #000069;
  --bs-btn-active-bg: #3cc77a;
  --bs-btn-active-border-color: #3cc77a;
  --bs-btn-active-color: #000069;
  font-weight: 700;
  border-radius: 50rem;
  letter-spacing: 0.02em;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(95, 226, 155, 0.35);
}

.btn-secondary {
  --bs-btn-bg: #000069;
  --bs-btn-border-color: #000069;
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: #1a1a8a;
  --bs-btn-hover-border-color: #1a1a8a;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #1a1a8a;
  --bs-btn-active-border-color: #1a1a8a;
  --bs-btn-active-color: #fff;
  font-weight: 700;
  border-radius: 50rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 105, 0.08);
}

.btn-outline-primary {
  --bs-btn-color: #000069;
  --bs-btn-border-color: #5fe29b;
  --bs-btn-hover-bg: #5fe29b;
  --bs-btn-hover-border-color: #5fe29b;
  --bs-btn-hover-color: #000069;
  --bs-btn-active-bg: #3cc77a;
  --bs-btn-active-border-color: #3cc77a;
  --bs-btn-active-color: #000069;
  font-weight: 700;
  border-radius: 50rem;
  border-width: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(95, 226, 155, 0.35);
}

.btn-outline-secondary {
  --bs-btn-color: #000069;
  --bs-btn-border-color: #000069;
  --bs-btn-hover-bg: #000069;
  --bs-btn-hover-border-color: #000069;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #000069;
  --bs-btn-active-border-color: #000069;
  --bs-btn-active-color: #fff;
  font-weight: 700;
  border-radius: 50rem;
  border-width: 2px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-secondary:hover {
  transform: translateY(-2px);
}

/* ── Block wrapper (template PageBlock) ─── */
.block {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.bg-light-green { background-color: #edf2ee !important; }
/* ── Sezioni — componenti riutilizzabili ── */

/* Card overlay su immagini */
.we-card-overlay {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 105, 0.1);
}

.we-card-overlay--dark {
  background: var(--bs-secondary);
  color: #fff;
}

/* Barre mini chart */
.we-bar {
  display: inline-block;
  width: 8px;
  background: rgb(var(--bs-primary-rgb));
  border-radius: 4px;
}

/* Icone circolari */
.we-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f0f4f2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
  color: var(--bs-secondary);
}

.we-icon-circle--primary {
  background: rgba(var(--bs-primary-rgb), 0.15);
  color: rgb(var(--bs-primary-rgb));
}

.we-icon-circle--secondary {
  background: rgba(var(--bs-secondary-rgb), 0.1);
  color: var(--bs-secondary);
}

/* Check list inline */
.we-check-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.we-check-item::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: rgb(var(--bs-primary-rgb));
  font-size: 14px;
}
/* Alert list (icona warning) */
.we-alert-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #4a4a6a;
}

.we-alert-item::before {
  content: '\f071';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: #e8a838;
  font-size: 14px;
}
/* ── Sparkle decorations ────────────────── */
.we-sparkle {
  position: absolute;
  pointer-events: none;
}
.we-ribbon {
  position: absolute;
  top: 18px;
  right: -52px;
  width: 180px;
  transform: rotate(45deg);
  background: rgb(var(--bs-primary-rgb));
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  z-index: 2;
}
.we-sparkle svg { display: block; }
.we-sparkle--sm svg { width: 16px; height: 16px; }
.we-sparkle--md svg { width: 24px; height: 24px; }
.we-sparkle--lg svg { width: 36px; height: 36px; }

@keyframes sparkle-pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(15deg); }
}

@keyframes sparkle-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(10deg); }
}

.we-sparkle--anim-pulse svg { animation: sparkle-pulse 3s ease-in-out infinite; }
.we-sparkle--anim-float svg { animation: sparkle-float 4s ease-in-out infinite; }

/* ── Scroll reveal ──────────────────────── */
.we-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.we-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.we-reveal--delay-1 { transition-delay: 0.1s; }
.we-reveal--delay-2 { transition-delay: 0.2s; }
.we-reveal--delay-3 { transition-delay: 0.3s; }
.we-reveal--delay-4 { transition-delay: 0.4s; }

/* Top bar blu */
.we-topbar {
  background: var(--bs-secondary);
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  padding: 6px 0;
}

.we-topbar__link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.we-topbar__link:hover {
  color: rgb(var(--bs-primary-rgb));
}

/* Navbar */
.we-navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all 0.4s ease;
}

.we-header.is-scrolled .we-navbar {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: #e2e8e5;
  box-shadow: 0 2px 8px rgba(0, 0, 105, 0.06);
}

.we-header.is-scrolled .we-topbar {
  margin-top: -36px;
  transition: margin-top 0.3s ease;
}

.we-topbar {
  transition: margin-top 0.3s ease;
}

.we-navbar .nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--bs-dark);
  padding: 8px 16px;
  border-radius: 50rem;
  transition: all 0.2s ease;
}

.we-navbar .nav-link:hover,
.we-navbar .nav-link.active {
  color: var(--bs-secondary);
  background: #f0f4f2;
}

.we-navbar .nav-link.active {
  position: relative;
}

.we-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: rgb(var(--bs-primary-rgb));
  border-radius: 2px;
}

.we-navbar .dropdown-item:hover {
  background: #d0f5e0;
  color: var(--bs-secondary);
}
.we-footer__body { background: var(--bs-secondary); color: #fff; padding-top: 48px; }
.we-footer__heading { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgb(var(--bs-primary-rgb)); margin-bottom: 16px; }
.we-footer__list li { margin-bottom: 8px; }
.we-footer__list a { font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; transition: all 0.2s ease; }
.we-footer__list a:hover { color: #fff; padding-left: 4px; }
#whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 60px;
  z-index: 9998;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
#whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(37,211,102,.6);
}
#whatsapp-float svg {
  width: 30px;
  height: 30px;
}
/* Sale sopra il cookie banner quando e' visibile */
body.cookie-banner-visible #whatsapp-float {
  bottom: 110px;
}
@media (max-width: 576px) {
  #whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  #whatsapp-float svg { width: 26px; height: 26px; }
}