:root {
  --text: #0b1220;
  --muted: #5b6678;
  --line: rgba(15, 23, 42, 0.14);
  --navy: #0b1f3a;
  --navy-2: #13345e;
  --accent: #1b66ff;
  --shadow: 0 22px 54px rgba(2, 6, 23, 0.14);
  --radius: 18px;
  --max: 1320px;
  --pad: clamp(18px, 3.5vw, 34px);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji",
    "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, #f7f9fc 0%, #ffffff 42%, #ffffff 100%);
}

a {
  color: inherit;
}

section[id],
footer[id] {
  scroll-margin-top: 90px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  z-index: 50;
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.12);
}

.skip-link:focus {
  left: 12px;
  outline: 3px solid rgba(27, 102, 255, 0.35);
  outline-offset: 3px;
}

header {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.topbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--pad);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  text-decoration: none;
}

.mark {
  width: min(620px, 92vw);
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
}

.mark img {
  width: 100%;
  height: auto;
  display: block;
}

.mark img {
  object-fit: contain;
  -webkit-mask-image: none;
  mask-image: none;
  filter: drop-shadow(0 14px 32px rgba(11, 31, 58, 0.16));
}

.brand-text {
  min-width: 0;
}

.brand-name {
  margin: 0;
  font-weight: 760;
  letter-spacing: -0.02em;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  margin: 4px 0 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.nav-link {
  text-decoration: none;
  color: rgba(11, 18, 32, 0.86);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

.nav-link:focus-visible {
  outline: 3px solid rgba(27, 102, 255, 0.35);
  outline-offset: 3px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.hero {
  padding: clamp(42px, 8vw, 84px) 0 clamp(14px, 3vw, 26px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(18px, 4vw, 34px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(11, 18, 32, 0.86);
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 23, 42, 0.1);
  width: fit-content;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.06);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent) 0%, #0bb7ff 100%);
  box-shadow: 0 0 0 4px rgba(27, 102, 255, 0.14);
}

h1 {
  margin: 18px 0 0 0;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 840;
  text-wrap: balance;
}

.lede {
  margin: 14px 0 0 0;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.55;
  color: rgba(11, 18, 32, 0.82);
  max-width: 62ch;
}

.cta-row {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  text-decoration: none;
  font-weight: 720;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 23, 42, 0.2);
  background: rgba(255, 255, 255, 0.95);
}

.btn:focus-visible {
  outline: 3px solid rgba(27, 102, 255, 0.35);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #0a1630 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 48px rgba(11, 31, 58, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0a1c33 0%, #103057 55%, #08122a 100%);
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-aside {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.75) 100%);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 16px 46px rgba(2, 6, 23, 0.08);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.aside-title {
  margin: 0;
  font-weight: 820;
  letter-spacing: -0.02em;
  font-size: 15px;
}

.aside-text {
  margin: 10px 0 0 0;
  color: rgba(11, 18, 32, 0.78);
  font-size: 14px;
  line-height: 1.55;
}

.pill-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-size: 12px;
  font-weight: 650;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(11, 18, 32, 0.86);
}

.pill-trigger {
  appearance: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.pill-trigger:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.pill-trigger:active {
  transform: translateY(0);
}

.pill-trigger:focus-visible {
  outline: 3px solid rgba(27, 102, 255, 0.35);
  outline-offset: 3px;
}

.pill-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

section {
  padding: clamp(26px, 5vw, 44px) 0;
}

section#studio {
  position: relative;
  padding-top: clamp(18px, 3.6vw, 32px);
}

section#studio::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(980px 520px at 50% 35%, rgba(11, 31, 58, 0.16), transparent 62%),
    radial-gradient(900px 520px at 78% 10%, rgba(27, 102, 255, 0.12), transparent 66%);
}

section#servizi ul {
  margin: 0;
  padding-left: 18px;
  color: rgba(11, 18, 32, 0.78);
  font-size: 14px;
  line-height: 1.65;
  max-width: 78ch;
}

section#servizi li + li {
  margin-top: 6px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

h2 {
  margin: 0;
  font-size: clamp(18px, 2.4vw, 24px);
  letter-spacing: -0.03em;
  font-weight: 840;
  text-wrap: balance;
}

.section-note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  align-items: start;
}

.card {
  grid-column: span 6;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  padding: 18px 18px 16px;
  align-self: start;
}

.card h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
  font-weight: 820;
}

.card p {
  margin: 10px 0 0 0;
  color: rgba(11, 18, 32, 0.78);
  font-size: 14px;
  line-height: 1.6;
}

.disclosure-card {
  grid-column: span 6;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.06);
  align-self: start;
  overflow: hidden;
}

.disclosure-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 1fr 30px;
  gap: 10px;
  align-items: center;
  transition: background-color 160ms ease, transform 160ms ease;
}

.disclosure-trigger:hover {
  background: rgba(255, 255, 255, 0.94);
  transform: translateY(-1px);
}

.disclosure-trigger:active {
  transform: translateY(0);
}

.disclosure-trigger:focus-visible {
  outline: 3px solid rgba(27, 102, 255, 0.35);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.disclosure-title {
  margin: 0;
  font-size: 15px;
  letter-spacing: -0.02em;
  font-weight: 840;
}

.disclosure-sub {
  margin: 6px 0 0 0;
  color: rgba(11, 18, 32, 0.74);
  font-size: 13px;
  line-height: 1.45;
  max-width: 78ch;
}

.disclosure-chevron {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  place-items: center;
  color: rgba(11, 18, 32, 0.82);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.studio-panel-body p {
  margin: 12px 0 0 0;
  color: rgba(11, 18, 32, 0.78);
  font-size: 14px;
  line-height: 1.65;
}

.studio-panel-body ul {
  margin: 12px 0 0 0;
  padding-left: 18px;
  color: rgba(11, 18, 32, 0.78);
  font-size: 14px;
  line-height: 1.65;
}

.people {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.person {
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(2, 6, 23, 0.03);
  padding: 12px;
}

.person strong {
  display: block;
  font-size: 13px;
  letter-spacing: -0.01em;
}

.person span {
  display: block;
  margin-top: 4px;
  color: rgba(11, 18, 32, 0.7);
  font-size: 13px;
  line-height: 1.45;
}

.studio-dim {
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 120ms ease;
  background: rgba(11, 18, 32, 0.55);
  will-change: opacity;
}

.studio-dim.is-open {
  opacity: 1;
}

.studio-dim::after {
  display: none;
}

.studio-link {
  display: none;
}

.studio-link.is-open {
  opacity: 1;
}

.studio-panel {
  position: fixed;
  z-index: 1002;
  width: 520px;
  max-width: calc(100vw - 32px);
  max-height: min(86svh, 820px);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: rgba(11, 18, 32, 0.92);
  box-shadow: 0 34px 110px rgba(2, 6, 23, 0.28);
  overflow: hidden;
  transform-origin: top left;
  opacity: 0;
  will-change: transform, opacity;
  contain: layout paint;
}

.studio-panel::before {
  display: none;
}

.studio-panel::after {
  display: none;
}

.studio-panel-head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  display: block;
  position: relative;
}

.studio-panel-head::before {
  display: none;
}

.studio-panel-heading {
  padding-left: 14px;
  padding-right: 44px;
  min-width: 0;
}

.studio-panel-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 860;
  line-height: 1.1;
}

.studio-panel-subtitle {
  margin: 8px 0 0 0;
  color: rgba(11, 18, 32, 0.7);
  font-size: 13px;
  line-height: 1.45;
  max-width: none;
}

.studio-panel-close {
  width: 36px;
  height: 36px;
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: rgba(11, 18, 32, 0.92);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 220ms ease, background-color 160ms ease, border-color 160ms ease;
}

.studio-panel-close:hover {
  transform: translateY(-1px);
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.2);
}

.studio-panel-close:focus-visible {
  outline: 3px solid rgba(27, 102, 255, 0.35);
  outline-offset: 3px;
}

.studio-panel-body {
  padding: 0 18px 18px;
  overflow: auto;
  overscroll-behavior: contain;
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .studio-dim,
  .studio-link {
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .studio-panel {
    max-height: 88svh;
  }
}

footer {
  margin-top: clamp(22px, 4vw, 42px);
  padding: 0 0 42px;
}

.footer-panel {
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(11, 31, 58, 0.94) 0%, rgba(9, 24, 45, 0.96) 60%, rgba(6, 16, 32, 0.97) 100%);
  color: rgba(255, 255, 255, 0.92);
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}

.legal-title {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
  font-weight: 860;
}

.legal-list {
  margin: 12px 0 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.legal-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.68);
  margin-bottom: 4px;
  font-weight: 700;
}

.legal-value {
  display: block;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.96);
  word-break: break-word;
}

.legal-value a {
  color: rgba(255, 255, 255, 0.96);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-value a:focus-visible {
  outline: 3px solid rgba(27, 102, 255, 0.45);
  outline-offset: 3px;
  border-radius: 10px;
}

.footer-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.6;
}

.smallprint {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-bottom: 22px;
  }

  section {
    padding: 38px 0;
  }

  section#studio {
    padding-top: 18px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 10px;
    margin-bottom: 18px;
    gap: 8px;
  }

  h2 {
    font-size: 22px;
  }

  .section-note {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.55;
    max-width: 60ch;
  }

  .card {
    grid-column: span 12;
  }

  .disclosure-card {
    grid-column: span 12;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
