/* Concorso SkyAlps × Saccuman (04/10/2026): blu notte del cielo alpino e oro Saccuman. */
@font-face { font-family: 'Cormorant'; src: url('/cormorant-garamond-variable.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/inter-variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --night: #0b1d33; --night-2: #12294a; --card: #15304f; --line: rgba(255,255,255,.12);
  --gold: #c9a24a; --gold-2: #e6c77a; --text: #f3f1ea; --muted: #a9b6c8; --danger: #ff8a8a; --ok: #7fd7a3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: radial-gradient(1200px 600px at 80% -10%, #23466f 0%, transparent 60%), linear-gradient(180deg, var(--night) 0%, #081526 100%); min-height: 100vh; }
a { color: var(--gold-2); }
h1, h2, h3 { font-family: 'Cormorant', Georgia, serif; font-weight: 600; letter-spacing: .01em; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
button, .link { font: inherit; cursor: pointer; border-radius: 999px; padding: .6rem 1.2rem; border: 1px solid transparent; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
button:disabled { opacity: .6; cursor: default; }
.gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #1a1406; font-weight: 600; box-shadow: 0 6px 20px rgba(201,162,74,.25); }
.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.ghost.small { padding: .35rem .8rem; font-size: .8rem; }
.voted { background: rgba(127,215,163,.15); color: var(--ok); border-color: rgba(127,215,163,.4); }
select, input, textarea { font: inherit; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem; width: 100%; }
select { width: auto; }
select option { color: #111; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 1rem clamp(1rem, 4vw, 3rem); gap: 1rem; }
.brands { display: flex; align-items: center; gap: .8rem; }
.brand-skyalps { font-family: 'Inter', sans-serif; font-size: 1.6rem; font-weight: 300; letter-spacing: .02em; color: #fff; }
.brand-skyalps b { font-weight: 800; }
.times { color: var(--gold); font-size: 1.3rem; }
.brand-saccuman { height: 52px; width: auto; }
.actions { display: flex; gap: .5rem; align-items: center; }
#account-btn { font-size: .85rem; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.hero { padding: clamp(1.5rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem) 2rem; max-width: 980px; margin: 0 auto; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .75rem; color: var(--gold-2); margin: 0 0 .8rem; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.05; }
.lead { font-size: clamp(1rem, 2.2vw, 1.2rem); color: var(--muted); max-width: 46ch; margin: 1rem auto 1.6rem; }
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.steps { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; text-align: left; }
.steps li { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 16px; padding: 1rem; display: flex; gap: .8rem; align-items: flex-start; }
.steps strong { font-family: 'Cormorant', serif; font-size: 2rem; color: var(--gold); line-height: 1; }
.prize { margin: 1.6rem auto 0; display: inline-block; padding: .7rem 1.2rem; border: 1px solid rgba(201,162,74,.5); border-radius: 999px; color: var(--gold-2); }

main { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem) 3rem; }
.block { margin-top: 2.5rem; }
.block h2 { font-size: 2rem; margin-bottom: .6rem; }
.block-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.flash { position: sticky; top: .6rem; z-index: 5; background: #173d2a; border: 1px solid rgba(127,215,163,.5); padding: .8rem 1rem; border-radius: 12px; }
.flash.error { background: #4a1c1c; border-color: rgba(255,138,138,.5); }

.gallery, .winners { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 1rem; }
.card { background: linear-gradient(180deg, var(--card), var(--night-2)); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 12px 30px rgba(0,0,0,.25); display: flex; flex-direction: column; }
.card.winner { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 12px 30px rgba(201,162,74,.2); }
.card video { width: 100%; aspect-ratio: 9 / 12; object-fit: cover; background: #000; display: block; }
.card-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-head { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.card-head h3 { font-size: 1.4rem; }
.rank { color: var(--gold); font-family: 'Cormorant', serif; font-size: 1.3rem; }
.badge { background: var(--gold); color: #1a1406; border-radius: 999px; font-size: .72rem; padding: .1rem .55rem; font-weight: 600; }
.piece { margin: 0; font-style: italic; color: var(--muted); }
.message { margin: 0; font-size: .9rem; }
.card-foot { margin-top: auto; padding-top: .6rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.votes { color: var(--muted); font-size: .9rem; }

.mine-list { display: flex; flex-direction: column; gap: .6rem; }
.mine-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.03); flex-wrap: wrap; }
.mine-row p { margin: .3rem 0 0; }
.mine-actions { display: flex; align-items: center; gap: .6rem; }
.status { font-size: .78rem; padding: .15rem .6rem; border-radius: 999px; border: 1px solid var(--line); }
.status.pending { color: var(--gold-2); border-color: rgba(201,162,74,.5); }
.status.approved { color: var(--ok); border-color: rgba(127,215,163,.5); }
.status.rejected, .error-text { color: var(--danger); }

dialog { background: var(--night-2); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 1.4rem; width: min(520px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); }
dialog::backdrop { background: rgba(3,8,16,.75); backdrop-filter: blur(3px); }
dialog h3 { font-size: 1.6rem; margin-bottom: .4rem; }
dialog form { display: flex; flex-direction: column; gap: .7rem; }
dialog label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; }
dialog label.check { flex-direction: row; align-items: flex-start; gap: .6rem; }
dialog label.check input { width: auto; margin-top: .2rem; }
.dlg-actions { display: flex; justify-content: flex-end; gap: .6rem; margin-top: .4rem; }
.error { color: var(--danger); margin: 0; }
.progress { height: 8px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.progress div { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .2s; }

.foot { text-align: center; padding: 2rem 1rem 3rem; border-top: 1px solid var(--line); color: var(--muted); }
.foot p { margin: .3rem 0; }
@media (max-width: 560px) {
  .brand-skyalps { font-size: 1.25rem; }
  .brand-saccuman { height: 40px; }
  #lang { max-width: 6.5rem; }
}

/* 04/10/2026: stessa grafica dell'app clienti (mockup «Un pianoforte in aeroporto»). */
.brands .logo { height: 46px; width: auto; }
.brands .sep { width: 1px; height: 38px; background: rgba(169,182,200,.5); }
.brands .collab { font-size: .62rem; letter-spacing: .12em; color: var(--muted); max-width: 8rem; line-height: 1.4; }
.hero h1 { text-align: left; }
.hero h1 em { display: block; color: var(--gold-2); font-style: italic; font-weight: 500; }
.hero { text-align: left; }
.hero .lead { margin-left: 0; }
.hero-actions { justify-content: flex-start; }
.hero-photo { display: block; width: 100%; height: auto; border-radius: 18px; margin-top: 2rem; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.initiative { letter-spacing: .2em; font-size: .72rem; }
.center-brands { justify-content: center; margin: .6rem 0 1.2rem; }
.amp { font-family: 'Cormorant', serif; font-size: 2rem; color: var(--muted); }
@media (max-width: 560px) {
  .brands .logo { height: 32px; }
  .brands .collab { display: none; }
}
.top { flex-wrap: wrap; }
@media (max-width: 560px) {
  .top { padding-top: .8rem; }
  .actions { width: 100%; justify-content: space-between; }
}
