/* Edil-Up 15.3.6 NIGHT MODE
   Schedule-first theme: day is always light; night is dark by default with a per-night manual override.
   This file is intentionally isolated so the existing light design remains untouched. */

html[data-theme="dark"]{
  color-scheme:dark;
  --ink:#eef4ff;
  --muted:#aab8cc;
  --line:rgba(139,170,211,.18);
  --paper:#10213a;
  --blue:#0b72ff;
  --green:#72df9b;
  --night-bg:#07172d;
  --night-bg-2:#0a1b33;
  --night-surface:#10233f;
  --night-surface-2:#132946;
  --night-surface-3:#172f50;
  --night-border:rgba(104,150,211,.24);
  --night-text:#eef4ff;
  --night-muted:#a9b7ca;
}

html[data-theme="dark"] body,
html[data-theme="dark"] body.edilup-demo-v6,
html[data-theme="dark"] .edilup-base{
  background:#07172d!important;
  color:var(--night-text)!important;
}
html[data-theme="dark"] body,
html[data-theme="dark"] main,
html[data-theme="dark"] .nav,
html[data-theme="dark"] .footer,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .feature-tile,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .detail-tile,
html[data-theme="dark"] .article-card,
html[data-theme="dark"] .edilup-post-card,
html[data-theme="dark"] .edilup-featured-event{
  transition:background-color .28s ease,border-color .28s ease,color .28s ease,box-shadow .28s ease;
}

/* Page canvas + atmospheric construction gradients */
html[data-theme="dark"] main{
  background:
    radial-gradient(ellipse 650px 540px at -3% 13%,rgba(0,104,255,.18),transparent 72%),
    radial-gradient(ellipse 560px 620px at 102% 31%,rgba(0,210,132,.13),transparent 72%),
    radial-gradient(ellipse 760px 590px at 0% 68%,rgba(0,104,255,.12),transparent 75%),
    radial-gradient(ellipse 720px 560px at 102% 91%,rgba(0,210,132,.12),transparent 75%),
    linear-gradient(180deg,#07172d 0%,#081a31 55%,#07172d 100%)!important;
}
html[data-theme="dark"] .hero{
  background:
    radial-gradient(ellipse at 10% 35%,rgba(0,104,255,.20),transparent 43%),
    radial-gradient(ellipse at 90% 62%,rgba(0,205,135,.13),transparent 45%)!important;
}
html[data-theme="dark"] .hero:before,
html[data-theme="dark"] .detail-hero:before,
html[data-theme="dark"] .function-walkthrough:nth-child(even):before{opacity:.11!important;filter:brightness(1.35) saturate(1.08)}
html[data-theme="dark"] .hero:after,
html[data-theme="dark"] .detail-hero:after{opacity:.13!important;filter:brightness(1.35) saturate(1.08)}

/* Typography */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .elementor-heading-title,
html[data-theme="dark"] .feature-copy h3,
html[data-theme="dark"] .footer h2,
html[data-theme="dark"] .footer h4,
html[data-theme="dark"] .price-top h3,
html[data-theme="dark"] .amount,
html[data-theme="dark"] .detail-tile h3,
html[data-theme="dark"] .edilup-event-content h2,
html[data-theme="dark"] .edilup-event-content h3{color:var(--night-text)!important}
html[data-theme="dark"] p,
html[data-theme="dark"] .section-intro,
html[data-theme="dark"] .hero .intro,
html[data-theme="dark"] .detail-hero p,
html[data-theme="dark"] .feature-copy p,
html[data-theme="dark"] .detail-tile p,
html[data-theme="dark"] .edilup-event-content p,
html[data-theme="dark"] .footer p{color:var(--night-muted)!important}
html[data-theme="dark"] .eyebrow{color:#8fa9ca!important}
html[data-theme="dark"] .eyebrow.blue-text{color:#5ca0ff!important}
html[data-theme="dark"] .micro,
html[data-theme="dark"] .number,
html[data-theme="dark"] .quiet-note,
html[data-theme="dark"] .price-note{color:#8497b2!important}

/* Official dark-background wordmark from the Media Kit asset set.
   The original light-mode image remains in the DOM for layout/SEO; the dark wordmark is layered above it. */
html[data-theme="dark"] .nav a.brand,
html[data-theme="dark"] .footer a.brand{position:relative;isolation:isolate}
html[data-theme="dark"] .nav a.brand>img,
html[data-theme="dark"] .footer a.brand>img{opacity:0!important}
html[data-theme="dark"] .nav a.brand::after,
html[data-theme="dark"] .footer a.brand::after{
  content:"";position:absolute;inset:0;background:url("edil-up-horizontal-dark-official.svg") center/contain no-repeat;z-index:1;pointer-events:none
}

/* Navbar */
html[data-theme="dark"] .nav{
  background:rgba(15,34,61,.88)!important;
  border-color:rgba(90,139,207,.28)!important;
  box-shadow:0 16px 48px rgba(0,0,0,.23),inset 0 1px 0 rgba(255,255,255,.025)!important;
  backdrop-filter:blur(20px) saturate(125%)!important;
}
html[data-theme="dark"] .nav-shell.is-scrolled .nav{background:rgba(12,30,55,.94)!important;box-shadow:0 18px 55px rgba(0,0,0,.30)!important}
html[data-theme="dark"] .navlinks a,
html[data-theme="dark"] .nav-actions>a:not(.btn),
html[data-theme="dark"] .mega-toggle{color:#dfe9f8!important}
html[data-theme="dark"] .navlinks a[aria-current="page"],
html[data-theme="dark"] .nav-feature.is-current>.mega-toggle{color:#5fa4ff!important}
html[data-theme="dark"] .navlinks .eco-nav[aria-current="page"]{color:#5fe098!important}
html[data-theme="dark"] .lang-trigger,
html[data-theme="dark"] .menu{background:rgba(28,54,88,.78)!important;border-color:rgba(112,154,211,.22)!important;color:#ecf4ff!important}
html[data-theme="dark"] .mega,
html[data-theme="dark"] .language-dialog{
  background:rgba(13,31,55,.97)!important;
  border-color:rgba(103,151,214,.23)!important;
  color:#edf4ff!important;
  box-shadow:0 28px 75px rgba(0,0,0,.38)!important;
}
html[data-theme="dark"] .mega-top,
html[data-theme="dark"] .language-top{border-color:rgba(130,166,213,.15)!important}
html[data-theme="dark"] .mega-item{color:#e7effb!important}
html[data-theme="dark"] .mega-item p,
html[data-theme="dark"] .language-option small{color:#93a5bd!important}
html[data-theme="dark"] .language-option{border-color:rgba(122,159,207,.13)!important;color:#e7effb!important}
html[data-theme="dark"] .language-search{background:#0b1d35!important;border-color:rgba(112,154,211,.24)!important;color:#fff!important}
html[data-theme="dark"] .language-search::placeholder{color:#7890ad!important}
@media (hover:hover) and (pointer:fine){
  html[data-theme="dark"] .navlinks>a:hover,
  html[data-theme="dark"] .nav-actions>a:not(.btn):hover{color:#5ca0ff!important;text-shadow:0 0 17px rgba(65,143,255,.34)}
  html[data-theme="dark"] .navlinks .eco-nav:hover{color:#62e299!important;text-shadow:0 0 17px rgba(65,222,145,.23)}
  html[data-theme="dark"] .mega-toggle:hover,
  html[data-theme="dark"] .mega-toggle[aria-expanded="true"]{background:rgba(28,101,210,.19)!important;color:#79afff!important;box-shadow:inset 0 0 0 1px rgba(78,145,239,.16)}
  html[data-theme="dark"] .mega-item:hover,
  html[data-theme="dark"] .language-option:hover{background:rgba(27,92,184,.17)!important}
}

/* Hero rotating phrase: translucent glass-like chip */
html[data-theme="dark"] .word-window{
  color:#2682ff!important;
  background:linear-gradient(135deg,rgba(104,142,198,.20),rgba(69,105,158,.16))!important;
  border:1px solid rgba(112,157,220,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 8px 30px rgba(0,0,0,.08)
}
html[data-theme="dark"] .word{color:#147aff!important;text-shadow:0 0 18px rgba(0,104,255,.13)}

/* Buttons */
html[data-theme="dark"] .btn:not(.blue){background:#112640!important;border-color:rgba(113,155,210,.27)!important;color:#eef5ff!important}
html[data-theme="dark"] .btn.light{background:rgba(17,39,67,.78)!important;color:#eaf2ff!important;border-color:rgba(113,155,210,.28)!important}
html[data-theme="dark"] .btn.blue{background:#066cff!important;border-color:#1979ff!important;color:#fff!important;box-shadow:0 8px 24px rgba(0,104,255,.22)!important}
@media (hover:hover) and (pointer:fine){
  html[data-theme="dark"] .btn:not(.blue):hover{background:#173153!important;border-color:rgba(97,157,239,.45)!important;box-shadow:0 8px 25px rgba(0,0,0,.18)}
  html[data-theme="dark"] .btn.blue:hover{background:#1779ff!important;box-shadow:0 10px 30px rgba(0,104,255,.30)!important}
}

/* Primary content surfaces */
html[data-theme="dark"] .soft,
html[data-theme="dark"] .big-cta,
html[data-theme="dark"] .contact-callout,
html[data-theme="dark"] .eco-expanded .eco-art{
  background:linear-gradient(145deg,rgba(14,36,63,.92),rgba(12,40,53,.88))!important;
  border-color:rgba(97,147,210,.17)!important;
}
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .feature-tile,
html[data-theme="dark"] .price-card,
html[data-theme="dark"] .detail-tile,
html[data-theme="dark"] .article-card,
html[data-theme="dark"] .edilup-post-card,
html[data-theme="dark"] .edilup-featured-event,
html[data-theme="dark"] .partner-colormax .colormax-block,
html[data-theme="dark"] .contact-original,
html[data-theme="dark"] .footer .footer-mail-card{
  background:linear-gradient(145deg,rgba(16,35,62,.96),rgba(13,31,55,.97))!important;
  border-color:rgba(106,151,210,.20)!important;
  box-shadow:0 16px 44px rgba(0,0,0,.12)!important;
}
html[data-theme="dark"] .price-card.plus{
  background:linear-gradient(145deg,rgba(17,45,82,.98),rgba(14,38,68,.98))!important;
  border-color:rgba(50,122,225,.33)!important;
  box-shadow:0 18px 55px rgba(0,56,145,.13)!important;
}
html[data-theme="dark"] .feature-visual,
html[data-theme="dark"] .mini-panel,
html[data-theme="dark"] .compact-screen,
html[data-theme="dark"] .aria-card,
html[data-theme="dark"] .device-panel,
html[data-theme="dark"] .home-presence-float,
html[data-theme="dark"] .home-budget-float{
  background:#102541!important;border-color:rgba(112,157,216,.19)!important;color:#e9f1fd!important;box-shadow:0 15px 38px rgba(0,0,0,.15)!important
}
html[data-theme="dark"] .mini-panel{background:#132b49!important}
html[data-theme="dark"] .taskrow,
html[data-theme="dark"] .network-row,
html[data-theme="dark"] .fileline,
html[data-theme="dark"] .price-card ul,
html[data-theme="dark"] details,
html[data-theme="dark"] .audience{border-color:rgba(133,166,209,.14)!important}
html[data-theme="dark"] .taskrow time,
html[data-theme="dark"] .doc-row small,
html[data-theme="dark"] .audience-list,
html[data-theme="dark"] .price-card li,
html[data-theme="dark"] .amount span{color:#9cacbf!important}
html[data-theme="dark"] .task-check,
html[data-theme="dark"] .file-icon{background:rgba(0,104,255,.16)!important;color:#6aa8ff!important}
html[data-theme="dark"] .tag{background:rgba(31,139,77,.17)!important;color:#79dfa0!important}
html[data-theme="dark"] .price-top .tag,
html[data-theme="dark"] .plan-label.plus{background:rgba(0,104,255,.16)!important;color:#79afff!important}

@media (hover:hover) and (pointer:fine){
  html[data-theme="dark"] .feature-card:hover,
  html[data-theme="dark"] .feature-tile:hover,
  html[data-theme="dark"] .price-card:hover,
  html[data-theme="dark"] .detail-tile:hover,
  html[data-theme="dark"] .edilup-post-card:hover{
    border-color:rgba(64,137,239,.47)!important;
    box-shadow:0 18px 50px rgba(0,62,156,.12),inset 0 0 0 1px rgba(65,137,235,.06)!important
  }
}

/* Forms / FAQ / contacts */
html[data-theme="dark"] input,
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .faq-search input,
html[data-theme="dark"] .contact-original input,
html[data-theme="dark"] .contact-original textarea{
  background:#0b1e36!important;
  border-color:rgba(110,153,210,.25)!important;
  color:#edf4ff!important;
}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#7186a2!important}
html[data-theme="dark"] details[open]{background:rgba(16,44,78,.48)!important}
html[data-theme="dark"] summary{color:#e9f1fb!important}
html[data-theme="dark"] summary:after{color:#74a9ed!important}
html[data-theme="dark"] .contact-directory .footer-mail-card strong,
html[data-theme="dark"] .footer-mail-card strong{color:#dbeaff!important}
html[data-theme="dark"] .contact-directory .footer-mail-card span,
html[data-theme="dark"] .footer-mail-card span{color:#9eafc3!important}

/* Events / news */
html[data-theme="dark"] .edilup-event-content time,
html[data-theme="dark"] .edilup-post-meta,
html[data-theme="dark"] .edilup-reading-time{color:#88a0be!important}
html[data-theme="dark"] .edilup-event-content p a{color:#d9e8fa!important}

/* Live demo / product mockups */
html[data-theme="dark"] .live-demo,
html[data-theme="dark"] .live-demo .ld-shell,
html[data-theme="dark"] .live-demo .ld-main,
html[data-theme="dark"] .screen{
  background:#0e213a!important;border-color:#263c5b!important;color:#e7effa!important;box-shadow:0 20px 70px rgba(0,0,0,.25)!important
}
html[data-theme="dark"] .live-demo .ld-sidebar,
html[data-theme="dark"] .sidebar{background:#0a1c32!important;border-color:#203954!important}
html[data-theme="dark"] .live-demo .ld-top,
html[data-theme="dark"] .live-demo .ld-caption,
html[data-theme="dark"] .live-demo .ld-controls,
html[data-theme="dark"] .screen-bar{background:#10253f!important;border-color:#203b59!important;color:#a7b6c8!important}
html[data-theme="dark"] .live-demo .ld-input,
html[data-theme="dark"] .live-demo .ld-card,
html[data-theme="dark"] .live-demo .ld-worksite-title,
html[data-theme="dark"] .kpi,
html[data-theme="dark"] .project{background:#122944!important;border-color:#27405f!important;color:#dbe7f6!important}
html[data-theme="dark"] .live-demo .ld-row,
html[data-theme="dark"] .live-demo .ld-tabs,
html[data-theme="dark"] .live-demo .ld-platform-strip{border-color:#233c59!important}
html[data-theme="dark"] .live-demo .ld-tab,
html[data-theme="dark"] .live-demo .ld-sidebar span,
html[data-theme="dark"] .sideitem{color:#9eafc2!important}
html[data-theme="dark"] .live-demo .ld-selected,
html[data-theme="dark"] .sideitem.active{background:rgba(0,104,255,.15)!important;color:#70aaff!important}
html[data-theme="dark"] .kpi strong,
html[data-theme="dark"] .project-head{color:#eef5ff!important}
html[data-theme="dark"] .showcase:after{background:linear-gradient(transparent,#07172d 95%)!important}

/* Footer */
html[data-theme="dark"] .footer{border-color:rgba(108,153,207,.20)!important;background:transparent!important}
html[data-theme="dark"] .footer a:not(.brand){color:#9eafc4!important}
html[data-theme="dark"] .footer-bottom,
html[data-theme="dark"] .footer-mails{border-color:rgba(118,156,205,.17)!important;color:#8194af!important}
html[data-theme="dark"] .footer .footer-socials a.footer-social{color:#b7c6d8!important;border-color:rgba(123,159,204,.30)!important;background:rgba(18,41,70,.52)!important}
@media (hover:hover) and (pointer:fine){
  html[data-theme="dark"] .footer .footer-top>div:not(:first-child)>a:hover{color:#64a4ff!important;text-shadow:0 0 16px rgba(65,143,255,.28)!important}
  html[data-theme="dark"] .footer .footer-mail-card:hover{background:#153153!important;border-color:rgba(69,140,235,.38)!important}
}

/* ARIA AI — dark-mode surfaces while keeping ARIA's blue/cyan/mint identity */
html[data-theme="dark"] .edilup-aria-panel{
  background:#0d2038!important;border-color:rgba(104,151,211,.30)!important;box-shadow:0 24px 80px rgba(0,0,0,.42)!important;color:#edf4ff!important
}
html[data-theme="dark"] .edilup-aria-head,
html[data-theme="dark"] .edilup-aria-suggestions,
html[data-theme="dark"] .edilup-aria-compose{background:#102641!important;border-color:rgba(110,153,208,.16)!important}
html[data-theme="dark"] .edilup-aria-msg.is-aria .edilup-aria-bubble{background:#132d4d!important;border-color:rgba(107,157,223,.18)!important;color:#dbe8f8!important}
html[data-theme="dark"] .edilup-aria-msg.is-aria .edilup-aria-bubble strong{color:#f2f7ff!important}
html[data-theme="dark"] .edilup-aria-compose textarea{background:#0a1c32!important;border-color:rgba(110,153,210,.23)!important;color:#eef5ff!important}
html[data-theme="dark"] .edilup-aria-chip{background:#122b49!important;border-color:rgba(101,152,221,.20)!important;color:#c7d8ec!important}
html[data-theme="dark"] .edilup-aria-chip.primary{background:#0f67fb!important;color:#fff!important}
html[data-theme="dark"] .edilup-aria-savings-form{background:linear-gradient(145deg,#102a49,#0d243f)!important;border-color:rgba(104,156,224,.22)!important}
html[data-theme="dark"] .edilup-aria-savings-form input{background:#091c32!important;border-color:rgba(111,159,220,.28)!important;color:#fff!important}

/* 404 — explicit night treatment so the error state belongs to the same visual system */
html[data-theme="dark"] .error-main{
  min-height:70vh;
  background:
    radial-gradient(circle at 18% 24%,rgba(0,104,255,.20),transparent 30%),
    radial-gradient(circle at 82% 70%,rgba(0,210,132,.11),transparent 32%),
    linear-gradient(180deg,#07172d,#091b31)!important;
}
html[data-theme="dark"] .error-page{position:relative;padding:clamp(42px,7vw,82px) clamp(20px,5vw,70px);border:1px solid rgba(104,153,216,.16);border-radius:32px;background:linear-gradient(145deg,rgba(17,40,69,.52),rgba(10,29,52,.34));box-shadow:0 25px 80px rgba(0,0,0,.12);overflow:hidden}
html[data-theme="dark"] .error-page:before{content:"404";position:absolute;inset:auto 0 -0.22em;text-align:center;font-size:clamp(150px,28vw,350px);font-weight:700;line-height:.78;letter-spacing:-.09em;color:rgba(30,104,201,.055);pointer-events:none;z-index:-1}
html[data-theme="dark"] .error-page .eyebrow{color:#62a3ff!important}
html[data-theme="dark"] .error-page p{color:#a9b8cb!important}

/* Secondary floating controls */
html[data-theme="dark"] .back-to-top,
html[data-theme="dark"] .motion-toggle{
  background:rgba(14,34,59,.90)!important;border-color:rgba(121,164,220,.30)!important;color:#78adf3!important;box-shadow:0 8px 26px rgba(0,0,0,.24)!important
}
html[data-theme="dark"] .back-to-top::before{filter:brightness(1.35)}

/* Complete ARIA night treatment */
html[data-theme="dark"] .edilup-aria-launcher{background:#102844!important;border-color:rgba(82,148,237,.30)!important;box-shadow:0 14px 42px rgba(0,0,0,.28)!important}
html[data-theme="dark"] .edilup-aria-badge{border-color:#102844!important}
html[data-theme="dark"] .edilup-aria-promo-text{color:#dce9f8!important}
html[data-theme="dark"] .edilup-aria-new,
html[data-theme="dark"] .edilup-aria-close{background:#17304f!important;color:#bdcde0!important}
html[data-theme="dark"] .edilup-aria-new:hover,
html[data-theme="dark"] .edilup-aria-close:hover{background:#1c3a60!important;color:#fff!important}
html[data-theme="dark"] .edilup-aria-savings-card{background:linear-gradient(145deg,#102a49,#0d243f)!important;border-color:rgba(104,156,224,.22)!important;color:#dce8f7!important}
html[data-theme="dark"] .edilup-aria-savings-head{border-color:rgba(112,157,218,.16)!important}
html[data-theme="dark"] .edilup-aria-savings-head strong,
html[data-theme="dark"] .edilup-aria-savings-field label strong{color:#eef5ff!important}
html[data-theme="dark"] .edilup-aria-savings-context,
html[data-theme="dark"] .edilup-aria-savings-breakdown,
html[data-theme="dark"] .edilup-aria-savings-field label span,
html[data-theme="dark"] .edilup-aria-savings-metrics span{color:#9fb0c5!important}
html[data-theme="dark"] .edilup-aria-savings-context b,
html[data-theme="dark"] .edilup-aria-savings-breakdown b{color:#d3e1f1!important}
html[data-theme="dark"] .edilup-aria-savings-metrics>div{background:rgba(9,29,52,.72)!important;border-color:rgba(103,153,220,.15)!important}
html[data-theme="dark"] .edilup-aria-savings-money-input>span{color:#9fb0c4!important}

/* The slow loader must not flash a white island in night mode. */
html[data-theme="dark"] .edilup-slow-loader{background:rgba(13,31,55,.96)!important;border-color:rgba(107,153,213,.25)!important;color:#dbe7f6!important;box-shadow:0 14px 44px rgba(0,0,0,.28)!important}

/* ========================================================================== */
/* 15.2.70 — COMPLETE NIGHT COVERAGE PASS                                     */
/* Preserves the light layout 1:1; only colors, borders and shadows change.    */
/* ========================================================================== */

/* Sustainability keeps its green identity in dark mode. */
html[data-theme="dark"] .word-window.eco-word{
  background:linear-gradient(135deg,rgba(29,132,75,.25),rgba(25,91,61,.22))!important;
  color:#61e694!important;border-color:rgba(73,214,132,.21)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 8px 28px rgba(0,0,0,.08)!important
}
html[data-theme="dark"] .word-window.eco-word .word{color:#61e694!important;text-shadow:0 0 18px rgba(70,222,137,.12)!important}
html[data-theme="dark"] .eco-section{
  background:linear-gradient(145deg,rgba(12,49,48,.95),rgba(11,40,47,.96))!important;
  border-color:rgba(81,190,127,.20)!important
}
html[data-theme="dark"] .eco-section .eyebrow,
html[data-theme="dark"] .eco-section .text-link,
html[data-theme="dark"] .eco-expanded .text-link{color:#70e09b!important}
html[data-theme="dark"] .eco-story article{background:rgba(22,70,53,.46)!important;border-left-color:#50d584!important}
html[data-theme="dark"] .eco-dot{background:rgba(50,177,91,.18)!important;color:#70df95!important}
@media (hover:hover) and (pointer:fine){
  html[data-theme="dark"] .eco-section:hover{background:linear-gradient(145deg,rgba(15,61,54,.98),rgba(12,47,50,.98))!important;border-color:rgba(83,211,139,.34)!important}
  html[data-theme="dark"] .nav-shell .navlinks .eco-nav:hover::before,
  html[data-theme="dark"] .nav-shell .navlinks .eco-nav:focus-visible::before{background:rgba(35,137,77,.20)!important;box-shadow:0 5px 14px rgba(49,205,112,.07)!important}
}

/* Counters / audience / cards that were still white. */
html[data-theme="dark"] .stat-box,
html[data-theme="dark"] .stat-box:nth-child(2),
html[data-theme="dark"] .aud-panel,
html[data-theme="dark"] .aud-panels,
html[data-theme="dark"] .partner-card,
html[data-theme="dark"] .partner-quote,
html[data-theme="dark"] .editorial-card,
html[data-theme="dark"] .edilup-event-detail>article,
html[data-theme="dark"] .contact-method,
html[data-theme="dark"] .edilup-contact-formbox,
html[data-theme="dark"] .savings-form,
html[data-theme="dark"] .aria-prompts button,
html[data-theme="dark"] .aria-response,
html[data-theme="dark"] .float{
  background:linear-gradient(145deg,#102541,#0d2038)!important;
  border-color:rgba(105,151,211,.21)!important;
  color:#eaf2fd!important;
  box-shadow:0 12px 38px rgba(0,0,0,.14)!important
}
html[data-theme="dark"] .stat-box strong,
html[data-theme="dark"] .aud-panel h2,
html[data-theme="dark"] .contact-method strong,
html[data-theme="dark"] .edilup-contact-copy h2,
html[data-theme="dark"] .edilup-contact-grid label>span{color:#edf4ff!important}
html[data-theme="dark"] .aud-panel ul,
html[data-theme="dark"] .contact-method small{color:#9eafc4!important}
html[data-theme="dark"] .stat-load,
html[data-theme="dark"] .progress,
html[data-theme="dark"] .prog-track{background:rgba(144,173,210,.15)!important}
html[data-theme="dark"] .stat-box.stat-blue:hover{background:#132e50!important;border-color:rgba(72,145,245,.42)!important}
html[data-theme="dark"] .stat-box.stat-green:hover{background:#123a35!important;border-color:rgba(74,203,128,.40)!important}
html[data-theme="dark"] .aud-tablist{border-color:rgba(116,157,210,.18)!important}
html[data-theme="dark"] .aud-tablist button{background:#102541!important;border-color:rgba(108,153,211,.20)!important;color:#c5d3e6!important;box-shadow:none!important}
html[data-theme="dark"] .aud-tablist button span{background:#172f4e!important;color:#9eb3cc!important}
html[data-theme="dark"] .aud-tablist button:hover{background:#153151!important}
html[data-theme="dark"] .aud-tablist button[aria-selected="true"]{background:rgba(17,72,139,.42)!important;border-color:#3d8cff!important;color:#78b2ff!important}
html[data-theme="dark"] .aud-tablist button[aria-selected="true"] span{background:#176df5!important;color:#fff!important}

/* Savings calculator and pricing controls. */
html[data-theme="dark"] .savings-calculator{background:linear-gradient(135deg,#102844,#102d35)!important;border-color:rgba(103,153,214,.20)!important}
html[data-theme="dark"] .savings-form input,
html[data-theme="dark"] .savings-form select{background:#0a1d34!important;border-color:rgba(108,154,214,.24)!important;color:#edf4ff!important}
html[data-theme="dark"] .savings-result{border-color:rgba(118,159,210,.17)!important}
html[data-theme="dark"] .savings-result span,
html[data-theme="dark"] .savings-form label{color:#a2b2c6!important}
html[data-theme="dark"] .plan-picker{background:#0e223d!important;border-color:rgba(107,153,211,.22)!important}
html[data-theme="dark"] .plan-picker button{color:#a9bad0!important}
html[data-theme="dark"] .plan-picker button[aria-pressed="true"]{background:#0b6df8!important;color:#fff!important;border-color:#2b83ff!important}
html[data-theme="dark"] .savings-tooltip{background:#102541!important;border-color:rgba(108,153,211,.22)!important;color:#c9d8ea!important;box-shadow:0 14px 36px rgba(0,0,0,.28)!important}

/* Native contact form + custom department dropdown. */
html[data-theme="dark"] .edilup-contact-grid input,
html[data-theme="dark"] .edilup-contact-grid textarea,
html[data-theme="dark"] .edilup-contact-select-toggle,
html[data-theme="dark"] .edilup-contact-select-menu,
html[data-theme="dark"] .edilup-contact-option{
  background:#0b1e36!important;border-color:rgba(107,153,213,.24)!important;color:#eaf2fc!important
}
html[data-theme="dark"] .edilup-contact-select-menu{box-shadow:0 18px 48px rgba(0,0,0,.34)!important}
html[data-theme="dark"] .edilup-contact-option:hover,
html[data-theme="dark"] .edilup-contact-option:focus-visible{background:#153151!important;color:#fff!important}
html[data-theme="dark"] .edilup-contact-grid input:focus,
html[data-theme="dark"] .edilup-contact-grid textarea:focus,
html[data-theme="dark"] .edilup-contact-select.is-open .edilup-contact-select-toggle{background:#0d233e!important;border-color:#4f95f5!important}

/* News / events / filters / dialogs. */
html[data-theme="dark"] .edilup-news-search-field,
html[data-theme="dark"] .edilup-news-filter-field,
html[data-theme="dark"] .edilup-news-filter-menu,
html[data-theme="dark"] .edilup-news-filter-chip,
html[data-theme="dark"] .edilup-news-country,
html[data-theme="dark"] .close-dialog{
  background:#102541!important;border-color:rgba(106,151,210,.22)!important;color:#dfe9f7!important
}
html[data-theme="dark"] .edilup-news-filter-chip:hover,
html[data-theme="dark"] .edilup-news-filter-chip:focus-visible,
html[data-theme="dark"] .edilup-news-search-clear:hover{background:#173151!important}
html[data-theme="dark"] .language-option:hover,
html[data-theme="dark"] .language-option[aria-current="true"]{background:rgba(29,93,180,.18)!important}
html[data-theme="dark"] .language-dialog::backdrop{background:rgba(1,10,23,.52)!important}
html[data-theme="dark"] .skip{background:#102541!important;color:#fff!important;border:1px solid rgba(108,153,211,.22)!important}

/* Small UI surfaces / icons / badges. */
html[data-theme="dark"] .icon-box,
html[data-theme="dark"] .pillbar,
html[data-theme="dark"] .badge-box,
html[data-theme="dark"] .demo-nav-row .demo-nav-count,
html[data-theme="dark"] .ld-controls button,
html[data-theme="dark"] .live-demo .ld-worksite-title .ld-demo-badge{
  background:#142b48!important;border-color:rgba(110,154,211,.20)!important;color:#afc3dc!important
}
html[data-theme="dark"] .pillbar .on{background:#1a3659!important;color:#73adff!important;box-shadow:none!important}
html[data-theme="dark"] .avatar{border-color:#102541!important}
html[data-theme="dark"] .avatar:nth-child(2){background:#3d3028!important;color:#e8bc87!important}
html[data-theme="dark"] .avatar:nth-child(3){background:#233b31!important;color:#8ed2a6!important}
html[data-theme="dark"] .partner-logo-stage{background:#132946!important;border-color:rgba(107,153,211,.18)!important}
html[data-theme="dark"] .partner-logo:hover{background:#172f50!important}

/* Complete live-demo mapping: bars, icons, tables, status blocks, banners. */
html[data-theme="dark"] .live-demo .ld-viewport,
html[data-theme="dark"] .live-demo .ld-auto-page,
html[data-theme="dark"] .live-demo .ld-scene{background:#0e213a!important;color:#e6eef9!important}
html[data-theme="dark"] .live-demo .ld-controls button,
html[data-theme="dark"] .live-demo .ld-tab{background:#132b49!important;border-color:#28415f!important;color:#9fb0c4!important}
html[data-theme="dark"] .live-demo .ld-tab[aria-pressed="true"],
html[data-theme="dark"] .live-demo .ld-platform-strip .active{background:rgba(12,104,246,.18)!important;color:#73adff!important}
html[data-theme="dark"] .live-demo .ld-cover{background:#172c47!important;border-color:#2a425f!important}
html[data-theme="dark"] .live-demo .ld-cover:after{color:#6e8199!important}
html[data-theme="dark"] .live-demo .ld-phase-row{background:rgba(31,116,82,.19)!important;border-left-color:#4bd28d!important;color:#dbe8f5!important}
html[data-theme="dark"] .live-demo .ld-phase-row:nth-child(3){background:rgba(29,79,153,.22)!important;border-left-color:#4f91f5!important}
html[data-theme="dark"] .live-demo .ld-phase-row:nth-child(4){background:#132843!important;border-left-color:#627790!important}
html[data-theme="dark"] .live-demo .ld-table-head{background:#10253f!important;color:#8fa3bc!important}
html[data-theme="dark"] .live-demo .ld-hours{background:rgba(29,108,77,.24)!important;color:#dff6e9!important}
html[data-theme="dark"] .live-demo .ld-success{background:rgba(30,128,80,.18)!important;color:#73dfa1!important}
html[data-theme="dark"] .live-demo .ld-pill{background:rgba(35,117,79,.19)!important;color:#72d99c!important}
html[data-theme="dark"] .live-demo .ld-new{background:#0c6df8!important;color:#fff!important}
html[data-theme="dark"] .live-demo .ld-note{color:#8499b2!important}
html[data-theme="dark"] .live-demo .ld-sidebar img,
html[data-theme="dark"] .screen .sidebar img{content:url("edil-up-horizontal-dark-official.svg")!important}
html[data-theme="dark"] .app-demo-frame{background:#07172d!important}

/* ARIA — launcher, banner, chat, forms, tips and footer: no white islands. */
html[data-theme="dark"] .edilup-aria::before{background:#102844!important;border-color:rgba(82,148,237,.30)!important;box-shadow:0 14px 42px rgba(0,0,0,.28)!important}
html[data-theme="dark"] .edilup-aria-foot,
html[data-theme="dark"] .edilup-aria-lead-cancel-wrap{background:#102641!important;color:#8297b0!important}
html[data-theme="dark"] .edilup-aria-chip.muted{background:#10243e!important;color:#a9bad0!important}
html[data-theme="dark"] .edilup-aria-chip:hover{background:#173556!important;border-color:rgba(94,157,240,.42)!important;color:#fff!important}
html[data-theme="dark"] .edilup-aria-compose textarea:focus{background:#0d233e!important}
html[data-theme="dark"] .edilup-aria-tip{background:#102d2d!important;border-color:rgba(93,190,125,.26)!important;color:#a9d7b8!important;box-shadow:0 6px 16px rgba(0,0,0,.15)!important}
html[data-theme="dark"] .edilup-aria-tip::before{background:#102d2d!important;border-color:rgba(93,190,125,.26)!important}
html[data-theme="dark"] .edilup-aria-tip-head,
html[data-theme="dark"] .edilup-aria-tip-text strong{color:#74df98!important}
html[data-theme="dark"] .edilup-aria-savings-form-error{background:rgba(108,34,42,.24)!important;color:#ff9ca4!important}
html[data-theme="dark"] .edilup-aria-lead-cancel:hover{background:rgba(122,38,47,.22)!important;color:#ff9da6!important}

/* Right-click quick actions and article share chooser. */
html[data-theme="dark"] .edilup-context-menu,
html[data-theme="dark"] .edilup-context-submenu,
html[data-theme="dark"] .edilup-share-panel{
  background:rgba(12,29,51,.975)!important;
  border-color:rgba(113,157,213,.24)!important;
  box-shadow:0 22px 62px rgba(0,0,0,.43)!important;
  color:#edf4ff!important
}
html[data-theme="dark"] .edilup-context-action,
html[data-theme="dark"] .edilup-share-option{color:#e8f0fb!important}
html[data-theme="dark"] .edilup-context-action:hover,
html[data-theme="dark"] .edilup-context-action:focus-visible,
html[data-theme="dark"] .edilup-context-action[aria-expanded="true"],
html[data-theme="dark"] .edilup-share-option:hover,
html[data-theme="dark"] .edilup-share-option:focus-visible{background:#173151!important}
html[data-theme="dark"] .edilup-context-icon,
html[data-theme="dark"] .edilup-share-brand{background:#162f50!important;color:#73adff!important}
html[data-theme="dark"] .edilup-context-action.has-submenu .edilup-context-icon{background:transparent!important;color:#95a9c1!important}
html[data-theme="dark"] .edilup-context-separator{background:rgba(139,171,212,.16)!important}
html[data-theme="dark"] .edilup-share-title{color:#879bb4!important}

/* Mobile nav / mega dropdowns also stay dark. */
html[data-theme="dark"] .nav-shell .navlinks,
html[data-theme="dark"] .nav-shell .mega,
html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .mega{background:rgba(13,31,55,.985)!important;border-color:rgba(103,151,214,.23)!important;box-shadow:0 24px 60px rgba(0,0,0,.38)!important}
html[data-theme="dark"] .nav-shell .mobile-login-link{border-color:rgba(118,158,207,.18)!important}
html[data-theme="dark"] .nav-shell .navlinks>.mobile-register-link{background:#0b6df8!important;color:#fff!important}
html[data-theme="dark"] .nav-shell .mega-item:first-child .icon-box{background:rgba(0,104,255,.17)!important;color:#75adff!important}

/* Toggle is attached to the navbar corner, never to the lower Iubenda area. */
.edilup-night-toggle{
  display:none;position:absolute!important;top:-11px!important;right:-7px!important;left:auto!important;bottom:auto!important;
  z-index:12;width:36px;height:36px;padding:0;align-items:center;justify-content:center;border-radius:999px;
  border:1px solid rgba(100,137,184,.28);background:rgba(255,255,255,.96);color:#38516d;
  box-shadow:0 8px 24px rgba(22,46,76,.16);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  cursor:pointer;transition:transform .18s ease,background .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease
}
html[data-night-toggle="1"] .edilup-night-toggle{display:flex}
html[data-theme="dark"] .edilup-night-toggle{background:rgba(15,36,62,.96);border-color:rgba(118,164,223,.32);color:#dce9f8;box-shadow:0 8px 26px rgba(0,0,0,.28)}
.edilup-night-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media (hover:hover) and (pointer:fine){
  .edilup-night-toggle:hover{transform:translateY(-2px);border-color:rgba(65,132,224,.48);box-shadow:0 10px 30px rgba(18,56,101,.21)}
  html[data-theme="dark"] .edilup-night-toggle:hover{background:#173556;border-color:rgba(101,161,239,.56);box-shadow:0 10px 32px rgba(0,0,0,.31)}
}
.edilup-night-toggle:focus-visible{outline:3px solid #2b83ff;outline-offset:3px}
@media(max-width:760px){.edilup-night-toggle{top:-8px!important;right:-5px!important;width:34px;height:34px}.error-page{border-radius:24px!important}}

/* Final light-surface stragglers found by component audit. */
html[data-theme="dark"] .partner-mission,
html[data-theme="dark"] .function-walkthrough,
html[data-theme="dark"] .demo-revision,
html[data-theme="dark"] .edilup-play,
html[data-theme="dark"] .edilup-news-country,
html[data-theme="dark"] .edilup-news-search-field,
html[data-theme="dark"] .edilup-contact-formbox,
html[data-theme="dark"] .edilup-event-detail > article {
  background:var(--night-surface,#101927)!important;
  border-color:var(--night-line,rgba(255,255,255,.11))!important;
  color:var(--night-text,#f6f8fc)!important;
}
html[data-theme="dark"] .lang-chevron,
html[data-theme="dark"] .nav-shell svg,
html[data-theme="dark"] .edilup-context-menu svg,
html[data-theme="dark"] .edilup-share-panel svg {
  color:currentColor;
}

/* Audit pass: controls and nested demo surfaces with their own light declarations. */
html[data-theme="dark"] .edilup-article-sharebtn,
html[data-theme="dark"] .edilup-article-sharebtn.is-share{
  background:#102541!important;border-color:rgba(108,153,211,.24)!important;color:#dfe9f7!important;box-shadow:0 7px 20px rgba(0,0,0,.18)!important
}
html[data-theme="dark"] .edilup-article-sharebtn:hover,
html[data-theme="dark"] .edilup-article-sharebtn:focus-visible{
  background:#173556!important;border-color:rgba(94,157,240,.44)!important;color:#78b2ff!important
}
html[data-theme="dark"] .faq details[open]{background:#102541!important;border-color:rgba(108,153,211,.20)!important}
html[data-theme="dark"] .faq-search input{background:#0b1e36!important;border-color:rgba(107,153,213,.24)!important;color:#eaf2fc!important}
html[data-theme="dark"] .editorial-card.event-card>img{background:#132946!important}
html[data-theme="dark"] .home-dashboard-main .ld-controls,
html[data-theme="dark"] .home-dashboard-main .ld-caption,
html[data-theme="dark"] .live-demo .ld-jobsite-title,
html[data-theme="dark"] .live-demo .ld-worksite-title{
  background:#102541!important;border-color:rgba(108,153,211,.20)!important;color:#dfe9f7!important
}
html[data-theme="dark"] .phone-demo .app-demo-frame{background:#07172d!important}
html[data-theme="dark"] .edilup-aria-savings-input,
html[data-theme="dark"] .edilup-aria-savings-input:focus{
  background:#0b1e36!important;border-color:rgba(107,153,213,.28)!important;color:#eef5ff!important
}
html[data-theme="dark"] .edilup-aria-savings-input::placeholder{color:#8498b2!important}

/* ========================================================================== */
/* 15.2.70 — DARK MODE POLISH                                                  */
/* Product demos stay permanently light; site chrome remains dark.             */
/* ========================================================================== */

/* ---------- Product demos: force the exact light visual language ---------- */
html[data-theme="dark"] .showcase .screen,
html[data-theme="dark"] .live-demo:not(.phone-demo),
html[data-theme="dark"] .feature-visual,
html[data-theme="dark"] .mini-panel,
html[data-theme="dark"] .compact-screen,
html[data-theme="dark"] .device-panel,
html[data-theme="dark"] .home-presence-float,
html[data-theme="dark"] .home-budget-float{
  color-scheme:light!important;
  color:#17191e!important;
}
html[data-theme="dark"] .showcase .screen{background:#fff!important;border-color:#24272d!important;box-shadow:0 18px 90px #1c3d7220!important}
html[data-theme="dark"] .showcase .screen-bar{background:#fafbfc!important;border-color:#e9ebef!important;color:#8d929a!important}
html[data-theme="dark"] .showcase .sidebar{background:#fafbfd!important;border-color:#e9ebef!important}
html[data-theme="dark"] .showcase .sideitem{color:#7f8792!important}
html[data-theme="dark"] .showcase .sideitem.active{color:#0068ff!important;background:#e8f0ff!important}
html[data-theme="dark"] .showcase .dash{background:#fff!important;color:#17191e!important}
html[data-theme="dark"] .showcase .kpi,
html[data-theme="dark"] .showcase .project{background:#fff!important;border-color:#e9ebef!important;color:#838995!important;box-shadow:none!important}
html[data-theme="dark"] .showcase .kpi strong,
html[data-theme="dark"] .showcase .project-head,
html[data-theme="dark"] .showcase h3,
html[data-theme="dark"] .showcase h4,
html[data-theme="dark"] .showcase .float-title{color:#17191e!important}
html[data-theme="dark"] .showcase p{color:#717780!important}
html[data-theme="dark"] .showcase .tag{background:#e9f6eb!important;color:#2e743c!important}
html[data-theme="dark"] .showcase .progress{background:#edf1f7!important}
html[data-theme="dark"] .showcase .float{background:#fff!important;border-color:#eef0f4!important;color:#17191e!important;box-shadow:0 9px 8px #0d234c05,0 23px 65px #19365913!important}
html[data-theme="dark"] .showcase .fileline{border-color:#e9ebef!important;color:#17191e!important}
html[data-theme="dark"] .showcase .file-icon{background:#e5eeff!important;color:#0068ff!important}
html[data-theme="dark"] .showcase .eco-dot{background:#def6d7!important;color:#409542!important}
html[data-theme="dark"] .showcase:after{background:linear-gradient(transparent,#07172d 95%)!important}

html[data-theme="dark"] .feature-visual{background:#f6f8fc!important;border-color:#edf0f5!important;color:#17191e!important;box-shadow:none!important}
html[data-theme="dark"] .mini-panel{background:#fff!important;border-color:#e9ebef!important;color:#17191e!important;box-shadow:0 12px 30px #233c6608!important}
html[data-theme="dark"] .compact-screen{background:#fff!important;border-color:#e5eaf3!important;color:#17191e!important;box-shadow:0 20px 60px #17336112!important}
html[data-theme="dark"] .device-panel{background:#f5f7fa!important;color:#17191e!important;box-shadow:0 16px 50px #152e4c06!important}
html[data-theme="dark"] .feature-visual h3,
html[data-theme="dark"] .feature-visual h4,
html[data-theme="dark"] .mini-panel h3,
html[data-theme="dark"] .mini-panel h4,
html[data-theme="dark"] .compact-screen h3,
html[data-theme="dark"] .device-panel h3{color:#17191e!important}
html[data-theme="dark"] .feature-visual p,
html[data-theme="dark"] .mini-panel p,
html[data-theme="dark"] .compact-screen p,
html[data-theme="dark"] .device-panel p{color:#717780!important}
html[data-theme="dark"] .feature-visual .taskrow,
html[data-theme="dark"] .feature-visual .network-row,
html[data-theme="dark"] .feature-visual .fileline,
html[data-theme="dark"] .mini-panel .taskrow,
html[data-theme="dark"] .mini-panel .network-row{border-color:#f0f2f5!important}
html[data-theme="dark"] .feature-visual .task-check,
html[data-theme="dark"] .mini-panel .task-check{background:#e6f1ff!important;color:#0068ff!important}
html[data-theme="dark"] .feature-visual .tag,
html[data-theme="dark"] .mini-panel .tag{background:#e9efff!important;color:#0068ff!important}

html[data-theme="dark"] .home-presence-float,
html[data-theme="dark"] .home-budget-float{background:#fff!important;border-color:#e2e8f0!important;color:#17191e!important;box-shadow:0 20px 60px #17365c1a!important}
html[data-theme="dark"] .home-presence-float strong,
html[data-theme="dark"] .home-budget-float strong{color:#17191e!important}
html[data-theme="dark"] .home-presence-float p,
html[data-theme="dark"] .home-budget-float p{color:#717780!important}

/* Desktop animated demos in Home + Features: mirror the original light UI. */
html[data-theme="dark"] .live-demo:not(.phone-demo){--ld-blue:#2862ed;background:#fff!important;border-color:#e0e6ee!important;color:#17191e!important;box-shadow:0 20px 70px #18324c12!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-caption,
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-controls{background:#fff!important;border-color:#edf0f5!important;color:#17191e!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-caption b{color:#8892a2!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-sidebar{background:#fff!important;border-color:#e9edf3!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-sidebar .demo-nav-row{background:transparent!important;border-color:#eef1f4!important;color:#555e69!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-sidebar .demo-nav-row.ld-selected{background:#ecfbf3!important;border-color:transparent!important;color:#217e68!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-sidebar .demo-nav-row.demo-nav-eco{background:transparent!important;color:#288a71!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-sidebar img{content:normal!important;filter:none!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-main,
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-viewport,
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-auto-page,
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-scene{background:#f7f9fc!important;color:#17191e!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-top{background:#fff!important;border-color:#ebeff4!important;color:#17191e!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-input,
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-card,
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-worksite-title,
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-jobsite-title{background:#fff!important;border-color:#dfe6ef!important;color:#17191e!important;box-shadow:none!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-worksite-title .ld-project-identity,
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-jobsite-title .ld-project-identity{color:#1b2533!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-project-place{color:#65758a!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-demo-badge{background:#f8fafc!important;border-color:#dfe8f2!important;color:#748397!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-tabs,
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-platform-strip,
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-row{border-color:#e8edf3!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-platform-strip{background:transparent!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-platform-strip span{color:#738090!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-platform-strip .active{background:transparent!important;color:#2862ed!important;border-color:#2862ed!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-tab{background:transparent!important;border-color:transparent!important;color:#737d8d!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-tab[aria-pressed="true"]{background:#edf3ff!important;border-color:#2862ed!important;color:#2862ed!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-card h4,
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-card strong,
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-row strong{color:#17191e!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-card p{color:#717780!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-card small{color:#8290a0!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-avatar{background:#e7eeff!important;color:#3763dd!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-pill{background:#eaf3ff!important;color:#3671c8!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-progress{background:#ecf0f6!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-cover{background:linear-gradient(135deg,#deeaff,#f6f9fd 50%,#dcf2e9)!important;border-color:#e0e7f1!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-cover:after{color:#c0c6d0!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-success{background:#edf9f3!important;color:#21805e!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-phase-row{background:#f0fbf5!important;border-left-color:#4ec58c!important;color:#17191e!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-phase-row:nth-child(3){background:#eff5ff!important;border-left-color:#2862ed!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-phase-row:nth-child(4){background:#f8f9fb!important;border-left-color:#c5cbd5!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-table-head{background:#fff!important;color:#8390a0!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-hours{background:#effbf3!important;color:#17191e!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-controls button{background:#f3f6fa!important;border-color:#e2e8f1!important;color:#47566a!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-controls button:hover{background:#e7efff!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-note{color:#8c96a4!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-aria-orb{background:linear-gradient(135deg,#e7ecff,#d8f6f0)!important;color:#3265ea!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-question{background:#edf3ff!important;color:#17191e!important}
html[data-theme="dark"] .live-demo:not(.phone-demo) .ld-out{background:#ecf3ff!important;border-color:#dce9ff!important;color:#17191e!important}

/* Mobile demos are always the real light product UI, even while the website is dark. */
html[data-theme="dark"] .phone-demo{background:#151b24!important;border-color:#3e4855!important;box-shadow:0 25px 55px #15273724!important}
html[data-theme="dark"] .phone-demo .app-demo-frame,
html[data-theme="dark"] .app-demo-frame{background:#f0f2f5!important;color-scheme:light!important}

/* ---------- Language switcher: proper dark cards + visible chevrons ---------- */
html[data-theme="dark"] .language-dialog{background:#0d2039!important;border-color:rgba(111,158,219,.28)!important;box-shadow:0 28px 80px rgba(0,0,0,.46)!important}
html[data-theme="dark"] .language-top h2{color:#f2f6fd!important}
html[data-theme="dark"] .language-option{background:#132946!important;border:1px solid rgba(111,155,211,.12)!important;color:#e9f1fb!important;box-shadow:none!important}
html[data-theme="dark"] .language-option small{color:#94a7bf!important}
html[data-theme="dark"] .language-option:hover{background:#18365b!important;border-color:rgba(93,154,239,.30)!important;color:#fff!important}
html[data-theme="dark"] .language-option[aria-current="true"]{background:#173d6b!important;border-color:rgba(64,139,239,.42)!important;color:#fff!important;box-shadow:inset 0 0 0 1px rgba(64,139,239,.08)!important}
html[data-theme="dark"] .language-option b{color:#4f9cff!important}
html[data-theme="dark"] .nav-shell .lang-chevron{background:#1a3556!important;color:#c7d9ee!important;box-shadow:inset 0 0 0 1px rgba(113,159,218,.15)!important}
html[data-theme="dark"] .nav-shell .lang-chevron svg{stroke-width:2.1!important}
html[data-theme="dark"] .nav-shell .lang-trigger:hover .lang-chevron,
html[data-theme="dark"] .nav-shell .lang-trigger[aria-expanded="true"] .lang-chevron{background:#21456f!important;color:#fff!important}
html[data-theme="dark"] .close-dialog{background:#17304f!important;color:#c5d6ea!important}
html[data-theme="dark"] .close-dialog:hover{background:#1e3d62!important;color:#fff!important}

/* ---------- Navbar hover: same premium glass language as the navbar ---------- */
@media (hover:hover) and (pointer:fine){
  html[data-theme="dark"] .nav-shell .navlinks>a:hover,
  html[data-theme="dark"] .nav-shell .navlinks>a:focus-visible,
  html[data-theme="dark"] .nav-shell .mega-toggle:hover,
  html[data-theme="dark"] .nav-shell .mega-toggle:focus-visible,
  html[data-theme="dark"] .nav-shell .mega-toggle[aria-expanded="true"]{
    background:linear-gradient(180deg,rgba(49,93,145,.24),rgba(31,69,115,.20))!important;
    color:#8ebcff!important;
    box-shadow:inset 0 0 0 1px rgba(104,158,226,.16),0 5px 14px rgba(0,0,0,.08)!important;
    text-shadow:none!important
  }
  html[data-theme="dark"] .nav-shell .navlinks .eco-nav:hover,
  html[data-theme="dark"] .nav-shell .navlinks .eco-nav:focus-visible{
    background:linear-gradient(180deg,rgba(37,112,76,.24),rgba(27,84,62,.20))!important;
    color:#72e4a0!important;
    box-shadow:inset 0 0 0 1px rgba(81,202,133,.17),0 5px 14px rgba(0,0,0,.07)!important
  }
}
html[data-theme="dark"] .nav-shell .mega-item:hover,
html[data-theme="dark"] .nav-shell .mega-item:focus-visible{background:#173556!important}
html[data-theme="dark"] .nav-shell .mega-item:hover .icon-box,
html[data-theme="dark"] .nav-shell .mega-item:focus-visible .icon-box{border-color:rgba(90,151,232,.34)!important;box-shadow:0 8px 20px rgba(0,0,0,.12)!important}

/* FREE / PLUS labels remain distinct in dark mode. */
html[data-theme="dark"] .plan-label:not(.plus){background:rgba(48,167,98,.16)!important;border:1px solid rgba(85,214,137,.18)!important;color:#79e5a3!important}
html[data-theme="dark"] .plan-label.plus{background:rgba(31,114,237,.19)!important;border:1px solid rgba(79,146,244,.22)!important;color:#8bb9ff!important;box-shadow:0 4px 14px rgba(0,82,194,.08)!important}

/* ---------- Partner roll: white at rest, original colour on hover ---------- */
html[data-theme="dark"] .partner-marquee .partner-logo{background:transparent!important}
html[data-theme="dark"] .partner-marquee .partner-logo img{
  mix-blend-mode:normal!important;
  filter:grayscale(1) brightness(0) invert(1)!important;
  opacity:.88!important;
  background:transparent!important;
  box-shadow:none!important
}
html[data-theme="dark"] .partner-marquee .partner-logo:hover,
html[data-theme="dark"] .partner-marquee .partner-logo:focus-visible{background:rgba(255,255,255,.045)!important}
html[data-theme="dark"] .partner-marquee .partner-logo:hover img,
html[data-theme="dark"] .partner-marquee .partner-logo:focus-visible img{filter:none!important;opacity:1!important;transform:scale(1.035)!important}
html[data-theme="dark"] .partner-card>img,
html[data-theme="dark"] .partner-logo-stage img{mix-blend-mode:normal!important;background:transparent!important}

/* ---------- Footer social networks regain their brand hover colours ---------- */
@media (hover:hover) and (pointer:fine){
  html[data-theme="dark"] .footer .footer-socials a.footer-social:hover{color:#fff!important;transform:translateY(-2px)!important}
  html[data-theme="dark"] .footer .footer-socials a.footer-social-instagram:hover{background:linear-gradient(135deg,#FEDA75 0%,#FA7E1E 25%,#D62976 50%,#962FBF 75%,#4F5BD5 100%)!important;border-color:#D62976!important;box-shadow:0 7px 22px rgba(214,41,118,.28)!important}
  html[data-theme="dark"] .footer .footer-socials a.footer-social-youtube:hover{background:#FF0000!important;border-color:#FF0000!important;box-shadow:0 7px 22px rgba(255,0,0,.25)!important}
  html[data-theme="dark"] .footer .footer-socials a.footer-social-linkedin:hover{background:#0A66C2!important;border-color:#0A66C2!important;box-shadow:0 7px 22px rgba(10,102,194,.25)!important}
  html[data-theme="dark"] .footer .footer-socials a.footer-social-facebook:hover{background:#1877F2!important;border-color:#1877F2!important;box-shadow:0 7px 22px rgba(24,119,242,.25)!important}
  html[data-theme="dark"] .footer .footer-socials a.footer-social-x:hover{background:#000!important;border-color:#000!important;box-shadow:0 7px 22px rgba(0,0,0,.35)!important}
  html[data-theme="dark"] .footer .footer-socials a.footer-social-tiktok:hover{background:#000!important;border-color:#000!important;box-shadow:-4px 5px 18px rgba(37,244,238,.24),4px 5px 18px rgba(254,44,85,.24)!important}
}

/* ---------- ARIA chat: remove the last white conversation surface ---------- */
html[data-theme="dark"] .edilup-aria-messages{background:linear-gradient(180deg,#0b1d34 0%,#0d223d 100%)!important;color:#e9f2fd!important}
html[data-theme="dark"] .edilup-aria-identity strong{color:#f2f6fd!important}
html[data-theme="dark"] .edilup-aria-identity span{color:#91a5bd!important}
html[data-theme="dark"] .edilup-aria-msg.is-aria .edilup-aria-bubble{background:#17304f!important;border-color:rgba(105,157,225,.22)!important;color:#dce9f8!important;box-shadow:0 5px 16px rgba(0,0,0,.10)!important}
html[data-theme="dark"] .edilup-aria-bubble p{color:inherit!important}
html[data-theme="dark"] .edilup-aria-bubble strong{color:#f3f7ff!important}
html[data-theme="dark"] .edilup-aria-source{border-color:rgba(112,157,218,.16)!important;color:#91a5bd!important}
html[data-theme="dark"] .edilup-aria-source a{color:#7eb2ff!important}
html[data-theme="dark"] .edilup-aria-thinking .edilup-aria-bubble{background:linear-gradient(135deg,rgba(42,89,166,.20),rgba(16,93,126,.19) 52%,rgba(21,116,88,.18))!important;border-color:rgba(75,148,229,.20)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025),0 5px 16px rgba(0,0,0,.08)!important}
html[data-theme="dark"] .edilup-aria-promo-text{color:#dce9f8!important}
html[data-theme="dark"] .edilup-aria-badge{border-color:#102844!important}


/* ========================================================================== */
/* 15.2.70 — NIGHT MODE PRECISION FIXES                                       */
/* Partner contrast, exact light demos, refined nav glass, mobile/tablet.      */
/* ========================================================================== */

/* Home floating demo cards are LIGHT islands: preserve the exact daytime green. */
html[data-theme="dark"] .home-presence-float .tag,
html[data-theme="dark"] .home-budget-float .tag{
  background:#e9f6eb!important;
  color:#2e743c!important;
  border-color:transparent!important;
  text-shadow:none!important
}
html[data-theme="dark"] .home-presence-float .presence-person small{
  color:#21835e!important;
  text-shadow:none!important
}
html[data-theme="dark"] .home-budget-float .demo-money{
  color:#17191e!important;
  text-shadow:none!important
}
html[data-theme="dark"] .home-budget-float .progress{background:#edf1f7!important}
html[data-theme="dark"] .home-budget-float .progress i{background:#31b878!important}

/* Partner pages: keep brand colours, but replace dark lettering with prepared
   transparent high-contrast variants. Light mode continues using originals. */
html[data-theme="dark"] .partner-card>img[src*="partner-pilosio"],
html[data-theme="dark"] .partner-logo-stage img[src*="partner-pilosio"]{
  content:url("partner-pilosio-official-v1536-dark.svg")!important
}
html[data-theme="dark"] .partner-card>img[src*="partner-ponzio"],
html[data-theme="dark"] .partner-logo-stage img[src*="partner-ponzio"]{
  content:url("partner-ponzio-dark.png")!important
}
html[data-theme="dark"] .partner-card>img[src*="partner-costantinopoli-materials"],
html[data-theme="dark"] .partner-logo-stage img[src*="partner-costantinopoli-materials"]{
  content:url("partner-costantinopoli-materials-dark.png")!important
}
html[data-theme="dark"] .partner-card>img[src*="partner-colormax"],
html[data-theme="dark"] .partner-logo-stage img[src*="partner-colormax"]{
  content:url("partner-colormax-dark.png")!important
}
html[data-theme="dark"] .partner-card>img,
html[data-theme="dark"] .partner-logo-stage img{
  opacity:1!important;
  filter:none!important;
  mix-blend-mode:normal!important;
  background:transparent!important;
  box-shadow:none!important;
  transition:filter .2s ease,opacity .2s ease,transform .2s ease!important
}
/* The coloured/gradient marks already have enough contrast: gently lift them. */
html[data-theme="dark"] .partner-card>img[src*="energia-verde"],
html[data-theme="dark"] .partner-card>img[src*="tree-nation"],
html[data-theme="dark"] .partner-logo-stage img[src*="energia-verde"],
html[data-theme="dark"] .partner-logo-stage img[src*="tree-nation"]{
  filter:brightness(1.13) saturate(1.04)!important
}
@media (hover:hover) and (pointer:fine){
  html[data-theme="dark"] .partner-card:hover>img,
  html[data-theme="dark"] .partner-card:focus-within>img,
  html[data-theme="dark"] .partner-logo-stage:hover img{
    transform:scale(1.025)!important;
    filter:brightness(1.08) saturate(1.04)!important
  }
  html[data-theme="dark"] .partner-card:hover>img[src*="energia-verde"],
  html[data-theme="dark"] .partner-card:hover>img[src*="tree-nation"],
  html[data-theme="dark"] .partner-logo-stage:hover img[src*="energia-verde"],
  html[data-theme="dark"] .partner-logo-stage:hover img[src*="tree-nation"]{
    filter:brightness(1.2) saturate(1.08)!important
  }
}

/* Function nav hover: transparent glass, not an opaque pill. The existing
   pseudo-element supplies the shape, keeping the navbar geometry untouched. */
@media (min-width:1180px) and (hover:hover) and (pointer:fine){
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .navlinks>a,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .mega-toggle{
    background:transparent!important;
    box-shadow:none!important;
    text-shadow:none!important
  }
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .navlinks>a::before,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .mega-toggle::before{
    top:6px!important;bottom:6px!important;left:-8px!important;right:-8px!important;
    border-radius:10px!important;
    background:transparent!important;
    box-shadow:inset 0 0 0 1px transparent!important;
    opacity:0!important;
    backdrop-filter:blur(0)!important;
    -webkit-backdrop-filter:blur(0)!important
  }
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .navlinks>a:hover,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .navlinks>a:focus-visible,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .mega-toggle:hover,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .mega-toggle:focus-visible,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .mega-toggle[aria-expanded="true"]{
    background:transparent!important;
    color:#eef5ff!important;
    box-shadow:none!important
  }
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .navlinks>a:hover::before,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .navlinks>a:focus-visible::before,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .mega-toggle:hover::before,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .mega-toggle:focus-visible::before,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .mega-toggle[aria-expanded="true"]::before{
    background:linear-gradient(180deg,rgba(104,151,211,.115),rgba(78,121,177,.075))!important;
    box-shadow:inset 0 0 0 1px rgba(132,174,226,.13),0 5px 16px rgba(0,0,0,.055)!important;
    opacity:1!important;
    backdrop-filter:blur(8px)!important;
    -webkit-backdrop-filter:blur(8px)!important
  }
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .navlinks .eco-nav:hover,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .navlinks .eco-nav:focus-visible{color:#75e3a2!important}
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .navlinks .eco-nav:hover::before,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .navlinks .eco-nav:focus-visible::before{
    background:linear-gradient(180deg,rgba(69,171,113,.115),rgba(46,130,88,.075))!important;
    box-shadow:inset 0 0 0 1px rgba(103,214,149,.13),0 5px 16px rgba(0,0,0,.05)!important
  }
}
/* Dropdown cards inherit the same restrained glass language. */
html[data-theme="dark"] .nav-shell .mega-item:hover,
html[data-theme="dark"] .nav-shell .mega-item:focus-visible{
  background:linear-gradient(135deg,rgba(70,116,171,.115),rgba(42,81,129,.075))!important;
  box-shadow:inset 0 0 0 1px rgba(119,163,218,.10)!important
}

/* Mobile/tablet: explicitly map the responsive chrome to the same dark theme.
   This layer is intentionally outside hover media queries. */
@media (max-width:1179px){
  html[data-theme="dark"],html[data-theme="dark"] body{background:#07172d!important;color-scheme:dark!important}
  html[data-theme="dark"] .nav-shell .nav{background:rgba(13,31,55,.965)!important;border-color:rgba(104,151,211,.25)!important}
  html[data-theme="dark"] .nav-shell .navlinks,
  html[data-theme="dark"] .nav-shell .mega{background:#0d2038!important;border-color:rgba(105,153,215,.23)!important;color:#edf4ff!important}
  html[data-theme="dark"] .nav-shell .navlinks>a,
  html[data-theme="dark"] .nav-shell .mega-toggle{color:#e4edf9!important}
  html[data-theme="dark"] .nav-shell .navlinks>a:active,
  html[data-theme="dark"] .nav-shell .mega-toggle:active,
  html[data-theme="dark"] .nav-shell .mega-toggle[aria-expanded="true"]{background:rgba(80,129,190,.12)!important;color:#fff!important}
  html[data-theme="dark"] .nav-shell .menu,
  html[data-theme="dark"] .nav-shell .lang-trigger{background:#132a47!important;border-color:rgba(113,158,217,.24)!important;color:#edf4ff!important}
  html[data-theme="dark"] .language-dialog{background:#0d2039!important;color:#edf4ff!important}
}

/* Keep the night control reachable on phones/tablets even when a remembered
   light preference is active during the night window. */
@media (max-width:900px){
  html[data-night-toggle="1"] .edilup-night-toggle{
    top:-9px!important;right:-5px!important;z-index:40!important;display:flex!important
  }
}


/* ========================================================================== */
/* 15.3.0 — DARK MODE FINAL PRECISION LAYER                                   */
/* Day-mode rules are untouched; every visual override below is dark-only.    */
/* ========================================================================== */

/* One continuous desktop glass surface: the desktop navlinks must never paint
   a second darker strip inside the navbar. */
html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .navlinks{
  background:transparent!important;border:0!important;box-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important
}
html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"]{
  background:rgba(15,34,61,.90)!important
}

/* Restore the original rounded geometry explicitly on dark surfaces. */
html[data-theme="dark"] .stat-box{border-radius:24px!important}
html[data-theme="dark"] .aud-tablist button{border-radius:16px!important}
html[data-theme="dark"] .aud-panels{border-radius:20px!important;overflow:hidden}
html[data-theme="dark"] .aud-panel{border-radius:26px!important}
html[data-theme="dark"] .partner-card{border-radius:25px!important;overflow:hidden}
html[data-theme="dark"] .partner-quote{border-radius:24px!important}
html[data-theme="dark"] .contact-method{border-radius:18px!important}
html[data-theme="dark"] .edilup-contact-formbox{border-radius:25px!important}
html[data-theme="dark"] .savings-form{border-radius:22px!important}
html[data-theme="dark"] .aria-prompts button{border-radius:10px!important}
html[data-theme="dark"] .aria-response{border-radius:15px!important}
html[data-theme="dark"] .float{border-radius:17px!important}
@media(max-width:760px){html[data-theme="dark"] .stat-box{border-radius:19px!important}}

/* Iubenda legal buttons: readable, rounded and integrated with the dark footer.
   The provider classes/URLs/scripts themselves are not changed. */
html[data-theme="dark"] .footer a.iubenda-embed,
html[data-theme="dark"] .footer a.iubenda-tp-btn,
html[data-theme="dark"] .footer .iubenda-white{
  display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
  min-height:40px!important;width:auto!important;max-width:100%!important;
  padding:9px 12px!important;margin:0!important;
  border:1px solid rgba(126,163,210,.28)!important;border-radius:12px!important;
  background:#102640!important;color:#dce8f7!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
  text-shadow:none!important;text-decoration:none!important
}
html[data-theme="dark"] .footer a.iubenda-embed:hover,
html[data-theme="dark"] .footer a.iubenda-tp-btn:hover{
  background:#173556!important;border-color:rgba(105,164,238,.42)!important;color:#fff!important
}

/* Partner assets: transparent clean sources everywhere; dark variants preserve
   brand marks and turn only dark lettering light. */
html[data-theme="dark"] .partner-card>img[src*="partner-energia-verde-italia"],
html[data-theme="dark"] .partner-logo-stage img[src*="partner-energia-verde-italia"]{
  content:url("partner-energia-verde-italia-v1531-dark.png")!important;filter:none!important
}
html[data-theme="dark"] .partner-card>img,
html[data-theme="dark"] .partner-logo-stage img,
html[data-theme="dark"] .partner-marquee img{
  background:transparent!important;box-shadow:none!important;mix-blend-mode:normal!important
}

/* Night toggle: no footprint during the day. At 19:00 it fades in; during the
   night it remains reachable even if the user manually chooses light. */
.edilup-night-toggle{
  display:flex!important;opacity:0;visibility:hidden;pointer-events:none;
  transform:translateY(-5px) scale(.96);
  transition:opacity .38s ease,transform .38s cubic-bezier(.2,.8,.2,1),visibility 0s linear .38s,background-color .2s ease,border-color .2s ease,box-shadow .2s ease!important
}
html[data-night-toggle="1"] .edilup-night-toggle{
  opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1);
  transition-delay:0s!important
}
@media(prefers-reduced-motion:reduce){.edilup-night-toggle{transition:opacity .12s linear,visibility 0s linear .12s!important}html[data-night-toggle="1"] .edilup-night-toggle{transition-delay:0s!important}}

/* Mobile + tablet: force the same page theme as desktop independently of hover,
   pointer type or responsive menu state. Product demos remain light islands. */
@media(max-width:1179px){
  html[data-theme="dark"],html[data-theme="dark"] body,html[data-theme="dark"] main{background-color:#07172d!important;color-scheme:dark!important}
  html[data-theme="dark"] .nav-shell .nav{background:rgba(15,34,61,.96)!important;border-color:rgba(104,151,211,.25)!important}
  html[data-theme="dark"] .nav-shell .navlinks,
  html[data-theme="dark"] .nav-shell .mega{background:#0d2038!important;border-color:rgba(105,153,215,.23)!important;box-shadow:0 18px 44px rgba(0,0,0,.32)!important}
  html[data-theme="dark"] .nav-shell .navlinks>a,
  html[data-theme="dark"] .nav-shell .mega-toggle{color:#e4edf9!important}
  html[data-theme="dark"] .nav-shell .mobile-login-link{border-color:rgba(118,158,207,.18)!important}
  html[data-theme="dark"] .nav-shell .menu,
  html[data-theme="dark"] .nav-shell .lang-trigger{background:#132a47!important;border-color:rgba(113,158,217,.24)!important;color:#edf4ff!important}
  html[data-theme="dark"] .language-dialog{background:#0d2039!important;border-color:rgba(103,151,214,.24)!important;color:#edf4ff!important}
  html[data-theme="dark"] .footer{color:#eaf2fd!important}
}


/* ========================================================================== */
/* 15.3.1 — CROSS-BROWSER + PARTNER ASSET FINAL LAYER                        */
/* Day mode remains visually untouched.                                       */
/* ========================================================================== */

/* Never let image backgrounds create white/grey rectangles in dark mode. */
html[data-theme="dark"] .partner-marquee .partner-logo,
html[data-theme="dark"] .partner-marquee .partner-logo img,
html[data-theme="dark"] .partner-card>img,
html[data-theme="dark"] .partner-logo-stage img{
  background-color:transparent!important;background-image:none!important;box-shadow:none!important
}

/* Fresh clean sources for Pilosio and Energia Verde Italia in partner cards/details. */
html[data-theme="dark"] .partner-card>img[src*="partner-pilosio-v1536"],
html[data-theme="dark"] .partner-logo-stage img[src*="partner-pilosio-v1536"]{
  content:url("partner-pilosio-official-v1536-dark.svg")!important;filter:none!important;opacity:1!important
}
html[data-theme="dark"] .partner-card>img[src*="partner-energia-verde-italia-v1531"],
html[data-theme="dark"] .partner-logo-stage img[src*="partner-energia-verde-italia-v1531"]{
  content:url("partner-energia-verde-italia-v1531-dark.png")!important;filter:none!important;opacity:1!important
}

/* Marquee behavior in dark mode: idle = white silhouette; hover/focus = original
   coloured symbol plus WHITE lettering for logos whose original wordmark is dark. */
html[data-theme="dark"] .partner-marquee .partner-logo img{
  filter:grayscale(1) brightness(0) invert(1)!important;opacity:.90!important
}
html[data-theme="dark"] .partner-marquee .partner-logo:hover img,
html[data-theme="dark"] .partner-marquee .partner-logo:focus-visible img{
  filter:none!important;opacity:1!important;transform:scale(1.035)!important
}
html[data-theme="dark"] .partner-marquee .partner-logo:hover img[src*="partner-pilosio-v1536"],
html[data-theme="dark"] .partner-marquee .partner-logo:focus-visible img[src*="partner-pilosio-v1536"]{
  content:url("partner-pilosio-official-v1536-dark.svg")!important
}
html[data-theme="dark"] .partner-marquee .partner-logo:hover img[src*="partner-energia-verde-italia-v1531"],
html[data-theme="dark"] .partner-marquee .partner-logo:focus-visible img[src*="partner-energia-verde-italia-v1531"]{
  content:url("partner-energia-verde-italia-v1531-dark.png")!important
}
html[data-theme="dark"] .partner-marquee .partner-logo:hover img[src*="partner-ponzio"],
html[data-theme="dark"] .partner-marquee .partner-logo:focus-visible img[src*="partner-ponzio"]{
  content:url("partner-ponzio-dark.png")!important
}
html[data-theme="dark"] .partner-marquee .partner-logo:hover img[src*="partner-costantinopoli-materials"],
html[data-theme="dark"] .partner-marquee .partner-logo:focus-visible img[src*="partner-costantinopoli-materials"]{
  content:url("partner-costantinopoli-materials-dark.png")!important
}
html[data-theme="dark"] .partner-marquee .partner-logo:hover img[src*="partner-colormax"],
html[data-theme="dark"] .partner-marquee .partner-logo:focus-visible img[src*="partner-colormax"]{
  content:url("partner-colormax-dark.png")!important
}

/* Tree-Nation already has a coloured, high-contrast vector wordmark. */
html[data-theme="dark"] .partner-marquee .partner-logo:hover img[src*="partner-tree-nation"],
html[data-theme="dark"] .partner-marquee .partner-logo:focus-visible img[src*="partner-tree-nation"]{
  content:normal!important;filter:none!important
}

/* Responsive theme is data-attribute driven, never hover/pointer driven. */
@media(max-width:1179px){
  html[data-theme="dark"]{background:#07172d!important;color-scheme:dark!important}
  html[data-theme="dark"] body,
  html[data-theme="dark"] main{background-color:#07172d!important}
}


/* ========================================================================== */
/* 15.3.2 — UNIVERSAL CROSS-PAGE DARK LAYER                                  */
/* Guarantees the same dark canvas on every WP/Elementor template on mobile  */
/* and tablet. Product demos remain deliberate light islands.                */
/* ========================================================================== */
html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] body.edilup-demo-v6,
html[data-theme="dark"] main,
html[data-theme="dark"] .legacy-main,
html[data-theme="dark"] .edilup-base{background-color:#07172d!important;color-scheme:dark!important}

html[data-theme="dark"] .legacy-content,
html[data-theme="dark"] .partner-mission,
html[data-theme="dark"] .partner-logo-stage,
html[data-theme="dark"] .partner-card,
html[data-theme="dark"] .partner-quote,
html[data-theme="dark"] .aud-panels,
html[data-theme="dark"] .aud-panel,
html[data-theme="dark"] .function-walkthrough,
html[data-theme="dark"] .savings-form,
html[data-theme="dark"] .contact-method,
html[data-theme="dark"] .contact-original,
html[data-theme="dark"] .contact-directory .footer-mail-card,
html[data-theme="dark"] .edilup-contact-formbox,
html[data-theme="dark"] .editorial-card,
html[data-theme="dark"] .edilup-event-detail>article,
html[data-theme="dark"] .edilup-featured-event,
html[data-theme="dark"] .edilup-news-search-field,
html[data-theme="dark"] .edilup-news-filter-field,
html[data-theme="dark"] .edilup-news-country,
html[data-theme="dark"] .edilup-contact-select-menu,
html[data-theme="dark"] .edilup-contact-option{
  background:#102541!important;border-color:rgba(108,153,211,.20)!important;color:#eaf2fd!important
}
html[data-theme="dark"] .legacy-content h1,
html[data-theme="dark"] .legacy-content h2,
html[data-theme="dark"] .legacy-content h3,
html[data-theme="dark"] .legacy-content h4,
html[data-theme="dark"] .partner-story h2,
html[data-theme="dark"] .partner-story h3{color:#f4f8ff!important}
html[data-theme="dark"] .legacy-content p,
html[data-theme="dark"] .legacy-content li,
html[data-theme="dark"] .partner-story p{color:#aebed2!important}

@media(max-width:1179px){
  html[data-theme="dark"] .elementor,
  html[data-theme="dark"] .elementor-section,
  html[data-theme="dark"] .elementor-location-single,
  html[data-theme="dark"] .elementor-location-archive,
  html[data-theme="dark"] .elementor-location-header,
  html[data-theme="dark"] .elementor-location-footer{background-color:transparent!important}
  html[data-theme="dark"] .detail-hero,
  html[data-theme="dark"] .section,
  html[data-theme="dark"] .partner-detail,
  html[data-theme="dark"] .partner-grid,
  html[data-theme="dark"] .eco-expanded,
  html[data-theme="dark"] .eco-story,
  html[data-theme="dark"] .faq,
  html[data-theme="dark"] .contact-directory{background-color:transparent!important}
}

html[data-theme="dark"] .live-demo:not(.phone-demo),
html[data-theme="dark"] .live-demo:not(.phone-demo) *,
html[data-theme="dark"] .phone-demo .app-demo-frame,
html[data-theme="dark"] .app-demo-frame{color-scheme:light!important}

@media(min-width:1180px) and (hover:hover) and (pointer:fine){
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .navlinks>a:hover,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .navlinks>a:focus-visible,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .mega-toggle:hover,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .mega-toggle:focus-visible,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .mega-toggle[aria-expanded="true"]{
    color:#fff!important;text-shadow:none!important;
    background:rgba(92,153,236,.16)!important;
    box-shadow:inset 0 0 0 1px rgba(124,178,246,.22),0 7px 20px rgba(0,0,0,.10)!important;
    border-radius:12px!important
  }
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .navlinks>a:hover::before,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .navlinks>a:focus-visible::before,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .mega-toggle:hover::before,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .mega-toggle:focus-visible::before,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .mega-toggle[aria-expanded="true"]::before{opacity:0!important}
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .navlinks .eco-nav:hover,
  html[data-theme="dark"] .nav-shell .nav[data-nav-layout="desktop"] .navlinks .eco-nav:focus-visible{
    color:#82edac!important;background:rgba(63,180,116,.14)!important;
    box-shadow:inset 0 0 0 1px rgba(100,220,153,.20),0 7px 20px rgba(0,0,0,.08)!important
  }
}

html[data-theme="dark"] .partner-card>img[src*="partner-pilosio-v1536"],
html[data-theme="dark"] .partner-logo-stage img[src*="partner-pilosio-v1536"]{
  content:url("partner-pilosio-official-v1536-dark.svg")!important;filter:none!important;opacity:1!important;background:transparent!important
}


/* ========================================================================== */
/* 15.3.4 — HOMEPAGE DARK CONSISTENCY                                        */
/* Dark-only: the daytime homepage remains byte-for-byte governed by site CSS. */
/* ========================================================================== */
html[data-theme="dark"] body.edilup-home,
html[data-theme="dark"] body.edilup-home main{
  background-color:#07172d!important;color:#eef4ff!important;color-scheme:dark!important
}
html[data-theme="dark"] body.edilup-home main{
  background:
    radial-gradient(ellipse 650px 540px at -3% 13%,rgba(0,104,255,.18),transparent 72%),
    radial-gradient(ellipse 560px 620px at 102% 31%,rgba(0,210,132,.13),transparent 72%),
    radial-gradient(ellipse 760px 590px at 0% 68%,rgba(0,104,255,.12),transparent 75%),
    radial-gradient(ellipse 720px 560px at 102% 91%,rgba(0,210,132,.12),transparent 75%),
    linear-gradient(180deg,#07172d 0%,#081a31 55%,#07172d 100%)!important
}
html[data-theme="dark"] body.edilup-home .hero,
html[data-theme="dark"] body.edilup-home .section,
html[data-theme="dark"] body.edilup-home .home-stats,
html[data-theme="dark"] body.edilup-home .home-teasers,
html[data-theme="dark"] body.edilup-home .partners-section,
html[data-theme="dark"] body.edilup-home .audience,
html[data-theme="dark"] body.edilup-home .audience-tabs{background-color:transparent!important}
html[data-theme="dark"] body.edilup-home .hero{
  background:radial-gradient(ellipse at 10% 35%,rgba(0,104,255,.20),transparent 43%),radial-gradient(ellipse at 90% 62%,rgba(0,205,135,.13),transparent 45%)!important
}
html[data-theme="dark"] body.edilup-home h1,
html[data-theme="dark"] body.edilup-home h2,
html[data-theme="dark"] body.edilup-home h3,
html[data-theme="dark"] body.edilup-home .elementor-heading-title{color:#eef4ff!important}
html[data-theme="dark"] body.edilup-home p,
html[data-theme="dark"] body.edilup-home .intro,
html[data-theme="dark"] body.edilup-home .section-intro{color:#a9b7ca!important}
html[data-theme="dark"] body.edilup-home .stat-box,
html[data-theme="dark"] body.edilup-home .detail-tile,
html[data-theme="dark"] body.edilup-home .aud-panel{
  background:linear-gradient(145deg,#102541,#0d2038)!important;
  border-color:rgba(105,151,211,.21)!important;
  box-shadow:0 12px 38px rgba(0,0,0,.14)!important;
  color:#eaf2fd!important
}
html[data-theme="dark"] body.edilup-home .stat-box strong,
html[data-theme="dark"] body.edilup-home .detail-tile h3,
html[data-theme="dark"] body.edilup-home .aud-panel h2{color:#edf4ff!important}
html[data-theme="dark"] body.edilup-home .detail-tile p,
html[data-theme="dark"] body.edilup-home .aud-panel p,
html[data-theme="dark"] body.edilup-home .aud-panel li{color:#9eafc4!important}
html[data-theme="dark"] body.edilup-home .soft,
html[data-theme="dark"] body.edilup-home .big-cta{
  background:linear-gradient(145deg,rgba(14,36,63,.92),rgba(12,40,53,.88))!important;
  border-color:rgba(97,147,210,.17)!important
}
html[data-theme="dark"] body.edilup-home .eco-section{
  background:linear-gradient(145deg,rgba(12,49,48,.95),rgba(11,40,47,.96))!important;
  border-color:rgba(81,190,127,.20)!important
}
/* Home product demo and its floating Budget/Presenze cards intentionally remain DAY mode. */
html[data-theme="dark"] body.edilup-home .home-presence-float,
html[data-theme="dark"] body.edilup-home .home-budget-float{
  background:#fff!important;border-color:#e2e8f0!important;color:#17191e!important;
  box-shadow:0 20px 60px #17365c1a!important;color-scheme:light!important
}
html[data-theme="dark"] body.edilup-home .home-presence-float strong,
html[data-theme="dark"] body.edilup-home .home-budget-float strong{color:#17191e!important}
html[data-theme="dark"] body.edilup-home .home-presence-float p,
html[data-theme="dark"] body.edilup-home .home-budget-float p{color:#717780!important}
html[data-theme="dark"] body.edilup-home .home-presence-float .tag,
html[data-theme="dark"] body.edilup-home .home-budget-float .tag{background:#e9f6eb!important;color:#2e743c!important}
html[data-theme="dark"] body.edilup-home .home-presence-float .presence-person small{color:#21835e!important}
html[data-theme="dark"] body.edilup-home .home-budget-float .demo-money{color:#17191e!important}
html[data-theme="dark"] body.edilup-home .home-budget-float .progress{background:#edf1f7!important}
html[data-theme="dark"] body.edilup-home .home-budget-float .progress i{background:#31b878!important}

/* ========================================================================== */
/* 15.3.5 — HOMEPAGE URL FALLBACK                                             */
/* Works even when cached/legacy WordPress markup is missing body.edilup-home.  */
/* ========================================================================== */
html.edilup-home-root[data-theme="dark"] body,
html.edilup-home-root[data-theme="dark"] main#main{background-color:#07172d!important;color:#eef4ff!important;color-scheme:dark!important}
html.edilup-home-root[data-theme="dark"] main#main{background:radial-gradient(ellipse 650px 540px at -3% 13%,rgba(0,104,255,.18),transparent 72%),radial-gradient(ellipse 560px 620px at 102% 31%,rgba(0,210,132,.13),transparent 72%),radial-gradient(ellipse 760px 590px at 0% 68%,rgba(0,104,255,.12),transparent 75%),radial-gradient(ellipse 720px 560px at 102% 91%,rgba(0,210,132,.12),transparent 75%),linear-gradient(180deg,#07172d 0%,#081a31 55%,#07172d 100%)!important}
html.edilup-home-root[data-theme="dark"] main#main .hero{background:radial-gradient(ellipse at 10% 35%,rgba(0,104,255,.20),transparent 43%),radial-gradient(ellipse at 90% 62%,rgba(0,205,135,.13),transparent 45%)!important}
html.edilup-home-root[data-theme="dark"] main#main :is(.section,.home-stats,.home-teasers,.partners-section,.audience,.audience-tabs,.elementor,.elementor-section,.elementor-element.e-con){background-color:transparent!important}
html.edilup-home-root[data-theme="dark"] main#main :is(h1,h2,h3,h4,.elementor-heading-title){color:#eef4ff!important}
html.edilup-home-root[data-theme="dark"] main#main :is(p,.intro,.section-intro){color:#a9b7ca!important}
html.edilup-home-root[data-theme="dark"] main#main :is(.stat-box,.detail-tile,.aud-panel){background:linear-gradient(145deg,#102541,#0d2038)!important;border-color:rgba(105,151,211,.21)!important;box-shadow:0 12px 38px rgba(0,0,0,.14)!important;color:#eaf2fd!important}
html.edilup-home-root[data-theme="dark"] main#main :is(.soft,.big-cta){background:linear-gradient(145deg,rgba(14,36,63,.92),rgba(12,40,53,.88))!important;border-color:rgba(97,147,210,.17)!important}
html.edilup-home-root[data-theme="dark"] main#main .eco-section{background:linear-gradient(145deg,rgba(12,49,48,.95),rgba(11,40,47,.96))!important;border-color:rgba(81,190,127,.20)!important}


/* 15.3.6 — Pilosio official vector assets.
   Existing WordPress pages can still contain older cached Pilosio image URLs;
   force only logo assets (not company/mission photography) to the official SVG. */
html:not([data-theme="dark"]) img[src*="partner-pilosio"]:not([src*="company"]):not([src*="mission"]),
html:not([data-theme="dark"]) .partner-logo img[src*="partner-pilosio"]:not([src*="company"]):not([src*="mission"]){
  content:url("partner-pilosio-official-v1536.svg")!important;
  filter:none!important;
  background:transparent!important;
}
html[data-theme="dark"] img[src*="partner-pilosio"]:not([src*="company"]):not([src*="mission"]),
html[data-theme="dark"] .partner-logo img[src*="partner-pilosio"]:not([src*="company"]):not([src*="mission"]){
  content:url("partner-pilosio-official-v1536-dark.svg")!important;
  filter:none!important;
  opacity:1!important;
  background:transparent!important;
}
