:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --ink: #20232a;
  --muted: #676b74;
  --line: #ded8cf;
  --blue: #185fa5;
  --blue-bright: #31aee9;
  --navy: #171a24;
  --navy-soft: #283044;
  --paper: #fffaf1;
  --warm: #d7c3a2;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(21, 47, 82, 0.13);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(24,95,165,0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(24,95,165,0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.menu-open { overflow: hidden; }

a { color: inherit; }

.site-header {
  align-items: center;
  background: rgba(246, 244, 239, 0.88);
  border-bottom: 1px solid rgba(222, 216, 207, 0.78);
  display: flex;
  height: 84px;
  justify-content: space-between;
  padding: 0 clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
}

.brand-mark img {
  display: block;
  height: auto;
  max-width: min(286px, 54vw);
}

.menu-toggle,
.overlay-close {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  gap: 12px;
  height: 46px;
  justify-content: center;
  padding: 0 18px;
}

.menu-toggle__icon,
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  display: block;
  height: 2px;
  width: 20px;
}

.menu-toggle__icon {
  position: relative;
}

.menu-toggle__icon::before,
.menu-toggle__icon::after {
  position: absolute;
  right: 0;
}

.menu-toggle__icon::before { top: -7px; }
.menu-toggle__icon::after { top: 7px; width: 14px; }

.overlay-menu {
  background: rgba(12, 21, 34, 0.48);
  inset: 0;
  padding: clamp(14px, 3vw, 36px);
  position: fixed;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.overlay-menu__panel {
  background: #f8fbff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  min-height: calc(100vh - clamp(28px, 6vw, 72px));
  padding: clamp(22px, 4vw, 56px);
}

.overlay-menu__top,
.section-heading--split,
.studio-panel,
.footer-grid {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  gap: 34px;
}

.overlay-menu__top h2,
.section-heading h2,
.studio-panel h2,
.two-col h2 {
  color: var(--navy);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
}

.overlay-menu__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(34px, 5vw, 68px);
}

.overlay-menu__group {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.overlay-menu__group h3 {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.overlay-menu__links {
  display: grid;
  gap: 8px;
}

.overlay-menu__links a {
  border-radius: 7px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 750;
  padding: 10px 0;
  text-decoration: none;
}

.overlay-menu__links a:hover {
  color: var(--blue);
}

.hero {
  overflow: hidden;
  padding: clamp(58px, 8vw, 108px) 0 clamp(48px, 7vw, 90px);
  position: relative;
}

.hero::before {
  background: url("/assets/img/studiolab-hero.jpg") center / cover no-repeat;
  border-radius: 999px;
  content: "";
  height: 230px;
  opacity: 0.16;
  position: absolute;
  right: -80px;
  top: 120px;
  transform: rotate(-7deg);
  width: 520px;
  z-index: -1;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(34px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
}

.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.18em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.hero h1 {
  color: var(--navy);
  font-size: clamp(44px, 6.6vw, 86px);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.96;
  margin: 0 0 26px;
}

.lead {
  color: var(--muted);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.45;
  margin: 0;
  max-width: 760px;
}

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

.btn-primary-custom,
.btn-secondary-custom,
.text-link {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  text-decoration: none;
}

.btn-primary-custom {
  background: var(--blue-bright);
  color: #fff;
  box-shadow: 0 14px 34px rgba(49, 174, 233, 0.28);
}

.btn-secondary-custom {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
}

.hero-media {
  position: relative;
}

.hero-media img,
.project-card img {
  display: block;
  height: auto;
  width: 100%;
}

.hero-media {
  isolation: isolate;
}

.hero-media::before {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 44% 56% 48% 52%;
  content: "";
  inset: 28px -18px -18px 26px;
  position: absolute;
  transform: rotate(4deg);
  z-index: -1;
}

.hero-media img {
  border-radius: 44% 56% 46% 54%;
  box-shadow: 0 24px 80px rgba(39, 40, 44, 0.16);
}

.hero-media--portrait img {
  background: #fff;
  object-fit: cover;
}

.hero-card {
  background: var(--paper);
  border: 1px solid rgba(24, 95, 165, 0.18);
  border-radius: var(--radius);
  bottom: -26px;
  box-shadow: 0 18px 44px rgba(17, 26, 47, 0.12);
  max-width: 310px;
  padding: 18px;
  position: absolute;
  right: 24px;
}

.hero-card blockquote {
  color: var(--navy);
  font-size: 17px;
  font-style: italic;
  font-weight: 650;
  line-height: 1.35;
  margin: 0;
}

.hero-card blockquote::before { content: "“"; }
.hero-card blockquote::after { content: "”"; }

.page-hero {
  background:
    linear-gradient(135deg, rgba(246, 244, 239, 0.96), rgba(255, 255, 255, 0.98)),
    var(--paper);
  border-bottom: 1px solid var(--line);
  padding: clamp(92px, 11vw, 142px) 0 clamp(46px, 7vw, 82px);
}

.page-hero__grid {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
}

.page-hero__grid--solo {
  display: block;
}

.page-hero h1 {
  color: var(--navy);
  font-size: clamp(42px, 7vw, 84px);
  font-weight: 880;
  line-height: 0.98;
  margin: 0;
  max-width: 940px;
}

.page-hero .lead {
  color: var(--muted);
  font-size: clamp(19px, 2vw, 25px);
  margin: 24px 0 0;
  max-width: 760px;
}

.page-hero__image {
  margin: 0;
  position: relative;
}

.page-hero__image::before {
  background: var(--blue-bright);
  content: "";
  inset: 18px -14px -14px 18px;
  opacity: 0.26;
  position: absolute;
}

.page-hero__image img {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(31, 35, 43, 0.14);
  display: block;
  object-fit: cover;
  position: relative;
  width: 100%;
}

.page-content-section {
  padding-top: clamp(46px, 7vw, 82px);
}

.page-shell {
  align-items: start;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 1fr) 270px;
}

.page-content {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 58px rgba(31, 35, 43, 0.06);
  max-width: 940px;
  padding: clamp(28px, 5vw, 58px);
}

.page-content p,
.page-content li {
  color: var(--text);
  font-size: 18px;
  line-height: 1.78;
  margin-bottom: 18px;
}

.page-content h2 {
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 840;
  line-height: 1.12;
  margin: 46px 0 16px;
  padding-top: 34px;
}

.page-content h2:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}

.page-content a {
  color: var(--blue);
  font-weight: 760;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.page-content ul,
.page-content ol {
  margin: 0 0 24px;
  padding-left: 22px;
}

.page-content code {
  background: rgba(48, 159, 219, 0.08);
  border: 1px solid rgba(48, 159, 219, 0.16);
  border-radius: 6px;
  color: var(--navy);
  display: inline-block;
  font-size: 0.92em;
  line-height: 1.55;
  margin: 2px 0;
  padding: 2px 6px;
}

.page-content p:has(> code:first-child:last-child) {
  background: rgba(246, 244, 239, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
}

.page-content figure {
  margin: 34px 0;
}

.page-content img {
  display: block;
  height: auto;
  max-width: 100%;
}

.page-content .wp-block-image {
  margin: 34px auto !important;
  text-align: center;
}

.page-content .wp-block-image img {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 52px rgba(31, 35, 43, 0.1);
  height: auto !important;
  margin-left: auto;
  margin-right: auto;
  max-height: 620px;
  max-width: min(100%, 820px);
  object-fit: contain !important;
  width: auto !important;
}

.page-content .wp-block-image.aligncenter img {
  margin-left: auto;
  margin-right: auto;
}

.page-content .wp-block-image.size-full img,
.page-content .wp-block-image.size-large img {
  width: auto !important;
}

.page-side {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  position: sticky;
  top: 94px;
}

.page-side h2 {
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.page-side a {
  border-top: 1px solid var(--line);
  color: var(--ink);
  display: block;
  font-size: 14px;
  font-weight: 620;
  padding: 11px 0;
  text-decoration: none;
}

.page-side a:hover {
  color: var(--blue);
}

.page-figure {
  margin: 0 0 34px;
}

.page-figure img {
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 52px rgba(31, 35, 43, 0.1);
  display: block;
  height: auto;
  max-width: 100%;
}

.studiolab-page {
  --studio-green: #1f7543;
  --studio-gold: #d6aa21;
  --studio-red: #a9332a;
}

.studiolab-hero {
  background:
    linear-gradient(120deg, rgba(255, 250, 241, 0.96), rgba(255, 255, 255, 0.9)),
    var(--bg);
  overflow: hidden;
  padding: clamp(58px, 8vw, 112px) 0 clamp(52px, 7vw, 94px);
}

.studiolab-hero__grid {
  align-items: center;
  display: grid;
  gap: clamp(34px, 5vw, 72px);
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.studiolab-hero h1 {
  color: var(--navy);
  font-size: clamp(58px, 10vw, 132px);
  font-weight: 880;
  line-height: 0.85;
  margin: 0 0 22px;
}

.studiolab-hero__copy > p:not(.eyebrow):not(.lead) {
  color: var(--text);
  font-size: 19px;
  line-height: 1.72;
  margin: 28px 0 0;
  max-width: 680px;
}

.studiolab-hero__media {
  position: relative;
}

.studiolab-hero__media::before {
  border: 2px solid var(--studio-gold);
  content: "";
  inset: 24px -18px -20px 28px;
  position: absolute;
  z-index: 0;
}

.studiolab-hero__media img {
  aspect-ratio: 16 / 10;
  box-shadow: 0 28px 90px rgba(32, 35, 42, 0.18);
  display: block;
  object-fit: cover;
  position: relative;
  width: 100%;
  z-index: 1;
}

.studiolab-intro {
  padding-bottom: clamp(42px, 6vw, 76px);
}

.studiolab-statement {
  border-left: 5px solid var(--studio-green);
  max-width: 980px;
  padding-left: clamp(22px, 4vw, 42px);
}

.studiolab-statement p {
  color: var(--text);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.48;
  margin: 0 0 22px;
}

.studiolab-photo-strip {
  display: grid;
  gap: 14px;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  margin-top: clamp(34px, 5vw, 58px);
}

.studiolab-photo-strip img {
  aspect-ratio: 4 / 3;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.studiolab-photo-strip img:nth-child(3) {
  aspect-ratio: 16 / 9;
}

.studiolab-projects,
.studiolab-method {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.studiolab-project-grid,
.studiolab-method-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.studiolab-project-card {
  background: var(--paper);
  border: 1px solid var(--line);
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  text-decoration: none;
}

.studiolab-project-card img {
  aspect-ratio: 16 / 9;
  background: #fff;
  display: block;
  object-fit: cover;
  width: 100%;
}

.studiolab-project-card span,
.studiolab-method-grid span {
  color: var(--studio-green);
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  margin: 22px 24px 10px;
  text-transform: uppercase;
}

.studiolab-project-card h3,
.studiolab-method-grid h3,
.studiolab-platform-grid h3 {
  color: var(--navy);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 840;
  line-height: 1.08;
  margin: 0 24px 24px;
}

.studiolab-cases {
  background:
    linear-gradient(135deg, rgba(31, 117, 67, 0.08), rgba(214, 170, 33, 0.08)),
    var(--bg);
}

.studiolab-case-grid,
.studiolab-platform-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.studiolab-case-grid article,
.studiolab-platform-grid article,
.studiolab-method-grid article {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(24px, 3vw, 34px);
}

.studiolab-case-grid h2 {
  color: var(--navy);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 850;
  line-height: 1;
  margin: 0 0 18px;
}

.studiolab-case-grid p,
.studiolab-platform-grid p,
.studiolab-method-grid p,
.studiolab-closing p,
.studiolab-note {
  color: var(--text);
  font-size: 17px;
  line-height: 1.72;
}

.studiolab-platforms {
  background: var(--bg);
}

.studiolab-method-grid span,
.studiolab-method-grid h3 {
  margin-left: 0;
  margin-right: 0;
}

.studiolab-note {
  color: var(--muted);
  font-size: 14px;
  margin: 28px 0 0;
}

.studiolab-closing {
  background:
    linear-gradient(rgba(23, 26, 36, 0.76), rgba(23, 26, 36, 0.76)),
    url("/media/legacy/StudioLab-Studio.jpg") center / cover no-repeat;
  color: #fff;
}

.studiolab-closing__box {
  max-width: 860px;
}

.studiolab-closing h2 {
  color: #fff;
  font-size: clamp(36px, 5vw, 70px);
  font-weight: 850;
  line-height: 1;
  margin: 0 0 24px;
}

.studiolab-closing p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 780px;
}

.panel-page {
  background: #f2f5f9;
}

.panel-hero {
  background: #f2f5f9;
  padding: clamp(54px, 8vw, 104px) 0 clamp(54px, 8vw, 96px);
  text-align: center;
}

.panel-hero__media {
  margin: 0 auto clamp(34px, 5vw, 62px);
  max-width: 980px;
}

.panel-hero__media img {
  display: block;
  height: auto;
  margin: 0 auto;
  max-width: 100%;
}

.panel-hero__copy {
  margin: 0 auto;
  max-width: 880px;
}

.panel-hero h1 {
  color: #171d42;
  font-size: clamp(42px, 6.8vw, 82px);
  font-weight: 880;
  line-height: 0.98;
  margin: 14px 0 20px;
}

.panel-hero .lead {
  color: #52637f;
  margin-left: auto;
  margin-right: auto;
}

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

.panel-ai {
  background:
    linear-gradient(135deg, rgba(23, 29, 66, 0.96), rgba(24, 95, 165, 0.82)),
    url("/media/legacy/SBDI-Panel-Interfaccia-Dashboard.png") center / cover no-repeat;
  color: #fff;
}

.panel-ai h2,
.panel-ai p {
  color: #fff;
}

.panel-ai .eyebrow {
  color: #91dfff;
}

.panel-features,
.panel-experience {
  background: #fff;
}

.panel-feature-grid,
.panel-experience-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel-feature-grid article,
.panel-experience-grid article {
  background: #f8fbff;
  border: 1px solid #dce6f2;
  border-radius: 10px;
  min-height: 100%;
  padding: 24px;
}

.panel-feature-grid span {
  color: var(--blue-bright);
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
}

.panel-feature-grid h3,
.panel-experience-grid h3,
.panel-template-grid h3 {
  color: #171d42;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 850;
  line-height: 1.08;
  margin: 0 0 14px;
}

.panel-feature-grid p,
.panel-experience-grid p,
.panel-template-grid p,
.panel-wide-note,
.panel-tag p {
  color: #506078;
  font-size: 16px;
  line-height: 1.68;
}

.panel-templates {
  background: #f2f5f9;
}

.panel-template-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-template-grid article {
  background: #fff;
  border: 1px solid #dce6f2;
  border-radius: 10px;
  overflow: hidden;
}

.panel-template-grid img {
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  width: 100%;
}

.panel-template-grid h3,
.panel-template-grid p {
  margin-left: 24px;
  margin-right: 24px;
}

.panel-template-grid h3 {
  margin-top: 24px;
}

.panel-template-grid p {
  margin-bottom: 26px;
}

.panel-wide-note {
  background: #fff;
  border: 1px solid #dce6f2;
  border-radius: 10px;
  margin: 18px 0 0;
  padding: 22px 24px;
}

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

.panel-tag {
  background: #171d42;
  color: #fff;
}

.panel-tag__grid {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 70px);
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.8fr);
}

.panel-tag h2 {
  color: #fff;
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 850;
  line-height: 1;
  margin: 0 0 24px;
}

.panel-tag p {
  color: #dbe7f6;
}

.panel-tag img {
  background: #fff;
  border-radius: 10px;
  display: block;
  padding: 24px;
  width: 100%;
}

.section {
  padding: clamp(64px, 8vw, 108px) 0;
}

.section-compact {
  padding-top: clamp(44px, 6vw, 80px);
}

.section-heading {
  margin-bottom: clamp(28px, 4vw, 46px);
  max-width: 950px;
}

.section-heading--split p {
  color: var(--muted);
  font-size: 18px;
  max-width: 430px;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.project-card,
.two-col article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.card-link {
  color: inherit;
  display: block;
  min-height: 100%;
  text-decoration: none;
}

.card-link strong {
  color: var(--blue);
  display: inline-block;
  font-size: 14px;
  font-weight: 850;
  margin-top: 22px;
}

.card-link:hover {
  border-color: rgba(48, 159, 219, 0.38);
  box-shadow: 0 18px 44px rgba(31, 35, 43, 0.08);
  transform: translateY(-2px);
}

.feature-card span,
.project-card span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.feature-card h3,
.project-card h3 {
  color: var(--navy);
  font-size: 28px;
  font-weight: 820;
  margin: 0 0 12px;
}

.feature-card p,
.project-card p,
.two-col p,
.studio-panel p,
.site-footer p {
  color: var(--muted);
  margin: 0;
}

.ecosystem {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,250,241,0.94)),
    var(--paper);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.project-grid,
.main-containers {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.project-card {
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100%;
  overflow: hidden;
  padding: 0;
  text-decoration: none;
}

.container-banner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: inherit;
  display: block;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 18px 56px rgba(31, 35, 43, 0.08);
}

.container-banner img {
  aspect-ratio: 879 / 500;
  display: block;
  object-fit: cover;
  width: 100%;
}

.container-banner div {
  padding: 24px;
}

.container-banner span,
.ai-mini-content span {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.container-banner h3 {
  color: var(--navy);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 850;
  margin: 0 0 10px;
}

.container-banner p {
  color: var(--muted);
  margin: 0;
}

.ai-mini-banner {
  background: linear-gradient(135deg, #0b1a3e 0%, #10285c 55%, #07142f 100%);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(8, 24, 58, 0.24);
  color: #fff;
  display: block;
  margin-top: 18px;
  min-height: 220px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 38px);
  position: relative;
  text-decoration: none;
}

.ai-mini-banner::after {
  background:
    radial-gradient(circle at 18% 35%, rgba(91,168,255,0.26), transparent 36%),
    radial-gradient(circle at 82% 70%, rgba(126,184,255,0.22), transparent 40%),
    linear-gradient(90deg, rgba(11,26,62,0.82) 0%, rgba(11,26,62,0.55) 48%, rgba(11,26,62,0.18) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.ai-mini-canvas {
  display: block;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 1;
}

.ai-mini-content {
  align-items: center;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) auto;
  position: relative;
  z-index: 2;
}

.ai-mini-content span {
  color: #7eb8ff;
}

.ai-mini-content h3 {
  color: #e8f0ff;
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 820;
  line-height: 1.05;
  margin: 0 0 12px;
  max-width: 780px;
}

.ai-mini-content p {
  color: #a9bfdd;
  font-size: 17px;
  margin: 0;
  max-width: 780px;
}

.ai-mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 260px;
}

.ai-mini-actions small {
  background: rgba(91,168,255,0.12);
  border: 1px solid rgba(91,168,255,0.34);
  border-radius: 999px;
  color: #8fc2ff;
  font-size: 12px;
  font-weight: 750;
  padding: 7px 13px;
}

.project-card div {
  padding: 0 24px 24px;
}

.project-card--large {
  grid-row: span 2;
}

.project-card--text {
  background: linear-gradient(135deg, var(--navy), #25324a);
}

.project-card--editorial {
  background:
    linear-gradient(135deg, rgba(24,95,165,0.92), rgba(49,174,233,0.72)),
    url("/assets/img/stefano-hero.png") right bottom / 54% auto no-repeat;
  color: #fff;
  justify-content: flex-end;
  min-height: 410px;
}

.project-card--editorial h3,
.project-card--editorial p {
  color: #fff;
}

.project-card--editorial span {
  color: rgba(255,255,255,0.82);
}

.project-card--text h3,
.project-card--text p {
  color: #fff;
}

.project-card--text span {
  color: var(--blue-bright);
}

.studio-highlight {
  background:
    linear-gradient(135deg, rgba(23,26,36,0.94), rgba(24,95,165,0.72)),
    url("/assets/img/studiolab-hero.jpg") center / cover no-repeat;
  color: #fff;
}

.studio-panel {
  align-items: center;
}

.studio-panel h2,
.studio-panel p {
  color: #fff;
}

.studio-panel p {
  color: #bdc8d8;
  font-size: 19px;
  margin-top: 18px;
  max-width: 760px;
}

.btn-light-custom {
  background: #fff;
  color: var(--navy);
  box-shadow: none;
  white-space: nowrap;
}

.two-col {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.news-section {
  background: var(--bg);
}

.news-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 100%;
  padding: 26px;
}

.news-card time {
  color: var(--blue);
  display: block;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.news-card h3 {
  color: var(--navy);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 830;
  line-height: 1.08;
  margin: 0 0 14px;
}

.news-card p {
  color: var(--muted);
  margin: 0 0 20px;
}

.news-card a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.two-col h2 {
  font-size: clamp(30px, 4vw, 52px);
  margin-bottom: 18px;
}

.text-link {
  color: var(--blue);
  justify-content: flex-start;
  min-height: auto;
  padding: 22px 0 0;
}

.site-footer {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 46px 0;
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.4fr 1fr 1fr 0.9fr;
}

.footer-logo {
  max-width: 230px;
  margin-bottom: 18px;
}

.footer-logo--icon {
  max-width: 132px;
}

.site-footer h2 {
  color: var(--navy);
  font-size: 16px;
  font-weight: 850;
  margin: 0 0 12px;
}

.footer-intro {
  font-size: 14px;
  line-height: 1.6;
  max-width: 310px;
}

.site-footer a {
  color: var(--blue);
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  text-decoration: none;
}

@media (max-width: 991px) {
  .hero-grid,
  .page-shell,
  .studiolab-hero__grid,
  .studiolab-photo-strip,
  .studiolab-project-grid,
  .studiolab-case-grid,
  .studiolab-platform-grid,
  .studiolab-method-grid,
  .panel-feature-grid,
  .panel-template-grid,
  .panel-experience-grid,
  .panel-tag__grid,
  .page-hero__grid,
  .feature-grid,
  .project-grid,
  .main-containers,
  .news-grid,
  .two-col,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .section-heading--split,
  .studio-panel {
    display: block;
  }

  .section-heading--split p {
    margin-top: 18px;
    max-width: 720px;
  }

  .studio-panel .btn-primary-custom {
    margin-top: 28px;
  }

  .ai-mini-content {
    grid-template-columns: 1fr;
  }

  .ai-mini-actions {
    justify-content: flex-start;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 72px;
  }

  .menu-toggle__label {
    display: none;
  }

  .overlay-menu__grid {
    grid-template-columns: 1fr;
  }

  .overlay-menu__panel {
    max-height: calc(100vh - 28px);
    overflow: auto;
  }

  .hero-card {
    bottom: auto;
    margin: -18px 14px 0;
    position: relative;
    right: auto;
  }

  .hero-actions a {
    width: 100%;
  }
}
