/* La Scimmia Scorretta: link in bio 2.0 "Ogni video con le sue fonti". Palette e font del canale. */
@font-face {
  font-family: "Anton";
  src: url("fonts/Anton-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/SpaceGrotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --fondo: #120E1A;
  --fondo2: #1C1528;
  --fondo3: #261D36;
  --carta: #F5F1E8;
  --banana: #FFD60A;
  --corallo: #FF4D2E;
  --viola: #8B5CF6;
  --menta: #2EE6A8;
  --grigio: #8A8398;
  --grigio-chiaro: #BDB5CA;
  --nero: #07050B;
  --linea: rgba(245, 241, 232, .09);
  --titoli: "Anton", "Impact", "Arial Narrow", sans-serif;
  --testo: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --lato: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--fondo);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--fondo);
  color: var(--carta);
  font-family: var(--testo);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.vh {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
:focus-visible {
  outline: 3px solid var(--banana);
  outline-offset: 3px;
}

/* ---------- fondo ---------- */
.pagina {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  isolation: isolate;
  background:
    radial-gradient(70% 38% at 0% 52%, rgba(139, 92, 246, .17), transparent 70%),
    radial-gradient(60% 30% at 100% 82%, rgba(255, 77, 46, .10), transparent 70%),
    radial-gradient(80% 26% at 50% 100%, rgba(139, 92, 246, .14), transparent 70%),
    var(--fondo);
}
/* grana leggera, come le copertine */
.pagina::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
}
/* il bunker del banner, dietro la testata */
.testata-sfondo {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 360px;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 14, 26, .22) 0%, rgba(18, 14, 26, .5) 50%, var(--fondo) 100%),
    radial-gradient(55% 60% at 22% 30%, rgba(255, 214, 10, .20), transparent 70%),
    url("img/testata.webp") center top / cover no-repeat;
}

main {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: max(22px, calc(env(safe-area-inset-top) + 10px)) var(--lato) max(32px, calc(env(safe-area-inset-bottom) + 20px));
}

/* ---------- testata ---------- */
.testa {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  align-items: center;
  padding-top: 14px;
}
.avatar {
  position: relative;
  width: 100px;
  height: 100px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}
/* anello banana > corallo > viola che gira piano */
.avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--banana) 0deg, var(--banana) 120deg, var(--corallo) 200deg, var(--viola) 280deg, var(--banana) 360deg);
  animation: gira 9s linear infinite;
}
.avatar::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 214, 10, .35), transparent);
}
.avatar img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--fondo);
  object-fit: cover;
  background: var(--banana);
}
.avatar.scossa img { animation: scossa .5s cubic-bezier(.36, .07, .19, .97); }

.fumetto {
  position: absolute;
  left: 86px;
  top: 0;
  z-index: 3;
  max-width: 220px;
  padding: 8px 12px;
  border-radius: 14px 14px 14px 4px;
  background: var(--carta);
  color: var(--nero);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .7);
  opacity: 0;
  transform: translateY(6px) scale(.96);
  transform-origin: 0 100%;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.fumetto:empty { visibility: hidden; }
.fumetto.vivo { opacity: 1; transform: none; }

.nome h1 {
  margin: 0;
  font-family: var(--titoli);
  font-weight: 400;
  font-size: clamp(36px, 11vw, 48px);
  line-height: .94;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.nome .r1, .nome .r2 { display: block; }
.nome .r1 { color: var(--carta); }
.nome .r2 { color: var(--banana); }
.handle {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--grigio-chiaro);
}

.bio {
  grid-column: 1 / -1;
  margin: 18px 0 0;
}
.bio span { display: block; }
.b1 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--carta);
}
.b1 mark {
  padding: 1px 7px 2px;
  border-radius: 6px;
  background: var(--corallo);
  color: var(--nero);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  white-space: nowrap;
}
.b2 {
  margin-top: 2px;
  font-size: 15.5px;
  color: var(--grigio-chiaro);
}

/* ---------- titoli di sezione ---------- */
h2 {
  margin: 0;
  font-family: var(--titoli);
  font-weight: 400;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--carta);
}

/* ---------- ultimo Short ---------- */
.ultimo { margin-top: 26px; }
.riga-titolo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.riga-titolo h2 { color: var(--banana); }
.quando {
  margin-left: auto;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--grigio-chiaro);
  white-space: nowrap;
}

.card {
  position: relative;
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, var(--fondo3), var(--fondo2) 60%);
  border: 1px solid var(--linea);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, .14),
    0 24px 50px -24px rgba(139, 92, 246, .55),
    0 12px 30px -18px rgba(0, 0, 0, .9);
}
.card-alto {
  display: grid;
  grid-template-columns: clamp(116px, 37%, 160px) 1fr;
  gap: 14px;
  align-items: start;
}
/* copertina verticale 9:16, come lo Short */
.cop {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(70% 50% at 50% 40%, rgba(139, 92, 246, .35), transparent 70%),
    var(--nero);
  box-shadow: 0 0 0 1px var(--linea), 0 14px 30px -16px rgba(0, 0, 0, .9);
}
.cop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s cubic-bezier(.2, .7, .2, 1);
}
.card[aria-busy="true"] .cop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(245, 241, 232, .07) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: luccica 1.4s linear infinite;
}
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(7, 5, 11, .62);
  border: 2px solid rgba(255, 214, 10, .9);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: transform .2s ease, background-color .2s ease;
}
.play svg { width: 22px; height: 22px; margin-left: 3px; fill: var(--banana); }
.cop:hover .play { transform: scale(1.07); background: rgba(7, 5, 11, .78); }
.cop:hover img { transform: scale(1.025); }
.card.vuota .card-alto { grid-template-columns: 1fr; }
.card.vuota .cop { display: none; }

/* l'etichetta del canale: nero, bordo corallo, storta */
.etichetta {
  display: inline-block;
  padding: 2px 8px 1px;
  border: 2.5px solid var(--corallo);
  border-radius: 6px;
  background: var(--nero);
  color: #fff;
  font-family: var(--titoli);
  font-size: 14px;
  line-height: 1.15;
  letter-spacing: .07em;
  text-transform: uppercase;
  transform: rotate(-3deg);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .45);
}
.etichetta.piu { margin: 2px 0 10px 2px; border-color: var(--banana); }
.card-testo { min-width: 0; padding-top: 2px; }
.card-titolo {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.01em;
  color: var(--carta);
  overflow-wrap: break-word;
}
.gancio {
  margin: 10px 0 0;
  font-size: 14.5px;
  line-height: 1.42;
  color: var(--grigio-chiaro);
  overflow-wrap: break-word;
}
.gancio:empty { display: none; }
.riempi {
  display: none;
  height: 17px;
  margin: 6px 0;
  border-radius: 6px;
  background: rgba(245, 241, 232, .08);
}
.js .card[aria-busy="true"] .riempi { display: block; }
.riempi.corto { width: 62%; }

.guarda.grande {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--banana);
  color: var(--nero);
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -.005em;
  box-shadow: 0 10px 28px -12px rgba(255, 214, 10, .75), inset 0 -3px 0 rgba(7, 5, 11, .18);
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.cta .ico { width: 24px; height: 24px; fill: var(--nero); flex: none; }
.cta:hover { background: #ffe03d; }
.cta:active { transform: translateY(1px); }
.due {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.due.uno { grid-template-columns: 1fr; }
.bott {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--fondo2);
  border: 1.5px solid rgba(245, 241, 232, .16);
  font-size: 16px;
  font-weight: 700;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.bott svg { width: 20px; height: 20px; fill: var(--carta); flex: none; }
.bott:hover { border-color: var(--viola); background: var(--fondo3); }
.bott:active { transform: translateY(1px); }
.vai-fonti {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--banana);
}
.vai-fonti svg,
.fonti summary .giu {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

.prossimo {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 6px 0;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--grigio-chiaro);
}
.prossimo svg {
  width: 19px; height: 19px; flex: none; margin-top: 1px;
  fill: none; stroke: var(--menta); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.prossimo strong { color: var(--carta); font-weight: 700; }
.prossimo .pt { display: block; color: var(--carta); font-weight: 600; }

/* ---------- il più visto ---------- */
.piu-visto { margin-top: 22px; }
.scheda {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px 10px 10px;
  border-radius: 20px;
  background: linear-gradient(100deg, rgba(255, 214, 10, .09), rgba(28, 21, 40, .9) 55%);
  border: 1.5px solid rgba(255, 214, 10, .32);
  transition: border-color .15s ease, background-color .15s ease;
}
.scheda:hover { border-color: var(--banana); }
.scheda h2 {
  margin-bottom: 3px;
  font-size: 15px;
  letter-spacing: .07em;
  color: var(--banana);
}
.scheda .t {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--carta);
}
/* tutta la scheda è cliccabile, ma il link resta uno solo */
.scheda .t::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
}
.scheda .m {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--grigio-chiaro);
}
.scheda .m strong { color: var(--carta); font-variant-numeric: tabular-nums; }
.scheda .m .al { display: block; font-size: 12.5px; color: var(--grigio); }
.scheda .freccia {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: var(--carta); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}

.mini {
  position: relative;
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 10px;
  background:
    radial-gradient(70% 50% at 50% 40%, rgba(139, 92, 246, .3), transparent 70%),
    var(--nero);
  box-shadow: 0 0 0 1px var(--linea);
}
.mini img { width: 100%; height: 100%; object-fit: cover; }
.mini.vuota img { display: none; }

/* ---------- canale ---------- */
.canale { margin-top: 22px; }
.iscriviti {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 12px 16px 12px 18px;
  border-radius: 20px;
  background: var(--carta);
  color: var(--nero);
  box-shadow: 0 12px 28px -16px rgba(245, 241, 232, .5), inset 0 -3px 0 rgba(7, 5, 11, .12);
  transition: transform .15s ease, background-color .15s ease;
}
.iscriviti .yt { width: 38px; height: 38px; flex: none; }
.iscriviti .testo { flex: 1; min-width: 0; }
.iscriviti strong {
  display: block;
  font-family: var(--titoli);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.iscriviti small {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #4A4356;
}
.iscriviti .freccia,
.tutti svg {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.iscriviti:hover { background: #fff; }
.iscriviti:active { transform: translateY(1px); }

/* ---------- ogni video con le sue fonti ---------- */
.tutti-short { margin-top: 36px; }
.sotto {
  margin: 6px 0 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--grigio-chiaro);
}
.lista {
  margin: 0;
  padding: 0;
  list-style: none;
}
.voce {
  padding: 16px 0;
  scroll-margin-top: 12px;
}
.voce + .voce { border-top: 1px solid var(--linea); }
.voce-alto {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: start;
}
.voce-testo { min-width: 0; }
.voce .t {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -.005em;
  color: var(--carta);
  overflow-wrap: break-word;
}
.voce .m {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--grigio-chiaro);
}
.guarda.piccola {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.tondo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--fondo2);
  border: 1.5px solid rgba(245, 241, 232, .16);
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.tondo svg { width: 20px; height: 20px; fill: var(--carta); }
.tondo.youtube { background: var(--banana); border-color: var(--banana); }
.tondo.youtube svg { fill: var(--nero); }
.tondo:hover { border-color: var(--viola); }
.tondo.youtube:hover { background: #ffe03d; }
.tondo:active { transform: translateY(1px); }

/* la tendina "I numeri e le fonti", chiusa di base */
.fonti {
  margin-top: 12px;
  border-radius: 16px;
  background: rgba(28, 21, 40, .65);
  border: 1px solid var(--linea);
}
.fonti summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border-radius: 16px;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  color: var(--carta);
  touch-action: manipulation;
}
.fonti summary::-webkit-details-marker { display: none; }
.fonti summary::marker { content: ""; }
.fonti summary .conta {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--grigio-chiaro);
}
.fonti summary .giu { color: var(--banana); transition: transform .2s ease; }
.fonti[open] summary .giu { transform: rotate(180deg); }
.fonti summary:hover { background: rgba(245, 241, 232, .04); }
.fonti-corpo { padding: 2px 14px 14px; }
.fonti[open] .fonti-corpo { animation: entra .3s cubic-bezier(.2, .7, .2, 1); }
.numeri {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.n-testa { margin: 0; line-height: 1.25; }
.n-testa strong {
  font-family: var(--titoli);
  font-weight: 400;
  font-size: 15.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--banana);
}
.n-testa .nota {
  margin-left: 6px;
  font-size: 12.5px;
  color: var(--grigio);
}
.n-testo {
  margin: 3px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--carta);
  overflow-wrap: break-word;
}
.resto {
  margin: 14px 0 0;
  font-size: 13.5px;
  color: var(--grigio-chiaro);
}
.resto a {
  color: var(--carta);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 214, 10, .6);
  text-underline-offset: 3px;
}
.fonti h4 {
  margin: 18px 0 4px;
  font-family: var(--titoli);
  font-weight: 400;
  font-size: 15.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--banana);
}
.link-fonti {
  margin: 0;
  padding: 0;
  list-style: none;
}
.link-fonti li + li { border-top: 1px solid var(--linea); }
.link-fonti a {
  display: block;
  padding: 10px 0;
}
.link-fonti .et {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.38;
  color: var(--carta);
  text-decoration: underline;
  text-decoration-color: rgba(255, 214, 10, .45);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.link-fonti .sito {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--grigio-chiaro);
  overflow-wrap: anywhere;
}
.link-fonti .sito svg {
  width: 13px; height: 13px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.link-fonti a:hover .et { text-decoration-color: var(--banana); }

.altri,
.tutti {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(245, 241, 232, .22);
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  color: var(--carta);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.altri:hover,
.tutti:hover { border-color: var(--banana); background: rgba(255, 214, 10, .06); }

/* ---------- pillole ---------- */
.pillole { margin-top: 34px; }
.pillole h2 { margin-bottom: 12px; }
.social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.social.uno { grid-template-columns: 1fr; } /* arrivi da un social: resta solo l'altro */
.social a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--fondo2);
  border: 1.5px solid rgba(245, 241, 232, .14);
  font-size: 17px;
  font-weight: 700;
  transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.social svg { width: 22px; height: 22px; fill: var(--carta); flex: none; }
.social a:hover { border-color: var(--viola); background: var(--fondo3); }
.social a:active { transform: translateY(1px); }

/* ---------- piede ---------- */
.piede { margin-top: 40px; }
.frase {
  position: relative;
  margin: 0;
  padding: 22px 20px 18px;
  border-radius: 22px;
  border: 1.5px dashed rgba(245, 241, 232, .18);
  background: rgba(28, 21, 40, .6);
}
.frase figcaption {
  position: absolute;
  top: -11px;
  left: 18px;
  padding: 0 8px;
  background: var(--fondo);
  font-family: var(--titoli);
  font-size: 15px;
  line-height: 22px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--banana);
}
.frase blockquote { margin: 0; }
.frase p {
  margin: 0;
  min-height: 2.6em;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--carta);
  text-wrap: pretty;
}
.frase p.cambia { animation: entra .35s cubic-bezier(.2, .7, .2, 1); }
.altra {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  margin-top: 12px;
  padding: 6px 14px 6px 12px;
  border: 1.5px solid rgba(245, 241, 232, .2);
  border-radius: 999px;
  background: transparent;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--carta);
  cursor: pointer;
  touch-action: manipulation;
  transition: border-color .15s ease;
}
.altra svg {
  width: 17px; height: 17px;
  fill: none; stroke: var(--banana); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.altra:hover { border-color: var(--banana); }
.nota {
  margin: 22px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--grigio);
}

/* ---------- riquadro "apri nel browser" (solo nei browser interni, quando l'app non si apre da qui) ---------- */
.guida-aperta, .guida-aperta body { overflow: hidden; }
.guida {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 78px var(--lato) 24px;
  background: rgba(7, 5, 11, .8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: appare .18s ease both;
}
.guida-scheda {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  padding: 22px 20px 20px;
  border-radius: 22px;
  background: var(--fondo2);
  border: 1.5px solid var(--viola);
  box-shadow: 0 24px 60px -20px rgba(139, 92, 246, .6);
  animation: entra .3s cubic-bezier(.2, .7, .2, 1) both;
}
.guida h2 { margin: 0 40px 10px 0; font-size: 25px; color: var(--banana); }
.guida p { margin: 0 0 18px; font-size: 17px; line-height: 1.5; }
.guida .menu {
  display: inline-block;
  min-width: 34px;
  padding: 0 7px;
  border-radius: 8px;
  background: var(--carta);
  color: var(--nero);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}
.guida .voce-menu { color: var(--banana); white-space: nowrap; }
.guida-sito {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(245, 241, 232, .22);
  font-size: 16px;
  font-weight: 700;
  color: var(--grigio-chiaro);
}
.guida-chiudi {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.guida-chiudi svg, .guida-freccia { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.guida-chiudi svg { width: 22px; height: 22px; stroke: var(--grigio-chiaro); stroke-width: 2.4; }
.guida-freccia {
  position: fixed;
  top: 8px;
  right: max(12px, env(safe-area-inset-right));
  width: 56px;
  height: 56px;
  stroke: var(--banana);
  stroke-width: 5;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .65));
  animation: indica .9s ease-in-out infinite;
}
@keyframes indica { 50% { transform: translate(6px, -6px); } }
@keyframes appare { from { opacity: 0; } }
/* arrivati da "Apri nel browser": il pulsante da toccare lampeggia */
a.chiama {
  border-color: var(--banana);
  box-shadow: 0 0 0 4px rgba(255, 214, 10, .28);
  animation: chiama 1.1s ease-in-out 4;
}
@keyframes chiama { 50% { box-shadow: 0 0 0 12px rgba(255, 214, 10, 0); } }

/* pagina di prova prova-app.html (non collegata) */
.prova h1 { margin: 0 0 8px; font-family: var(--titoli); font-weight: 400; font-size: 30px; text-transform: uppercase; }
.prova h2 { margin: 26px 0 10px; }
.prova-nota { margin: 0; color: var(--grigio-chiaro); }

/* ---------- entrata ---------- */
.testa, main > section, .piede { animation: entra .55s cubic-bezier(.2, .7, .2, 1) both; }
.ultimo { animation-delay: .07s; }
.piu-visto, .canale { animation-delay: .14s; }
.tutti-short, .pillole, .piede { animation-delay: .2s; }

@keyframes entra { from { opacity: 0; transform: translateY(12px); } }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes luccica { from { background-position: 150% 0; } to { background-position: -50% 0; } }
@keyframes scossa {
  20% { transform: rotate(-9deg); }
  40% { transform: rotate(7deg); }
  60% { transform: rotate(-5deg); }
  80% { transform: rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- schermi larghi e stretti ---------- */
@media (min-width: 640px) {
  main { padding-top: 56px; padding-bottom: 56px; }
  .testata-sfondo { height: 440px; }
}
@media (max-width: 359px) {
  .avatar { width: 84px; height: 84px; }
  .fumetto { left: 72px; }
  .card-titolo { font-size: 17px; }
  .voce-alto { grid-template-columns: 72px 1fr; }
  .tondo { width: 42px; height: 42px; }
  .social, .due { grid-template-columns: 1fr; }
}
.simboli { position: absolute; width: 0; height: 0; overflow: hidden; }
