/* Prove di carattere e colori.
   Si attivano solo con ?font=… e/o ?colori=… nell'indirizzo (o dal pannello "Prove").
   Senza parametri il sito resta identico alla versione attuale. */

@font-face { font-family: "DM Serif Display"; src: url("fonts/dmserif-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Anton"; src: url("fonts/anton-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-latin.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

/* ---------- caratteri per i titoli ---------- */
html[data-font="anton"]     { --df: "Anton"; --ds: normal; --dw: 400; --dc: uppercase; --dl: .01em; --dz: 1; }
html[data-font="serif"]     { --df: "DM Serif Display"; --ds: normal; --dw: 400; --dc: none; --dl: -.01em; --dz: .82; }
html[data-font="fraunces"]  { --df: "Fraunces"; --ds: normal; --dw: 800; --dc: none; --dl: -.025em; --dz: .8; }
html[data-font="bricolage"] { --df: "Bricolage Grotesque"; --ds: normal; --dw: 800; --dc: none; --dl: -.035em; --dz: .82; }

/* ---------- palette ---------- */
html[data-colori="notte"] {   /* ambra e blu notte */
  --beer: #F2A93B; --beer-hi: #F7BD62; --bottle: #1B2440; --bottle-hi: #2A3760;
  --tomato: #D6452B; --tomato-dk: #B8361F; --foam: #FFF5E6; --night-1: #1E2848; --night-2: #0B1020;
}
html[data-colori="bordeaux"] { /* crema e bordeaux */
  --beer: #F1E4CC; --beer-hi: #F7EEDC; --bottle: #5B1A24; --bottle-hi: #7A2733;
  --tomato: #B8762A; --tomato-dk: #9A6020; --foam: #FFF9EE; --night-1: #3A1016; --night-2: #18070A;
}
html[data-colori="oliva"] {    /* terracotta e oliva */
  --beer: #E9BE92; --beer-hi: #F0CDA8; --bottle: #33402A; --bottle-hi: #45563A;
  --tomato: #B8452A; --tomato-dk: #9C3720; --foam: #FBF3E6; --night-1: #263020; --night-2: #10150D;
}
html[data-colori="nero"] {     /* limone e nero */
  --beer: #F5DC5B; --beer-hi: #F9E683; --bottle: #151515; --bottle-hi: #2E2E2E;
  --tomato: #E0432A; --tomato-dk: #C8351E; --foam: #FFFBEA; --night-1: #202020; --night-2: #0A0A0A;
}

/* ---------- pannello delle prove ---------- */
.prove {
  position: fixed; left: 16px; bottom: 16px; z-index: 100; display: grid; gap: 10px; width: 250px;
  padding: 16px; border-radius: 18px; background: #111; color: #fff; font: 500 14px/1.3 "Archivo", system-ui, sans-serif;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}
.prove strong { font-size: 15px; }
.prove label { display: grid; gap: 4px; }
.prove select { font: inherit; padding: 8px 10px; border-radius: 10px; border: 1px solid #444; background: #222; color: #fff; }
.prove a { color: #F4C04A; }
.prove button { font: inherit; border: 0; background: none; color: #aaa; text-align: left; padding: 0; cursor: pointer; }
.prove.is-small > :not(strong):not(button) { display: none; }

/* dettagli che seguono la palette ambra e blu notte */
html[data-colori="notte"] .hero::after { background: linear-gradient(180deg, rgba(11, 16, 32, .25) 0%, rgba(11, 16, 32, .35) 40%, rgba(11, 16, 32, .9) 100%); }
html[data-colori="notte"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%231B2440' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html[data-colori="notte"] .field input::placeholder { color: rgba(27, 36, 64, .5); }

html[data-colori="tabacco"] {  /* tabacco e senape */
  --beer: #E8B04B; --beer-hi: #F0C26E; --bottle: #3A2418; --bottle-hi: #553724;
  --tomato: #B8432A; --tomato-dk: #9A341E; --foam: #FFF4E3; --night-1: #2C1B11; --night-2: #120A06;
}
html[data-colori="mare"] {     /* mare di Rapallo */
  --beer: #F2E6CC; --beer-hi: #F8EFDD; --bottle: #0E4A63; --bottle-hi: #17617F;
  --tomato: #E2552F; --tomato-dk: #C44421; --foam: #FFFAF0; --night-1: #0F3A4D; --night-2: #06161E;
}
html[data-colori="tabacco"] .hero::after { background: linear-gradient(180deg, rgba(18, 10, 6, .25) 0%, rgba(18, 10, 6, .35) 40%, rgba(18, 10, 6, .9) 100%); }
html[data-colori="mare"] .hero::after { background: linear-gradient(180deg, rgba(6, 22, 30, .25) 0%, rgba(6, 22, 30, .35) 40%, rgba(6, 22, 30, .9) 100%); }
html[data-colori="tabacco"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%233A2418' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html[data-colori="mare"] .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%230E4A63' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html[data-colori="tabacco"] .field input::placeholder { color: rgba(58, 36, 24, .5); }
html[data-colori="mare"] .field input::placeholder { color: rgba(14, 74, 99, .5); }
