/* ICBD 0.3.1 — blueprint tecnico, tema coerente e note informative */
.icbd-decor-dna,.icbd-decor-skeleton,.icbd-decor-working,.home-wdf,.home-contact-section,.home-final-cta{position:relative;isolation:isolate;overflow:hidden}
.icbd-decor-dna::before,.icbd-decor-skeleton::before,.icbd-decor-working::before,.home-wdf::before,.home-contact-section::before{content:"";position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:0!important;pointer-events:none;background-repeat:no-repeat!important;background-position:center!important;background-size:cover!important;opacity:.105!important;filter:none!important}
.icbd-decor-dna::before,.home-contact-section::before{background-image:url("../images/decor/watermark-dna.svg")!important}
.icbd-decor-skeleton::before,.home-wdf::before{background-image:url("../images/decor/watermark-skeleton.svg")!important}
.icbd-decor-working::before{background-image:url("../images/decor/watermark-working.svg")!important}
.icbd-decor-dna>*,.icbd-decor-skeleton>*,.icbd-decor-working>*,.home-wdf>*,.home-contact-section>*{position:relative;z-index:1}

/* LIGHT: nessuna sezione strutturale resta scura. */
html:not([data-icbd-theme="dark"]) body{background:#f8fbfc;color:#173546}
html:not([data-icbd-theme="dark"]) .icbd-home{background:#f8fbfc;color:#173546}
html:not([data-icbd-theme="dark"]) .home-hero{color:#09283a;background:linear-gradient(90deg,rgba(249,252,253,.97) 0%,rgba(249,252,253,.91) 46%,rgba(249,252,253,.63) 78%,rgba(249,252,253,.48) 100%),var(--home-hero-image) center 42%/cover no-repeat}
html:not([data-icbd-theme="dark"]) .home-hero h1{color:#071f2c}
html:not([data-icbd-theme="dark"]) .home-hero-lead{color:#426170}
html:not([data-icbd-theme="dark"]) .home-hero::after{background:linear-gradient(to top,rgba(239,248,251,.50),transparent)}
html:not([data-icbd-theme="dark"]) .home-logo-ring{border-color:rgba(12,83,112,.17);background:rgba(255,255,255,.75);box-shadow:0 25px 60px rgba(13,69,92,.14)}
html:not([data-icbd-theme="dark"]) .home-btn-ghost{color:#0a3e57;border-color:#9fc9da;background:rgba(255,255,255,.72)}
html:not([data-icbd-theme="dark"]) .home-btn-ghost:hover{color:#072d40;background:#fff}

html:not([data-icbd-theme="dark"]) .home-wdf,
html:not([data-icbd-theme="dark"]) .home-contact-section,
html:not([data-icbd-theme="dark"]) .home-final-cta{color:#284b5c;background:linear-gradient(135deg,#edf8fc 0%,#f9fcfd 62%,#eef8fb 100%);border-top:1px solid #d7eaf2;border-bottom:1px solid #d7eaf2}
html:not([data-icbd-theme="dark"]) .home-wdf h2,
html:not([data-icbd-theme="dark"]) .home-wdf h3,
html:not([data-icbd-theme="dark"]) .home-contact-section .home-heading h2,
html:not([data-icbd-theme="dark"]) .home-final-cta h2{color:#082b3c}
html:not([data-icbd-theme="dark"]) .home-wdf p,
html:not([data-icbd-theme="dark"]) .home-contact-section .home-heading p{color:#4d6b79}
html:not([data-icbd-theme="dark"]) .home-eyebrow-light{color:#1d6d8d}
html:not([data-icbd-theme="dark"]) .home-dark-panel{color:#244958;border-color:#c9e1eb;background:rgba(255,255,255,.76);box-shadow:0 14px 35px rgba(10,75,101,.08)}
html:not([data-icbd-theme="dark"]) .home-dark-panel h3{color:#082b3c}
html:not([data-icbd-theme="dark"]) .home-wdf-image{border-color:#c8e1eb;background:rgba(255,255,255,.84);box-shadow:0 22px 50px rgba(10,75,101,.10)}
html:not([data-icbd-theme="dark"]) .home-contact-card{color:#0b3346;border-color:#c6e0ea;background:rgba(255,255,255,.82);box-shadow:0 13px 32px rgba(10,75,101,.07)}
html:not([data-icbd-theme="dark"]) a.home-contact-card:hover{color:#072c3d;border-color:#5aa9c7;background:#fff}
html:not([data-icbd-theme="dark"]) .home-contact-card span{color:#1b7497}
html:not([data-icbd-theme="dark"]) .home-contact-card strong{color:#092d40}
html:not([data-icbd-theme="dark"]) .home-final-cta span{color:#1c6e8e}
html:not([data-icbd-theme="dark"]) .home-final-cta .home-btn-ghost{color:#0b3f58;border-color:#88bbcf;background:#fff}
html:not([data-icbd-theme="dark"]) .home-song-card{color:#234b5d;border-color:#bcdce8;background:linear-gradient(135deg,#e8f6fb,#f8fcfd);box-shadow:0 15px 38px rgba(10,75,101,.08)}
html:not([data-icbd-theme="dark"]) .home-song-card h3{color:#082b3c}
html:not([data-icbd-theme="dark"]) .home-song-card p{color:#4c6a78}
html:not([data-icbd-theme="dark"]) .home-song-card small{color:#1b7497}

/* Le note sono informazioni, non warning. */
.home-info-note,.home-warning{border:1px solid #a9d6e7!important;border-left:5px solid #3f9ec1!important;color:#114c65!important;background:linear-gradient(90deg,#e6f5fb,#f2faff)!important;box-shadow:0 10px 26px rgba(15,96,129,.06)!important}
.home-info-note strong,.home-warning strong{color:#0b4058!important}

/* DARK coerente, incluso testo statistiche che prima restava scuro. */
html[data-icbd-theme="dark"] .home-stats strong,
html[data-icbd-theme="dark"] .home-stats span,
html[data-icbd-theme="dark"] .home-contact-card strong,
html[data-icbd-theme="dark"] .home-contact-card span{color:#eaf5f8}
html[data-icbd-theme="dark"] .home-info-note,
html[data-icbd-theme="dark"] .home-warning{border-color:#2b7795!important;border-left-color:#4eb5da!important;color:#e8f7fc!important;background:linear-gradient(90deg,#0b3548,#0b2c3c)!important;box-shadow:none!important}
html[data-icbd-theme="dark"] .home-info-note strong,
html[data-icbd-theme="dark"] .home-warning strong{color:#fff!important}
html[data-icbd-theme="dark"] .icbd-decor-dna::before,
html[data-icbd-theme="dark"] .icbd-decor-skeleton::before,
html[data-icbd-theme="dark"] .icbd-decor-working::before,
html[data-icbd-theme="dark"] .home-wdf::before,
html[data-icbd-theme="dark"] .home-contact-section::before{opacity:.16!important;filter:brightness(1.65) saturate(.85)!important}

/* Sfondo tecnico anche per pagine interne, ma molto discreto. */
.icbd-layout-contained .icbd-site-main{background-image:url("../images/decor/watermark-dna.svg")!important;background-repeat:no-repeat!important;background-position:center top!important;background-size:cover!important;background-attachment:fixed!important}
html:not([data-icbd-theme="dark"]) .icbd-layout-contained .icbd-site-main{background-color:#fbfdfe}
html[data-icbd-theme="dark"] .icbd-layout-contained .icbd-site-main{background-color:#06151d}

@media(max-width:700px){.icbd-decor-dna::before,.icbd-decor-skeleton::before,.icbd-decor-working::before,.home-wdf::before,.home-contact-section::before{opacity:.075!important;background-size:auto 100%!important}.home-hero{background-position:64% center!important}}
