/* style.css */

/* Reset base + font */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0f172a;          /* sfondo header */
  --card: #111827;        /* sfondo elementi */
  --text: #e5e7eb;        /* testo principale */
  --muted: #9ca3af;       /* testo secondario */
  --accent: #22c55e;      /* verde whatsapp */
  --accent-2: #38bdf8;    /* azzurro hover */
  --border: rgba(255, 255, 255, 0.12);
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: #0b1220;
  background: #f3f4f6;
}

/* Contenitore centrato */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* HEADER */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

/* LOGO */
.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  color: var(--text);
  letter-spacing: 1px;
  font-weight: 700;
}

/* MENU */
.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.nav-link:hover {
  background: rgba(255,255,255,0.10);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Link attivo (HOME) */
.nav-link.active {
  background: rgba(56, 189, 248, 0.22);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

/* WhatsApp button */
.whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.whatsapp svg {
  width: 18px;
  height: 18px;
  fill: var(--accent);
}

.whatsapp:hover {
  background: rgba(34, 197, 94, 0.22);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transform: translateY(-1px);
}

/* MAIN */
.hero {
  margin: 28px 0;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.hero h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.hero p {
  color: #4b5563;
  line-height: 1.5;
}

/* RESPONSIVE: su schermi piccoli il menu va a capo */
@media (max-width: 820px) {
  .navbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo {
    order: 1;
  }

  .whatsapp {
    order: 2;
  }

  .nav-menu {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 16px;
  }
}
