/* =================================================================
   SYMIOS – Deep-Tech Luxury Landing Page
   Light mode · Open Sans + Futura · Brand: #264C72 / #C9A86A
   ================================================================= */

/* ── Google Fonts ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700;800&display=swap');

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  --blue:       #264C72;
  --blue-dark:  #1A3352;
  --blue-mid:   #1E4068;
  --blue-light: #EEF4FB;
  --blue-bg:    #F7FAFD;
  --gold:       #C9A86A;
  --gold-light: #F5CE84;
  --text-main:  #1A3352;
  --text-mid:   #4A6A8A;
  --text-sec:   #6B8299;
  --text-muted: #8A9AAB;
  --white:      #FFFFFF;
  --surface-0: #FFFFFF;
  --surface-1: #FFFFFF;
  --surface-2: #EEF4FB;
  --surface-3: #F7FAFD;
  --surface-soft: #F3F7FB;
  --surface-muted: #E7EEF8;
  --border-soft: rgba(38,76,114,0.10);
  --border-subtle: rgba(38,76,114,0.07);
  --border-strong: rgba(38,76,114,0.18);
  --shadow-soft:
    0 4px 28px rgba(38,76,114,0.10),
    0 1.5px 6px rgba(38,76,114,0.06);
  --shadow-card: 0 4px 20px rgba(38,76,114,0.06);
  --shadow-card-hover: 0 16px 48px rgba(38,76,114,0.12);
  --shadow-pill: 0 2px 8px rgba(38,76,114,0.18);
  --hero-bg: linear-gradient(160deg, var(--surface-0) 0%, var(--surface-2) 50%, var(--surface-3) 100%);
  --hero-grid-line: rgba(38,76,114,0.03);
  --hero-glow: radial-gradient(circle, rgba(201,168,106,0.10) 0%, transparent 65%);
  --gold-gradient: linear-gradient(135deg, #C9A86A 0%, #F5CE84 50%, #C9A86A 100%);
  --gold-text: #1A3352;
  --gold-shadow: 0 4px 20px rgba(201,168,106,0.30);
  --gold-shadow-hover: 0 6px 28px rgba(201,168,106,0.45);
  --gold-shadow-large: 0 6px 28px rgba(201,168,106,0.35), 0 1px 0 rgba(255,255,255,0.2) inset;
  --gold-shadow-large-hover: 0 10px 36px rgba(201,168,106,0.45), 0 1px 0 rgba(255,255,255,0.2) inset;
  --gold-shadow-disabled: 0 6px 24px rgba(201,168,106,0.24);
  --gold-spinner-track: rgba(26,51,82,0.28);
  --solution-glow: radial-gradient(circle, rgba(38,76,114,0.04) 0%, transparent 65%);
  --solution-ring-color: #264C72;
  --solution-surface-top: #FFFFFF;
  --solution-surface-bottom: #EEF4FB;
  --solution-node-fill: #FFFFFF;
  --solution-gold: #C9A86A;
  --solution-gold-bright: #F5CE84;
  --feature-card-bg: #FFFFFF;
  --feature-icon-bg: #EEF4FB;
  --feature-icon-color: #264C72;
  --cta-bg: linear-gradient(135deg, #1A3352 0%, #264C72 55%, #1E4068 100%);
  --cta-grid-line: rgba(255,255,255,0.03);
  --cta-glow-right: radial-gradient(circle, rgba(245,206,132,0.10) 0%, transparent 65%);
  --cta-glow-left: radial-gradient(circle, rgba(38,76,114,0.30) 0%, transparent 65%);
  --cta-label: rgba(255,255,255,0.92);
  --cta-input-border: rgba(255,255,255,0.18);
  --cta-input-bg: rgba(255,255,255,0.08);
  --cta-input-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  --cta-input-placeholder: rgba(255,255,255,0.56);
  --cta-input-focus-border: rgba(245,206,132,0.88);
  --cta-input-focus-bg: rgba(255,255,255,0.12);
  --cta-input-focus-ring: rgba(245,206,132,0.12);
  --cta-input-invalid-border: rgba(255,124,124,0.92);
  --cta-input-invalid-ring: rgba(255,124,124,0.10);
  --cta-feedback: rgba(255,255,255,0.86);
  --cta-feedback-error: #FFD1D1;
  --cta-feedback-success: #D8F6DA;
  --faq-item-bg: #FFFFFF;
  --faq-chevron-bg: #EEF4FB;
  --faq-divider: rgba(38,76,114,0.07);
  --footer-bg: #FFFFFF;
  --footer-border: rgba(38,76,114,0.08);
  --control-bg: #EEF4FB;
  --control-bg-glass: rgba(255,255,255,0.58);
  --control-hover: rgba(38,76,114,0.10);
  --control-focus: rgba(38,76,114,0.28);
  --theme-toggle-bg: rgba(255,255,255,0.68);
  --theme-toggle-border: rgba(38,76,114,0.10);
  --theme-toggle-thumb: #FFFFFF;
  --theme-toggle-icon-active: #C9A86A;
  --theme-toggle-icon-inactive: #6B8299;
  --font-os:    'Open Sans', sans-serif;
  --font-ft:    'Futura', 'Century Gothic', 'Trebuchet MS', sans-serif;
}

html.symios-home-page {
  color-scheme: light;
}

html.symios-home-page[data-theme="dark"] {
  color-scheme: dark;
  --blue: #9CBDE4;
  --blue-dark: #EAF2FC;
  --blue-mid: #7FA6D3;
  --blue-light: #14263B;
  --blue-bg: #08131F;
  --gold: #D7B57A;
  --gold-light: #F4D38C;
  --text-main: #EEF4FC;
  --text-mid: #C0D2E6;
  --text-sec: #A5B8CE;
  --text-muted: #8095AB;
  --surface-0: #07111C;
  --surface-1: #0D1826;
  --surface-2: #102238;
  --surface-3: #08131F;
  --surface-soft: #0F1C2D;
  --surface-muted: #18283D;
  --border-soft: rgba(172,197,228,0.16);
  --border-subtle: rgba(172,197,228,0.12);
  --border-strong: rgba(245,206,132,0.22);
  --shadow-soft:
    0 14px 34px rgba(0,0,0,0.34),
    0 1px 0 rgba(255,255,255,0.03);
  --shadow-card: 0 12px 30px rgba(0,0,0,0.24);
  --shadow-card-hover: 0 20px 52px rgba(0,0,0,0.34);
  --shadow-pill: 0 10px 22px rgba(0,0,0,0.28);
  --hero-bg: linear-gradient(160deg, #08111B 0%, #0E1B2B 50%, #13243A 100%);
  --hero-grid-line: rgba(191,208,227,0.08);
  --hero-glow: radial-gradient(circle, rgba(245,206,132,0.15) 0%, transparent 62%);
  --gold-shadow: 0 8px 28px rgba(215,181,122,0.22);
  --gold-text: #08111B;
  --gold-shadow-hover: 0 12px 36px rgba(215,181,122,0.28);
  --gold-shadow-large: 0 10px 32px rgba(215,181,122,0.24), 0 1px 0 rgba(255,255,255,0.12) inset;
  --gold-shadow-large-hover: 0 16px 42px rgba(215,181,122,0.28), 0 1px 0 rgba(255,255,255,0.12) inset;
  --gold-shadow-disabled: 0 10px 24px rgba(0,0,0,0.28);
  --gold-spinner-track: rgba(8,17,28,0.28);
  --solution-glow: radial-gradient(circle, rgba(127,166,211,0.14) 0%, transparent 70%);
  --solution-ring-color: #90B4D9;
  --solution-surface-top: #112339;
  --solution-surface-bottom: #0A1625;
  --solution-node-fill: #07111C;
  --solution-gold: #D7B57A;
  --solution-gold-bright: #F4D38C;
  --feature-card-bg: #0D1826;
  --feature-icon-bg: #14263B;
  --feature-icon-color: #F4D38C;
  --cta-bg: linear-gradient(135deg, #08111B 0%, #0F2033 55%, #173251 100%);
  --cta-grid-line: rgba(255,255,255,0.05);
  --cta-glow-right: radial-gradient(circle, rgba(245,206,132,0.16) 0%, transparent 68%);
  --cta-glow-left: radial-gradient(circle, rgba(92,132,180,0.24) 0%, transparent 68%);
  --cta-label: rgba(239,245,252,0.88);
  --cta-input-border: rgba(203,222,244,0.14);
  --cta-input-bg: rgba(8,17,28,0.50);
  --cta-input-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
  --cta-input-placeholder: rgba(192,210,230,0.56);
  --cta-input-focus-border: rgba(245,206,132,0.88);
  --cta-input-focus-bg: rgba(11,24,38,0.74);
  --cta-input-focus-ring: rgba(245,206,132,0.16);
  --cta-input-invalid-border: rgba(255,147,147,0.88);
  --cta-input-invalid-ring: rgba(255,124,124,0.12);
  --cta-feedback: rgba(239,245,252,0.82);
  --cta-feedback-error: #FFD1D1;
  --cta-feedback-success: #D8F6DA;
  --faq-item-bg: #0D1826;
  --faq-chevron-bg: #14263B;
  --faq-divider: rgba(172,197,228,0.12);
  --footer-bg: #07111C;
  --footer-border: rgba(172,197,228,0.12);
  --control-bg: #14263B;
  --control-bg-glass: rgba(13,24,38,0.82);
  --control-hover: rgba(172,197,228,0.12);
  --control-focus: rgba(245,206,132,0.34);
  --theme-toggle-bg: rgba(13,24,38,0.86);
  --theme-toggle-border: rgba(172,197,228,0.16);
  --theme-toggle-thumb: #D7B57A;
  --theme-toggle-icon-active: #F4D38C;
  --theme-toggle-icon-inactive: #8EA5BE;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-os);
  background: var(--surface-0);
  color: var(--text-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
button { font-family: var(--font-os); }
h1, h2, h3 { font-family: var(--font-ft); font-weight: 500; }

/* Re-enable document scrolling on the landing page only. */
html.symios-home-page,
body.symios-home-page {
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  position: static;
}

/* ── Keyframe Animations ───────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);     }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleInUp {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.2); }
  to   { opacity: 1; transform: scale(1);   }
}
@keyframes scaleInSmall {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pathDraw {
  from { stroke-dashoffset: 400; opacity: 0; }
  to   { stroke-dashoffset: 0;   opacity: 1; }
}
@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0;   }
}
@keyframes hexGlow {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1);   }
}
@keyframes faqSlideDown {
  from { opacity: 0; max-height: 0; }
  to   { opacity: 1; max-height: 600px; }
}
@keyframes faqSlideUp {
  from { opacity: 1; max-height: 600px; }
  to   { opacity: 0; max-height: 0; }
}
@keyframes goldShimmer {
  0%   { background-position: 0%   center; }
  100% { background-position: 200% center; }
}

/* ─────────────────────────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────────────────────────── */
#symios-navbar {
  position: fixed;
  top: calc(18px + env(safe-area-inset-top, 0px));
  left: 50%;
  display: flex;
  justify-content: center;
  transform: translateX(-50%) translateY(-130%);
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1),
              opacity  0.4s ease;
  opacity: 0;
  /* Let clicks reach the floating lang/theme controls (top-right); only the pill captures. */
  pointer-events: none;
}
#symios-navbar.nav-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
#symios-navbar .nav-pill {
  pointer-events: none;
}
#symios-navbar.nav-visible .nav-pill {
  pointer-events: auto;
}

.nav-pill {
  display: flex;
  align-items: center;
  gap: 43px;
  background-color: var(--control-bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 100px;
  padding: 9px 24px 7px;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
  white-space: nowrap;
  max-width: min(100%, calc(100vw - 24px));
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  list-style: none;
  padding-left: 0;
}

.nav-lang {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

a.nav-link-btn {
  text-decoration: none;
}

.nav-link-btn {
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-os);
  font-weight: 600;
  font-size: 14px;
  line-height: 21px;
  letter-spacing: 0.14px;
  background-image: linear-gradient(90deg, var(--text-mid) 0%, var(--text-mid) 100%);
  background-size: 200% auto;
  background-position: 0% center;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding: 4px 0;
  transition: transform 0.25s ease, letter-spacing 0.25s ease, background-position 0.25s ease;
}

.nav-link-btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--blue);
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: center;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-link-btn:focus-visible {
  outline: 2px solid var(--control-focus);
  outline-offset: 2px;
}

.nav-link-btn.active {
  background-image: linear-gradient(90deg, var(--blue) 0%, var(--blue) 100%);
}

.nav-link-btn.active::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Real hover only: touch devices skip :hover so the first tap navigates (iOS). */
@media (hover: hover) and (pointer: fine) {
  .nav-link-btn:hover {
    background-image: linear-gradient(90deg, var(--blue-dark) 0%, var(--gold) 50%, var(--blue) 100%);
    background-size: 200% auto;
    background-position: 0% center;
    animation: goldShimmer 1.8s linear infinite;
  }

  .lang-btn:hover {
    background-color: var(--control-hover);
    color: var(--blue);
  }

  .lang-btn.active:hover {
    background-color: var(--blue-dark);
    color: var(--white);
  }

  .theme-toggle-btn:hover {
    transform: translateY(-1px);
    border-color: var(--border-strong);
  }
}

/* ─────────────────────────────────────────────────────────────────
   HERO
───────────────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: var(--hero-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  /* Fixed #symios-navbar does not consume flow; reserve space for top offset + pill + notch (iOS). */
  padding-top: calc(72px + env(safe-area-inset-top, 0px));
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -10%;
  right: 15%;
  width: 500px;
  height: 500px;
  background: var(--hero-glow);
  pointer-events: none;
}

.hero-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 24px 60px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Hero Logo */
.hero-logo-wrap {
  width: 290px;
  height: 69px;
  margin-bottom: 52px;
  flex-shrink: 0;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.hero-logo-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-logo-image--dark {
  display: none;
}

html.symios-home-page[data-theme="dark"] .hero-logo-image--light {
  display: none;
}

html.symios-home-page[data-theme="dark"] .hero-logo-image--dark {
  display: block;
}

/* Hero text animations – staggered */
.hero-body1 {
  font-family: var(--font-os);
  font-size: clamp(0.97rem, 1.4vw, 1.1rem);
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 28px;
  max-width: 660px;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.2s forwards;
}

.hero-body2 {
  font-family: var(--font-ft);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.32;
  color: var(--blue-dark);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.3s forwards;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 0 44px;
}

.hero-body2h {
  font-family: var(--font-ft);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.32;
  color: var(--gold);
  margin-bottom: 0;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.35s forwards;
}

.hero-body2,
.hero-body2h {
  display: block;
}

.hero-cta-wrap {
  opacity: 0;
  animation: fadeInUp 0.7s ease 0.4s forwards;
}

/* Gold Button */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-gradient);
  background-size: 200% auto;
  color: var(--gold-text);
  border: none;
  border-radius: 8px;
  padding: 14px 30px;
  font-size: 14px;
  font-family: var(--font-os);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--gold-shadow);
  letter-spacing: 0.01em;
}
.btn-gold:hover {
  background-position: right center;
  box-shadow: var(--gold-shadow-hover);
  transform: translateY(-1px);
}

/* Large CTA button */
.btn-gold-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  background: var(--gold-gradient);
  background-size: 200% auto;
  color: var(--gold-text);
  border: none;
  border-radius: 9px;
  padding: 17px 38px;
  font-size: 15px;
  font-family: var(--font-os);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--gold-shadow-large);
  letter-spacing: 0.01em;
}

.cta-btn-labels {
  display: grid;
  align-items: center;
}

.cta-btn-label {
  grid-area: 1 / 1;
  white-space: nowrap;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cta-btn-label-default {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.cta-btn-label-loading {
  opacity: 0;
  transform: translateY(4px);
  visibility: hidden;
}

.btn-gold-lg.is-loading .cta-btn-label-default {
  opacity: 0;
  transform: translateY(-4px);
  visibility: hidden;
}

.btn-gold-lg.is-loading .cta-btn-label-loading {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.btn-gold-lg svg {
  flex-shrink: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.btn-gold-lg::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 38px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--gold-spinner-track);
  border-top-color: var(--blue-dark);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
}
.btn-gold-lg:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: var(--gold-shadow-large-hover);
}

.btn-gold-lg:disabled {
  cursor: wait;
  opacity: 0.82;
  transform: none;
  box-shadow: var(--gold-shadow-disabled);
}

.btn-gold-lg.is-loading svg {
  opacity: 0;
  transform: translateX(4px);
}

.btn-gold-lg.is-loading::after {
  opacity: 1;
  animation: symiosSpin 0.7s linear infinite;
}

@keyframes symiosSpin {
  from { transform: translateY(-50%) rotate(0deg); }
  to { transform: translateY(-50%) rotate(360deg); }
}

/* ─────────────────────────────────────────────────────────────────
   SECTION ANIMATION SYSTEM (IntersectionObserver)
   Elements start hidden; .is-visible on section triggers children
───────────────────────────────────────────────────────────────── */
.anim-fadeup {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.anim-scalein {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.is-visible .anim-fadeup,
.anim-fadeup.triggered { opacity: 1; transform: translateY(0); }
.is-visible .anim-scalein,
.anim-scalein.triggered { opacity: 1; transform: scale(1); }

/* Stagger delays */
.delay-1  { transition-delay: 0.07s; }
.delay-2  { transition-delay: 0.14s; }
.delay-3  { transition-delay: 0.21s; }
.delay-4  { transition-delay: 0.28s; }
.delay-5  { transition-delay: 0.35s; }
.delay-6  { transition-delay: 0.42s; }

/* ─────────────────────────────────────────────────────────────────
   SOLUTION SECTION
───────────────────────────────────────────────────────────────── */
#soluzione {
  background-color: var(--surface-1);
  padding: 150px 24px;
  position: relative;
  overflow: hidden;
}

.solution-glow-bg {
  position: absolute;
  top: 50%;
  right: -200px;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: var(--solution-glow);
  pointer-events: none;
}

.solution-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.solution-intro {
  font-family: var(--font-os);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 32px;
  font-weight: 500;
}

.solution-statement {
  font-family: var(--font-ft);
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
  color: var(--blue);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.solution-graphic-wrap {
  display: flex;
  justify-content: center;
}

/* ─────────────────────────────────────────────────────────────────
   SOLUTION GRAPHIC – SVG ANIMATIONS
───────────────────────────────────────────────────────────────── */
#solution-graphic {
  width: 420px;
  height: 420px;
  max-width: 100%;
}

/* SVG elements – animated when section is visible */
.sg-ring {
  opacity: 0;
  transform-origin: 210px 210px;
  transform: scale(0.2);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.sg-spoke {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  opacity: 0;
  transition: stroke-dashoffset 0.55s ease, opacity 0.55s ease;
}
.sg-node {
  opacity: 0;
  transform-origin: var(--ox, 210px) var(--oy, 210px);
  transform: scale(0);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.sg-hex {
  opacity: 0;
  transform-origin: 210px 210px;
  transform: scale(0.5);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.sg-inner-hex {
  opacity: 0;
  transform-origin: 210px 210px;
  transform: scale(0.3);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.sg-gold-ring {
  opacity: 0;
  transform-origin: 210px 210px;
  transform: scale(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.sg-center-glow {
  opacity: 0;
  transform-origin: 210px 210px;
  transform: scale(0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.sg-center-dot {
  opacity: 0;
  transform-origin: 210px 210px;
  transform: scale(0);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.sg-pulse {
  transform-origin: 210px 210px;
  opacity: 0;
}
.sg-bg-glow {
  opacity: 0;
  transition: opacity 1s ease;
}

/* When visible */
#soluzione.is-visible .sg-bg-glow { opacity: 1; }

#soluzione.is-visible .sg-ring {
  opacity: 1;
  transform: scale(1);
}

#soluzione.is-visible .sg-spoke {
  stroke-dashoffset: 0;
  opacity: 1;
}

#soluzione.is-visible .sg-node {
  opacity: 1;
  transform: scale(1);
}

#soluzione.is-visible .sg-hex {
  opacity: 1;
  transform: scale(1);
}

#soluzione.is-visible .sg-inner-hex {
  opacity: 1;
  transform: scale(1);
}

#soluzione.is-visible .sg-gold-ring {
  opacity: 1;
  transform: scale(1);
}

#soluzione.is-visible .sg-center-glow {
  opacity: 1;
  transform: scale(1);
}

#soluzione.is-visible .sg-center-dot {
  opacity: 1;
  transform: scale(1);
}

/* Pulse animation runs after section is visible */
#soluzione.is-visible .sg-pulse {
  animation: pulseRing 2.8s ease-out 1.3s infinite;
}

@keyframes pulseRing {
  0%   { transform: scale(1);   opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0;   }
}

/* ─────────────────────────────────────────────────────────────────
   FEATURES SECTION
───────────────────────────────────────────────────────────────── */
#architettura {
  background-color: var(--surface-3);
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background-color: var(--feature-card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 40px 32px;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background-color: var(--feature-icon-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.feature-icon svg {
  color: var(--feature-icon-color);
}

.feature-title {
  font-family: var(--font-ft);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 14px;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-family: var(--font-os);
  font-size: 14px;
  color: var(--text-sec);
  line-height: 1.75;
}

/* ─────────────────────────────────────────────────────────────────
   CTA SECTION
───────────────────────────────────────────────────────────────── */
#cta-section {
  background: var(--cta-bg);
  padding: 120px 24px;
  position: relative;
  overflow: hidden;
}

.cta-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--cta-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--cta-grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.cta-glow-right {
  position: absolute;
  bottom: -100px;
  right: 10%;
  width: 500px;
  height: 500px;
  background: var(--cta-glow-right);
  pointer-events: none;
}

.cta-glow-left {
  position: absolute;
  top: -60px;
  left: 8%;
  width: 400px;
  height: 400px;
  background: var(--cta-glow-left);
  pointer-events: none;
}

.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-form {
  width: min(100%, 520px);
  margin: 0 auto;
}

.cta-headline {
  font-family: var(--font-ft);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 52px;
}

.cta-email-wrap {
  width: 100%;
  margin: 0 0 24px;
  text-align: left;
}

.cta-email-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-os);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--cta-label);
}

.cta-email-input {
  width: 100%;
  min-height: 58px;
  border: 1px solid var(--cta-input-border);
  border-radius: 12px;
  padding: 0 18px;
  font-family: var(--font-os);
  font-size: 15px;
  color: var(--white);
  background: var(--cta-input-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--cta-input-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cta-email-input::placeholder {
  color: var(--cta-input-placeholder);
}

.cta-email-input:focus {
  outline: none;
  border-color: var(--cta-input-focus-border);
  background: var(--cta-input-focus-bg);
  box-shadow:
    0 0 0 4px var(--cta-input-focus-ring),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.cta-email-input.is-invalid {
  border-color: var(--cta-input-invalid-border);
  box-shadow:
    0 0 0 4px var(--cta-input-invalid-ring),
    inset 0 1px 0 rgba(255,255,255,0.10);
}

.cta-email-input.is-loading,
.cta-email-input:disabled {
  cursor: wait;
  opacity: 0.72;
}

.cta-submit-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cta-feedback {
  min-height: 22px;
  font-family: var(--font-os);
  font-size: 14px;
  line-height: 1.5;
  color: var(--cta-feedback);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cta-feedback.is-visible {
  opacity: 1;
}

.cta-feedback.is-error {
  color: var(--cta-feedback-error);
}

.cta-feedback.is-success {
  color: var(--cta-feedback-success);
}

/* ─────────────────────────────────────────────────────────────────
   FAQ SECTION
───────────────────────────────────────────────────────────────── */
#faq {
  background-color: var(--surface-3);
  padding: 100px 24px;
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-header {
  text-align: center;
  margin-bottom: 56px;
}

.faq-h2 {
  font-family: var(--font-ft);
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.faq-sub {
  font-family: var(--font-os);
  font-size: 0.97rem;
  color: var(--text-mid);
  line-height: 1.8;
  max-width: 480px;
  margin: 0 auto;
}

.faq-group { margin-bottom: 52px; }

.faq-group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 44px;
  margin-bottom: 16px;
}
.faq-group-heading:first-child { margin-top: 0; }

.faq-heading-line-left  {
  width: 20px; height: 1px;
  background-color: var(--gold);
  flex-shrink: 0;
}
.faq-heading-text {
  font-family: var(--font-os);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}
.faq-heading-line-right {
  flex: 1; height: 1px;
  background-color: rgba(201,168,106,0.22);
}

.faq-items { display: flex; flex-direction: column; gap: 10px; }

.faq-appear {
  will-change: opacity, transform;
}

.faq-item {
  background-color: var(--faq-item-bg);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}
.faq-item.open { box-shadow: var(--shadow-card-hover); }

.faq-question-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}

.faq-question-text {
  font-family: var(--font-os);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.45;
  flex: 1;
  transition: color 0.2s;
}
.faq-item.open .faq-question-text { color: var(--blue); }

.faq-chevron-wrap {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--faq-chevron-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s, transform 0.25s ease;
}
.faq-item.open .faq-chevron-wrap {
  background-color: var(--blue);
  transform: rotate(180deg);
}
.faq-chevron-wrap svg { color: var(--blue); transition: color 0.25s; }
.faq-item.open .faq-chevron-wrap svg { color: var(--white); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 800px;
  opacity: 1;
}

.faq-answer-inner {
  padding: 18px 24px 22px;
  border-top: 1px solid var(--faq-divider);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-answer-para {
  font-family: var(--font-os);
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.8;
}

/* ─────────────────────────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────────────────────────── */
#symios-footer {
  background-color: var(--footer-bg);
  border-top: 1px solid var(--footer-border);
  padding: 56px 24px 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 44px;
}

.footer-brand { max-width: 340px; }

.footer-logo-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: block;
  margin-bottom: 14px;
}

a.footer-logo-btn {
  text-decoration: none;
  color: inherit;
}

.footer-logo-image {
  display: block;
  width: 167px;
  height: 40px;
}

.footer-logo-image--dark {
  display: none;
}

html.symios-home-page[data-theme="dark"] .footer-logo-image--light {
  display: none;
}

html.symios-home-page[data-theme="dark"] .footer-logo-image--dark {
  display: block;
}

.footer-tagline {
  font-family: var(--font-os);
  font-size: 13px;
  color: var(--text-sec);
  line-height: 1.75;
  margin-bottom: 20px;
}

/* Language switcher */
.lang-label {
  font-family: var(--font-os);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.lang-switcher {
  display: flex;
  background-color: var(--control-bg);
  border: 1px solid var(--border-soft);
  border-radius: 9px;
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 16px;
  border-radius: 7px;
  border: none;
  font-family: var(--font-os);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  background-color: transparent;
  color: var(--text-mid);
  box-shadow: none;
  text-decoration: none;
  transition: all 0.2s ease-in-out;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--control-focus);
  outline-offset: 2px;
}

.lang-btn.active {
  background-color: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-pill);
}

.nav-lang-switcher {
  background-color: var(--control-bg-glass);
  border-radius: 999px;
}

.nav-lang-switcher .lang-btn {
  min-width: 38px;
  padding: 6px 12px;
  border-radius: 999px;
}

.page-preferences {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  min-width: 54px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--theme-toggle-border);
  border-radius: 999px;
  background-color: var(--theme-toggle-bg);
  color: var(--text-main);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
}

.theme-toggle-btn:focus-visible {
  outline: 2px solid var(--control-focus);
  outline-offset: 2px;
}

.theme-toggle-icons {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 35px;
  min-width: 35px;
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  line-height: 0;
  color: var(--theme-toggle-icon-inactive);
  transition: color 0.25s ease;
}

.theme-toggle-icon svg {
  display: block;
  width: 15px;
  height: 15px;
}

.theme-toggle-icon-sun svg {
  transform: translateX(0.5px);
}

.theme-toggle-thumb {
  position: absolute;
  top: 50%;
  left: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--theme-toggle-thumb);
  transform: translate3d(0, -50%, 0);
  box-shadow: 0 4px 10px rgba(0,0,0,0.16);
  transition: transform 0.25s ease, background-color 0.25s ease;
}

html.symios-home-page[data-theme="light"] .theme-toggle-icon-sun,
html.symios-home-page:not([data-theme="dark"]) .theme-toggle-icon-sun {
  color: var(--theme-toggle-icon-active);
}

html.symios-home-page[data-theme="dark"] .theme-toggle-icon-moon {
  color: var(--theme-toggle-icon-active);
}

html.symios-home-page[data-theme="dark"] .theme-toggle-thumb {
  transform: translate3d(19px, -50%, 0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(38,76,114,0.07);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-family: var(--font-os);
  font-size: 12px;
  color: var(--text-muted);
}

/* ─────────────────────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr !important; }
  .solution-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
}

@media (max-width: 768px) {
  /* Keep generous top padding: narrow viewports still use a tall fixed nav + safe area. */
  #hero {
    padding-top: calc(80px + env(safe-area-inset-top, 0px));
  }
  .hero-logo-wrap { width: 220px; height: 52px; margin-bottom: 36px; }
  #soluzione { padding: 80px 24px; }
  #architettura { padding: 80px 24px; }
  #cta-section { padding: 80px 24px; }
  #faq { padding: 60px 24px; }
  .cta-headline { margin-bottom: 36px; }
  .cta-email-wrap { margin-bottom: 20px; }
  .nav-pill { gap: 18px; padding: 9px 14px 7px; }
  .nav-lang { margin-left: 0; }
  .nav-lang-switcher .lang-btn { min-width: 34px; padding: 6px 10px; }
  .page-preferences { gap: 8px; }
  .theme-toggle-btn { width: 54px; min-width: 54px; }
  .footer-top { flex-direction: column; }
}

/* Navbar: two rows on narrow screens — row 1: links, row 2: language + theme */
@media (max-width: 640px) {
  #symios-navbar {
    width: 100%;
  }
  .nav-pill {
    width: 90%;
    max-width: 90vw;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    padding: 10px 14px 10px;
    border-radius: 20px;
  }
  .nav-lang {
    flex-basis: 100%;
    width: 100%;
    justify-content: center;
    margin-left: 0;
    padding-top: 7px;
    border-top: 1px solid var(--border-subtle);
  }
  .nav-lang .page-preferences {
    justify-content: center;
  }

  /* Two-row .nav-pill (~100px) + top offset + safe area — avoids overlap on Chrome iOS / small phones. */
  #hero {
    padding-top: calc(150px + env(safe-area-inset-top, 0px));
  }
}

@media (max-width: 480px) {
  .btn-gold-lg { padding: 14px 24px; font-size: 14px; }
  .cta-email-input { min-height: 54px; padding: 0 16px; }
  #solution-graphic { width: 300px; height: 300px; }
}
