:root {
  --ink: #2f3337;
  --muted: #68717a;
  --brand: #d71920;
  --brand-dark: #9f1117;
  --line: #dde2e6;
  --panel: #ffffff;
  --soft: #f4f6f8;
  --shadow: 0 16px 40px rgba(24, 34, 44, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #e8ecef url("../../background.gif");
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

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

.site {
  width: min(1040px, calc(100% - 32px));
  margin: 24px auto;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero {
  background:
    linear-gradient(110deg, rgba(20, 24, 29, 0.92), rgba(55, 64, 71, 0.82)),
    url("../../fundo_meios.jpg") center / cover;
  color: #fff;
  padding: 34px 36px 28px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: #fff;
  font-weight: 800;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 0.95;
  letter-spacing: 0;
}

.brand span:first-child {
  color: var(--brand);
}

.tagline {
  max-width: 650px;
  margin: 12px 0 0;
  color: #f0f2f4;
  font-size: 18px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 0 24px;
  background: #32383e;
}

.nav a {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  padding: 0 14px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus,
.nav a[aria-current="page"] {
  background: var(--brand);
}

.layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 560px;
}

.sidebar {
  padding: 24px 20px;
  border-right: 1px solid var(--line);
  background: #f5f6f7 url("../../fnd_esq.jpg") top center / cover no-repeat;
}

.client-link img {
  width: 191px;
  margin: 0 auto 18px;
}

.widget {
  margin-top: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(210, 216, 222, 0.9);
}

.widget-title {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.clock {
  font-size: 30px;
  font-weight: 800;
  color: var(--brand-dark);
}

.date {
  color: var(--muted);
  font-size: 14px;
}

.content {
  padding: 30px 36px 42px;
}

h1,
h2,
h3 {
  margin: 0 0 14px;
  line-height: 1.2;
}

h1 {
  font-size: clamp(28px, 5vw, 42px);
}

h2 {
  margin-top: 30px;
  color: var(--brand-dark);
  font-size: 22px;
}

h3 {
  margin-top: 22px;
  font-size: 18px;
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0 0 20px 20px;
  padding: 0;
}

.lead {
  color: var(--muted);
  font-size: 19px;
}

.brand-inline {
  font-weight: 800;
}

.brand-inline span:first-child {
  color: var(--brand);
}

.media-pair {
  display: grid;
  gap: 18px;
  margin: 8px 0 22px;
}

.service-grid,
.news-list,
.contact-grid {
  display: grid;
  gap: 18px;
}

.service-card,
.news-item,
.contact-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 6px;
}

.service-card h2,
.news-item h2,
.contact-card h2 {
  margin-top: 0;
  font-size: 18px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.portfolio-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.portfolio-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}

.button:hover,
.button:focus {
  background: var(--brand-dark);
  text-decoration: none;
}

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

.footer {
  padding: 18px 36px;
  border-top: 1px solid var(--line);
  background: #f7f8f9;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .site {
    width: 100%;
    margin: 0;
  }

  .hero {
    padding: 28px 22px 24px;
  }

  .nav {
    padding: 0;
  }

  .nav a {
    flex: 1 1 50%;
    justify-content: center;
  }

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

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .content {
    padding: 26px 22px 34px;
  }

  .footer {
    padding: 16px 22px;
  }
}
