/*
Theme Name: MACITALY
Theme URI: https://macitaly.com/
Author: MACITALY
Author URI: https://macitaly.com/
Description: Tema su misura per MAC ITALY, international sales representation and business development.
Version: 1.3.6
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: macitaly
*/

:root {
  --mi-blue: #122754;
  --mi-blue-deep: #071735;
  --mi-blue-mid: #1d4480;
  --mi-blue-soft: #e9f2fb;
  --mi-sky: #73b7f0;
  --mi-gold: #c99639;
  --mi-ink: #121826;
  --mi-muted: #5c6678;
  --mi-line: #dce5f0;
  --mi-paper: #ffffff;
  --mi-soft: #f5f8fc;
  --mi-radius: 8px;
  --mi-max: 1180px;
  --mi-shadow: 0 22px 70px rgba(7, 23, 53, 0.18);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mi-paper);
  color: var(--mi-ink);
  font-family: "Montserrat", "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.site-shell {
  min-height: 100vh;
  overflow-x: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(7, 23, 53, 0.94);
  color: #fff;
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(var(--mi-max), calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-logo {
  width: 184px;
  max-width: 42vw;
  height: auto;
}

.header-whatsapp {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.header-whatsapp:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.header-whatsapp svg {
  width: 25px;
  height: 25px;
  display: block;
  fill: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;
  font-weight: 700;
}

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

.site-nav a:hover {
  color: #fff;
}

.nav-contact {
  border-radius: var(--mi-radius);
  padding: 0.6rem 0.82rem;
  background: var(--mi-gold);
  color: var(--mi-blue-deep) !important;
}

.language-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-toggle {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--mi-radius);
  padding: 0.48rem 0.62rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.language-chevron {
  font-size: 0.72rem;
  line-height: 1;
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  min-width: 188px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--mi-radius);
  background: rgba(7, 23, 53, 0.98);
  box-shadow: var(--mi-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.language-switcher.is-open .language-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.language-link {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 6px;
  padding: 0.48rem 0.62rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.language-link:hover,
.language-link.is-active {
  background: #fff;
  color: #000;
}


.site-nav .language-link:hover,
.site-nav .language-link.is-active {
  color: #000;
}

.language-flag {
  font-size: 1rem;
}

.language-code {
  min-width: 2ch;
  font-weight: 850;
}

.language-name {
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--mi-radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.menu-toggle-line {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: var(--mi-radius);
  padding: 0.72rem 1.05rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--mi-gold);
  color: var(--mi-blue-deep);
  box-shadow: 0 14px 36px rgba(201, 150, 57, 0.28);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  isolation: isolate;
  background: var(--mi-blue-deep);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(7, 23, 53, 0.96) 0%, rgba(18, 39, 84, 0.84) 42%, rgba(18, 39, 84, 0.22) 100%), url("assets/images/mac-italy-beijing-business-skyline-hero.webp");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 28%;
  background: linear-gradient(180deg, rgba(7, 23, 53, 0), var(--mi-blue-deep));
}

.hero-inner {
  width: min(var(--mi-max), calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0 116px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  border-left: 4px solid var(--mi-gold);
  padding-left: 12px;
  color: var(--mi-sky);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font-size: clamp(2.25rem, 6.4vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.2rem;
  line-height: 1.58;
}

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

.hero-stats {
  width: min(860px, 100%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 58px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--mi-radius);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: var(--mi-shadow);
}

.hero-stat {
  min-height: 118px;
  padding: 24px;
  background: rgba(7, 23, 53, 0.72);
}

.hero-stat strong {
  display: block;
  color: #fff;
  font-size: 1.48rem;
  line-height: 1.1;
}

.hero-stat span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
  line-height: 1.35;
}

.section {
  padding: 96px 0;
}

.section.alt {
  background: var(--mi-soft);
}

.container {
  width: min(var(--mi-max), calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.46fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 40px;
}

.section-title {
  margin-bottom: 0;
  color: var(--mi-blue-deep);
  font-size: clamp(1.9rem, 3vw, 2.25rem);
  line-height: 1.12;
}

.section-lede {
  margin-bottom: 0;
  color: var(--mi-muted);
  font-size: 1.05rem;
}


.home-overview {
  background: #fff;
}


.home-overview .section-title {
  white-space: nowrap;
}

.home-overview .section-head {
  grid-template-columns: 1fr;
}

.home-overview .section-lede:empty {
  display: none;
}

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

.overview-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--mi-line);
  border-radius: var(--mi-radius);
  padding: 24px;
  background: var(--mi-paper);
  box-shadow: 0 18px 46px rgba(18, 38, 77, 0.08);
}

.overview-card h3 {
  margin-bottom: 10px;
  color: var(--mi-blue-deep);
  font-size: 1.18rem;
  line-height: 1.2;
}

.overview-card p {
  color: var(--mi-muted);
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-more {
  width: fit-content;
  border-color: var(--mi-blue);
  background: var(--mi-blue);
  color: #fff;
  box-shadow: 0 14px 34px rgba(18, 38, 77, 0.18);
}

.btn-more:hover {
  color: #fff;
}

.btn-more-light {
  margin-top: 26px;
  border-color: rgba(255, 255, 255, 0.42);
  background: #fff;
  color: var(--mi-blue-deep);
}

.btn-more-light:hover {
  color: var(--mi-blue-deep);
}

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

.service-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--mi-line);
  border-radius: var(--mi-radius);
  padding: 24px;
  background: var(--mi-paper);
}

.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--mi-blue);
  color: #fff;
  font-weight: 850;
}

.service-card h3 {
  margin: 24px 0 10px;
  color: var(--mi-blue-deep);
  font-size: 1.18rem;
  line-height: 1.22;
}

.service-card p {
  margin-bottom: 0;
  color: var(--mi-muted);
}


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

.company-card {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--mi-line);
  border-radius: var(--mi-radius);
  padding: 24px;
  background: var(--mi-paper);
}

.company-kicker {
  margin-bottom: 14px;
  color: var(--mi-gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


.company-logo {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.company-logo img {
  max-width: 148px;
  max-height: 78px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.company-card:nth-child(2) .company-logo {
  padding: 10px 12px;
  border-radius: 8px;
  background: #050505;
}

.company-card:nth-child(2) .company-logo img {
  max-width: 150px;
  max-height: 66px;
}

.company-card h3 {
  margin-bottom: 12px;
  color: var(--mi-blue-deep);
  font-size: 1.26rem;
  line-height: 1.18;
}

.company-card p:not(.company-kicker) {
  color: var(--mi-muted);
}

.company-card a {
  width: fit-content;
  margin-top: 20px;
  color: var(--mi-blue);
  font-weight: 850;
  text-decoration-thickness: 0.1em;
}


.company-card a.btn-more {
  color: #fff;
  text-decoration: none;
}

.commercial-area-head {
  max-width: 980px;
  margin-bottom: 34px;
}

.commercial-area-head .section-title {
  white-space: nowrap;
}

.commercial-map {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--mi-line);
  border-radius: var(--mi-radius);
  background: var(--mi-blue-deep);
  box-shadow: var(--mi-shadow);
}

.commercial-map img {
  width: 100%;
}

.commercial-map-wide {
  width: 100%;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.44fr) minmax(0, 0.76fr);
  gap: 44px;
  align-items: center;
}

.profile-photo {
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: var(--mi-radius);
  background: var(--mi-blue);
  box-shadow: var(--mi-shadow);
}

.profile-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.profile-copy {
  max-width: 760px;
}

.profile-copy h2 {
  color: var(--mi-blue-deep);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1.12;
}

.profile-copy p {
  color: var(--mi-muted);
  font-size: 1.06rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 0.5fr);
  gap: 56px;
  align-items: start;
}


.menu-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 0.52fr);
  gap: 56px;
  align-items: center;
}

.menu-detail-copy {
  border-left: 1px solid var(--mi-line);
  padding-left: 34px;
}

.menu-detail-copy p {
  margin-bottom: 24px;
  color: var(--mi-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border-top: 1px solid var(--mi-line);
  padding-top: 22px;
}

.step-number {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mi-blue);
  color: #fff;
  font-weight: 850;
}

.step h3 {
  margin-bottom: 6px;
  color: var(--mi-blue-deep);
  font-size: 1.15rem;
}

.step p {
  margin-bottom: 0;
  color: var(--mi-muted);
}

.panel {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--mi-radius);
  padding: 30px;
  background: var(--mi-blue);
  color: #fff;
  box-shadow: var(--mi-shadow);
}

.panel h2 {
  font-size: clamp(1.75rem, 2.8vw, 2.25rem);
  line-height: 1.12;
}

.panel p {
  color: rgba(255, 255, 255, 0.82);
}

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

.check-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
}

.check-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--mi-gold);
}

.cta-band {
  padding: 76px 0;
  background: var(--mi-blue-deep);
  color: #fff;
}

.cta-inner {
  width: min(var(--mi-max), calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) auto;
  gap: 28px;
  align-items: center;
  margin: 0 auto;
}

.cta-inner h2 {
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 3vw, 2.45rem);
  line-height: 1.12;
}

.cta-inner p {
  max-width: 690px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

.site-footer {
  padding: 64px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--mi-blue-deep);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(var(--mi-max), calc(100% - 32px));
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.62fr);
  gap: 56px;
  align-items: start;
  margin: 0 auto;
  font-size: 0.95rem;
}

.footer-logo {
  width: 172px;
  height: auto;
  margin-bottom: 20px;
}

.footer-company {
  max-width: 520px;
}

.footer-tagline {
  margin-bottom: 24px;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
}

.footer-company address {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-style: normal;
  line-height: 1.8;
}

.footer-company a,
.footer-nav a {
  color: inherit;
  text-decoration: none;
}

.footer-company a:hover,
.footer-nav a:hover {
  color: #fff;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-weight: 850;
}

.footer-social-link::before {
  content: "in";
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 4px;
  background: #fff;
  color: var(--mi-blue-deep);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.footer-copy {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.88rem;
}

.footer-nav {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding-left: 38px;
}

.footer-nav h2 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.footer-links a {
  min-height: 38px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.76);
  font-weight: 750;
}


.back-to-top {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 30;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--mi-radius);
  background: var(--mi-gold);
  color: var(--mi-blue-deep);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(7, 23, 53, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(7, 23, 53, 0.3);
}

.not-found-page h1 {
  color: var(--mi-blue-deep);
}

.not-found-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.not-found-links a:not(.btn) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--mi-line);
  border-radius: var(--mi-radius);
  padding: 0.65rem 0.9rem;
  color: var(--mi-blue);
  font-weight: 850;
  text-decoration: none;
}

.internal-qa {
  margin-top: 42px;
  border-top: 1px solid var(--mi-line);
  padding-top: 32px;
}

.internal-qa h2 {
  margin-bottom: 18px;
  color: var(--mi-blue-deep);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.18;
}

.internal-qa-list {
  display: grid;
  gap: 18px;
}

.internal-qa article {
  border-left: 4px solid var(--mi-gold);
  padding: 4px 0 4px 18px;
}

.internal-qa h3 {
  margin-bottom: 8px;
  color: var(--mi-blue);
  font-size: 1.18rem;
}

.internal-qa p {
  margin-bottom: 0;
}

[dir="rtl"] .internal-qa article {
  border-left: 0;
  border-right: 4px solid var(--mi-gold);
  padding-left: 0;
  padding-right: 18px;
}

.wp-content {
  width: min(var(--mi-max), calc(100% - 32px));
  margin: 72px auto;
}


.company-detail-page {
  width: min(var(--mi-max), 100%);
  margin: 0 auto;
}

.company-detail-header {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 0.9fr);
  gap: 38px;
  align-items: center;
  margin-bottom: 42px;
  border: 1px solid var(--mi-line);
  border-radius: var(--mi-radius);
  padding: 32px;
  background: var(--mi-paper);
  box-shadow: 0 18px 46px rgba(18, 38, 77, 0.08);
}

.company-detail-logo {
  min-height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--mi-radius);
  background: #fff;
}

.company-detail-logo img {
  max-width: 210px;
  max-height: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.page-id-59 .company-detail-logo {
  background: #050505;
}

.company-detail-heading h1 {
  margin-bottom: 24px;
  color: var(--mi-blue-deep);
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  line-height: 1;
}

.company-detail-body {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
  gap: 42px;
  align-items: start;
}

.represented-company-aside {
  position: sticky;
  top: 104px;
  border-left: 1px solid var(--mi-line);
  padding-left: 28px;
}

.represented-company-aside h2 {
  margin-bottom: 18px;
  color: var(--mi-blue-deep);
  font-size: 1rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.represented-company-list {
  display: grid;
  gap: 12px;
}

.represented-company-link {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid var(--mi-line);
  border-radius: var(--mi-radius);
  padding: 12px;
  background: #fff;
  color: var(--mi-blue-deep);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.represented-company-link:hover,
.represented-company-link.is-active {
  border-color: var(--mi-blue);
  box-shadow: 0 16px 34px rgba(18, 38, 77, 0.1);
  transform: translateY(-1px);
}

.represented-company-logo {
  min-height: 62px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #fff;
}

.represented-company-logo.logo-dark {
  background: #050505;
}

.represented-company-logo img {
  max-width: 70px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.represented-company-text strong,
.represented-company-text small {
  display: block;
}

.represented-company-text strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.represented-company-text small {
  margin-top: 4px;
  color: var(--mi-muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

[dir="rtl"] .represented-company-aside {
  border-left: 0;
  border-right: 1px solid var(--mi-line);
  padding-left: 0;
  padding-right: 28px;
}

.company-detail-content {
  color: var(--mi-muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

.company-detail-content h1:first-child {
  display: none;
}

.references-collage-section {
  margin-top: 52px;
}

.references-collage-head {
  margin-bottom: 28px;
}

.references-collage-head p:last-child {
  display: none;
}

.references-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 58px 30px;
}

.references-board {
  position: relative;
  display: block;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--mi-blue-deep);
  cursor: zoom-in;
  box-shadow: none;
  text-align: left;
}

.references-board::after {
  content: "+";
  position: absolute;
  right: 16px;
  bottom: 64px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mi-gold);
  color: var(--mi-blue-deep);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 28px rgba(7, 23, 53, 0.22);
}

.references-board img {
  width: 100%;
  border-radius: 0;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.references-board:hover img {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 22px 54px rgba(7, 23, 53, 0.18);
}

.references-board span {
  display: block;
  min-height: 0;
  padding: 18px 0 0;
  color: var(--mi-blue);
  font-size: clamp(1.18rem, 2.2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.18;
}

.references-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 28px;
  background: rgba(7, 23, 53, 0.82);
}

.references-lightbox[hidden] {
  display: none;
}

.references-lightbox-frame {
  position: relative;
  max-width: min(1720px, 96vw);
  max-height: 90vh;
  border: 10px solid #fff;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.references-lightbox-frame::before {
  content: "";
  position: absolute;
  inset: -18px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
}

.references-lightbox img {
  max-width: calc(96vw - 20px);
  max-height: calc(90vh - 20px);
  display: block;
  background: #fff;
}

.references-lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: rgba(7, 23, 53, 0.86);
  color: #fff;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.references-lightbox-prev {
  left: -68px;
}

.references-lightbox-next {
  right: -68px;
}

.references-lightbox-nav:hover {
  background: var(--mi-gold);
  color: var(--mi-blue-deep);
}

.references-lightbox-close {
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--mi-blue-deep);
  color: #fff;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

body.references-lightbox-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .references-board-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}


@media (max-width: 760px) {
  .menu-detail-grid,
  .split,
  .cta-inner,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .menu-detail-grid {
    gap: 22px;
    align-items: start;
  }

  .menu-detail-copy {
    border-left: 0;
    padding-left: 0;
  }

  [dir="rtl"] .menu-detail-copy {
    border-right: 0;
    padding-right: 0;
  }

  .menu-detail-copy p {
    font-size: 1rem;
  }

  .footer-inner {
    gap: 34px;
  }

  .footer-company {
    max-width: none;
  }

  .footer-nav {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 28px;
  }

  [dir="rtl"] .footer-nav {
    border-right: 0;
    padding-right: 0;
  }

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

@media (max-width: 620px) {
  .references-lightbox {
    padding: 24px 12px;
  }

  .references-lightbox-frame {
    border-width: 6px;
  }


  .references-lightbox-nav {
    width: 42px;
    height: 54px;
    font-size: 2.5rem;
  }

  .references-lightbox-prev {
    left: 6px;
  }

  .references-lightbox-next {
    right: 6px;
  }

  .references-board::after {
    width: 38px;
    height: 38px;
    bottom: 54px;
    font-size: 1.55rem;
  }
}

[dir="rtl"] body {
  direction: rtl;
}

[dir="rtl"] .eyebrow {
  border-left: 0;
  border-right: 4px solid var(--mi-gold);
  padding-left: 0;
  padding-right: 12px;
}

[dir="rtl"] .hero::before {
  background-image: linear-gradient(270deg, rgba(7, 23, 53, 0.96) 0%, rgba(18, 39, 84, 0.84) 42%, rgba(18, 39, 84, 0.22) 100%), url("assets/images/mac-italy-beijing-business-skyline-hero.webp");
}

@media (max-width: 1080px) {
  .service-grid,
  .company-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .nav-wrap {
    position: relative;
    min-height: auto;
    padding: 14px 0;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: 0;
  }


  .header-whatsapp {
    margin-left: auto;
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(320px, calc(100vw - 32px));
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--mi-radius);
    background: rgba(7, 23, 53, 0.98);
    box-shadow: var(--mi-shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    display: flex;
    min-height: 44px;
    align-items: center;
    border-radius: var(--mi-radius);
    padding: 0.72rem 0.85rem;
  }

  .site-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .language-switcher {
    order: -1;
    width: 100%;
    display: grid;
    justify-items: end;
    margin-bottom: 2px;
  }

  .language-toggle {
    width: 48px;
    min-height: 42px;
    padding: 0;
  }

  .language-toggle .language-code,
  .language-toggle .language-chevron {
    display: none;
  }

  .language-toggle .language-flag {
    font-size: 1.1rem;
  }

  .language-options {
    position: static;
    width: 100%;
    min-width: 0;
    display: none;
    margin-top: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .language-switcher.is-open .language-options {
    display: grid;
  }

  .language-link {
    min-height: 42px;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background-image: linear-gradient(180deg, rgba(7, 23, 53, 0.98) 0%, rgba(18, 39, 84, 0.86) 64%, rgba(18, 39, 84, 0.44) 100%), url("assets/images/mac-italy-beijing-business-skyline-hero.webp");
    background-position: center;
  }

  .hero-inner {
    padding: 64px 0 88px;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .hero-stats,
  .section-head,
  .profile-grid,
  .split,
  .menu-detail-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .menu-detail-copy {
    border-left: 0;
    padding-left: 0;
  }



  .company-detail-body {
    grid-template-columns: 1fr;
  }

  .represented-company-aside {
    position: static;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--mi-line);
    padding-top: 28px;
  }

  [dir="rtl"] .represented-company-aside {
    border-right: 0;
    padding-right: 0;
  }

  .hero-stat {
    min-height: 94px;
  }

  .section {
    padding: 72px 0;
  }
}

@media (max-width: 620px) {
  .nav-wrap,
  .container,
  .hero-inner,
  .cta-inner,
  .footer-inner,
  .wp-content {
    width: min(100% - 24px, var(--mi-max));
  }

  .brand-logo {
    width: 154px;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .service-grid,
  .company-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

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

  .panel,
  .service-card {
    padding: 22px;
  }

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


@media (max-width: 760px) {
  .commercial-area-head .section-title {
    white-space: normal;
  }
}

/* Homepage mobile reflow for menu summary sections. */
@media (max-width: 900px) {
  .home .menu-detail-section .menu-detail-grid,
  .front-page .menu-detail-section .menu-detail-grid,
  body .menu-detail-section .menu-detail-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 22px;
    align-items: start;
  }

  .home .menu-detail-section .menu-detail-copy,
  .front-page .menu-detail-section .menu-detail-copy,
  body .menu-detail-section .menu-detail-copy {
    border-left: 0;
    padding-left: 0;
    border-right: 0;
    padding-right: 0;
  }

  .home .menu-detail-section .section-title,
  .front-page .menu-detail-section .section-title,
  body .menu-detail-section .section-title {
    max-width: 100%;
  }

  .home .menu-detail-section .btn,
  .front-page .menu-detail-section .btn,
  body .menu-detail-section .btn {
    width: fit-content;
  }
}

@media (max-width: 620px) {
  .home .menu-detail-section .btn,
  .front-page .menu-detail-section .btn,
  body .menu-detail-section .btn {
    width: 100%;
  }
}

/* Global footer mobile reflow. */
@media (max-width: 900px) {
  .site-footer .footer-inner {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 34px;
    align-items: start;
  }

  .site-footer .footer-company {
    max-width: none;
  }

  .site-footer .footer-nav {
    border-left: 0 !important;
    border-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 28px;
  }

  .site-footer .footer-links {
    grid-template-columns: 1fr !important;
  }
}


@media print {
  .macitaly-privacy-banner,
  .back-to-top {
    display: none !important;
  }
}

/* Compact homepage rhythm on mobile. */
@media (max-width: 900px) {
  body.home .section,
  body.front-page .section {
    padding: 54px 0;
  }

  body.home .section-head,
  body.front-page .section-head {
    gap: 18px;
    margin-bottom: 24px;
  }

  body.home .overview-grid,
  body.home .service-grid,
  body.home .company-grid,
  body.front-page .overview-grid,
  body.front-page .service-grid,
  body.front-page .company-grid {
    gap: 14px;
  }

  body.home .overview-card,
  body.home .service-card,
  body.home .company-card,
  body.front-page .overview-card,
  body.front-page .service-card,
  body.front-page .company-card {
    padding: 18px;
  }

  body.home .section-actions,
  body.front-page .section-actions {
    margin-top: 18px;
  }

  body.home .menu-detail-section .menu-detail-grid,
  body.front-page .menu-detail-section .menu-detail-grid {
    gap: 16px !important;
  }
}

@media (max-width: 620px) {
  body.home .hero-inner,
  body.front-page .hero-inner {
    padding: 52px 0 62px;
  }

  body.home .section,
  body.front-page .section {
    padding: 42px 0;
  }

  body.home .overview-card,
  body.home .service-card,
  body.home .company-card,
  body.front-page .overview-card,
  body.front-page .service-card,
  body.front-page .company-card {
    padding: 16px;
  }
}
