/* Palette: fondo notte #0b0f1a, card #111726, accento ambra #f4c24d, testo chiaro #f5f7fb */
:root {
  --bg: #0b0f1a;
  --panel: #111726;
  --panel-2: #161d2c;
  --accent: #f4c24d;
  --accent-2: #cfa23d;
  --text: #f5f7fb;
  --muted: #c7cddc;
  --line: #1f2740;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  background: rgba(11, 15, 26, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f1a;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-weight: 700;
}

.brand-tag {
  color: var(--muted);
  font-size: 0.9rem;
}

.nav {
  margin-left: auto;
  position: relative;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: var(--panel);
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 12px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

.lang-switch {
  display: flex;
  gap: 6px;
}

.lang-btn {
  background: var(--panel);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 600;
  min-width: 44px;
}

.lang-btn.active {
  background: var(--accent);
  color: #0b0f1a;
  border-color: transparent;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  padding: 110px 22px 70px;
  background: url('https://images.unsplash.com/photo-1503736334956-4c8f8e92946d?auto=format&fit=crop&w=1600&q=80&sat=-10') center/cover no-repeat;
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(11, 15, 26, 0.88), rgba(11, 15, 26, 0.4));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  display: grid;
  gap: 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0;
}

h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0;
}

h3 {
  margin: 0 0 8px;
}

.hero-sub {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f1a;
}

.btn.ghost {
  border-color: var(--line);
  background: rgba(17, 23, 38, 0.7);
  color: var(--text);
}

.btn.full {
  width: 100%;
  justify-content: center;
}

.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-meta span {
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-weight: 600;
}

.section {
  padding: 72px 22px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-sub {
  color: var(--muted);
  margin: 10px 0 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card p {
  color: var(--muted);
  margin: 0;
}

.process .steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.step {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: #0b0f1a;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin-bottom: 10px;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.coverage-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--muted);
  box-shadow: var(--shadow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery img:hover {
  transform: scale(1.04);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.faq-item {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.faq-item p {
  color: var(--muted);
  margin: 6px 0 0;
}

.contact-card {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.contact-link {
  color: var(--text);
  font-weight: 600;
}

.contact-text {
  color: var(--muted);
  margin: 4px 0 0;
}

.contact-cta {
  background: linear-gradient(160deg, rgba(244, 194, 77, 0.12), rgba(244, 194, 77, 0.24));
  border: 1px solid rgba(244, 194, 77, 0.4);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 10px;
  align-content: start;
}

.contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0b0f1a;
  color: var(--accent);
  border: 1px solid rgba(244, 194, 77, 0.4);
  border-radius: 12px;
  padding: 8px 12px;
  font-weight: 700;
  width: fit-content;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 26px 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  align-items: center;
  background: #0a0e18;
}

.footer-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-note {
  color: var(--muted);
  margin: 0;
}

/* Responsività */
@media (max-width: 900px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .nav-links {
    position: absolute;
    top: 58px;
    right: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 10px;
    flex-direction: column;
    width: 210px;
    display: none;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .lang-switch {
    margin-left: 4px;
  }

  .hero {
    padding-top: 120px;
  }
}

@media (max-width: 520px) {
  .topbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .hero-meta span {
    width: 100%;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }
}
