/* Tema chiaro, tecnico: fondo pietra, inchiostro, accento ottanio. */
:root {
  --bg: #e7eceb;
  --paper: #f7f8f6;
  --ink: #17211f;
  --muted: #5c6b68;
  --accent: #0f6e68;
  --accent-2: #0b534e;
  --line: #d5dedc;
  --shadow: 0 16px 40px rgba(23, 33, 31, 0.08);
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  background:
    linear-gradient(180deg, rgba(15, 110, 104, 0.05), transparent 280px),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  background: rgba(247, 248, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #f4f7f6;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: 2px solid var(--accent);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.85rem;
}

.nav {
  margin-left: auto;
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 8px 12px;
  color: var(--muted);
  font-weight: 500;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

.lang-switch {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}

.lang-btn {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 600;
  min-width: 44px;
  font-family: inherit;
}

.lang-btn.active {
  background: var(--accent);
  color: #f4f7f6;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  min-height: 78vh;
  background: var(--ink);
  color: #f4f7f6;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-content: center;
  padding: 88px 48px 72px;
}

.hero-visual {
  min-height: 420px;
  background:
    linear-gradient(90deg, rgba(23, 33, 31, 0.35), transparent 28%),
    url('https://images.unsplash.com/photo-1550355291-bbee04a92027?auto=format&fit=crop&w=1400&q=80') center/cover no-repeat;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8fd0c8;
  font-weight: 600;
  font-size: 0.78rem;
  margin: 0;
}

h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  margin: 0;
  font-weight: 600;
  overflow-wrap: break-word;
}

h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  margin: 0;
  font-weight: 600;
}

h3 {
  margin: 0 0 8px;
  font-weight: 600;
}

.hero-sub {
  max-width: 520px;
  color: #d5e2df;
  font-size: 1.08rem;
  margin: 0;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: #f4f7f6;
  color: var(--ink);
}

.hero .btn.ghost,
.btn.ghost {
  border-color: rgba(244, 247, 246, 0.45);
  background: transparent;
  color: #f4f7f6;
}

.btn.full {
  width: 100%;
}

.hero-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid rgba(244, 247, 246, 0.16);
}

.hero-meta span {
  color: #d5e2df;
  font-weight: 500;
  font-size: 0.95rem;
}

.hero-meta span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #8fd0c8;
  transform: translateY(-1px);
}

.section {
  padding: 80px 28px;
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  max-width: 680px;
  margin-bottom: 32px;
}

.section .eyebrow {
  color: var(--accent);
}

.section-sub {
  color: var(--muted);
  margin: 12px 0 0;
}

.cards,
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card,
.coverage-card,
.faq-item,
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card {
  border-top: 3px solid var(--accent);
}

.card p,
.coverage-card p,
.step p,
.faq-item p {
  color: var(--muted);
  margin: 0;
}

.process {
  max-width: none;
  background: #f7f8f6;
  border-block: 1px solid var(--line);
}

.process .section-header,
.process .steps {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 14px;
  background: transparent;
}

.coverage-card h3,
.card h3,
.step h3,
.faq-item h3 {
  color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 12px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #d5dedc;
}

.gallery figure:first-child {
  grid-row: 1 / span 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  filter: saturate(0.75);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.contact-card {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.contact-card > div:first-child {
  padding: 28px;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin-top: 20px;
}

.contact-link {
  color: var(--accent-2);
  font-weight: 600;
}

.contact-text {
  color: var(--muted);
  margin: 4px 0 0;
}

.contact-cta {
  background: var(--ink);
  color: #f4f7f6;
  padding: 28px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.contact-cta p {
  color: #d5e2df;
  margin: 0;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  color: #8fd0c8;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contact-cta .btn.primary {
  background: var(--accent);
  color: #f4f7f6;
}

.footer {
  border-top: 1px solid rgba(244, 247, 246, 0.08);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  align-items: center;
  background: #101816;
  color: #f4f7f6;
}

.footer .brand-tag,
.footer-note {
  color: #b7c7c4;
  margin: 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: #8fd0c8;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 280px;
    order: -1;
  }

  .hero-content {
    padding: 48px 24px 56px;
  }

  .cards,
  .coverage-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }

  .gallery figure:first-child {
    grid-row: auto;
    grid-column: 1 / span 2;
    min-height: 220px;
  }

  .contact-card,
  .footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .topbar {
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .brand {
    flex: 1 1 160px;
    min-width: 0;
  }

  .brand-name {
    font-size: 0.78rem;
    line-height: 1.2;
  }

  .brand-tag {
    font-size: 0.75rem;
  }

  .nav {
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    top: 54px;
    right: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 8px;
    flex-direction: column;
    width: 210px;
    display: none;
    box-shadow: var(--shadow);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .section {
    padding: 56px 16px;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .gallery figure,
  .gallery figure:first-child {
    grid-column: auto;
    height: 200px;
  }
}
