:root {
  --ink: #081525;
  --ink-2: #10263b;
  --paper: #f5f7fb;
  --white: #ffffff;
  --muted: #647386;
  --line: rgba(13, 35, 58, 0.14);
  --gold: #c99b45;
  --gold-dark: #9b6f22;
  --cyan: #51b9ff;
  --shadow: 0 22px 60px rgba(8, 21, 37, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img,
iframe {
  max-width: 100%;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2.55rem, 7vw, 6.6rem);
}

h2 {
  font-size: clamp(1.85rem, 4vw, 3.45rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0;
}

.top-strip {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px clamp(18px, 4vw, 64px);
  color: var(--white);
  background: #050b13;
  font-size: 0.86rem;
  font-weight: 700;
}

.top-strip a {
  color: var(--gold);
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.brand span {
  display: grid;
  line-height: 1.02;
}

.brand small {
  color: var(--gold-dark);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(13px, 2vw, 26px);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a {
  text-decoration: none;
}

.main-nav a:hover {
  color: var(--gold-dark);
}

.mobile-menu-toggle {
  display: none;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 19px;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.nav-cta,
.button--primary {
  color: var(--ink);
  background: linear-gradient(135deg, #f3ce78, var(--gold));
}

.button--secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.button--light {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  align-items: center;
  padding: clamp(70px, 8vw, 126px) clamp(20px, 5vw, 80px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 11, 19, 0.94), rgba(8, 21, 37, 0.78) 48%, rgba(8, 21, 37, 0.28)),
    url("assets/hero-digital-agency.png") center / cover no-repeat,
    #07111f;
}

.hero__content {
  width: min(820px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 700px;
  margin-top: 26px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero__actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.section,
.split-section,
.dark-section,
.page-hero,
.contact-band {
  padding: clamp(60px, 8vw, 110px) clamp(20px, 5vw, 80px);
}

.section__heading {
  width: min(900px, 100%);
  margin-bottom: 34px;
}

.section__heading p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.06rem;
}

.intro-grid,
.service-grid,
.process-grid,
.portfolio-grid,
.values-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.service-card,
.project-card,
.value-card,
.stat-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(8, 21, 37, 0.07);
}

.card span,
.service-card span,
.value-card span,
.stat-card span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--gold-dark);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.card p,
.service-card p,
.project-card p,
.value-card p {
  margin-top: 12px;
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  background: var(--paper);
}

.split-section img,
.media-frame img {
  display: block;
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.media-frame {
  position: relative;
}

.media-frame--logo img {
  width: min(420px, 86%);
  margin: 0 auto;
  border-radius: 50%;
  background: #030910;
}

.copy-block p {
  margin-top: 16px;
  color: var(--muted);
}

.dark-section {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 21, 37, 0.98), rgba(11, 34, 55, 0.94)),
    #081525;
}

.dark-section .section__heading p:not(.eyebrow),
.dark-section .card p,
.dark-section .project-card p {
  color: rgba(255, 255, 255, 0.72);
}

.dark-section .card,
.dark-section .project-card {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}

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

.process-grid .card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: 1.7rem;
}

.page-hero {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(5, 11, 19, 0.94), rgba(8, 21, 37, 0.72)),
    url("assets/ecommerce-portfolio.png") center / cover no-repeat;
}

.page-hero--services {
  background:
    linear-gradient(90deg, rgba(5, 11, 19, 0.95), rgba(8, 21, 37, 0.72)),
    url("assets/giomark-servizi.png") center / cover no-repeat;
}

.page-hero--ai {
  background:
    linear-gradient(90deg, rgba(5, 11, 19, 0.95), rgba(8, 21, 37, 0.72)),
    url("assets/ai-automation.png") center / cover no-repeat;
}

.page-hero div {
  width: min(850px, 100%);
}

.page-hero p:not(.eyebrow) {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
}

.project-card {
  padding: 0;
  overflow: hidden;
}

.video-window {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #050b13;
}

.video-window iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.project-card__body {
  padding: 22px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.project-tags span {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(201, 155, 69, 0.18);
  font-size: 0.78rem;
  font-weight: 900;
}

.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: var(--paper);
}

.contact-band p {
  margin-top: 16px;
  color: var(--muted);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 26px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 7px;
}

.form-row--full,
.privacy-check {
  grid-column: 1 / -1;
}

label {
  color: var(--ink-2);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

textarea {
  resize: vertical;
}

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.privacy-check input {
  width: auto;
  min-height: auto;
  margin-top: 5px;
}

.form-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 30px;
  padding: 54px clamp(20px, 5vw, 80px) 28px;
  color: rgba(255, 255, 255, 0.78);
  background: #050b13;
}

.site-footer img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  object-fit: cover;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer a,
.site-footer button {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.78);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: min(520px, calc(100% - 36px));
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.legal-content {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: clamp(50px, 7vw, 90px) 20px;
}

.legal-content h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: 1.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
}

@media (max-width: 980px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  .main-nav {
    position: fixed;
    top: 92px;
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .main-nav {
    display: flex;
  }

  .brand span {
    display: none;
  }

  .intro-grid,
  .service-grid,
  .process-grid,
  .portfolio-grid,
  .values-grid,
  .stats-grid,
  .split-section,
  .contact-band,
  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .top-strip {
    flex-direction: column;
  }

  .hero,
  .page-hero {
    min-height: auto;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .hero__actions,
  .actions,
  .button,
  .cookie-banner__actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }
}
