:root {
  --bg: #12161c;
  --panel: #1a2027;
  --line: #2a323c;
  --text: #ecedf0;
  --muted: #94a0ab;
  --copper: #dd9142;
  --copper-soft: #4a3a26;
  --teal: #4c8c82;
  --font-display: "Barlow Condensed", sans-serif;
  --font-body: "Inter", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--copper);
  color: #171009;
}

.btn-primary:hover {
  background: #eaa25c;
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.btn-small {
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  padding: 1.4rem 6vw;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(18, 22, 28, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav-links a {
  text-decoration: none;
  transition: color 0.15s ease;
}

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

.nav-active {
  color: var(--copper);
}

.nav-soon {
  color: var(--muted);
  cursor: default;
}

.nav-soon::after {
  content: "em breve";
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--copper);
  margin-left: 0.35rem;
  vertical-align: super;
}

/* Gallery page */
.gallery-hero {
  padding: 4rem 6vw 3rem;
  max-width: 760px;
  border-bottom: 1px solid var(--line);
}

.gallery-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 1rem;
  color: var(--text);
}

.gallery {
  padding: 3rem 6vw 4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.gallery-item {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 880px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero */
.hero {
  padding: 5rem 6vw 4rem;
  max-width: 760px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 1.3rem;
  color: var(--text);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Section heads (shared) */
.section-head {
  max-width: 560px;
  margin: 0 0 2.6rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.9rem;
  margin: 0 0 0.6rem;
  color: var(--text);
}

.section-head p {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}

/* Services */
.services {
  padding: 4rem 6vw;
  border-bottom: 1px solid var(--line);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  background: var(--bg);
  padding: 1.8rem 1.6rem;
  border-top: 2px solid var(--copper);
}

.service-card--alt {
  border-top-color: var(--teal);
}

.card-tag {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--copper);
  margin-bottom: 0.9rem;
}

.service-card--alt .card-tag {
  color: var(--teal);
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
  color: var(--text);
}

.service-card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin: 0;
}

/* Process */
.process {
  padding: 4rem 6vw;
  border-bottom: 1px solid var(--line);
}

.process-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 1.6rem;
}

.process-steps li {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--copper);
  margin-bottom: 0.6rem;
}

.process-steps h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.process-steps p {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* About */
.about {
  padding: 4rem 6vw;
  max-width: 760px;
  border-bottom: 1px solid var(--line);
}

.about p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

/* Contact / footer */
.contact {
  padding: 2.4rem 6vw 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: var(--panel);
}

.contact-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--copper);
}

.contact-details {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
}

.contact-details a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.contact-details a:hover {
  border-color: var(--copper);
  color: var(--copper);
}

.divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  flex: none;
}

/* Responsive */
@media (max-width: 880px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }
  .service-grid {
    grid-template-columns: 1fr;
  }
  .process-steps {
    grid-template-columns: 1fr;
  }
  .contact {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
