:root {
  --ink: #171b1f;
  --muted: #626b75;
  --line: #dfe5ea;
  --paper: #ffffff;
  --soft: #f4f7f9;
  --dark: #1d2329;
  --steel: #50606d;
  --brand: #b71925;
  --brand-dark: #82131c;
  --accent: #d99b2b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.nav-inner,
.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-inner {
  position: relative;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
}

.brand img {
  width: 48px;
  height: 48px;
}

.brand span {
  display: block;
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #333a41;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

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

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--brand);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  cursor: pointer;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  display: block;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav.is-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.is-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.is-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 640px;
  display: grid;
  align-items: end;
  color: #ffffff;
  background: #14191f;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 25, 31, 0.92) 0%, rgba(20, 25, 31, 0.64) 48%, rgba(20, 25, 31, 0.22) 100%),
    linear-gradient(0deg, rgba(20, 25, 31, 0.88) 0%, rgba(20, 25, 31, 0.08) 42%),
    url("../img/originali/header/01.jpg") center / cover;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 54px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #f4c46c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 30px;
  color: #e6ecf1;
  font-size: 20px;
  line-height: 1.55;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.button.light {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.stats {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: -42px auto 0;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  min-height: 118px;
  padding: 24px;
  background: #ffffff;
}

.stat strong {
  display: block;
  color: var(--brand);
  font-size: 30px;
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.35;
}

.section {
  padding: 82px 0;
}

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

.section.dark {
  background: var(--dark);
  color: #ffffff;
}

.section-header {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-header h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.section-header p,
.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.dark .section-header p,
.dark .lead {
  color: #c6d0d8;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.97fr);
  gap: 46px;
  align-items: center;
}

.history {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.history-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.history-item strong {
  color: var(--brand);
  font-size: 24px;
}

.media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.media-grid img,
.work-image,
.gallery a {
  border-radius: 6px;
}

.media-grid img,
.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--line);
}

.media-grid img:first-child {
  grid-row: span 2;
  min-height: 420px;
}

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

.service {
  min-height: 226px;
  padding: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.service h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.service p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.work-block {
  margin-top: 42px;
}

.work-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 14px;
}

.work-title h3 {
  margin: 0;
  font-size: 25px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery a {
  position: relative;
  overflow: hidden;
  background: #d9dee3;
  aspect-ratio: 4 / 3;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.gallery a:hover img,
.gallery a:focus-visible img {
  transform: scale(1.05);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 30px;
}

.contact-panel {
  padding: 30px;
  background: #ffffff;
  color: var(--ink);
  border-radius: 6px;
}

.contact-panel h3 {
  margin-bottom: 18px;
  font-size: 24px;
}

.contact-row {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.contact-row strong {
  display: block;
  margin-bottom: 5px;
}

.contact-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.map {
  min-height: 430px;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #eef2f5;
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
}

.footer {
  padding: 34px 0;
  background: #11161b;
  color: #d6dde3;
  font-size: 14px;
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  text-align: center;
  line-height: 1.55;
}

.footer a {
  color: #ffffff;
}

@media (min-width: 921px) {
  .menu-toggle,
  .menu-toggle span {
    display: none !important;
  }
}

.legal-page {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0;
}

.legal-page h1 {
  color: var(--ink);
  font-size: clamp(34px, 5vw, 54px);
}

.legal-page h2 {
  margin-top: 34px;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 920px) {
  .split,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .nav-inner {
    min-height: 72px;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
  }

  .brand {
    min-width: 0;
  }

  .menu-toggle {
    display: flex;
    flex: 0 0 auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% - 4px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 18px 38px rgba(20, 25, 31, 0.16);
    font-size: 15px;
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px 12px;
    border-radius: 4px;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: var(--soft);
  }

  .hero {
    min-height: 560px;
  }

  .stats,
  .services,
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-grid img:first-child {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .nav-inner,
  .section-inner,
  .hero-inner,
  .stats,
  .footer-inner,
  .legal-page {
    width: min(100% - 28px, 1180px);
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .brand span {
    font-size: 17px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(20, 25, 31, 0.94) 0%, rgba(20, 25, 31, 0.76) 100%),
      url("../img/originali/header/01.jpg") center / cover;
  }

  .hero-copy {
    font-size: 18px;
  }

  .stats,
  .services,
  .gallery,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 58px 0;
  }

  .history-item {
    grid-template-columns: 1fr;
  }

  .work-title {
    align-items: flex-start;
    flex-direction: column;
  }
}
