/* ==== GLOBAL ==== */
:root {
  --bg-main: #050608;
  --bg-alt: #101218;
  --bg-alt2: #151823;
  --text-main: #f5f5f5;
  --text-muted: #b3b8c5;
  --accent: #63d0d1; /* teal like the logo */
  --accent-soft: #2f8084;
  --danger: #ff4b4b;
  --border-soft: #2a2f3a;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  background: radial-gradient(circle at top left, #18212a 0, #050608 55%);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
}

/* ==== LAYOUT ==== */
.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.012);
}

.section-title {
  font-size: 2.1rem;
  margin-bottom: 24px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-subtitle {
  max-width: 640px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ==== HEADER / NAV ==== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 8, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 46px;
  width: auto;
}

.site-name {
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.site-name span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.93rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
  border-color: var(--accent);
}

.nav-cta {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: #020305;
  transform: translateY(-1px);
}

/* ==== HERO ==== */
.hero {
  padding: 90px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
  gap: 50px;
  align-items: center;
}

.hero-kicker {
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.1rem);
  margin-bottom: 18px;
}

.hero-title span {
  color: var(--accent);
}

.hero-text {
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--accent);
  color: #020305;
  font-weight: 600;
}

.btn-primary:hover {
  background: #7ae1e1;
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  border-color: var(--accent-soft);
  color: var(--text-main);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-meta strong {
  color: var(--text-main);
}

/* Hero card */
.hero-card {
  background: radial-gradient(circle at top, #2b4047 0, #12141b 45%, #050608 100%);
  border-radius: 24px;
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.hero-card-title {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.hero-card-list {
  list-style: none;
  margin-bottom: 18px;
}

.hero-card-list li {
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

/* ==== GRID UTILITIES ==== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.card {
  background: var(--bg-alt);
  border-radius: 18px;
  padding: 22px 20px;
  border: 1px solid var(--border-soft);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.card p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* Two-column layout */
.columns-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 40px;
}

/* Lists */
ul.check-list {
  list-style: none;
  margin-top: 10px;
}

ul.check-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

ul.check-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 0.75rem;
  color: var(--accent);
}

/* ==== FORMS ==== */
.form-card {
  background: var(--bg-alt);
  border-radius: 20px;
  padding: 26px 24px;
  border: 1px solid var(--border-soft);
}

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

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

label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: var(--text-muted);
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 9px 11px;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: #05070c;
  color: var(--text-main);
  font-family: var(--font-main);
  font-size: 0.94rem;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ==== FOOTER ==== */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 40px;
  background: #020204;
  padding: 26px 0 20px;
  font-size: 0.85rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  color: var(--text-muted);
}

/* ==== BRAND / LOGOS ==== */
.brand-logos {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.brand-logos img {
  max-height: 44px;
  width: auto;
  opacity: 0.96;
}

/* ==== CONTACT IMAGE ==== */
.contact-image {
  margin-top: 20px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.contact-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==== PORTFOLIO BANNER ==== */
.portfolio-banner {
  margin: 24px 0;
  text-align: center;
}

.portfolio-banner img {
  max-width: 280px;
  width: 100%;
  height: auto;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 860px) {
  .hero-grid,
  .columns-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 70px;
  }

  .nav-links {
    display: none; /* versione mobile semplificata: si può aggiungere menu hamburger più avanti */
  }
}
