/* Intestazione 2026 comune a tutto il sito (pagine Pocket, Agenda AI, blog).
   Logo AppClienti (simbolo + nome), link a pillola con icona, voce attiva sfumata, barra fissa con sfocatura. */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, .86) !important;
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(15, 29, 46, .07), 0 8px 24px rgba(15, 29, 46, .05) !important;
  padding-top: .55rem;
  padding-bottom: .55rem;
}

/* Logo */
.brand-2026 { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; margin-right: 1.25rem; }
.brand-2026 img { width: 38px; height: 38px; display: block; filter: drop-shadow(0 6px 12px rgba(29, 78, 216, .28)); transition: transform .25s ease; }
.brand-2026:hover img { transform: rotate(-6deg) scale(1.05); }
.brand-word { font-family: 'Nunito', system-ui, sans-serif; font-weight: 900; font-size: 1.42rem; letter-spacing: -.02em; line-height: 1; color: #0f1d2e; }
.brand-word b, .brand-foot b {
  font-weight: 900;
  background: linear-gradient(90deg, #1d4ed8, #0f9f8a);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Link a pillola con icona */
.navbar .navbar-nav { gap: 4px; align-items: center; }
.navbar .nav-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Nunito', system-ui, sans-serif; font-weight: 800; font-size: .95rem;
  color: #334155 !important;
  padding: .5rem .9rem !important;
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.navbar .nav-link .nav-ico { font-size: .85rem; color: #64748b; transition: color .2s ease, transform .2s ease; }
.navbar .nav-link:hover { color: #1d4ed8 !important; background: #eef3ff; }
.navbar .nav-link:hover .nav-ico { color: #1d4ed8; transform: translateY(-1px); }
.navbar .nav-link.active {
  color: #0b2a6b !important;
  background: linear-gradient(135deg, rgba(29, 78, 216, .12), rgba(15, 159, 138, .16));
  box-shadow: inset 0 0 0 1px rgba(29, 78, 216, .14);
}
.navbar .nav-link.active .nav-ico { color: #1d4ed8; }
.nav-chip {
  font-size: .62rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 7px; border-radius: 999px; color: #0b3d1a;
  background: linear-gradient(90deg, #c6f36b, #7ef0d6);
}

/* Le pagine avevano una sottolineatura sotto la voce attiva: la pillola la sostituisce */
.navbar .nav-link::after, .navbar .nav-link.active::after { display: none !important; }

/* Pulsante del menu su telefono */
.navbar-toggler { border: 0 !important; border-radius: 12px; padding: .45rem .6rem; background: #eef3ff; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(29, 78, 216, .25); }

@media (max-width: 991.98px) {
  .navbar .navbar-collapse {
    margin-top: 10px; padding: 10px; border-radius: 18px; background: #fff;
    box-shadow: 0 16px 40px rgba(15, 29, 46, .12); border: 1px solid #e3e8ef;
  }
  .navbar .navbar-nav { align-items: stretch; }
  .navbar .nav-link { width: 100%; padding: .7rem 1rem !important; }
  .brand-word { font-size: 1.3rem; }
}

/* Logo nel piè di pagina */
.brand-foot { display: inline-flex; align-items: center; gap: 8px; font-weight: 900; letter-spacing: -.01em; color: #0f1d2e; }
.brand-foot img { width: 28px; height: 28px; }

/* Video YouTube: copertina che carica il player solo al clic */
.yt-facade {
  position: relative; display: block; width: 100%; max-width: 300px; margin: 0 auto; aspect-ratio: 9 / 16;
  border-radius: 28px; overflow: hidden; border: 0; padding: 0; cursor: pointer; background: #0b100d;
  box-shadow: 0 24px 50px rgba(15, 29, 46, .22);
}
.yt-facade img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.yt-facade:hover img { transform: scale(1.03); }
.yt-facade::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55)); }
.yt-facade .yt-play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; z-index: 2;
  border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.6rem;
  background: rgba(255, 0, 51, .92); box-shadow: 0 10px 30px rgba(255, 0, 51, .4); transition: transform .2s ease;
}
.yt-facade:hover .yt-play { transform: scale(1.08); }
.yt-facade .yt-title { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; color: #fff; font-weight: 800; text-align: left; line-height: 1.25; }
.yt-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (prefers-reduced-motion: reduce) {
  .brand-2026 img, .navbar .nav-link .nav-ico, .yt-facade img, .yt-facade .yt-play { transition: none; }
}

/* Banner consenso cookie */
#ac-consent {
  position: fixed; z-index: 2000; left: 16px; bottom: 16px; max-width: 420px;
  background: #fff; color: #0f1d2e; border: 1px solid #e3e8ef; border-radius: 20px; padding: 16px 18px;
  box-shadow: 0 20px 50px rgba(15, 29, 46, .18); font-family: 'Nunito', system-ui, sans-serif;
}
#ac-consent p { margin: 0 0 12px; font-size: .92rem; line-height: 1.45; }
#ac-consent a { color: #1d4ed8; font-weight: 700; }
#ac-consent .ac-consent-btns { display: flex; gap: 8px; justify-content: flex-end; }
#ac-consent button { border: 0; border-radius: 12px; padding: .55rem 1rem; font-weight: 800; cursor: pointer; }
#ac-consent .ac-no { background: #eef3ff; color: #1d4ed8; }
#ac-consent .ac-yes { background: linear-gradient(135deg, #1d4ed8, #0f9f8a); color: #fff; }
@media (max-width: 575.98px) { #ac-consent { left: 10px; right: 10px; bottom: 10px; max-width: none; } }
.ac-prefs a { color: #5b6878; text-decoration: none; }
.ac-prefs a:hover { color: #1d4ed8; }
