/* ============================================================
   SECURITY GUARDIAN — CSS
   Palette: #0A0F1E (deep navy) · #6B2FD9 (purple) · 
            #00C9C8 (cyan) · #F0F2FF (off-white) · #8A8FA8 (muted)
   Type: Syne (display) + Inter (body)
   ============================================================ */

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

:root {
  --navy:    #0A0F1E;
  --navy2:   #10172A;
  --navy3:   #161E35;
  --purple:  #6B2FD9;
  --purple2: #8B4FE8;
  --cyan:    #00C9C8;
  --cyan2:   #00E5E4;
  --white:   #F0F2FF;
  --muted:   #6B7192;
  --border:  rgba(107, 47, 217, 0.2);
  --border2: rgba(0, 201, 200, 0.15);

  --font-display: 'Syne', sans-serif;
  --font-body:    'Inter', sans-serif;

  --max-w: 1160px;
  --section-pad: clamp(72px, 9vw, 120px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- UTILITIES ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.accent { color: var(--cyan); }
.section { padding: var(--section-pad) 0; }
.section-dark { background: var(--navy2); }

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
}

.section-intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ============================================================
   NAV
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}
#navbar.scrolled {
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(107, 47, 217, 0.25);
  padding: 12px 0;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.logo-shield {
  font-size: 22px;
  color: var(--purple2);
  line-height: 1;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo-text em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
  font-size: 13px;
  display: block;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.logo-dot { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: rgba(240, 242, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--white); background: rgba(107,47,217,0.1); }

.nav-cta {
  background: var(--purple) !important;
  color: var(--white) !important;
  border-radius: 6px !important;
}
.nav-cta:hover { background: var(--purple2) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px clamp(20px, 5vw, 48px) 80px;
}

#networkCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid var(--border2);
  background: rgba(0, 201, 200, 0.06);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  max-width: 720px;
}
.hero-accent { color: var(--purple2); }

.hero-sub {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(240, 242, 255, 0.65);
  max-width: 540px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--purple2); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 8px;
  border: 1px solid rgba(240, 242, 255, 0.15);
  transition: border-color 0.2s, background 0.2s;
  letter-spacing: 0.02em;
}
.btn-ghost:hover { border-color: var(--purple2); background: rgba(107,47,217,0.08); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, var(--muted), transparent);
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--navy3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 0;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px;
  text-align: center;
}
.stat-item strong {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-item span {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ============================================================
   CHI SIAMO — VALUES
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.value-card {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.value-card:hover { border-color: var(--purple); transform: translateY(-3px); }
.value-icon {
  font-size: 22px;
  color: var(--purple2);
  margin-bottom: 16px;
  line-height: 1;
}
.value-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}
.value-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ============================================================
   PARTNER CARDS
   ============================================================ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.partner-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.2s;
}
.partner-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--purple), var(--cyan));
  opacity: 0;
  transition: opacity 0.3s;
}
.partner-card:hover { border-color: var(--purple2); transform: translateY(-4px); }
.partner-card:hover::before { opacity: 1; }

.partner-lead {
  border-color: rgba(107, 47, 217, 0.4);
}
.partner-lead::before { opacity: 1; }

.partner-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}

.partner-logo-area {
  margin-bottom: 16px;
}
.partner-initial {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), rgba(107,47,217,0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
}

.partner-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
}
.partner-name-label {
  font-size: 13px;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 16px;
}
.partner-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex: 1;
}
.partner-skills {
  list-style: none;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.partner-skills li {
  font-size: 13px;
  color: rgba(240, 242, 255, 0.75);
  padding-left: 16px;
  position: relative;
}
.partner-skills li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--purple2);
  font-weight: 700;
}
.partner-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  text-decoration: none;
}
.partner-contact span {
  font-size: 12px;
  color: var(--muted);
  transition: color 0.2s;
}
.partner-contact:hover span { color: var(--cyan); }
.contact-phone { font-weight: 500; }

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  transition: border-color 0.25s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-card:hover { border-color: var(--purple2); transform: translateY(-3px); }

.service-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg { width: 22px; height: 22px; }

.service-icon-purple {
  background: rgba(107, 47, 217, 0.15);
  color: var(--purple2);
}
.service-icon-cyan {
  background: rgba(0, 201, 200, 0.1);
  color: var(--cyan);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.service-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin: 0;
}
.service-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.7;
  margin-top: 4px;
}

/* ============================================================
   WHY US
   ============================================================ */
.section-why {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy3) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.why-text .section-title { margin-bottom: 20px; }
.why-text > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}
.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.why-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14px;
  color: rgba(240, 242, 255, 0.8);
  line-height: 1.5;
}
.why-check {
  color: var(--cyan);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}
.why-list strong { color: var(--white); }

/* RADAR ANIMATION */
.why-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.radar-wrap {
  position: relative;
  width: 280px;
  height: 280px;
}
.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0, 201, 200, 0.15);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.r1 { width: 100%; height: 100%; }
.r2 { width: 66%; height: 66%; border-color: rgba(0,201,200,0.22); }
.r3 { width: 33%; height: 33%; border-color: rgba(0,201,200,0.3); }

.radar-sweep {
  position: absolute;
  top: 50%; left: 50%;
  width: 50%;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(to right, rgba(0,201,200,0.7), transparent);
  animation: sweep 3s linear infinite;
}
@keyframes sweep { to { transform: rotate(360deg); } }

.radar-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: blip 2s ease-in-out infinite;
}
.d1 { top: 18%; left: 62%; animation-delay: 0.2s; }
.d2 { top: 55%; left: 78%; animation-delay: 0.8s; }
.d3 { top: 72%; left: 28%; animation-delay: 1.4s; }
.d4 { top: 28%; left: 22%; animation-delay: 1.9s; }
@keyframes blip {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.radar-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--white);
  box-shadow: 0 0 20px rgba(107, 47, 217, 0.5);
}

/* ============================================================
   CONTACTS
   ============================================================ */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.contact-card {
  background: var(--navy);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: border-color 0.2s;
}
.contact-card:hover { border-color: var(--purple2); }

.contact-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple), rgba(107,47,217,0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
  flex-shrink: 0;
}
.contact-info h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}
.contact-info p {
  font-size: 12px;
  color: var(--cyan);
  margin-bottom: 12px;
}
.contact-info a {
  display: block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  margin-bottom: 3px;
}
.contact-info a:hover { color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.footer .nav-logo { justify-content: center; }
.footer-tagline {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}
.footer-copy {
  font-size: 12px;
  color: rgba(107, 113, 146, 0.6);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 15, 30, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }

  #navbar { position: fixed; }

  .stat-sep { display: none; }
  .stats-inner { gap: 0; justify-content: space-around; }
  .stat-item { padding: 20px 12px; }

  .why-inner { grid-template-columns: 1fr; }
  .why-visual { order: -1; }
  .radar-wrap { width: 200px; height: 200px; }

  .partners-grid, .services-grid, .contacts-grid {
    grid-template-columns: 1fr;
  }

  .hero-content h1 { font-size: clamp(32px, 9vw, 52px); }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { text-align: center; justify-content: center; }
}

/* ============================================================
   SCROLL REVEAL (JS adds .revealed)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}
/* Fallback: se JS non funziona, tutto visibile dopo 1s */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ============================================================
   NAV LOGO — Mana icon + text combo
   ============================================================ */
.nav-mana-icon {
  height: 36px;
  width: auto;
  filter: brightness(1);
  flex-shrink: 0;
}
.nav-sg-text {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1;
}
.nav-sg-text em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
  font-size: 11px;
  display: block;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1px;
}

/* ============================================================
   HERO LOGO
   ============================================================ */
.hero-logo-wrap {
  margin-bottom: 32px;
}
.hero-logo {
  height: 90px;
  width: auto;
  max-width: 440px;
}

/* ============================================================
   SERVICES — dark background version (section-dark override)
   ============================================================ */
.section-dark .service-card {
  background: var(--navy);
  border-color: rgba(107, 47, 217, 0.18);
}
.section-dark .service-card:hover {
  border-color: var(--purple2);
}

/* ============================================================
   SERVICE LIST (for bullet-style service descriptions)
   ============================================================ */
.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.service-list li {
  font-size: 13.5px;
  color: var(--muted);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.service-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-weight: 700;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-wrap {
  max-width: 760px;
  background: var(--navy3);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(28px, 4vw, 48px);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(240, 242, 255, 0.85);
  letter-spacing: 0.02em;
}
.req { color: var(--cyan); }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--navy2);
  border: 1px solid rgba(107, 47, 217, 0.35);
  border-radius: 8px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 13px 16px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7192' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
.form-group select option {
  background: var(--navy3);
  color: var(--white);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--purple2);
  background: #111826;
  box-shadow: 0 0 0 3px rgba(107, 47, 217, 0.18);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e05b5b;
}
.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.form-privacy {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 420px;
}

.btn-submit {
  position: relative;
  min-width: 180px;
  justify-content: center;
  flex-shrink: 0;
}
.btn-submit.loading .btn-text { opacity: 0; }
.btn-submit.loading .btn-spinner { opacity: 1; }
.btn-spinner {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  opacity: 0;
  transition: opacity 0.2s;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-alert {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  display: none;
}
.form-alert.success {
  display: block;
  background: rgba(0, 201, 200, 0.1);
  border: 1px solid rgba(0, 201, 200, 0.3);
  color: var(--cyan2);
}
.form-alert.error {
  display: block;
  background: rgba(224, 91, 91, 0.1);
  border: 1px solid rgba(224, 91, 91, 0.3);
  color: #f08080;
}

/* ============================================================
   FOOTER BRAND
   ============================================================ */
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 4px;
}
.footer-mana-logo {
  height: 44px;
  width: auto;
}
.footer-sg-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
}
.footer-sg-name em {
  font-style: normal;
  color: var(--muted);
  font-weight: 400;
  font-size: 11px;
  display: block;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1px;
}
.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 12px 0;
}
.footer-nav a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--white); }

/* ============================================================
   RESPONSIVE — form
   ============================================================ */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .form-wrap { padding: 24px 20px; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .btn-submit { width: 100%; }
  .hero-logo { height: 60px; }
  .nav-sg-text { font-size: 14px; }
}

/* ============================================================
   HERO — two-column layout (text left, logo right)
   ============================================================ */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}
.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-logo-col {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
.hero-sg-logo {
  width: clamp(200px, 22vw, 320px);
  height: auto;
  opacity: 0.92;
  filter: drop-shadow(0 0 32px rgba(107, 47, 217, 0.35));
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-logo-col {
    justify-content: flex-start;
    order: -1;
  }
  .hero-sg-logo {
    width: clamp(160px, 55vw, 240px);
  }
}

/* ============================================================
   CONTATTI — testo semplice + due card cliccabili
   ============================================================ */
.contact-simple {
  max-width: 660px;
}
.contact-simple-text {
  font-size: 17px;
  color: #D0D4F0;
  line-height: 1.8;
  margin-bottom: 40px;
}
.contact-simple-text a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  white-space: nowrap;
}
.contact-simple-text a:hover { color: var(--cyan2); text-decoration: underline; }

.contact-simple-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.contact-simple-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--navy3);
  border: 1px solid rgba(107, 47, 217, 0.45);
  border-radius: 12px;
  padding: 20px 28px;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
  min-width: 230px;
}
.contact-simple-card:hover {
  border-color: var(--cyan);
  background: rgba(107, 47, 217, 0.12);
  transform: translateY(-2px);
}
.csc-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(107, 47, 217, 0.25);
  border: 1px solid rgba(107, 47, 217, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.csc-icon svg { width: 20px; height: 20px; }
.csc-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 5px;
}
.csc-value {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #F0F2FF;
}

@media (max-width: 520px) {
  .contact-simple-cards { flex-direction: column; }
  .contact-simple-card { min-width: unset; }
}

/* ============================================================
   SECTION-DARK — explicit text contrast guarantee
   ============================================================ */
.section-dark .section-eyebrow { color: var(--cyan); }
.section-dark .section-title   { color: #F0F2FF; }
.section-dark .section-intro   { color: #9BA3C4; }
