:root {
  --bg: #080907;
  --bg-soft: #11120f;
  --panel: rgba(22, 23, 19, 0.72);
  --panel-solid: #171813;
  --paper: #f7f1e7;
  --paper-muted: #cfc4b4;
  --gold: #b78a52;
  --gold-soft: #d8bc88;
  --line: rgba(247, 241, 231, 0.13);
  --line-strong: rgba(216, 188, 136, 0.34);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
  --font-head: "Cinzel", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

body::selection {
  color: var(--bg);
  background: var(--gold-soft);
}

main {
  display: flex;
  flex-direction: column;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 18% 12%, rgba(183, 138, 82, 0.14), transparent 28rem),
    linear-gradient(180deg, #070807 0%, #11120f 46%, #080907 100%);
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.section-padding {
  padding: 88px 0;
}

.section-heading {
  margin-bottom: 56px;
}

.section-heading::after {
  content: "";
  width: 72px;
  height: 1px;
  display: block;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.12;
  text-transform: uppercase;
}

h2 {
  color: var(--paper);
  font-size: 2.55rem;
  letter-spacing: 0.02em;
}

.v2-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 18px 0;
  transition: var(--transition);
}

.v2-header.scrolled {
  padding: 10px 0;
  background: rgba(8, 9, 7, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-container {
  width: min(1380px, calc(100% - 64px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.v2-logo {
  flex: 0 0 auto;
}

.v2-logo img {
  width: 154px;
  height: 118px;
  object-fit: contain;
  padding: 6px;
  border: 1px solid rgba(216, 188, 136, 0.46);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(216, 188, 136, 0.16), rgba(8, 9, 7, 0.48)),
    rgba(8, 9, 7, 0.5);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.32),
    inset 0 0 30px rgba(216, 188, 136, 0.08);
  transition: var(--transition);
}

.v2-header.scrolled .v2-logo img {
  width: 126px;
  height: 94px;
}

.glass-pill {
  padding: 11px 28px;
  border: 1px solid rgba(247, 241, 231, 0.18);
  border-radius: 999px;
  background: rgba(8, 9, 7, 0.48);
  box-shadow: inset 0 1px 0 rgba(247, 241, 231, 0.06);
  backdrop-filter: blur(12px);
}

.nav-links {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: rgba(247, 241, 231, 0.74);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--paper);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(8, 9, 7, 0.5);
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  background: var(--paper);
  transition: var(--transition);
}

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

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

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

.v2-hero {
  position: relative;
  min-height: clamp(450px, 54vh, 540px);
  padding: 118px 0 58px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0b0b09;
}

.v2-hero {
  order: 1;
}

.v2-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("stillitano-assets/hero-legal-premium.webp");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transform: scale(1);
}

.v2-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 9, 7, 0.26) 0%, rgba(8, 9, 7, 0.54) 62%, rgba(8, 9, 7, 0.82) 100%),
    linear-gradient(90deg, rgba(8, 9, 7, 0.72) 0%, rgba(8, 9, 7, 0.36) 50%, rgba(8, 9, 7, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.hero-content h1 {
  color: var(--paper);
  font-size: clamp(1.72rem, 2.55vw, 2.75rem);
  font-weight: 600;
  line-height: 1.18;
  text-shadow: 0 18px 42px rgba(0, 0, 0, 0.48);
}

.hero-content p {
  max-width: 720px;
  margin: 16px auto 0;
  text-align: center;
  color: rgba(247, 241, 231, 0.82);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.v2-about {
  order: 3;
  position: relative;
  overflow: hidden;
  background: #080907;
}

.v2-about::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(8, 9, 7, 0.68), rgba(8, 9, 7, 0.76)),
    linear-gradient(90deg, rgba(8, 9, 7, 0.76), rgba(8, 9, 7, 0.48)),
    url("stillitano-assets/office-desk.webp");
  background-size: cover;
  background-position: center 45%;
  opacity: 1;
}

.v2-about .container {
  position: relative;
  z-index: 1;
}

.anchor-alias {
  position: absolute;
  top: -92px;
}

.about-v2-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}

.hero-portrait {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
}

.portrait-frame {
  width: var(--advogado-photo-width, auto);
  max-width: 100%;
  height: var(--advogado-photo-height, auto);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-solid);
  box-shadow: var(--shadow);
  margin: 0 auto;
}

.office-photo {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: saturate(0.92) contrast(1.04);
}

.bio-intro {
  height: 100%;
}

.bio-intro h3 {
  color: var(--gold-soft);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.bio-intro p {
  margin: 18px 0 0;
  color: var(--paper-muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.approach-panel {
  margin-top: 38px;
  padding: 26px;
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
  gap: 26px;
  border: 1px solid rgba(216, 188, 136, 0.2);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(247, 241, 231, 0.06), rgba(247, 241, 231, 0.025)),
    rgba(8, 9, 7, 0.64);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

.approach-copy span {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.approach-copy h3 {
  color: var(--paper);
  font-size: 1.24rem;
}

.approach-copy p {
  margin: 12px 0 0;
  color: var(--paper-muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.62;
}

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

.approach-steps article {
  padding: 18px;
  border-left: 1px solid rgba(216, 188, 136, 0.28);
  background: rgba(247, 241, 231, 0.025);
}

.approach-steps strong {
  display: block;
  margin-bottom: 10px;
  color: rgba(216, 188, 136, 0.72);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 500;
}

.approach-steps h4 {
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.approach-steps p {
  margin: 10px 0 0;
  color: var(--paper-muted);
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.52;
}

.v2-services {
  order: 2;
  background:
    linear-gradient(180deg, rgba(247, 241, 231, 0.035), transparent 34%),
    #0b0c0a;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 252px;
  height: 100%;
  padding: 34px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 2px solid rgba(183, 138, 82, 0.54);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(247, 241, 231, 0.05), rgba(247, 241, 231, 0.025)),
    var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 188, 136, 0.52), transparent);
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 188, 136, 0.42);
  background:
    linear-gradient(180deg, rgba(247, 241, 231, 0.07), rgba(247, 241, 231, 0.03)),
    var(--panel);
}

.service-label {
  margin-bottom: 16px;
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.service-card h3 {
  color: var(--paper);
  font-size: 1.32rem;
  min-height: 2.95em;
}

.service-card p {
  margin: 18px 0 0;
  color: var(--paper-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.v2-presence {
  order: 4;
  background:
    linear-gradient(180deg, #11120f 0%, #080907 100%);
}

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

.location-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.location-card:hover {
  transform: translateY(-4px);
}

.location-image {
  width: 100%;
  height: 190px;
  background-size: cover;
  background-position: center;
  filter: saturate(0.9) contrast(1.02);
}

.location-bg-recife {
  background-image: url("stillitano-assets/recife.webp");
}

.location-bg-lisboa {
  background-image: url("stillitano-assets/lisboa.webp");
}

.location-info {
  padding: 30px;
}

.location-info h3 {
  color: var(--paper);
  font-size: 1.42rem;
}

.location-info p {
  margin: 8px 0 0;
  color: var(--paper-muted);
}

.v2-contact {
  order: 5;
  background:
    radial-gradient(circle at 82% 16%, rgba(183, 138, 82, 0.12), transparent 26rem),
    #0b0c0a;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(380px, 1fr);
  gap: 58px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.55rem;
}

.contact-info > p {
  max-width: 560px;
  margin: 16px 0 34px;
  color: var(--paper-muted);
}

.contact-methods {
  display: grid;
  gap: 16px;
}

.method-item {
  min-height: 102px;
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  background: rgba(247, 241, 231, 0.035);
  transition: var(--transition);
}

.method-item:hover {
  border-color: rgba(216, 188, 136, 0.4);
  background: rgba(247, 241, 231, 0.055);
}

.method-item .icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--gold-soft);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-weight: 800;
}

.method-item .icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.whatsapp-method .icon {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.42);
  background: rgba(37, 211, 102, 0.06);
}

.details {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.method-title {
  color: rgba(247, 241, 231, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.details strong {
  color: var(--paper);
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.social-links {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social-links a {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 700;
}

.social-links svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
  flex: 0 0 auto;
}

.social-links a:hover {
  border-color: rgba(216, 188, 136, 0.44);
}

.contact-form-wrapper {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(247, 241, 231, 0.055), rgba(247, 241, 231, 0.025)),
    rgba(8, 9, 7, 0.58);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: rgba(247, 241, 231, 0.64);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(8, 9, 7, 0.64);
}

.form-group textarea {
  min-height: 142px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(183, 138, 82, 0.58);
  outline-offset: 2px;
  border-color: rgba(216, 188, 136, 0.44);
}

.btn-cyan {
  min-height: 50px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #11120f;
  border-radius: 4px;
  background: linear-gradient(180deg, #f8ead4, #d7b77c);
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(183, 138, 82, 0.18);
}

.btn-cyan:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.w-100 {
  width: 100%;
}

.form-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: rgba(247, 241, 231, 0.68);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.45;
}

.form-status.success {
  color: #8ee0a9;
}

.form-status.error {
  color: #f1a6a6;
}

.form-status.loading {
  color: var(--gold-soft);
}

.contact-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.v2-footer {
  padding: 34px 0;
  color: rgba(247, 241, 231, 0.62);
  border-top: 1px solid var(--line);
  background: #080907;
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-inner p {
  margin: 0;
}

.footer-inner p span {
  display: block;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
}

.footer-inner a {
  color: rgba(247, 241, 231, 0.78);
}

.footer-inner a:hover {
  color: var(--paper);
}

.floating-whatsapp {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 18;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
  font-weight: 900;
}

.floating-whatsapp svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.floating-whatsapp:hover {
  transform: translateY(-2px);
}

.legal-page .v2-header {
  background: rgba(8, 9, 7, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.legal-main {
  display: block;
}

.legal-hero {
  padding: 190px 0 72px;
  background:
    linear-gradient(180deg, rgba(8, 9, 7, 0.88), rgba(8, 9, 7, 0.96)),
    radial-gradient(circle at 18% 10%, rgba(183, 138, 82, 0.18), transparent 28rem);
  border-bottom: 1px solid var(--line);
}

.legal-hero h1 {
  max-width: 880px;
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.legal-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--paper-muted);
  font-size: 1.02rem;
}

.legal-hero span {
  display: block;
  margin-top: 18px;
  color: rgba(247, 241, 231, 0.56);
  font-size: 0.9rem;
}

.legal-kicker {
  margin: 0 0 14px;
  color: var(--gold-soft);
  font-weight: 700;
}

.legal-container {
  max-width: 940px;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(247, 241, 231, 0.05), rgba(247, 241, 231, 0.025)),
    rgba(8, 9, 7, 0.58);
  box-shadow: var(--shadow);
}

.legal-content p,
.legal-content li {
  color: var(--paper-muted);
  font-size: 0.98rem;
}

.legal-content p {
  margin: 0 0 18px;
}

.legal-content h2 {
  margin: 38px 0 14px;
  color: var(--gold-soft);
  font-size: 1.2rem;
}

.legal-content h2:first-of-type {
  margin-top: 26px;
}

.legal-content ul {
  margin: 0 0 20px 1.2rem;
  padding: 0;
}

.legal-content li {
  margin: 8px 0;
  padding-left: 4px;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: var(--transition);
}

.delay-1 {
  transition-delay: 120ms;
}

@media (max-width: 1040px) {
  .about-v2-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .approach-panel,
  .approach-steps {
    grid-template-columns: 1fr;
  }

  .approach-steps article {
    border-left: 0;
    border-top: 1px solid rgba(216, 188, 136, 0.26);
  }

  .hero-portrait {
    justify-content: center;
  }

  .portrait-frame {
    width: min(var(--advogado-photo-width, 100%), 100%);
    height: var(--advogado-photo-height, auto);
  }

  .v2-logo img {
    width: 126px;
    height: 94px;
  }

  .menu-toggle {
    display: grid;
  }

  .v2-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 24px;
    right: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
  }

  .v2-nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    padding: 16px 0;
    flex-direction: column;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 12px;
  }
}

@media (max-width: 760px) {
  .container,
  .header-container {
    width: min(100% - 32px, 1200px);
  }

  .section-padding {
    padding: 68px 0;
  }

  h2 {
    font-size: 2.05rem;
  }

  .v2-hero {
    min-height: clamp(500px, 56vh, 540px);
    padding: 112px 0 48px;
  }

  .v2-hero::before {
    background-size: cover;
    background-position: center;
  }

  .hero-content {
    padding: 0;
  }

  .hero-content h1 {
    font-size: clamp(1.52rem, 7.1vw, 2rem);
  }

  .hero-content p {
    font-size: 0.92rem;
    white-space: normal;
  }

  .services-grid,
  .presence-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-auto-rows: auto;
  }

  .service-card {
    min-height: auto;
    padding: 28px;
  }

  .service-card h3 {
    min-height: 0;
  }

  .approach-panel {
    padding: 24px;
  }

  .approach-copy h3 {
    font-size: 1.12rem;
  }

  .approach-steps article {
    padding: 16px 0 0;
    background: transparent;
  }

  .contact-form-wrapper {
    padding: 22px;
  }

  .legal-hero {
    padding: 140px 0 54px;
  }

  .legal-container {
    padding: 28px 22px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner nav {
    justify-content: flex-start;
  }
}
