/* ============================================================
   ETERNAVA — RESTYLE POLISH
   Micro-dettagli livello Awwwards. Caricato per ULTIMO, può
   sovrascrivere ogni layer precedente.
   Regole: SOLO variabili CSS di css/tokens.css (nessun colore
   fuori dai token), mai display:none su contenuti, tutto
   responsive a 375px, effetti animati contenuti nei limiti del
   reduced-motion. Non tocca altri file.
   ============================================================ */


/* ------------------------------------------------------------
   (1) GALLERIA · #figure
   Al passaggio sulla card: il ritratto scala 1.06 con una curva
   "expo-out" lunga, il nome si accende in --ink pieno con un
   alone violet, la card alza un glow violet tenue.
   ------------------------------------------------------------ */
.s-figure__card {
  transition: transform 0.22s ease, box-shadow 0.5s ease;
}
.s-figure__card:hover {
  box-shadow: var(--shadow-card), 0 0 46px var(--nebula-violet);
}

/* transition più lunga e morbida del ritratto (override del 0.4s
   di gallery.css); la figura è già in overflow:hidden. */
.s-figure__portrait {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.s-figure__card:hover .s-figure__portrait {
  transform: scale(1.06);
}

.s-figure__name {
  transition: color 0.35s ease, text-shadow 0.35s ease;
}
.s-figure__card:hover .s-figure__name {
  color: var(--ink);
  text-shadow: 0 0 26px var(--nebula-violet);
}


/* ------------------------------------------------------------
   (2) NAV · underline animato da sinistra
   Una hairline 1px in currentColor che cresce da background-size
   0% a 100% sotto la voce.
   ------------------------------------------------------------ */
.nav__links a {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-size: 0% 1px;
  background-position: 0 100%;
  padding-bottom: 0.2em;
  transition: background-size 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              color 0.18s ease;
}
.nav__links a:hover,
.nav__links a:focus-visible,
.nav__links a[aria-current="true"] {
  background-size: 100% 1px;
  color: var(--ink);
}


/* ------------------------------------------------------------
   (3) BOTTONI · .btn — effetto sheen
   Pseudo-elemento ::after con gradiente diagonale chiaro che
   viene traslato da -150% a 150% in 0.7s. Con isolation: isolate
   + z-index: -1 lo sheen sta sopra il fondo del bottone ma sotto
   al testo, che resta nitido.
   ------------------------------------------------------------ */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    120deg,
    transparent 32%,
    color-mix(in srgb, var(--ink) 42%, transparent) 50%,
    transparent 68%
  );
  transform: translateX(-150%);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(150%);
}


/* ------------------------------------------------------------
   (4) PRIVACY · bordo che si accende teal
   ------------------------------------------------------------ */
.s-privacy__card {
  transition: border-color 0.35s ease, box-shadow 0.35s ease,
              transform 0.35s ease;
}
.s-privacy__card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-card), 0 0 38px var(--nebula-teal);
  transform: translateY(-3px);
}


/* ------------------------------------------------------------
   (5) STATO · #stato — tre colonne editoriali
   Niente sfondo card: via vetro, via ombra, hairline superiore
   1px glass-brd. Titoletti uppercase tracking 0.18em fs-small
   color accent. Bullet quadratini 6px accent. La voce in hover
   scivola di 4px a destra.
   ------------------------------------------------------------ */
.s-stato__col {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--glass-brd);
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding: var(--sp-3) var(--sp-1) 0;
}

.s-stato__col-title {
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--accent);
}

.s-stato__list li {
  transition: transform 0.25s ease, color 0.25s ease;
}
.s-stato__list li:hover {
  transform: translateX(4px);
  color: var(--ink);
}

/* bullet quadratino 6px (override del pallino tondo 7px) */
.s-stato__list li::before {
  width: 6px;
  height: 6px;
  border-radius: 0;
  top: 0.55em;
  background: var(--accent);
}


/* ------------------------------------------------------------
   (6) FOOTER — hairline sopra, 4 colonne desktop, brand Syne 800
   ------------------------------------------------------------ */
.footer {
  border-top: 1px solid var(--glass-brd);
}

/* Prima colonna: "ETERNAVA" diventa un timbro editoriale */
.footer p:first-child strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 0.45em;
}

.footer a {
  transition: color 0.2s ease;
}
.footer a:hover,
.footer a:focus-visible {
  color: var(--accent);
}

@media (min-width: 860px) {
  .footer .container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--sp-3);
    align-items: start;
  }
  .footer p { margin: 0; }
}


/* ------------------------------------------------------------
   (7) SELECTION — violet su testo chiaro
   ------------------------------------------------------------ */
::selection {
  background: var(--violet);
  color: var(--ink);
}
::-moz-selection {
  background: var(--violet);
  color: var(--ink);
}


/* ------------------------------------------------------------
   (8) SCROLLBAR — sottile, scura (webkit + Firefox)
   ------------------------------------------------------------ */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-raise) var(--bg-void);
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-void);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-raise);
  border-radius: 999px;
  border: 2px solid var(--bg-void);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--glass-brd);
}


/* ------------------------------------------------------------
   Reduced-motion: nessun effetto residuo. Azzera transizioni e
   trasformazioni da hover introdotte qui, nasconde lo sheen.
   (Si somma al reset globale già presente in base.css.)
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .s-figure__portrait,
  .s-figure__card,
  .s-figure__name,
  .s-privacy__card,
  .s-stato__list li,
  .nav__links a,
  .btn,
  .btn::after { transition: none; }

  .s-figure__card:hover .s-figure__portrait,
  .s-figure__card:hover,
  .s-privacy__card:hover,
  .s-stato__list li:hover { transform: none; }

  .s-figure__card:hover .s-figure__name { text-shadow: none; }

  .btn::after { display: none; }
}
