/* ==========================================================================
   Studio Rocca Romana — foglio di stile unico
   ========================================================================== */

/* Montserrat ospitato in locale (nessuna chiamata a Google Fonts) */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --red: #ff7979;
  --green: #a9cd99;            /* = rgba(41,130,0,.4) su bianco, reso opaco */
  --ink: #111;
  --muted: #555;
  --line: #e6e6e6;
  --panel-dark: #6971c0;       /* pannello info contatti */
  --panel-light: #a1a6d1;      /* pannello form contatti */
  --btn: #790405;
  --btn-hover: #343567;

  --header-h: 96px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  /* le bande delle griglie escono di 100vw: fallback "hidden" per Safari < 16, che non supporta "clip" */
  overflow-x: hidden;
  overflow-x: clip;
  animation: page-in .5s var(--ease) both;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
main { flex: 1; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--btn-hover); outline-offset: 3px; }

/* ==========================================================================
   Header / navigazione
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, height .3s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 72px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 2px 18px rgba(0, 0, 0, .08);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header.is-scrolled { background: rgba(255, 255, 255, .85); backdrop-filter: blur(8px); }
}
/* Pagine interne: header sempre bianco */
.site-header--solid { background: #fff; }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(24px, 4vw, 56px);
  padding: 0 var(--gutter);
}

.brand { flex: none; line-height: 0; border-radius: 50%; }
.brand img {
  width: calc(var(--header-h) - 16px);
  height: calc(var(--header-h) - 16px);
  transition: width .3s var(--ease), height .3s var(--ease), transform .4s var(--ease);
}
.brand:hover img { transform: rotate(-8deg) scale(1.04); }

.main-nav ul {
  display: flex;
  gap: clamp(24px, 5vw, 72px);
  list-style: none;
}
.main-nav a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  font-size: .9rem;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .35s var(--ease);
}
.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle { display: none; }

@media (max-width: 1024px) {
  :root { --header-h: 88px; }

  .header-inner { justify-content: center; }

  .nav-toggle {
    position: absolute;
    left: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    gap: 6px;
    width: 44px; height: 44px;
    place-content: center;
    background: none;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 30px; height: 3px;
    background: #333;
    border-radius: 2px;
    transition: transform .35s var(--ease), opacity .2s;
  }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .08);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .4s var(--ease), visibility 0s .4s;
  }
  .nav-open .main-nav {
    clip-path: inset(0 0 -40px 0);
    visibility: visible;
    transition: clip-path .4s var(--ease);
  }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li + li { border-top: 1px solid var(--line); }
  .main-nav a { display: block; padding: 18px; text-align: center; }
  .main-nav a::after { display: none; }
  .main-nav a[aria-current="page"] { font-weight: 600; }

  .nav-open .site-header { background: #fff; }
}

/* ==========================================================================
   Home
   ========================================================================== */
.home {
  --tile: clamp(280px, min(32vw, 58vh), 520px);
  --band: calc(var(--tile) * .72);
  --shade: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, .3));
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--shade), url("../img/bg-home.webp") center / cover no-repeat #fff;
}

.home-choices {
  display: grid;
  grid-template-columns: repeat(2, var(--tile));
  gap: clamp(64px, 14vw, 280px);
  padding: var(--header-h) 0 24px;
}

.choice {
  position: relative;
  display: block;
  width: var(--tile);
  aspect-ratio: 1;
}
/* banda: sempre concentrica rispetto all'immagine */
.choice::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -100vh; bottom: -100vh;
  left: 50%;
  width: var(--band);
  margin-left: calc(var(--band) / -2);
  background: var(--band-color);
  transform-origin: top;
  animation: band-grow-y 1.1s var(--ease) both;
}
.choice--red   { --band-color: var(--red); }
.choice--green { --band-color: var(--green); }
.choice--green::before { animation-delay: .15s; transform-origin: bottom; }

.choice-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  animation: rise-in .9s .35s var(--ease) both;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.choice--green .choice-img { animation-delay: .5s; }
.choice-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease), filter .4s;
}
.choice:hover .choice-img,
.choice:focus-visible .choice-img { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(0, 0, 0, .28); }
.choice:hover .choice-img img,
.choice:focus-visible .choice-img img { transform: scale(1.06); filter: saturate(1.15); }

@media (max-width: 1024px) {
  .home {
    --tile: min(72vw, 36svh, 340px);
    --band: calc(var(--tile) * .38);
    /* ritaglio verticale della parte fotografica (palco, pubblico, mixer):
       il centro dell'immagine desktop è una sfumatura bianca */
    background-image: var(--shade), url("../img/bg-home-mobile.webp");
    background-position: center;
  }
  .home-choices {
    grid-template-columns: var(--tile);
    gap: clamp(48px, 10svh, 110px);
    padding: calc(var(--header-h) + 8px) 0 72px;
  }
  /* bande orizzontali su mobile */
  .choice::before {
    top: 50%; bottom: auto;
    left: -100vw; right: -100vw;
    width: auto;
    height: var(--band);
    margin: calc(var(--band) / -2) 0 0;
    transform-origin: left;
    animation-name: band-grow-x;
  }
  .choice--green::before { transform-origin: right; }
}

/* ==========================================================================
   Pagine interne: struttura comune
   ========================================================================== */
.page {
  padding: calc(var(--header-h) + clamp(24px, 5vw, 56px)) var(--gutter) clamp(48px, 8vw, 96px);
}
.container { max-width: 1240px; margin: 0 auto; }

.page-title {
  font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem);
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
}

/* ==========================================================================
   Griglia artisti / intrattenimento
   ========================================================================== */
.roster { position: relative; isolation: isolate; }
.roster + .roster { margin-top: clamp(56px, 8vw, 96px); }
.roster .page-title { margin: 0 0 clamp(20px, 3vw, 36px) clamp(0px, 2vw, 24px); }

.theme-red   { --band-color: var(--red); }
.theme-green { --band-color: var(--green); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(28px, 4vw, 60px) clamp(20px, 3.5vw, 56px);
  padding: 0 clamp(0px, 2vw, 24px);
  list-style: none;
}
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .cards { grid-template-columns: repeat(2, 1fr); } }

.card { position: relative; }
/* La comparsa anima solo foto e nome: se animassimo l'intera card, durante la
   transizione ogni card diventerebbe un contesto di impilamento e la sua banda
   (larga tutta la riga) coprirebbe le foto delle card vicine. */
.js .card:not(.is-in) .card-img,
.js .card:not(.is-in) .card-name { opacity: 0; }
.card.is-in .card-img,
.card.is-in .card-name { animation: rise-in .7s var(--ease) var(--delay, 0s) backwards; }
.card a { display: block; text-decoration: none; }

.card-media { position: relative; aspect-ratio: 1; }
/* banda orizzontale ricorrente dietro ad ogni riga di foto */
.card-media::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 22%; bottom: 22%;
  left: -100vw; right: -100vw;
  background: var(--band-color);
  transform-origin: left;
  transition: transform 1.2s var(--ease);
}
.js .roster:not(.is-in) .card-media::before { transform: scaleX(0); }

.card-img {
  height: 100%;
  overflow: hidden;
  background: #222;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.card-name {
  margin-top: 14px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.35;
}
.card-name span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .4s var(--ease);
}
.card a:hover .card-img,
.card a:focus-visible .card-img { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(0, 0, 0, .22); }
.card a:hover .card-img img,
.card a:focus-visible .card-img img { transform: scale(1.07); }
.card a:hover .card-name span,
.card a:focus-visible .card-name span { background-size: 100% 2px; }

/* Mobile: una colonna, banda verticale centrata */
@media (max-width: 600px) {
  .roster { padding-bottom: 8px; }
  .roster::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -24px; bottom: -24px;
    left: 50%;
    width: min(46vw, 200px);
    translate: -50% 0;
    background: var(--band-color);
    transform-origin: top;
    transition: transform 1.4s var(--ease);
  }
  .js .roster:not(.is-in)::before { transform: scaleY(0); }
  .roster .page-title { margin-left: 0; text-align: center; }
  .card-media::before { display: none; }
  .cards {
    grid-template-columns: min(78vw, 340px);
    justify-content: center;
    padding: 0;
  }
  .card-name { text-align: center; background: #fff; padding: 6px 8px; margin-top: 0; }
}

/* ==========================================================================
   Pagina artista (bio)
   ========================================================================== */
.bio {
  display: grid;
  grid-template-columns: minmax(240px, 400px) 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}
.bio-photo {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  isolation: isolate;
}
.bio-photo::before {           /* accento colore della sezione */
  content: "";
  position: absolute;
  z-index: -1;
  inset: 18px -18px -18px 18px;
  background: var(--band-color);
  animation: offset-in 1s .3s var(--ease) both;
}
.bio-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #222;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .16);
  animation: rise-in .8s var(--ease) both;
}
.bio-text { max-width: 75ch; animation: rise-in .8s .15s var(--ease) both; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s, gap .3s var(--ease);
}
.back-link:hover { color: var(--ink); gap: 12px; }

.bio-text h1 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
}
.bio-text p {
  text-align: justify;
  hyphens: auto;
  font-size: 1rem;
  line-height: 1.75;
}
.bio-text p + p { margin-top: 1em; }

.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  font-size: .9rem;
  text-decoration: none;
  transition: background-color .25s, color .25s;
}
.ext-link:hover { background: var(--ink); color: #fff; }

@media (max-width: 860px) {
  .bio { grid-template-columns: 1fr; }
  .bio-photo { position: relative; top: auto; width: min(78vw, 360px); margin: 0 auto 12px; }
  .bio-text { margin: 0 auto; text-align: center; }
  .bio-text p { text-align: left; }
}

/* ==========================================================================
   Chi siamo
   ========================================================================== */
.about {
  background: #fff url("../img/bg-chisiamo.webp") center / cover no-repeat fixed;
}
@media (max-width: 1024px), (hover: none) {
  .about { background-image: url("../img/bg-chisiamo-sm.webp"); background-attachment: scroll; }
}
.about .page {
  display: grid;
  align-items: center;
  padding-bottom: clamp(24px, 4vh, 48px);
}
/* Desktop: pagina alta esattamente come la finestra (header + testo + footer),
   nessuno scroll. Il testo si ridimensiona in base all'altezza della finestra. */
@media (min-width: 1025px) and (min-height: 560px) {
  body.about { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
  .about main { min-height: 0; }
}
.about-text {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(14px, min(1.25vw, 2.3vh), 22px);
  line-height: 1.7;
  text-align: justify;
  hyphens: auto;
}
.about-text .page-title { margin-bottom: 1em; text-align: left; }
.about-text p { animation: rise-in .9s .15s var(--ease) both; }
.about-text p + p { margin-top: 1em; animation-delay: .3s; }
@media (max-width: 700px) {
  .about-text, .about-text .page-title { text-align: center; }
}

/* ==========================================================================
   Contatti
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  margin: 0 auto;
  background: var(--panel-light);
  box-shadow: 0 20px 50px rgba(21, 33, 156, .18);
  animation: rise-in .8s var(--ease) both;
}
.contact-info {
  display: grid;
  place-content: center;
  gap: 1.4em;
  padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 48px);
  background: var(--panel-dark);
  color: rgba(255, 255, 255, .78);
  text-align: center;
  font-size: .95rem;
  font-style: normal;
  line-height: 1.6;
}
.contact-info h2 {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.3;
}
.contact-info h3 {
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
}
.contact-info a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s, color .2s; }
.contact-info a:hover { color: #fff; border-color: currentColor; }

.contact-form {
  padding: clamp(24px, 4vw, 40px);
}
.contact-form h2 {
  margin-bottom: 22px;
  color: #333;
  font-size: 1.15rem;
  font-weight: 500;
  text-align: center;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field input,
.field textarea {
  width: 100%;
  min-height: 55px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #fff;
  font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #999; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--btn-hover);
  box-shadow: 0 0 0 3px rgba(52, 53, 103, .25);
}
.field input:user-invalid,
.field textarea:user-invalid { border-color: var(--btn); }

.btn-submit {
  display: block;
  width: 220px;
  height: 52px;
  margin: 22px auto 0;
  border: 0;
  background: var(--btn);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn-submit:hover { background: var(--btn-hover); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 0, 0, .2); }
.btn-submit:active { transform: none; }

@media (max-width: 760px) {
  .contact { grid-template-columns: 1fr; }
  .contact-info { order: 2; }
}
@media (max-width: 420px) {
  .form-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 22px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
}
.site-footer a { color: inherit; }

/* ==========================================================================
   Banner cookie
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 200;
  width: min(calc(100% - 32px), 820px);
  display: flex;
  align-items: center;
  gap: 16px 28px;
  padding: 22px 48px 22px 26px;
  background: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .22);
  font-size: .88rem;
  line-height: 1.55;
  transform: translate(-50%, calc(100% + 32px));
  transition: transform .5s var(--ease);
}
.cookie-banner.is-visible { transform: translate(-50%, 0); }
.cookie-banner[hidden] { display: none; }  /* display:flex altrimenti ignora l'attributo hidden */
.cookie-text p + p { margin-top: 4px; }
.cookie-actions { flex: none; display: flex; gap: 10px; }
/* "Rifiuta" e "Accetta" con lo stesso peso visivo (linee guida Garante) */
.cookie-btn {
  min-width: 120px;
  padding: 12px 20px;
  border: 2px solid var(--panel-dark);
  border-radius: 8px;
  background: var(--panel-dark);
  color: #fff;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.cookie-btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.cookie-close {
  position: absolute;
  top: 6px; right: 8px;
  width: 36px; height: 36px;
  border: 0;
  background: none;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.cookie-close:hover { color: var(--ink); }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; padding: 20px 20px 16px; }
  .cookie-text { padding-right: 24px; }
  .cookie-actions .cookie-btn { flex: 1; }
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
}

/* Link legali in fondo alla home */
.home-legal {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  z-index: 1;
  text-align: center;
  font-size: .75rem;
}
.home-legal span, .home-legal a, .home-legal .link-btn {
  padding: 2px 4px;
  color: var(--ink);
}

/* Checkbox privacy nel form */
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  font-size: .8rem;
  line-height: 1.5;
  color: #333;
  cursor: pointer;
}
.consent input {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 1px;
  accent-color: var(--btn);
}

/* ==========================================================================
   Privacy e cookie policy
   ========================================================================== */
.legal {
  max-width: 820px;
  margin: 0 auto;
  line-height: 1.75;
}
.legal .page-title { margin-bottom: 6px; }
.legal-updated { margin-bottom: 24px; font-size: .85rem; color: var(--muted); }
.legal h2 {
  margin: 2.2em 0 .6em;
  font-size: 1.15rem;
  font-weight: 600;
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.legal p + p, .legal ul + p, .legal .table-wrap + p { margin-top: .9em; }
.legal ul { margin: .6em 0 0 1.3em; }
.legal li + li { margin-top: .3em; }
.legal-toc {
  margin: 24px 0;
  padding: 18px 22px;
  background: #f6f6f6;
  border-left: 4px solid var(--red);
}
.legal-toc ol { margin-left: 1.2em; columns: 2 220px; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.table-wrap { overflow-x: auto; margin-top: .8em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.legal th, .legal td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { background: #f6f6f6; font-weight: 600; }
.legal code { font-size: .85em; }
.legal .ext-link { background: none; cursor: pointer; }
.legal .ext-link:hover { background: var(--ink); }

/* ==========================================================================
   Animazioni
   ========================================================================== */
@keyframes page-in   { from { opacity: 0; } }
@keyframes rise-in   { from { opacity: 0; transform: translateY(24px); } }
@keyframes band-grow-y { from { transform: scaleY(0); } }
@keyframes band-grow-x { from { transform: scaleX(0); } }
@keyframes offset-in { from { opacity: 0; transform: translate(-18px, -18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  html { scroll-behavior: auto; }
}
