body.index-ai {
  margin: 0;
  min-height: 100vh;
  background: #07090d;
  color: #d8deE6;
  font-family: "Roboto Condensed", "Segoe UI", sans-serif;
  color-scheme: dark;
}

.iai-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(1200px 520px at 50% -10%, rgba(220, 200, 154, 0.14), transparent 58%),
    linear-gradient(180deg, rgba(7, 9, 13, 0.55), #07090d 42%),
    url("/header/eyes2.png") center top / cover no-repeat;
  pointer-events: none;
}

.iai-langs,
.iai-main {
  position: relative;
  z-index: 1;
}

.iai-langs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 16px 8px;
}

.iai-langs a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(22, 29, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.iai-langs a:hover,
.iai-langs a.is-active {
  transform: translateY(-2px);
  border-color: rgba(220, 200, 154, 0.7);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.iai-langs img {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.iai-main {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto 48px;
  padding-bottom: 40px;
}

.iai-hero {
  text-align: center;
  padding: 36px 12px 12px;
}

.iai-kicker {
  margin: 0 0 6px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: rgba(220, 200, 154, 0.82);
}

.iai-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3.4rem, 12vw, 7rem);
  font-weight: 600;
  font-style: italic;
  line-height: 0.92;
  color: #f3ead7;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

.iai-sub {
  margin: 14px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  font-style: italic;
  color: rgba(232, 224, 208, 0.86);
}

.iai-etym {
  margin: 10px 0 24px;
}

.iai-etym-copy {
  max-width: 42rem;
  margin: 0 auto;
  color: #9ec4ee;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  font-style: normal;
  line-height: 1.7;
  text-align: justify;
  hyphens: auto;
}

.iai-etym-copy .storia,
.iai-etym-copy p {
  margin: 0 0 1em;
}

.iai-etym-copy p:last-child {
  margin-bottom: 0;
}

.iai-still {
  margin: 28px auto 8px;
  width: min(220px, 55%);
}

.iai-still img {
  display: block;
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.iai-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.iai-enter-note {
  margin: 28px 0 14px;
  text-align: center;
  color: #dcc89a;
  letter-spacing: 0.04em;
}

.iai-enter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(320px, 100%);
  min-height: 64px;
  margin: 0 auto 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3a8f4a, #246819);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(36, 104, 25, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.iai-enter:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 16px 32px rgba(36, 104, 25, 0.45);
}

.iai-age {
  padding: 22px 24px 24px;
  border-radius: 18px;
  background: rgba(16, 22, 31, 0.78);
  border: 1px solid rgba(97, 146, 214, 0.28);
}

.iai-age h2 {
  margin: 0 0 12px;
  text-align: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: #9ec4ee;
}

.iai-age p {
  margin: 0 0 18px;
  color: #a9b7c8;
  line-height: 1.6;
  text-align: justify;
  font-style: italic;
}

.iai-exit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(280px, 100%);
  min-height: 52px;
  margin: 0 auto;
  border-radius: 12px;
  background: #7a1212;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.iai-exit:hover {
  background: #a31c1c;
  color: #fff;
  transform: translateY(-2px);
}

.iai-seal {
  margin: 28px 0 0;
  text-align: center;
}

@media (max-width: 720px) {
  .iai-main {
    width: calc(100% - 20px);
  }

  .iai-etym-copy {
    font-size: 1rem;
    text-align: left;
  }
}
