:root {
  --bg: #0c1a2a;
  --bg-alt: #11243a;
  --text: #e8edf2;
  --muted: #b9c6d8;
  --primary: #2ea3ff;
  --secondary: #f0b429;
  --card: #12263f;
  --border: #20364f;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12,26,42,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.5px; font-size: 1.6rem; line-height: 1.2; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); padding: 8px 10px; border-radius: 6px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.site-nav a { color: var(--text); text-decoration: none; padding: 12px 10px; border-radius: 6px; }
.site-nav a:hover { background: var(--card); }
.site-nav .active { color: var(--primary); }
.site-nav .cta { background: var(--secondary); color: #08121f; font-weight: 600; }

/* Hero */
.hero, .page-hero, .cta-band {
  position: relative;
  background: #0b1726;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.hero { min-height: 72vh; display: grid; place-items: center; }
.page-hero { min-height: 42vh; display: grid; place-items: center; }
.cta-band { min-height: 36vh; display: grid; place-items: center; }
.overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,31,0.60), rgba(8,18,31,0.75)); }
.hero-content, .cta-content { position: relative; z-index: 2; text-align: center; }
.hero h1 { font-size: 2.4rem; margin: 0 0 10px; }
.hero p { max-width: 800px; margin: 0 auto 18px; color: var(--muted); }
.hero-actions { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }

/* Migliora leggibilità page-hero (es. Contatti) */
.page-hero .overlay { background: linear-gradient(180deg, rgba(8,18,31,0.65), rgba(8,18,31,0.85)); }
.page-hero .container { text-align: center; }
.page-hero h1 { color: #fff; font-size: 2.2rem; font-weight: 700; letter-spacing: 0.2px; }
.page-hero p { color: #ffffff; font-size: 1.08rem; max-width: 860px; margin: 8px auto 0; text-shadow: 0 1px 2px rgba(0,0,0,0.45); }

/* Contatti: ancora più bianco e contrasto */
.contacts-hero .overlay { background: linear-gradient(180deg, rgba(8,18,31,0.78), rgba(8,18,31,0.95)); }
.contacts-hero .container { 
  text-align: center; 
  background: transparent; /* diminuisce il fondo dietro al testo */
  padding: 24px 20px;
}
.contacts-hero h1 { 
  color: #ffffff; 
  font-size: 2.6rem; /* aumenta la visibilità */
  font-weight: 900; 
  line-height: 1.25;
  text-shadow: 0 3px 8px rgba(0,0,0,0.65);
}
.contacts-hero p { 
  color: #ffffff; 
  font-size: 1.25rem; /* più grande e leggibile */
  font-weight: 600; 
  line-height: 1.6;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

/* Buttons */
.btn { display: inline-block; padding: 12px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.btn-primary { background: var(--primary); color: #08121f; }
.btn-secondary { background: var(--secondary); color: #08121f; }
.btn:hover { filter: brightness(1.07); }

.hero .btn-primary { background: #1f78d1; color: #ffffff; }

/* Sections */
.section { padding: 60px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { margin: 0 0 16px; font-size: 1.8rem; }

/* Grid & cards */
.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.two-col { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: center; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.card img { width: 100%; height: 180px; object-fit: cover; }
.card-body { padding: 16px; }
.card-body h3 { margin: 0 0 8px; font-size: 1.2rem; }
.card-body p { margin: 0; color: var(--muted); }
.countries .card img { height: 200px; }

/* Feature */
.feature { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: center; }
.feature-media img { width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.feature-content p { color: var(--muted); }

/* Contact */
.contact .form-row { margin-bottom: 12px; }
.contact label { display: block; margin-bottom: 6px; color: var(--muted); }
.contact input, .contact textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
  background: #0a1626; color: var(--text);
}
.form-actions { margin-top: 10px; }
.form-note { color: var(--muted); font-size: 0.9rem; }
.contact .contact-details { margin-top: 12px; color: var(--muted); }
.img-col img { width: 100%; border-radius: 12px; border: 1px solid var(--border); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: #0a1626; }
.footer-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; padding: 24px 0; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-bottom { padding: 16px 0; text-align: center; color: var(--muted); border-top: 1px solid var(--border); }

/* Responsive */
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav { position: absolute; right: 20px; top: 60px; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 10px; }
  .logo { font-size: 1.4rem; }
}

/* WhatsApp widget */
.whatsapp-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366; /* WhatsApp green */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 60;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-launcher:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,0.45); }
.whatsapp-launcher svg { width: 26px; height: 26px; display: block; }
@media (max-width: 480px) {
  .whatsapp-launcher { right: 14px; bottom: 14px; width: 52px; height: 52px; }
  .whatsapp-launcher svg { width: 24px; height: 24px; }
}

@media (max-width: 560px) {
  .hero-actions { flex-direction: column; gap: 28px; }
}