:root {
  --ink: #082554;
  --ink-soft: #274468;
  --muted: #5f728d;
  --line: #d9e3ef;
  --paper: #ffffff;
  --paper-soft: #f3f7fb;
  --blue: #1b8dff;
  --blue-dark: #082554;
  --cyan: #60dcff;
  --pink: #ff2f86;
  --pink-dark: #d91b71;
  --green: #20c997;
  --shadow: 0 1.1rem 2.8rem rgba(8, 37, 84, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 12% 10%, rgba(96, 220, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 86% 88%, rgba(255, 47, 134, 0.16), transparent 32rem),
    #06152f;
}

button,
input {
  font: inherit;
  letter-spacing: 0;
}

button {
  border: 0;
}

.deck-app {
  position: relative;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
}

.stage {
  position: relative;
  width: min(100vw, calc(100dvh * 16 / 9));
  height: min(100dvh, calc(100vw * 9 / 16));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.28);
}

.slide {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  gap: 1.45rem;
  padding: 4.35rem 5.2rem 4.75rem;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 12%, rgba(27, 141, 255, 0.12), transparent 26rem),
    radial-gradient(circle at 91% 14%, rgba(255, 47, 134, 0.12), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateX(1.6rem);
  transition: none;
  pointer-events: none;
}

.slides-ready .slide {
  transition:
    opacity 190ms ease,
    transform 190ms ease,
    visibility 190ms ease;
}

.slide::before {
  content: "";
  position: absolute;
  right: -10rem;
  bottom: -19rem;
  width: 58rem;
  height: 30rem;
  border: 0.18rem solid rgba(255, 47, 134, 0.22);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(8, 37, 84, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 37, 84, 0.035) 1px, transparent 1px);
  background-size: 4.6rem 4.6rem;
  mask-image: linear-gradient(120deg, transparent 0 24%, #000 62%, transparent 100%);
  pointer-events: none;
}

.slide.active {
  display: flex;
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.slide > * {
  position: relative;
  z-index: 1;
}

.title-slide {
  justify-content: stretch;
  padding: 0;
  background:
    linear-gradient(90deg, rgba(3, 13, 31, 0) 0%, rgba(3, 13, 31, 0.06) 54%, rgba(3, 13, 31, 0.18) 100%),
    url("dispensa_corso_ai_programmazione/images/title background image.png") center / cover no-repeat;
}

.title-slide::before,
.title-slide::after {
  display: none;
}

.gility-title-logo {
  position: absolute;
  top: 2.1rem;
  left: 4.9rem;
  z-index: 3;
  width: 8.4rem;
  height: auto;
}

.title-panel {
  position: relative;
  display: flex;
  width: 48.5%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 5.6rem 5.2rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.965);
  border-top-right-radius: 8rem;
  border-bottom-right-radius: 9.6rem;
  filter:
    drop-shadow(0.7rem 0 0 var(--pink))
    drop-shadow(1.8rem 0 3.2rem rgba(3, 13, 31, 0.22));
}

.accent-line {
  width: 6.4rem;
  height: 0.32rem;
  margin-bottom: 2.2rem;
  background: var(--pink);
}

.hero-caption {
  position: absolute;
  right: 5.8rem;
  bottom: 5.2rem;
  width: 24rem;
  padding: 1.2rem 1.25rem;
  color: #fff;
  border: 1px solid rgba(211, 233, 255, 0.32);
  border-radius: 1rem;
  background: rgba(6, 24, 55, 0.72);
  box-shadow: 0 1rem 2.6rem rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.hero-caption span {
  display: inline-flex;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.65rem;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-caption strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.25;
}

.kicker {
  margin: 0 0 0.7rem;
  color: var(--blue);
  font-size: 0.94rem;
  font-weight: 820;
  line-height: 1.2;
  text-transform: uppercase;
}

.title-panel .kicker {
  color: var(--ink);
  text-transform: none;
  font-size: 1.08rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 40rem;
  margin-bottom: 1.15rem;
  color: var(--ink);
  font-size: 4.08rem;
  line-height: 1.03;
  font-weight: 850;
}

h2 {
  max-width: 62rem;
  margin-bottom: 0.78rem;
  color: var(--ink);
  font-size: 3.15rem;
  line-height: 1.07;
  font-weight: 820;
}

h3 {
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 1.28rem;
  line-height: 1.18;
  font-weight: 780;
}

p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.42;
}

.lead {
  max-width: 64rem;
  color: var(--ink-soft);
  font-size: 1.24rem;
  line-height: 1.42;
}

.subtitle {
  margin-bottom: 2.1rem;
  color: #172f5c;
  font-size: 1.95rem;
  font-weight: 720;
}

.title-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 4.2rem;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 760;
}

.title-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(8, 37, 84, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
}

.nowrap {
  white-space: nowrap;
}

.slide-header {
  max-width: 70rem;
}

.slide-header.compact {
  max-width: 74rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  flex: 1;
}

.summary-grid article,
.comparison-row > div,
.note-list article,
.workflow-steps article,
.process-grid article,
.takeaways article {
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.summary-grid article {
  display: flex;
  min-height: 24rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.45rem;
}

.summary-grid span,
.workflow-steps span {
  color: var(--pink);
  font-size: 2.35rem;
  font-weight: 850;
  line-height: 1;
}

.agent-logo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
  align-items: center;
  justify-items: center;
  flex: 1;
  padding: 1.8rem 0 1rem;
}

.agent-logo-row figure {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 13.5rem;
  margin: 0;
}

.agent-logo-row img {
  display: block;
  width: 18rem;
  height: auto;
  max-height: 8.2rem;
  object-fit: contain;
}

.agent-logo-row .codex-logo {
  width: 17rem;
}

.agent-logo-row .antigravity-logo {
  width: 8.7rem;
  max-height: 8.7rem;
}

.agent-logo-row .claude-logo {
  width: 18.5rem;
}

.agent-logo-row figcaption {
  margin-top: 1.25rem;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 780;
}

.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: auto;
}

.comparison-row > div {
  padding: 1.25rem 1.35rem;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.6rem;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.media-left {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.terminal-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.note-list {
  display: grid;
  gap: 0.95rem;
  align-content: center;
}

.note-list article {
  padding: 1.18rem 1.25rem;
}

.note-list code {
  padding: 0.08rem 0.26rem;
  border-radius: 0.3rem;
  background: #edf3fb;
  color: var(--ink);
}

.screenshot-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.screenshot-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.screenshot-frame.portrait {
  max-height: 34rem;
}

.terminal-shot {
  background: transparent;
}

.terminal-shot img {
  padding: 0;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  flex: 1;
}

.workflow-steps article {
  padding: 1.25rem;
}

.plain-callout {
  margin-top: auto;
  padding: 0.95rem 1.15rem;
  color: var(--ink);
  border-left: 0.32rem solid var(--pink);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  font-size: 1.04rem;
  line-height: 1.38;
}

.dataset-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1.4rem;
  flex: 1;
  min-height: 0;
}

.schema-table {
  display: grid;
  align-content: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.schema-table div {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1rem;
  padding: 0.72rem 1rem;
  border-bottom: 1px solid #e6edf5;
  color: var(--muted);
  font-size: 0.98rem;
}

.schema-table div:first-child {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  font-weight: 780;
}

.schema-table div:last-child {
  border-bottom: 0;
}

.schema-table span:first-child {
  color: var(--ink);
  font-weight: 780;
}

.image-pair {
  display: grid;
  gap: 1rem;
  min-height: 0;
}

.image-pair.vertical {
  grid-template-rows: 1fr 1fr;
}

.codex-pair {
  grid-template-columns: 1fr 1fr;
  flex: 1;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.process-grid article {
  padding: 1.2rem;
}

.two-screens {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1rem;
  flex: 1;
  min-height: 0;
}

.app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.58fr);
  gap: 1rem;
  flex: 1;
  min-height: 0;
}

.compact-list {
  align-content: center;
}

.compact-list article {
  padding: 1.15rem 1.2rem;
}

.takeaways {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  flex: 1;
}

.takeaways article {
  min-height: 25rem;
  padding: 1.25rem;
}

.takeaways article::before {
  content: "";
  display: block;
  width: 100%;
  height: 0.28rem;
  margin-bottom: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
}

.conversation-slide {
  padding: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 47, 134, 0.18), transparent 20rem),
    radial-gradient(circle at 88% 90%, rgba(96, 220, 255, 0.2), transparent 22rem),
    linear-gradient(135deg, #06142f, #071d43 50%, #050d1f);
}

.conversation-slide::before,
.conversation-slide::after {
  display: none;
}

.conversation-shell {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #050b16;
  box-shadow: none;
}

.profile-slide {
  justify-content: center;
  background:
    radial-gradient(circle at 16% 18%, rgba(96, 220, 255, 0.2), transparent 26rem),
    radial-gradient(circle at 86% 16%, rgba(255, 47, 134, 0.14), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(22rem, 0.72fr);
  gap: 4.4rem;
  align-items: center;
  min-height: 0;
}

.profile-copy h2 {
  margin-bottom: 0.55rem;
  font-size: 4.2rem;
}

.profile-role {
  margin-bottom: 2rem;
  color: var(--pink);
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 820;
}

.profile-bio {
  display: grid;
  gap: 1.25rem;
  max-width: 55rem;
  padding: 0;
  margin: 0 0 2.3rem;
  list-style: none;
}

.profile-bio li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--ink-soft);
  font-size: 1.22rem;
  line-height: 1.42;
}

.profile-bio li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.4rem;
  padding: 0.7rem 1.05rem;
  color: var(--ink);
  border: 1px solid rgba(8, 37, 84, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.linkedin-link span {
  display: inline-grid;
  place-items: center;
  min-width: 5.9rem;
  height: 2.1rem;
  padding: 0 0.7rem;
  color: #fff;
  border-radius: 999px;
  background: #0a66c2;
  font-size: 0.94rem;
  font-weight: 820;
}

.linkedin-link strong {
  font-size: 1.1rem;
  font-weight: 780;
}

.profile-visual {
  display: grid;
  justify-items: center;
  gap: 1.7rem;
}

.profile-photo-ring {
  width: 16.2rem;
  height: 16.2rem;
  overflow: hidden;
  border: 0.42rem solid #fff;
  border-radius: 50%;
  background: #eaf1f8;
  box-shadow:
    0 1.25rem 3rem rgba(8, 37, 84, 0.18),
    0 0 0 0.16rem rgba(255, 47, 134, 0.36);
}

.profile-photo-ring img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(2.15);
  transform-origin: 36% 36%;
}

.qr-card {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  width: 14rem;
  padding: 1rem 1rem 0.95rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  text-align: center;
  text-decoration: none;
}

.qr-card img {
  display: block;
  width: 10.8rem;
  height: 10.8rem;
}

.qr-card span {
  font-size: 0.92rem;
  line-height: 1.25;
  font-weight: 730;
}

.deck-nav {
  display: inline-grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(211, 233, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition:
    transform 140ms ease,
    background 140ms ease,
    opacity 140ms ease;
}

.deck-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.deck-nav:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none;
}

.deck-nav svg {
  width: 1.35rem;
  height: 1.35rem;
}

.deck-nav path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#conversationFrame {
  width: 100%;
  height: 100%;
  flex: 1;
  border: 0;
  background: #fff;
}

.deck-topline {
  position: fixed;
  left: 50%;
  top: max(0.8rem, env(safe-area-inset-top));
  z-index: 20;
  display: flex;
  justify-content: space-between;
  width: min(100vw, calc(100dvh * 16 / 9));
  padding: 0 1.2rem;
  color: rgba(8, 37, 84, 0.58);
  font-size: 0.86rem;
  font-weight: 760;
  pointer-events: none;
  transform: translateX(-50%);
}

.is-title #slideCounter,
.is-conversation #slideCounter,
.is-conversation #slideLabel {
  color: rgba(255, 255, 255, 0.82);
}

.is-title #slideLabel {
  display: none;
}

.progress-track {
  position: fixed;
  left: 50%;
  bottom: max(0.75rem, env(safe-area-inset-bottom));
  z-index: 20;
  width: min(42rem, 56vw);
  height: 0.28rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(8, 37, 84, 0.18);
  transform: translateX(-50%);
}

.is-title .progress-track,
.is-conversation .progress-track {
  background: rgba(255, 255, 255, 0.22);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  transition: width 180ms ease;
}

.deck-nav {
  position: fixed;
  top: 50%;
  z-index: 25;
  width: 3.3rem;
  height: 3.3rem;
  border-radius: 50%;
  background: rgba(6, 21, 47, 0.66);
  backdrop-filter: blur(12px);
}

.deck-prev {
  left: max(1rem, calc((100vw - min(100vw, calc(100dvh * 16 / 9))) / 2 + 1rem));
}

.deck-next {
  right: max(1rem, calc((100vw - min(100vw, calc(100dvh * 16 / 9))) / 2 + 1rem));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-height: 760px) {
  .slide {
    padding: 3.8rem 4.4rem 4.2rem;
  }

  h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2.72rem;
  }

  p,
  .plain-callout {
    font-size: 0.98rem;
  }

  .lead {
    font-size: 1.1rem;
  }
}
