/* Tema scuro e oro per il programma e per le pagine degli sposi (18/11/2026): stesso aspetto della homepage
   "Versione C". Questo file contiene le regole scritte a mano; le conversioni dei colori dei fogli del programma
   sono in tema-scuro-app.css (generato da tools/tema-scuro-app.py). Il foglio del bozzetto e la scena 3D
   restano chiari: servono a giudicare i colori veri dei fiori. */
body.tema-scuro-app {
  --ivory: #140f0b; --paper: #221912; --cream: #2a2018; --ink: #f3ebdd; --muted: #cfc2ad; --line: rgba(230, 203, 148, .2);
  --gold: #d8b77a; --gold-l: #e2c38a; --gold-text: #e6cb94; --sage: #a7c18a; --sage-d: #b9c99f; --sage-text: #b9c99f;
  --muted-strong: #d6cab6; --shadow: 0 18px 40px -18px rgba(0, 0, 0, .6);
  background: #140f0b; color: #e8dfcf; color-scheme: dark;
}
html:has(body.tema-scuro-app) { background: #140f0b; color-scheme: dark; }

/* titoli come la homepage: serif, parole in corsivo dorate */
body.tema-scuro-app :is(h1, h2, h3) { color: #faf4ea; }
body.tema-scuro-app :is(h1, h2) em { color: #e2c38a; }
body.tema-scuro-app :where(a:not(.btn):not([class])) { color: #e6cb94; }

/* barra in alto */
body.tema-scuro-app .site-nav { background: rgba(20, 15, 11, .92); border-bottom-color: rgba(230, 203, 148, .14); }
body.tema-scuro-app .site-nav .brand { color: #f3ebdd; }
body.tema-scuro-app .site-nav .brand span { color: #d8b77a; }
body.tema-scuro-app .site-nav .links a { color: #ede3d2; }
body.tema-scuro-app .site-nav .links a:hover, body.tema-scuro-app .site-nav .links a[aria-current] { color: #e6cb94; }
@media (max-width: 900px) { body.tema-scuro-app .site-nav .links { background: #1c150f; border-color: rgba(230, 203, 148, .18); } }
body.tema-scuro-app .site-foot { background: #0f0b08; border-top-color: rgba(230, 203, 148, .14); }

/* pulsanti: gli stessi della homepage */
body.tema-scuro-app .btn { border-radius: 999px; transition: transform .25s ease, box-shadow .25s ease, filter .25s ease, background .25s ease; }
body.tema-scuro-app .btn.primary { color: #fff; background: linear-gradient(135deg, #a39b55 0%, #7d7838 100%); border-color: transparent; box-shadow: 0 10px 30px rgba(125, 120, 56, .3); }
body.tema-scuro-app .btn.primary:hover { filter: brightness(1.07); }
body.tema-scuro-app .btn:not(.primary):not(.danger) { color: #f3ebdd; background: transparent; border: 1px solid rgba(230, 203, 148, .5); }
body.tema-scuro-app .btn:not(.primary):not(.danger):hover { background: rgba(230, 203, 148, .1); border-color: #e6cb94; }

/* moduli */
body.tema-scuro-app :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea) { background-color: #1c150f; color: #f3ebdd; border-color: rgba(230, 203, 148, .32); }
body.tema-scuro-app :is(input, textarea)::placeholder { color: #a99c86; }
body.tema-scuro-app :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), select, textarea):focus { border-color: #e6cb94; }
body.tema-scuro-app :is(input, select, textarea):focus-visible { outline: 2px solid rgba(230, 203, 148, .45); outline-offset: 1px; }
body.tema-scuro-app :is(input[type=checkbox], input[type=radio], input[type=range], progress) { accent-color: #b5a35c; }
body.tema-scuro-app option { background: #1c150f; color: #f3ebdd; }

/* tabelle, finestre e avvisi */
body.tema-scuro-app :is(th, td) { border-color: rgba(230, 203, 148, .16); }
body.tema-scuro-app thead th { background-color: #2a2018; color: #faf4ea; }
body.tema-scuro-app dialog { background: #221912; color: #e8dfcf; border: 1px solid rgba(230, 203, 148, .3); }
body.tema-scuro-app dialog::backdrop { background: rgba(8, 6, 4, .7); }
body.tema-scuro-app hr { border-color: rgba(230, 203, 148, .16); }
body.tema-scuro-app ::selection { background: rgba(216, 183, 122, .35); color: #fff; }

/* il foglio del bozzetto e la scena 3D restano chiari (colori veri dei fiori) */
body.tema-scuro-app :is(canvas, .konvajs-content) { color-scheme: light; }

/* Aiuto 24h: come sulla homepage */
body.tema-scuro-app .sup-btn { background: #221912; color: #f3ebdd; border: 1px solid rgba(230, 203, 148, .45); }
body.tema-scuro-app .sup-btn:hover { background: #2c2118; border-color: #e6cb94; color: #f3ebdd; }
body.tema-scuro-app :is(.sup-btn, .sup-nav) .pulse { background: #8fd18a; }
body.tema-scuro-app .sup-head { background: #2a2018; color: #f3ebdd; border-bottom: 1px solid rgba(230, 203, 148, .2); }
body.tema-scuro-app .sup-panel { background: #1c150f; border-color: rgba(230, 203, 148, .3); }

/* pulsante «Scegli file» */
body.tema-scuro-app ::file-selector-button { background: transparent; color: #f3ebdd; border: 1px solid rgba(230, 203, 148, .5); border-radius: 999px; padding: .35em .9em; margin-right: .7em; cursor: pointer; }
body.tema-scuro-app ::file-selector-button:hover { background: rgba(230, 203, 148, .1); }
body.tema-scuro-app input[type=color] { background: #1c150f; border-color: rgba(230, 203, 148, .32); }

/* pulsanti principali (anche quelli senza la classe .btn): oliva dorato come i pulsanti della homepage */
body.tema-scuro-app :is(button.primary, .btn.primary, .mini.primary):not(#_) { color: #fff; background: linear-gradient(135deg, #a39b55 0%, #7d7838 100%); border-color: transparent; }
body.tema-scuro-app :is(button.primary, .btn.primary, .mini.primary):not(#_):hover { filter: brightness(1.08); }
body.tema-scuro-app button.danger:not(#_) { color: #f0a59c; }
