@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap");
:root {
  --bg: #090b13;
  --surface: #101420;
  --surface2: #141a29;
  --text: #f5f6ff;
  --muted: #9ca5b8;
  --line: #252c3c;
  --blue: #5e80ff;
  --purple: #a96cff;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
img {
  max-width: 100%;
  height: auto;
}
::selection {
  background: #6d60d5;
  color: white;
}
.container {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  background: #fff;
  color: #111;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(9, 11, 19, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.nav-wrap {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.1;
}
.brand-mark {
  font: 700 29px "Space Grotesk";
  letter-spacing: -3px;
}
.brand-mark span,
.footer-brand span {
  color: var(--purple);
}
.brand-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}
.brand-label small {
  display: block;
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--muted);
  margin-top: 5px;
}
.main-nav,
.nav-list {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  font-size: 13px;
  font-weight: 600;
  color: #c4cad8;
  transition: color 0.2s;
}
.nav-list a:hover,
.text-link:hover {
  color: #a98aff;
}
.nav-cta {
  font-size: 13px;
  font-weight: 700;
  padding: 11px 18px;
  border: 1px solid #525b74;
  border-radius: 7px;
}
.nav-cta span {
  color: #a98aff;
  margin-left: 10px;
}
.menu-toggle {
  display: none;
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: 710px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 0 55px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(#45516a 1px, transparent 1px),
    linear-gradient(90deg, #45516a 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, transparent 5%, black 100%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  pointer-events: none;
}
.hero-glow-one {
  width: 400px;
  height: 400px;
  right: 12%;
  top: 16%;
  background: rgba(87, 77, 214, 0.2);
}
.hero-glow-two {
  width: 300px;
  height: 300px;
  right: -6%;
  bottom: -15%;
  background: rgba(46, 121, 220, 0.17);
}
.eyebrow,
.kicker {
  font-size: 11px;
  letter-spacing: 3px;
  font-weight: 700;
  color: #a2aefb;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6bd6a3;
  box-shadow: 0 0 16px #6bd6a3;
}
.hero h1,
h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.055em;
  line-height: 1.12;
}
.hero h1 {
  font-size: clamp(48px, 6.7vw, 92px);
  margin: 25px 0 28px;
  max-width: 980px;
}
.gradient-text {
  background: linear-gradient(100deg, #6e9aff 0%, #a879ff 55%, #e39aff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  max-width: 570px;
  color: #aeb7c9;
  font-size: 17px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 35px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  border-radius: 8px;
  padding: 15px 24px;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 0.2s,
    background 0.2s;
}
.btn:hover {
  transform: translateY(-3px);
}
.btn-primary {
  background: linear-gradient(110deg, #587aff, #8e5cde);
  color: #fff;
}
.btn-outline {
  border: 1px solid #4c5367;
  color: #fff;
}
.btn-light {
  background: #fff;
  color: #121523;
}
.hero-foot {
  display: flex;
  justify-content: space-between;
  max-width: 620px;
  margin-top: 95px;
  color: #768097;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}
.section {
  padding: 112px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 44px;
}
.section h2 {
  font-size: clamp(35px, 4.1vw, 59px);
  margin: 14px 0 0;
}
.muted {
  color: #6e778d;
}
.text-link {
  font-size: 13px;
  font-weight: 700;
  color: #c4c9d8;
  white-space: nowrap;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  background: linear-gradient(160deg, #141929, #0d111c);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 35px;
  min-height: 335px;
  position: relative;
  transition:
    border-color 0.2s,
    transform 0.2s;
}
.service-card:hover {
  border-color: #6973c1;
  transform: translateY(-4px);
}
.service-icon {
  font-size: 36px;
  color: #8e91ff;
}
.service-no {
  position: absolute;
  right: 32px;
  top: 33px;
  font-size: 12px;
  color: #707c95;
}
.service-card h3 {
  font-size: 25px;
  margin: 43px 0 10px;
}
.service-card p,
.project-card p {
  font-size: 14px;
  color: #a4aec1;
}
.service-tag {
  display: block;
  color: #8996c8;
  font-size: 11px;
  letter-spacing: 1px;
  margin-top: 26px;
}
.section-dark {
  background: #0c101a;
  border-block: 1px solid #1d2535;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}
.project-card {
  min-width: 0;
}
.project-image {
  display: flex;
  position: relative;
  min-height: 300px;
  aspect-ratio: 1.6;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #18243d, #272044 60%, #111b2d);
  border: 1px solid #30364a;
  border-radius: 12px;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.4s;
}
.project-image:hover img {
  transform: scale(1.05);
}
.project-fallback {
  font: 700 35px "Space Grotesk";
  letter-spacing: -2px;
  color: #8b8bd8;
}
.project-arrow {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #151522;
  display: grid;
  place-items: center;
}
.project-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.project-meta h3 {
  font-size: 24px;
  margin: 18px 0 4px;
}
.project-meta span {
  font-size: 12px;
  color: #8a94a9;
}
.project-placeholder {
  grid-column: 1/-1;
  padding: 65px;
  background:
    radial-gradient(circle at 80% 40%, #25254e, transparent 40%), #151a29;
  border: 1px solid #30374b;
  border-radius: 15px;
}
.project-placeholder > span {
  font-size: 11px;
  letter-spacing: 2px;
  color: #a1a9d8;
}
.project-placeholder h3 {
  font-size: clamp(29px, 4vw, 52px);
  margin: 20px 0;
}
.project-placeholder p {
  max-width: 450px;
  color: #a6b0c5;
}
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 90px;
}
.about-layout p {
  color: #a6b0c5;
  max-width: 550px;
  margin: 26px 0;
}
.about-art {
  min-height: 380px;
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(circle, #1d2444, transparent 70%);
}
.about-orbit {
  height: 280px;
  width: 280px;
  border: 1px solid #5a527d;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 35px rgba(108, 87, 183, 0.05),
    0 0 0 70px rgba(108, 87, 183, 0.03);
}
.about-orbit span {
  font: 700 110px "Space Grotesk";
  letter-spacing: -15px;
  background: linear-gradient(130deg, #7399ff, #bd83fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about-code {
  position: absolute;
  bottom: 10px;
  right: 12%;
  font-size: 12px;
  color: #8390b6;
}
.cta-section {
  padding: 105px 0;
  background: radial-gradient(circle at 50% 20%, #30266b, #121527 65%);
  text-align: center;
  border-top: 1px solid #393258;
}
.cta-inner h2 {
  font-size: clamp(38px, 5vw, 69px);
  margin: 18px 0;
}
.cta-inner p {
  color: #b5bdd2;
  margin-bottom: 30px;
}
.site-footer {
  background: #080a10;
  padding: 70px 0 25px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
}
.footer-brand {
  font: 700 26px "Space Grotesk";
  letter-spacing: -1px;
}
.footer-grid p,
.footer-grid a:not(.footer-brand) {
  color: #919bad;
  font-size: 13px;
}
.footer-grid strong {
  font-size: 13px;
  margin-bottom: 10px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 55px;
  padding-top: 22px;
  color: #747f92;
  font-size: 12px;
}
.page-hero {
  padding: 120px 0 80px;
  background: radial-gradient(circle at 90% 20%, #1b1d43, transparent 45%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(50px, 7vw, 95px);
  margin: 16px 0;
}
.page-hero p {
  color: #aab3c6;
  max-width: 640px;
}
.content-narrow {
  max-width: 850px;
}
.content-narrow a:not(.btn) {
  color: #9aa7ff;
  text-decoration: underline;
}
.content-narrow h2 {
  font-size: clamp(28px, 3vw, 42px);
}
.content-narrow p,
.entry-content {
  color: #bac2d1;
}
.content-narrow .project-grid {
  margin-top: 35px;
}
.single-cover img {
  width: 100%;
  border-radius: 14px;
}
.blog-item {
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.blog-item h2 {
  font-size: 30px;
}
.wp-block-image img {
  border-radius: 12px;
}
input,
textarea {
  max-width: 100%;
}
.reveal {
  opacity: 1;
}
.visible {
  opacity: 1 !important;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid #b5a1ff;
  outline-offset: 4px;
}
@media (max-width: 960px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 1px solid #394056;
    background: transparent;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
  }
  .menu-toggle span {
    display: block;
    width: 21px;
    height: 2px;
    background: #fff;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #101420;
    padding: 24px;
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.is-open {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .nav-cta {
    text-align: center;
  }
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about-layout {
    gap: 35px;
  }
}
@media (max-width: 680px) {
  .container {
    width: min(var(--max), calc(100% - 32px));
  }
  .nav-wrap {
    min-height: 72px;
  }
  .hero {
    min-height: 640px;
  }
  .hero-content {
    padding: 80px 0 40px;
  }
  .hero h1 {
    font-size: clamp(43px, 11vw, 65px);
  }
  .hero-desc {
    font-size: 15px;
  }
  .hero-foot {
    margin-top: 75px;
    font-size: 9px;
  }
  .section {
    padding: 75px 0;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .service-grid,
  .project-grid,
  .about-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    min-height: 270px;
  }
  .about-art {
    min-height: 300px;
  }
  .about-orbit {
    width: 220px;
    height: 220px;
  }
  .about-orbit span {
    font-size: 88px;
  }
  .footer-grid {
    gap: 32px;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .project-placeholder {
    padding: 30px;
  }
  .page-hero {
    padding: 85px 0 60px;
  }
}

/* Logo WordPress: mantiene proporzioni e dimensioni responsive */
.site-header .brand-image {
  display: block;
  width: auto;
  max-width: min(270px, 55vw);
  height: auto;
  max-height: 66px;
  object-fit: contain;
}
@media (max-width: 600px) {
  .site-header .brand-image {
    max-width: 185px;
    max-height: 52px;
  }
}

/* TEST TEMPORANEO PORTFOLIO */
.portfolio-page .reveal {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Riduce lo spazio tra intestazione e filtri */
.portfolio-page .portfolio-hero {
    padding-bottom: 45px;
}

.portfolio-page .portfolio-section {
    padding-top: 10px;
}