:root {
  --void: #05070b;
  --panel: #0c1118;
  --panel-2: #101923;
  --ink: #eef7ff;
  --muted: #9db0c4;
  --line: rgba(90, 227, 255, 0.22);
  --cyan: #27e7ff;
  --lime: #b7ff3c;
  --magenta: #ff2bd6;
  --amber: #ffd64d;
  --danger: #ff4b6a;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--void);
}

body {
  margin: 0;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(39, 231, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 231, 255, 0.04) 1px, transparent 1px),
    radial-gradient(circle at 18% 8%, rgba(255, 43, 214, 0.15), transparent 28%),
    radial-gradient(circle at 82% 2%, rgba(39, 231, 255, 0.16), transparent 30%),
    var(--void);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 5px);
  mix-blend-mode: screen;
  opacity: 0.24;
}

a {
  color: inherit;
}

.topbar,
main,
.footer,
.language-flags {
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 7, 11, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand img {
  display: none;
}

.menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.menu a {
  text-decoration: none;
  padding: 8px 0;
}

.menu a:hover {
  color: var(--lime);
  text-shadow: 0 0 10px rgba(183, 255, 60, 0.7);
}

.language-flags {
  position: fixed;
  top: 112px;
  right: 18px;
  z-index: 30;
  display: flex;
  gap: 6px;
  background: rgba(5, 7, 11, 0.86);
  padding: 8px 10px;
  border: 1px solid rgba(39, 231, 255, 0.48);
  box-shadow: 0 0 28px rgba(39, 231, 255, 0.28);
  font-size: 13px;
  font-weight: 900;
}

#google_translate_element,
.goog-te-banner-frame,
.goog-te-gadget {
  display: none !important;
}

body {
  top: 0 !important;
}

.language-flags a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  color: var(--void);
  background: var(--cyan);
  text-decoration: none;
  font-size: 20px;
}

.language-flags a:hover {
  background: var(--lime);
  box-shadow: 0 0 14px rgba(183, 255, 60, 0.62);
}

.page-title {
  position: relative;
  overflow: hidden;
  padding: 92px 22px;
  text-align: center;
  color: #fff;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(115deg, rgba(5, 7, 11, 0.84), rgba(5, 7, 11, 0.46)),
    url("https://www.ewconsultancy.it/wp-content/uploads/2023/03/Electronic-warefare-1.jpg") center/cover no-repeat;
}

.page-title::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(5, 7, 11, 0.88), rgba(5, 7, 11, 0.50)),
    radial-gradient(circle at 72% 40%, rgba(39, 231, 255, 0.18), transparent 34%);
}

.page-title.home-title {
  background:
    linear-gradient(115deg, rgba(5, 7, 11, 0.84), rgba(5, 7, 11, 0.42)),
    url("https://www.ewconsultancy.it/wp-content/uploads/2023/12/1663952690649.jpeg") center/cover no-repeat;
}

.page-title h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--ink);
  font-size: 46px;
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 0 18px rgba(39, 231, 255, 0.55);
}

.title-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.48;
  filter: contrast(1.16) saturate(1.22);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 34px;
  align-items: center;
  padding: 92px 7vw;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(100deg, rgba(5, 7, 11, 0.92), rgba(5, 7, 11, 0.60)),
    url("https://www.ewconsultancy.it/wp-content/uploads/2023/03/hs-article-emsWavelength-2400x1200-2.jpg") center top/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(100deg, rgba(5, 7, 11, 0.92), rgba(5, 7, 11, 0.56)),
    radial-gradient(circle at 68% 38%, rgba(39, 231, 255, 0.18), transparent 36%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.52;
  filter: contrast(1.18) saturate(1.25);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.kicker {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 8px 12px;
  color: var(--void);
  background: var(--lime);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: 72px;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-shadow:
    2px 0 rgba(255, 43, 214, 0.70),
    -2px 0 rgba(39, 231, 255, 0.70),
    0 0 24px rgba(39, 231, 255, 0.55);
}

.hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: #c7d7e7;
  font-size: 19px;
  line-height: 1.7;
}

.signal-panel {
  z-index: 1;
  min-height: 430px;
  border: 1px solid rgba(39, 231, 255, 0.50);
  background: rgba(5, 7, 11, 0.72);
  box-shadow: 0 0 40px rgba(39, 231, 255, 0.24);
  position: relative;
  overflow: hidden;
}

.signal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgba(39, 231, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(39, 231, 255, 0.10) 1px, transparent 1px);
  background-size: 24px 24px;
  mix-blend-mode: screen;
}

.spectrum-visual {
  width: 100%;
  height: 430px;
  display: block;
  object-fit: cover;
  filter: contrast(1.12) saturate(1.18);
}

.section {
  padding: 76px 24px;
}

.band {
  background: rgba(12, 17, 24, 0.72);
  border-block: 1px solid var(--line);
}

.dark {
  background:
    linear-gradient(120deg, rgba(39, 231, 255, 0.12), rgba(255, 43, 214, 0.10)),
    var(--panel);
  border-block: 1px solid var(--line);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.center {
  text-align: center;
}

h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

p,
li {
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  max-width: 840px;
  margin: 0 auto 34px;
  font-size: 18px;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.card {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(39, 231, 255, 0.08), rgba(255, 43, 214, 0.05)),
    rgba(12, 17, 24, 0.88);
  padding: 28px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 42px;
  height: 3px;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(183, 255, 60, 0.7);
}

.card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 22px;
}

.book-cover {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto 18px;
  border: 1px solid rgba(39, 231, 255, 0.28);
  box-shadow: 0 0 28px rgba(39, 231, 255, 0.20);
}

.meta {
  background: rgba(5, 7, 11, 0.82);
  border: 1px solid var(--line);
  color: #fff;
  padding: 18px 20px;
  margin-bottom: 18px;
}

.meta span,
.meta strong {
  display: block;
}

.meta span {
  color: var(--muted);
  margin-top: 4px;
}

.note {
  border-left: 4px solid var(--lime);
  background: rgba(12, 17, 24, 0.92);
  padding: 24px 26px;
  color: var(--muted);
  line-height: 1.75;
  box-shadow: 0 0 34px rgba(39, 231, 255, 0.16);
}

.note strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  margin-bottom: 8px;
}

.actions {
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 30px;
}

.center .actions {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  background: var(--cyan);
  color: var(--void);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  border: 1px solid var(--cyan);
  box-shadow: 0 0 18px rgba(39, 231, 255, 0.24);
}

.btn.gold {
  background: var(--lime);
  color: var(--void);
  border-color: var(--lime);
  box-shadow: 0 0 18px rgba(183, 255, 60, 0.32);
}

.btn.light {
  background: transparent;
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.55);
}

.link-logo {
  height: 84px;
  background: rgba(255, 255, 255, 0.92) center/contain no-repeat;
  margin: -28px -28px 22px;
  border-bottom: 1px solid var(--line);
}

.footer {
  padding: 34px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  background: rgba(5, 7, 11, 0.92);
}

@media (max-width: 980px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .menu {
    justify-content: flex-start;
  }

  .language-flags {
    top: 96px;
    right: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 74px 22px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .signal-panel {
    min-height: 360px;
  }

  .page-title h1 {
    font-size: 36px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}
