/* cs.css – pagina «in arrivo» di Libra Ravenna (settimana prima della messa online del nuovo sito).
   Pagina autonoma: non usa il Kit né sito.css. Stessa grafica del sito nuovo: nero, oro, tessere, Satoshi. */
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --nero: #0b0b0c; --bianco: #fff; --oro: #bea460; --oro-chiaro: #eadf8e; --oro-scuro-2: #8a6a22;
  --testo-chiaro: #d6d1c6; --testo-spento: #a7a296;
  --curva: cubic-bezier(0.22, 1, 0.36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; min-height: 100svh; background: var(--nero); color: var(--bianco); font-family: "Satoshi", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--oro-chiaro); outline-offset: 4px; border-radius: 2px; }
.solo-lettori { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Scena a tutto schermo */
.scena { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.scena__fondo { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; }
.scena::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 50% 42%, rgba(11, 11, 12, 0.25) 0%, rgba(11, 11, 12, 0.78) 72%); }
.scena__rete { position: absolute; z-index: -1; pointer-events: none; opacity: 0.5; width: min(52vw, 640px, 80vh); }
.scena__rete--alto { top: -18%; right: -16%; }
.scena__rete--basso { bottom: -22%; left: -18%; opacity: 0.22; transform: rotate(180deg); }
.filetto { height: 8px; background: var(--oro); flex: none; }

.centro { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: clamp(2.5rem, 7vh, 5rem) clamp(1.25rem, 5vw, 3rem) clamp(2rem, 5vh, 3.5rem); }
.logo { width: clamp(190px, 22vw, 290px); margin-bottom: clamp(1.75rem, 4.5vh, 3rem); }

.sopratitolo { display: inline-flex; align-items: center; gap: 0.7rem; margin: 0 0 1rem; font-weight: 500; font-size: 0.9375rem; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase; color: var(--oro); }
.quadratini { display: inline-flex; gap: 0.2em; }
.quadratini i { width: 0.7em; height: 0.7em; background: var(--oro-scuro-2); }
.quadratini i:nth-child(2) { background: var(--oro); }
.quadratini i:nth-child(3) { background: #ddcc7f; }

.titolo { margin: 0; font-weight: 900; font-size: clamp(2.25rem, 5.4vw, 4.5rem); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.titolo .oro { display: block; color: var(--oro); }
.testo { max-width: 34em; margin: clamp(1rem, 2.5vh, 1.5rem) auto 0; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); color: var(--testo-chiaro); text-wrap: pretty; }

/* Conto alla rovescia: quattro tessere */
.conto { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.6rem, 1.6vw, 1.25rem); width: min(100%, 640px); margin: clamp(2rem, 5vh, 3rem) auto 0; padding: 0; list-style: none; }
.conto__tessera { position: relative; padding: clamp(0.9rem, 2.4vw, 1.5rem) 0.25rem clamp(0.75rem, 1.8vw, 1.1rem); border: 1px solid rgba(190, 164, 96, 0.55); border-radius: 4px; background: rgba(21, 22, 23, 0.82); }
.conto__tessera::before { content: ""; position: absolute; top: 6px; left: 6px; width: 7px; height: 7px; background: var(--oro); }
.conto__numero { display: block; font-weight: 900; font-size: clamp(2rem, 6vw, 3.75rem); line-height: 1; color: var(--oro); font-variant-numeric: tabular-nums; }
.conto__nome { display: block; margin-top: 0.5rem; font-weight: 500; font-size: clamp(0.75rem, 1.4vw, 0.875rem); letter-spacing: 0.08em; text-transform: uppercase; color: var(--testo-spento); }
.conto__numero.scatta { animation: scatta 0.6s var(--curva); }
@keyframes scatta { from { color: var(--oro-chiaro); transform: translateY(-0.12em); } to { color: var(--oro); transform: none; } }
.conto-data { margin: 1rem 0 0; font-size: 0.9375rem; color: var(--testo-spento); }

/* Pulsante con filetto (come sul sito) */
.pulsanti { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; margin-top: clamp(2rem, 5vh, 3rem); }
.pulsante { display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.6rem; border: 1px solid var(--oro); border-radius: 4px; font-weight: 500; font-size: 1.0625rem; text-decoration: none; color: var(--oro); background: linear-gradient(var(--oro), var(--oro)) no-repeat 0 100% / 0 100%; transition: background-size 0.5s var(--curva), color 0.3s; }
.pulsante:hover, .pulsante:focus-visible { background-size: 100% 100%; color: var(--nero); }
.pulsante svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Piede: recapiti sempre visibili */
.piede { position: relative; padding: clamp(1.25rem, 3vh, 1.75rem) clamp(1.25rem, 5vw, 4rem); border-top: 1px solid rgba(190, 164, 96, 0.35); background: rgba(11, 11, 12, 0.85); font-size: 0.9375rem; color: var(--testo-spento); }
.piede__riga { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 2rem; max-width: 1312px; margin: 0 auto; text-align: center; }
.piede a { color: var(--testo-chiaro); text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; transition: background-size 0.4s var(--curva); }
.piede a:hover, .piede a:focus-visible { background-size: 100% 1px; }
.piede strong { color: var(--bianco); font-weight: 500; }

/* Entrata */
.js .entra { animation: entra 1s var(--curva) both; }
.js .entra:nth-child(2) { animation-delay: 0.12s; } .js .entra:nth-child(3) { animation-delay: 0.24s; } .js .entra:nth-child(4) { animation-delay: 0.36s; } .js .entra:nth-child(5) { animation-delay: 0.48s; } .js .entra:nth-child(6) { animation-delay: 0.6s; }
@keyframes entra { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 560px) {
  .conto { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 340px; }
  .scena__rete { width: 80vw; }
  .piede__riga { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .js .entra, .conto__numero.scatta { animation: none; }
  .pulsante, .piede a { transition: none; }
}

/* Schermi bassi (portatili): tutto in una schermata, piede compreso. Misure legate all'altezza della finestra (11/11) */
@media (min-width: 561px) {
  .centro { padding-top: clamp(0.85rem, 3vh, 4rem); padding-bottom: clamp(0.85rem, 2.5vh, 2.5rem); }
  .logo { width: clamp(120px, min(22vw, 25vh), 290px); margin-bottom: clamp(0.75rem, 3vh, 3rem); }
  .sopratitolo { margin-bottom: clamp(0.5rem, 1.6vh, 1rem); }
  .titolo { font-size: clamp(1.875rem, min(5.4vw, 7.6vh), 4.5rem); }
  .testo { max-width: 40em; margin-top: clamp(0.5rem, 1.8vh, 1.5rem); font-size: clamp(1rem, min(1.3vw, 2.2vh), 1.25rem); }
  .conto { width: min(100%, 640px, 82vh); margin-top: clamp(0.85rem, 3vh, 3rem); }
  .conto__tessera { padding-block: clamp(0.5rem, 1.6vh, 1.5rem) clamp(0.45rem, 1.3vh, 1.1rem); }
  .conto__numero { font-size: clamp(1.75rem, min(6vw, 6.6vh), 3.75rem); }
  .conto-data { margin-top: clamp(0.5rem, 1.4vh, 1rem); }
  .pulsanti { margin-top: clamp(0.85rem, 3vh, 3rem); }
  .pulsante { padding-block: clamp(0.65rem, 1.6vh, 0.9rem); }
  .piede { padding-block: clamp(0.6rem, 1.6vh, 1.75rem); }
}
