/* ───────────── Font (locali, funzionano offline) ───────────── */
@font-face { font-family: "Anton"; src: url("fonts/anton-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 400; src: url("fonts/space-grotesk-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; src: url("fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }

/* ───────────── Colori: cambia qui per cambiare tutto ───────────── */
:root {
  --bg: #141210;
  --fg: #f4efe8;
  --muted: #a39b90;
  --accent: #e8794a;     /* arancione "Claude" */
  --accent-2: #ffd23f;   /* giallo minion */
  --danger: #ff4d6d;
  --card: #221e1b;

  --r-background-color: var(--bg);
  --r-main-color: var(--fg);
  --r-heading-color: var(--fg);
  --r-main-font: "Space Grotesk", "Noto Sans", sans-serif;
  --r-heading-font: "Anton", Impact, sans-serif;
  --r-heading-text-transform: uppercase;
  --r-heading-letter-spacing: 0.01em;
  --r-heading-line-height: 1.05;
  --r-link-color: var(--accent);
  --r-link-color-hover: var(--accent-2);
  --r-selection-background-color: var(--accent);
}

body, .reveal-viewport { background: var(--bg); }
.reveal { font-size: 34px; }
.reveal h1 { font-size: 2.6em; }
.reveal h2 { font-size: 1.9em; }
.reveal h3 { font-size: 1.2em; color: var(--muted); }
.reveal .accent { color: var(--accent); }
.reveal .yellow { color: var(--accent-2); }
.reveal .muted  { color: var(--muted); }
.reveal .small  { font-size: 0.65em; }
.reveal strike, .reveal s { color: var(--muted); text-decoration-color: var(--danger); text-decoration-thickness: 4px; }

/* Etichetta "FASE N" in alto */
.fase {
  display: inline-block;
  font-family: "Anton", Impact, sans-serif;
  font-size: 0.55em;
  letter-spacing: 0.15em;
  padding: 0.15em 0.7em;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  margin-bottom: 0.9em;
}

/* Testo stile meme (bianco con bordo nero) */
.meme {
  font-family: "Anton", Impact, sans-serif;
  text-transform: uppercase;
  color: #fff;
  -webkit-text-stroke: 2px #000;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 #000;
}

/* Immagini e video */
.reveal img, .reveal video { max-height: 58vh; border-radius: 14px; }
.reveal .tilt { transform: rotate(-2deg); }

/* Segnaposto quando il file in media/ manca ancora */
.placeholder {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.3em;
  width: min(70%, 900px); min-height: 38vh;
  border: 3px dashed var(--muted); border-radius: 14px;
  color: var(--muted); font-size: 0.6em; padding: 1em; box-sizing: border-box;
}
.placeholder b { color: var(--accent); font-family: monospace; font-size: 1.1em; }

/* Griglia di card */
.cards { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 0.6em; margin: 0.6em auto 0; max-width: 1200px; }
.card {
  background: var(--card); border-radius: 18px; padding: 0.7em 0.6em; text-align: center;
  border: 2px solid transparent;
}
.card.hot { border-color: var(--accent); }
.card .emoji { font-size: 2.2em; line-height: 1.2; }
.card h4 { font-family: "Anton", Impact, sans-serif; text-transform: uppercase; margin: 0.2em 0; font-size: 0.9em; color: var(--fg); }
.card p { font-size: 0.6em; color: var(--muted); margin: 0; }
.card img, .card video, .card .placeholder { width: 100%; max-height: 24vh; min-height: 20vh; font-size: 0.45em; object-fit: cover; }

/* Chat finta (per la slide AI psychosis) */
.chat { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.4em; font-size: 0.7em; text-align: left; }
.bubble { padding: 0.5em 0.9em; border-radius: 18px; max-width: 75%; }
.bubble.me { align-self: flex-end; background: #2f6fed; color: #fff; border-bottom-right-radius: 4px; }
.bubble.ai { align-self: flex-start; background: var(--card); border-bottom-left-radius: 4px; }

/* Ciclo "si rompe → lui sistema" */
.loop { display: flex; align-items: center; justify-content: center; gap: 0.5em; flex-wrap: wrap; font-size: 0.85em; }
.loop .step { background: var(--card); padding: 0.4em 0.8em; border-radius: 12px; }
.loop .arrow { color: var(--accent); font-family: "Anton", sans-serif; }

/* ───────────── I MINION CLAUDE (fatti in CSS) ───────────── */
.army { position: relative; height: 40vh; overflow: hidden; margin-top: 0.5em; }
.army .row { position: absolute; display: flex; gap: 46px; white-space: nowrap; animation: march 14s linear infinite; }
.army .row.r1 { bottom: 0;   }
.army .row.r2 { bottom: 52%; animation-duration: 19s; animation-direction: reverse; opacity: .75; transform: scale(.75); }
@keyframes march { from { transform: translateX(-50%); } to { transform: translateX(0%); } }
.army .row.r2 { animation-name: march2; }
@keyframes march2 { from { transform: translateX(0%) scale(.75); } to { transform: translateX(-50%) scale(.75); } }

.minion {
  --c: var(--accent);
  position: relative; width: 70px; height: 92px; flex: 0 0 auto;
  background: var(--c); border-radius: 36px 36px 22px 22px;
  animation: bob .5s ease-in-out infinite alternate;
}
.minion:nth-child(2n) { animation-delay: .25s; }
.minion::before, .minion::after { /* occhi */
  content: ""; position: absolute; top: 26px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: inset 3px 2px 0 4px #141210;
}
.minion::before { left: 14px; }
.minion::after  { right: 14px; }
.minion .tag {
  position: absolute; bottom: -1.7em; left: 50%; transform: translateX(-50%);
  font-size: 13px; font-family: "Space Grotesk", sans-serif; color: var(--muted); white-space: nowrap;
}
.minion .hat { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font-size: 26px; }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -10px; } }

/* Diagramma dei ruoli del progetto */
.roles { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.5em 1em; align-items: center; max-width: 1100px; margin: 0.4em auto 0; }
.roles .card { display: flex; align-items: center; gap: 0.5em; text-align: left; }
.roles .card .emoji { font-size: 1.6em; }
.roles .center { grid-row: span 2; font-size: 3.2em; }

/* Slide finale col video a tutto schermo */
.reveal .slides section.full { top: 0 !important; height: 100%; }
.reveal .bg-caption { position: absolute; bottom: 6%; left: 0; right: 0; font-size: 2.4em; }

/* ───────────── Slide di dati ───────────── */
.stats { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 0.6em; max-width: 1300px; margin: 0.6em auto 0; }
.stat { background: var(--card); border-radius: 18px; padding: 0.7em 0.6em; display: flex; flex-direction: column; gap: 0.3em; border: 2px solid transparent; }
.stat.hot { border-color: var(--accent); }
.stat .num { font-family: "Anton", Impact, sans-serif; font-size: 2.2em; line-height: 1; color: var(--accent); }
.stat .lbl { font-size: 0.6em; line-height: 1.35; }
.reveal .src { font-size: 0.42em; color: var(--muted); margin-top: 1.2em; }

/* Citazioni */
.quotes { display: flex; flex-direction: column; gap: 0.5em; max-width: 1200px; margin: 0.4em auto 0; }
.reveal .quotes blockquote {
  width: auto; margin: 0; padding: 0.5em 0.9em; text-align: left; font-size: 0.68em; font-style: normal;
  background: var(--card); border-left: 6px solid var(--muted); border-radius: 10px; box-shadow: none;
}
.reveal .quotes blockquote.hot { border-left-color: var(--accent); }
.reveal .quotes blockquote b { color: var(--accent-2); }
.reveal .quotes cite { display: block; margin-top: 0.3em; font-size: 0.75em; color: var(--muted); font-style: normal; }

/* Suggerimento "scendi giù" */
.reveal .down-hint { margin-top: 0.8em; font-size: 0.5em; color: var(--muted); animation: hint 1.4s ease-in-out infinite alternate; }
@keyframes hint { to { transform: translateY(8px); } }

/* Elenco fonti */
.reveal .sources { font-size: 0.5em; text-align: left; max-width: 1300px; }
.reveal .sources li { margin: 0.35em 0; }

/* ───────────── Terminale finto ───────────── */
.term { max-width: 1150px; margin: 0.5em auto 0; background: #0b0a09; border-radius: 14px; overflow: hidden; text-align: left; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.term-bar { display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: #2a2521; }
.term-bar span { width: 13px; height: 13px; border-radius: 50%; background: #ff5f57; }
.term-bar span:nth-child(2) { background: #febc2e; }
.term-bar span:nth-child(3) { background: #28c840; }
.term-bar em { margin-left: 10px; font-size: 15px; color: var(--muted); font-style: normal; font-family: monospace; }
.reveal .term pre { margin: 0; width: auto; box-shadow: none; padding: 0.7em 1em; font-size: 0.5em; line-height: 1.5; color: var(--fg); background: none; white-space: pre-wrap; }
.t-dim { color: var(--muted); } .t-red { color: var(--danger); } .t-green { color: #5ee08a; } .t-ai { color: var(--accent); font-weight: 700; }
.reveal .chat code, .reveal .bubble code { font-size: 0.9em; background: rgba(0,0,0,.25); padding: 0.05em 0.3em; border-radius: 5px; }

/* Tasti */
.keys { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em; max-width: 1150px; margin: 0.4em auto 0; }
.key { background: var(--card); border-radius: 14px; padding: 0.5em 0.7em; display: flex; align-items: center; gap: 0.25em; font-size: 0.7em; border: 2px solid transparent; }
.key.hot { border-color: var(--accent); }
.key span { margin-left: 0.6em; color: var(--muted); font-size: 0.85em; }
.reveal kbd { font-family: "Space Grotesk", sans-serif; font-weight: 700; background: #36302b; border-bottom: 3px solid #120f0d; border-radius: 7px; padding: 0.05em 0.45em; }
