/* ============================================
   BUONO NETWORK – Design System
   Palette: #1558A0 (blu) + #29ABE2 (azzurro)
   ============================================ */

:root {
  --blue:       #1558A0;
  --blue-dark:  #0d3d74;
  --blue-light: #29ABE2;
  --blue-pale:  #e8f4fb;
  --success:    #10b981;

  --bg:         #ffffff;
  --bg-alt:     #f4f9fd;
  --bg-hero:    #f0f7ff;
  --text:       #111827;
  --text-muted: #6b7280;
  --border:     #d9e8f5;
  --white:      #ffffff;

  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 3px rgba(21,88,160,0.08);
  --shadow:     0 4px 20px rgba(21,88,160,0.12);
  --shadow-lg:  0 12px 40px rgba(21,88,160,0.18);
  --transition: 0.25s ease;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============ LAYOUT ============ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: linear-gradient(135deg, #061e3c 0%, #0d3d74 100%);
  color: var(--white);
}
.section-header { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-header h2 { margin: 16px 0 0; }
.section-header em { color: var(--blue-light); font-style: normal; }
.section-sub { color: var(--text-muted); margin-top: 16px; font-size: 1.1rem; }
.section-dark .section-header h2 { color: #fff; }
.section-dark .section-sub { color: rgba(255,255,255,0.7); }

/* ============ TYPOGRAPHY ============ */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.35; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 12px; }
p { color: var(--text-muted); line-height: 1.7; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid transparent; border-radius: 8px;
  font-family: inherit; font-weight: 600; cursor: pointer;
  transition: all var(--transition); white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--blue-light); color: #fff; border-color: var(--blue-light); }
.btn-primary:hover { background: #1a8fc2; border-color: #1a8fc2; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(41,171,226,0.38); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-sm  { padding: 8px 18px; font-size: 0.875rem; }
.btn-md  { padding: 12px 28px; font-size: 0.95rem; }
.btn-lg  { padding: 15px 36px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============ BADGE ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 8px 14px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(21,88,160,0.07) 0%, rgba(41,171,226,0.13) 100%);
  color: var(--blue);
  border: 1.5px solid rgba(41,171,226,0.4);
  box-shadow: 0 2px 10px rgba(41,171,226,0.15);
}
.badge::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(41,171,226,0.5);
}
.badge-outline {
  background: transparent;
  border: 1.5px solid rgba(21,88,160,0.35);
  color: var(--blue);
  box-shadow: none;
}
.badge-light {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.35);
  box-shadow: none;
}
.badge-light::before { background: linear-gradient(135deg, #fff, var(--blue-light)); box-shadow: none; }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #061e3c; color: #fff;
  border-radius: var(--radius); padding: 20px 28px;
  box-shadow: var(--shadow-lg); z-index: 9999;
  max-width: 620px; width: calc(100% - 48px);
  transition: transform 0.4s ease, opacity 0.4s ease;
  border: 1px solid rgba(41,171,226,0.2);
}
.cookie-banner.hidden { transform: translateX(-50%) translateY(140%); opacity: 0; pointer-events: none; }
.cookie-content { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-content p { color: rgba(255,255,255,0.82); font-size: 0.875rem; flex: 1; min-width: 200px; margin: 0; }
.cookie-content a { color: var(--blue-light); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }

/* ============ HEADER ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000; padding: 16px 0;
  transition: all var(--transition);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
}
.header.scrolled {
  box-shadow: var(--shadow);
  padding: 10px 0;
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* Logo */
.logo { display: flex; align-items: center; }
.logo img { height: 38px; width: auto; display: block; }
.logo-text { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; }
.logo-text .bn-blue { color: var(--blue); }
.logo-text .bn-cyan { color: var(--blue-light); }

.nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  padding: 8px 16px; border-radius: 8px;
  font-weight: 500; font-size: 0.95rem; color: var(--text);
  transition: all var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--blue); background: var(--blue-pale); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

/* ============ HERO – SFONDO BIANCO ============ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: var(--bg);
  padding-top: 80px;
}
/* Decorative background shape */
.hero-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse at 80% 50%, rgba(41,171,226,0.10) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(21,88,160,0.06) 0%, transparent 50%);
}
/* Large rounded shape right side */
.hero-bg::before {
  content: '';
  position: absolute;
  top: -10%; right: -8%;
  width: 55%;
  height: 120%;
  background: linear-gradient(140deg, var(--blue-pale) 0%, #ddf0fa 100%);
  border-radius: 40% 0 0 40%;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
  padding-top: 40px; padding-bottom: 80px;
  position: relative; z-index: 1;
}
.hero-text { color: var(--text); }
.hero-text .badge { margin-bottom: 24px; }
.hero-text h1 { color: var(--text); margin-bottom: 24px; }
.hero-text h1 em { color: var(--blue-light); font-style: normal; }
.hero-sub { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============ HERO ORBITAL ============ */
.hero-visual {
  position: relative;
  width: 440px;
  height: 440px;
  flex-shrink: 0;
}

/* Traccia circolare tratteggiata */
.orbit-track {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 360px; height: 360px;
  border-radius: 50%;
  border: 1.5px dashed rgba(41,171,226,0.35);
  pointer-events: none;
}

/* Logo al centro */
.orbit-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 110px; height: 110px;
  background: #fff;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  padding: 12px;
}
.orbit-center img { width: 100%; height: auto; }

/*
  Approccio anello:
  - .orbit-ring  = cerchio 360×360 centrato, ruota intorno al suo centro (= orbita)
  - .orbit-card  = card posizionata in cima all'anello, counter-ruota per restare dritta
*/
.orbit-ring {
  position: absolute;
  top: 50%; left: 50%;
  width: 360px; height: 360px;
  margin-top: -180px;
  margin-left: -180px;
  border-radius: 50%;
  animation: ring-spin 18s linear infinite;
  pointer-events: none;
}

.orbit-card {
  position: absolute;
  top: -32px;        /* metà altezza card ≈ 32px → aggancia a 12 o'clock */
  left: 50%;
  pointer-events: all;
  animation: card-counter 18s linear infinite;
  /* stile card */
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.card-icon  { font-size: 1.6rem; flex-shrink: 0; }
.card-label { font-size: 0.75rem; color: var(--text-muted); }
.card-stat  { font-size: 0.9rem; font-weight: 700; color: var(--blue); }

/* ring ruota, card counter-ruota: testo sempre dritto */
@keyframes ring-spin    { to { transform: rotate(360deg); } }
@keyframes card-counter {
  from { transform: translateX(-50%) rotate(0deg); }
  to   { transform: translateX(-50%) rotate(-360deg); }
}

/* Offset angolare: 4 card equidistanti (90° = 4.5s su periodo 18s) */
.orbit-ring:nth-child(3)  { animation-delay:    0s; }
.orbit-ring:nth-child(3)  .orbit-card { animation-delay:    0s; }
.orbit-ring:nth-child(4)  { animation-delay: -4.5s; }
.orbit-ring:nth-child(4)  .orbit-card { animation-delay: -4.5s; }
.orbit-ring:nth-child(5)  { animation-delay:   -9s; }
.orbit-ring:nth-child(5)  .orbit-card { animation-delay:   -9s; }
.orbit-ring:nth-child(6)  { animation-delay: -13.5s; }
.orbit-ring:nth-child(6)  .orbit-card { animation-delay: -13.5s; }

/* ============ SOLUTIONS GRID ============ */
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.solution-card {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: all var(--transition);
}
.solution-card:hover { border-color: var(--blue-light); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.solution-icon { font-size: 2rem; margin-bottom: 16px; }
.solution-card h3 { margin-bottom: 12px; }
.solution-card p { font-size: 0.9rem; margin-bottom: 20px; }
.link-arrow { font-size: 0.875rem; font-weight: 600; color: var(--blue); transition: color var(--transition); }
.link-arrow:hover { color: var(--blue-light); }

/* ============ STEPS ============ */
.steps-grid { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; align-items: start; }
.step { text-align: center; padding: 0 20px; }
.step-number {
  display: inline-flex; width: 56px; height: 56px;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff; font-size: 1.1rem; font-weight: 800;
  border-radius: 50%; margin-bottom: 20px;
}
.step h3 { margin-bottom: 12px; }
.step-connector { width: 60px; height: 2px; margin-top: 27px; flex-shrink: 0; background: linear-gradient(90deg, var(--blue) 0%, var(--blue-light) 100%); }

/* ============ TWO COL ============ */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.two-col-reverse { direction: rtl; }
.two-col-reverse > * { direction: ltr; }
.two-col-text .badge { margin-bottom: 20px; }
.two-col-text h2 { margin-bottom: 20px; }
.two-col-text p { margin-bottom: 16px; }
.two-col-text .btn { margin-top: 8px; }

.market-list { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.market-item { display: flex; gap: 16px; align-items: flex-start; }
.market-icon { font-size: 1.5rem; flex-shrink: 0; line-height: 1; }
.market-item strong { display: block; font-weight: 600; margin-bottom: 4px; color: var(--text); }
.market-item p { margin: 0; font-size: 0.9rem; }

.visual-card-stack { position: relative; height: 320px; }
.v-card { position: absolute; width: 300px; border-radius: 16px; padding: 24px; box-shadow: var(--shadow-lg); }
.v-card-1 { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%); color: #fff; top: 0; left: 0; transform: rotate(-4deg); }
.v-card-2 { background: linear-gradient(135deg, #0d3d74 0%, var(--blue) 100%); color: #fff; top: 60px; left: 60px; transform: rotate(3deg); }
.v-card-top { display: flex; justify-content: space-between; font-size: 0.85rem; opacity: 0.85; margin-bottom: 20px; }
.v-card-mid { font-family: 'Courier New', monospace; font-size: 0.95rem; letter-spacing: 0.08em; margin-bottom: 20px; opacity: 0.9; }
.v-card-bot { display: flex; justify-content: space-between; font-size: 0.85rem; }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.stat-box { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 32px 24px; text-align: center; }
.stat-num { font-size: 2.2rem; font-weight: 800; color: var(--blue-light); }
.stat-label { font-size: 0.875rem; color: rgba(255,255,255,0.65); margin-top: 6px; }
.section-dark .two-col-text h2 { color: #fff; }
.section-dark .two-col-text p { color: rgba(255,255,255,0.72); }

/* ============ INTEGRATIONS ============ */
.integrations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.integration-card {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 32px;
  text-align: center; transition: all var(--transition);
}
.integration-card:hover { border-color: var(--blue-light); box-shadow: var(--shadow); transform: translateY(-3px); }
.int-icon { font-size: 2.5rem; margin-bottom: 20px; }
.integration-card h4 { margin-bottom: 12px; }
.integration-card p { font-size: 0.9rem; }

/* ============ CONTACT ============ */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start; }
.contact-info .badge { margin-bottom: 20px; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: flex-start; gap: 12px; }
.contact-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.contact-item a, .contact-item span { color: var(--text); font-size: 0.95rem; }
.contact-item a:hover { color: var(--blue); }

.contact-form { background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.form-group input,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; color: var(--text);
  background: var(--bg-alt); transition: border-color var(--transition), box-shadow var(--transition); outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(41,171,226,0.15); background: var(--bg); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-check { display: flex; align-items: flex-start; gap: 12px; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; accent-color: var(--blue); }
.form-check label { font-size: 0.85rem; font-weight: 400; color: var(--text-muted); margin: 0; }
.form-check a { color: var(--blue); text-decoration: underline; }
.form-msg { margin-top: 12px; font-size: 0.875rem; text-align: center; min-height: 20px; }
.form-msg.success { color: var(--success); }
.form-msg.error   { color: #ef4444; }

/* ============ FOOTER ============ */
.footer { background: #061e3c; color: #fff; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo img { height: 32px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,0.58); font-size: 0.9rem; line-height: 1.7; }
.footer-links h5 { color: rgba(255,255,255,0.4); }
.footer-links a { display: block; color: rgba(255,255,255,0.72); font-size: 0.9rem; margin-bottom: 10px; transition: color var(--transition); }
.footer-links a:hover { color: var(--blue-light); }
.footer-contact h5 { color: rgba(255,255,255,0.4); }
.footer-contact p { color: rgba(255,255,255,0.72); font-size: 0.9rem; margin-bottom: 8px; }
.footer-contact a { color: rgba(255,255,255,0.72); }
.footer-contact a:hover { color: var(--blue-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; }
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.38); margin: 0; }

/* ============ PAGE HERO (pagine interne) ============ */
.page-hero {
  background: linear-gradient(140deg, #061e3c 0%, #0d3d74 60%, #1558A0 100%);
  color: #fff; padding: 140px 0 80px; text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 20px; }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 1.15rem; max-width: 640px; margin: 0 auto 32px; }
.page-hero .badge { background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.25); margin-bottom: 20px; }

/* ============ FEATURES GRID ============ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card { background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-lg); padding: 36px 32px; transition: all var(--transition); }
.feature-card:hover { border-color: var(--blue-light); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon { font-size: 2.2rem; margin-bottom: 20px; }
.feature-card h3 { margin-bottom: 12px; }
.feature-card p { font-size: 0.9rem; }

/* ============ OBJECTIVES ============ */
.objectives-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.objective-item { display: flex; align-items: center; gap: 16px; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px; transition: all var(--transition); }
.objective-item:hover { border-color: var(--blue-light); box-shadow: var(--shadow-sm); }
.obj-check { width: 40px; height: 40px; border-radius: 50%; background: rgba(41,171,226,0.12); color: var(--blue-light); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; flex-shrink: 0; }
.objective-item span { font-weight: 500; color: var(--text); }

/* ============ PRIVACY ============ */
.privacy-content { max-width: 800px; margin: 0 auto; padding: 80px 24px; }
.privacy-content h2 { margin-top: 48px; margin-bottom: 16px; }
.privacy-content h3 { margin-top: 32px; mar