:root {
  --ink: #111318;
  --muted: #667085;
  --line: #e6e8ec;
  --paper: #f7f4ef;
  --white: #ffffff;
  --charcoal: #151515;
  --accent: #c97b3a;
  --accent-dark: #9f5628;
  --incas-bg: #172332;
  --blue: #243b53;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body,
p,
a,
button,
input,
textarea {
  letter-spacing: 0;
}

a {
  color: var(--accent-dark);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--accent);
  text-decoration: none;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  color: inherit;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-weight: 800;
  line-height: 1.05;
  text-transform: none;
}

p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 800;
  line-height: 1;
  white-space: normal;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 16px 32px rgba(201, 123, 58, 0.24);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: var(--accent-dark);
  color: var(--white);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.btn-ghost:hover,
.btn-ghost:focus {
  background: var(--white);
  color: var(--ink);
}

.site-nav {
  min-height: 74px;
  margin: 0;
  border: 0;
  background: rgba(17, 19, 24, 0.86);
  backdrop-filter: blur(16px);
}

.site-nav .container {
  position: relative;
}

.site-nav .navbar-brand {
  height: 74px;
  padding: 26px 15px;
  color: var(--white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  line-height: 1;
}

.site-nav .navbar-brand:hover,
.site-nav .navbar-brand:focus {
  color: var(--accent);
}

.site-nav .navbar-nav > li > a {
  padding-top: 27px;
  padding-bottom: 27px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-nav .navbar-nav > li > a:hover,
.site-nav .navbar-nav > li > a:focus {
  color: var(--white);
}

.site-nav .navbar-nav > .active > a,
.site-nav .navbar-nav > .active > a:hover,
.site-nav .navbar-nav > .active > a:focus {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.site-nav .navbar-nav > li > a.nav-cta {
  margin-top: 17px;
  margin-left: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--white);
}

.site-nav .navbar-toggle {
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.site-nav .navbar-toggle .icon-bar {
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 170px 0 42px;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("../img/sfondo.jpg");
  background-position: 82% 34%;
  background-size: cover;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(12, 18, 28, 0.96) 0%, rgba(20, 32, 48, 0.84) 48%, rgba(20, 32, 48, 0.38) 100%),
    linear-gradient(0deg, rgba(12, 18, 28, 0.9) 0%, rgba(12, 18, 28, 0.14) 55%),
    radial-gradient(circle at 76% 22%, rgba(201, 123, 58, 0.2), transparent 30%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 800px;
  font-size: 68px;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
}

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

.hero-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 105px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.hero-strip span {
  min-height: 68px;
  padding: 22px 18px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.section {
  padding: 104px 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head.narrow {
  max-width: 640px;
}

.section-head h2,
.profile-section h2,
.incas-section h2,
.contact-section h2 {
  font-size: 42px;
}

.section-head p:not(.eyebrow),
.profile-section .lead,
.incas-section p,
.contact-section p {
  margin-top: 18px;
  font-size: 18px;
}

.service-grid {
  display: flex;
  flex-wrap: wrap;
}

.service-grid > [class*="col-"] {
  display: flex;
}

.service-card {
  width: 100%;
  min-height: 300px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 22px 60px rgba(22, 29, 38, 0.06);
}

.service-card i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 26px;
  border-radius: 50%;
  background: rgba(201, 123, 58, 0.12);
  color: var(--accent-dark);
  font-size: 22px;
}

.service-card h3 {
  margin-bottom: 14px;
  font-size: 23px;
}

.section-dark {
  background: var(--charcoal);
  color: var(--white);
}

.section-dark .section-head p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
}

.portfolio-grid > [class*="col-"] {
  display: flex;
  margin-bottom: 30px;
}

.work-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #202020;
}

.work-card > a {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #0c0c0c;
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.work-card:hover img {
  transform: scale(1.05);
  opacity: 0.82;
}

.play {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
}

.work-card div {
  min-height: 170px;
  padding: 24px;
}

.work-card p {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.work-card h3 {
  margin: 9px 0 12px;
  color: var(--white);
  font-size: 25px;
}

.work-card span {
  color: rgba(255, 255, 255, 0.68);
}

.profile-section {
  background: var(--white);
}

.profile-layout {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.portrait-card {
  overflow: hidden;
  border-radius: 8px;
  background: var(--blue);
  box-shadow: 0 22px 70px rgba(22, 29, 38, 0.14);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.profile-section .lead {
  color: var(--blue);
  font-weight: 700;
}

.profile-section p:not(.eyebrow) + p {
  margin-top: 16px;
}

.profile-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.profile-highlights div {
  padding: 18px;
  border-left: 4px solid var(--accent);
  background: var(--paper);
}

.profile-highlights strong {
  display: block;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.profile-highlights span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.timeline-section {
  background: #f1eee8;
}

.timeline-modern {
  display: grid;
  gap: 18px;
}

.timeline-modern article {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 26px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.timeline-modern img {
  width: 180px;
  height: 132px;
  border-radius: 6px;
  object-fit: cover;
}

.timeline-modern span {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-modern h3 {
  margin: 8px 0;
  font-size: 28px;
}

.incas-section {
  background: linear-gradient(135deg, #172332 0%, #21384f 100%);
  color: var(--white);
}

.incas-section p {
  color: rgba(255, 255, 255, 0.78);
}

.incas-layout {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.incas-section .btn {
  margin-top: 26px;
}

.team-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.team-mini img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
}

.clients-band {
  padding: 28px 0;
  background: var(--white);
}

.clients-band .container {
  display: flex;
  gap: 64px;
  align-items: center;
  justify-content: center;
}

.clients-band a,
.clients-band img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 72px;
}

.clients-band a img,
.clients-band > .container > img {
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
}

.contact-section {
  background: var(--paper);
}

.contact-links {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.contact-links li + li {
  margin-top: 10px;
}

.contact-links a {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--ink);
  font-weight: 800;
}

.contact-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 22px 60px rgba(22, 29, 38, 0.08);
}

.contact-card label {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-card .form-control {
  height: auto;
  min-height: 52px;
  border: 1px solid #d6dae1;
  border-radius: 6px;
  box-shadow: none;
  color: var(--ink);
  font-size: 16px;
}

.contact-card textarea.form-control {
  min-height: 156px;
  resize: vertical;
}

.contact-card .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 123, 58, 0.14);
}

.site-footer {
  padding: 34px 0;
  background: var(--charcoal);
  color: var(--white);
}

.site-footer .container {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.site-footer p,
.site-footer a {
  color: rgba(255, 255, 255, 0.66);
}

.site-footer strong {
  display: block;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-end;
}

@media (max-width: 991px) {
  .hero {
    min-height: auto;
    padding-top: 140px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-strip,
  .profile-highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients-band .container {
    gap: 28px;
  }

  .profile-layout > div + div,
  .incas-layout > div + div,
  .contact-section .row > div + div {
    margin-top: 38px;
  }
}

@media (max-width: 767px) {
  body {
    font-size: 15px;
  }

  .site-nav {
    min-height: 64px;
  }

  .site-nav .navbar-brand {
    height: 64px;
    padding-top: 22px;
    font-size: 20px;
  }

  .site-nav .navbar-nav > li > a {
    padding: 13px 15px;
  }

  .site-nav .navbar-nav > li > a.nav-cta {
    display: inline-block;
    margin: 8px 15px 16px;
  }

  .hero {
    padding: 116px 0 28px;
  }

  .hero-media {
    background-position: 64% 16%;
  }

  .hero h1 {
    font-size: 38px;
  }

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

  .hero-actions {
    display: grid;
  }

  .hero-strip,
  .profile-highlights,
  .team-mini {
    grid-template-columns: 1fr;
  }

  .clients-band .container {
    flex-direction: column;
    gap: 18px;
  }

  .section {
    padding: 72px 0;
  }

  .section-head {
    margin-bottom: 34px;
    text-align: left;
  }

  .section-head h2,
  .profile-section h2,
  .incas-section h2,
  .contact-section h2 {
    font-size: 31px;
  }

  .service-card,
  .contact-card {
    padding: 24px;
  }

  .timeline-modern article {
    grid-template-columns: 1fr;
  }

  .timeline-modern img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .site-footer .container {
    display: block;
  }

  .footer-links {
    justify-content: flex-start;
    margin-top: 18px;
  }
}
