/* ==========================================================================
   Core Credit AI — sito istituzionale (design v3 — high impact)
   ========================================================================== */
:root {
  --primary: #0b3d91;
  --primary-600: #0a3679;
  --primary-dark: #082b66;
  --navy: #060d1a;
  --navy-2: #0a1730;
  --accent: #1fa97c;
  --accent-dark: #147a59;
  --accent-bright: #3ee6a8;
  --blue-bright: #6ea8ff;
  --ink: #16202e;
  --muted: #5a6472;
  --bg: #ffffff;
  --bg-alt: #f2f6fc;
  --border: #dde6f1;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(11, 61, 145, 0.06);
  --shadow: 0 12px 34px rgba(11, 61, 145, 0.11);
  --shadow-lg: 0 24px 64px rgba(8, 43, 102, 0.18);
  --glow-accent: 0 0 40px rgba(62, 230, 168, 0.35);
  --glow-blue: 0 0 60px rgba(110, 168, 255, 0.28);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --grad-brand: linear-gradient(92deg, var(--accent-bright), #23bd8b 45%, var(--blue-bright));
  --grad-primary: linear-gradient(180deg, #1456c4, var(--primary-600));
  --grad-accent: linear-gradient(180deg, #2bd69e, var(--accent-dark));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
::selection { background: rgba(31, 169, 124, 0.25); }
:focus-visible { outline: 3px solid rgba(31, 169, 124, 0.55); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1160px, 92%); margin-inline: auto; }
.narrow { width: min(760px, 92%); }
.center { text-align: center; margin-top: 2.6rem; }

/* Barra di avanzamento scroll (iniettata da main.js) */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 300;
  height: 3px; width: 0;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(62, 230, 168, 0.6);
  transition: width 0.08s linear;
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled, .site-header.solid {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; transition: color 0.3s; }
.scrolled .brand, .solid .brand { color: var(--primary); }
.brand-mark { width: 34px; height: 34px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; letter-spacing: -0.02em; }
.brand-name em { font-style: normal; color: var(--accent-bright); transition: color 0.3s; }
.scrolled .brand-name em, .solid .brand-name em { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 1.35rem; }
.site-nav a {
  font-weight: 500; color: rgba(255, 255, 255, 0.85); font-size: 0.93rem;
  position: relative; transition: color 0.2s;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 2px; border-radius: 2px;
  background: var(--grad-brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.25s ease;
}
.site-nav a:not(.btn):hover::after { transform: scaleX(1); }
.site-nav a:hover { color: #fff; }
.scrolled .site-nav a, .solid .site-nav a { color: var(--ink); }
.scrolled .site-nav a:hover, .solid .site-nav a:hover { color: var(--primary); }
.site-nav a.btn { color: #fff !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; transition: 0.2s; }
.scrolled .nav-toggle span, .solid .nav-toggle span { background: var(--ink); }

/* ---- Bottoni ---- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  padding: 0.62rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.18s, box-shadow 0.25s, filter 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 0.95rem 2.1rem; font-size: 1.03rem; }
.btn-primary {
  background: var(--grad-primary);
  color: #fff !important; box-shadow: var(--shadow);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: var(--shadow-lg); }
.btn-accent {
  background: var(--grad-accent);
  color: #fff !important; box-shadow: 0 12px 34px rgba(31, 169, 124, 0.4);
}
.btn-accent:hover { box-shadow: 0 16px 44px rgba(31, 169, 124, 0.55); }
/* effetto shine sul passaggio del mouse */
.btn-primary::before, .btn-accent::before {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn-primary:hover::before, .btn-accent:hover::before { left: 130%; }
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35); color: #fff;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--accent-bright); color: var(--accent-bright); }
.on-light .btn-ghost, .btn-ghost.on-light { border-color: var(--border); color: var(--primary); background: rgba(255, 255, 255, 0.7); }
.on-light .btn-ghost:hover, .btn-ghost.on-light:hover { border-color: var(--primary); color: var(--primary); }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  margin-top: -76px; padding-top: 76px;
  background:
    radial-gradient(1000px 620px at 85% -10%, rgba(31, 169, 124, 0.16), transparent 60%),
    radial-gradient(1200px 700px at 10% 110%, rgba(20, 86, 196, 0.25), transparent 55%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 55%, #0b1f47 100%);
  color: #fff;
}
#hero-3d {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 13, 26, 0.25) 0%, transparent 35%, transparent 70%, rgba(6, 13, 26, 0.55) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 3.4rem;
  align-items: center; padding: 6.5rem 0 7.5rem; min-height: min(88vh, 860px);
}
.eyebrow {
  display: inline-block;
  color: var(--accent-bright); font-weight: 600;
  letter-spacing: 0.04em; font-size: 0.83rem; margin-bottom: 1.2rem;
  background: rgba(62, 230, 168, 0.09); border: 1px solid rgba(62, 230, 168, 0.3);
  padding: 0.4rem 1rem; border-radius: 999px;
  backdrop-filter: blur(4px);
  animation: eyebrow-pulse 3.2s ease-in-out infinite;
}
@keyframes eyebrow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(62, 230, 168, 0.25); }
  50% { box-shadow: 0 0 22px 3px rgba(62, 230, 168, 0.18); }
}
h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.4vw, 4.1rem); line-height: 1.05;
  letter-spacing: -0.035em; color: #fff; font-weight: 800;
}
h1 .accent {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 1.5rem 0 2.1rem; font-size: 1.18rem; color: #b9c6dd; max-width: 34rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 1.4rem; list-style: none; margin-top: 2.2rem; flex-wrap: wrap; }
.hero-badges li { font-size: 0.88rem; font-weight: 600; color: #93a4c0; }
.hero-badges li::before { content: "✓ "; color: var(--accent-bright); font-weight: 800; }

/* Mock card flottante (glass) */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; position: relative; perspective: 900px; }
.mock-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), var(--glow-blue);
  padding: 1.8rem; width: min(370px, 100%);
  display: grid; gap: 0.95rem;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  animation: float-y 6s ease-in-out infinite;
}
@keyframes float-y {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}
.mock-head { margin-bottom: 0.1rem; }
.mock-chip {
  font-size: 0.72rem; font-weight: 700; color: var(--blue-bright);
  background: rgba(110, 168, 255, 0.12); border: 1px solid rgba(110, 168, 255, 0.25);
  padding: 0.28rem 0.75rem; border-radius: 999px;
}
.mock-row { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; font-weight: 500; color: #dce6f5; }
.mock-row.small { font-size: 0.85rem; color: #93a4c0; }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-dot.ok { background: var(--accent-bright); box-shadow: 0 0 0 4px rgba(62, 230, 168, 0.18), 0 0 14px rgba(62, 230, 168, 0.5); }
.mock-score { display: flex; justify-content: space-between; align-items: baseline; margin-top: 0.3rem; }
.mock-score-label { color: #93a4c0; font-size: 0.85rem; }
.mock-score-value {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mock-bar { height: 10px; background: rgba(255, 255, 255, 0.1); border-radius: 999px; overflow: hidden; }
.mock-bar span {
  display: block; height: 100%; border-radius: 999px;
  background: var(--grad-brand);
  box-shadow: 0 0 14px rgba(62, 230, 168, 0.55);
  animation: bar-shimmer 2.6s ease-in-out infinite;
}
@keyframes bar-shimmer { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.35); } }
.mock-toast {
  background: rgba(10, 23, 48, 0.85); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #dce6f5; font-size: 0.82rem; font-weight: 500;
  padding: 0.65rem 1.05rem; border-radius: 12px; box-shadow: 0 16px 44px rgba(0, 0, 0, 0.4);
  transform: translateX(8%);
  animation: float-y 7s ease-in-out 0.8s infinite;
}

/* Numeri — strip che si sovrappone al fondo dell'hero */
.stats-section { position: relative; z-index: 3; margin-top: -3.4rem; padding-bottom: 0.5rem; }
.stats-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 1.8rem 1.2rem;
}
.stat { text-align: center; display: grid; gap: 0.15rem; }
.stat-value {
  font-family: var(--font-display);
  font-size: 2.15rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--primary-dark); line-height: 1.15;
}
.stat-label { font-size: 0.88rem; font-weight: 500; color: var(--muted); }

/* ---- Sezioni ---- */
.section { padding: 6rem 0 5rem; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 460px at 85% 0%, rgba(31, 169, 124, 0.16), transparent 55%),
    radial-gradient(700px 400px at 5% 100%, rgba(110, 168, 255, 0.12), transparent 55%),
    linear-gradient(165deg, var(--navy-2), var(--primary-dark));
  color: #fff;
}
.section-dark .section-title, .section-dark .section-sub { color: #fff; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--primary-dark);
  letter-spacing: -0.03em; font-weight: 800; line-height: 1.15;
}
.section-sub { color: var(--muted); margin-top: 0.7rem; max-width: 42rem; font-size: 1.03rem; }
.section-dark .section-sub { color: #b9c6dd; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin-top: 2.8rem; }
.step {
  position: relative;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 1.8rem 1.5rem; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c7d7ee; }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 13px; font-family: var(--font-display);
  background: var(--grad-primary);
  color: #fff; font-weight: 800; margin-bottom: 1.05rem;
  box-shadow: 0 8px 22px rgba(11, 61, 145, 0.3);
  transition: transform 0.25s;
}
.step:hover .step-num { transform: scale(1.08) rotate(-4deg); }
.step h3 { font-family: var(--font-display); font-size: 1.06rem; margin-bottom: 0.5rem; color: var(--primary-dark); letter-spacing: -0.01em; }
.step p { font-size: 0.92rem; color: var(--muted); }

/* Tabs + cards */
.tabs { display: flex; gap: 0.6rem; margin: 2.1rem 0 1.7rem; }
.tab {
  padding: 0.55rem 1.5rem; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; font-weight: 600; cursor: pointer; font-size: 0.95rem; color: var(--muted);
  font-family: inherit; transition: all 0.2s;
}
.tab.active {
  background: var(--grad-primary);
  border-color: transparent; color: #fff; box-shadow: 0 8px 22px rgba(11, 61, 145, 0.3);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.cards-3 { margin-top: 2.8rem; }
.card {
  position: relative;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 1.7rem 1.5rem; transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 1.5rem; right: 1.5rem; height: 3px;
  border-radius: 0 0 4px 4px; background: var(--grad-brand);
  opacity: 0; transition: opacity 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c7d7ee; }
.card:hover::before { opacity: 1; }
.card h3 { font-family: var(--font-display); font-size: 1.03rem; color: var(--primary-dark); margin-bottom: 0.45rem; letter-spacing: -0.01em; }
.card p { font-size: 0.92rem; color: var(--muted); }
.card-dark {
  background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}
.card-dark h3 { color: #fff; }
.card-dark p { color: #b9c6dd; }
.card-dark:hover { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4); border-color: rgba(62, 230, 168, 0.45); }

/* Trust cards */
.trust-icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(31, 169, 124, 0.18), rgba(31, 169, 124, 0.08));
  color: var(--accent-dark); margin-bottom: 1.05rem;
  transition: transform 0.25s;
}
.trust:hover .trust-icon { transform: scale(1.08); }
.trust-icon svg { width: 24px; height: 24px; }

/* Split (AI / simulatore) */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.4rem; align-items: center; }
.feature-list { list-style: none; margin: 1.7rem 0; display: grid; gap: 0.95rem; }
.feature-list li { padding-left: 1.8rem; position: relative; color: var(--muted); font-size: 0.97rem; }
.feature-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem;
  color: #fff; background: var(--grad-accent); border-radius: 50%;
  font-size: 0.7rem; font-weight: 800;
}
.feature-list strong { color: var(--ink); }
.disclaimer { font-size: 0.8rem; color: var(--muted); border-left: 3px solid var(--accent); padding-left: 0.95rem; }

.chat-mock { display: grid; gap: 0.85rem; }
.chat-bubble {
  padding: 0.95rem 1.15rem; border-radius: 18px; font-size: 0.93rem; max-width: 92%;
  box-shadow: var(--shadow-sm); background: #fff; border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
}
.chat-bubble.user {
  background: var(--grad-primary); color: #fff;
  justify-self: end; border: none;
  border-bottom-right-radius: 6px; border-bottom-left-radius: 18px;
}

/* Simulatore di rata */
.sim-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 1.9rem; display: grid; gap: 1.3rem;
}
.sim-row { display: grid; gap: 0.55rem; }
.sim-label { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.sim-label strong { color: var(--primary-dark); font-size: 1rem; }
.sim-card input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent)); outline: none; cursor: pointer;
}
.sim-card input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary); box-shadow: var(--shadow-sm); cursor: grab;
  transition: transform 0.15s;
}
.sim-card input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.15); }
.sim-card input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  border: 3px solid var(--primary); box-shadow: var(--shadow-sm); cursor: grab;
}
.sim-result {
  display: grid; gap: 0.1rem; text-align: center;
  background: linear-gradient(160deg, #eef4fd, #e6fbf3);
  border: 1px solid var(--border); border-radius: 14px; padding: 1.15rem;
}
.sim-result-label { font-size: 0.8rem; font-weight: 600; color: var(--muted); }
.sim-result-value {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; color: var(--primary-dark);
}
.sim-result-total { font-size: 0.8rem; color: var(--muted); }
.sim-note {
  font-size: 0.8rem; color: var(--muted); border-left: 3px solid var(--accent);
  padding-left: 0.95rem; margin-top: 1.2rem;
}

/* FAQ */
.faq-list { margin-top: 2rem; display: grid; gap: 0.8rem; }
.faq-list details {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 1.1rem 1.35rem; transition: box-shadow 0.25s, border-color 0.25s;
}
.faq-list details[open] { box-shadow: var(--shadow-sm); border-color: #c7d7ee; }
.faq-list summary {
  font-weight: 600; cursor: pointer; color: var(--primary-dark);
  list-style: none; position: relative; padding-right: 2rem; font-size: 0.99rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.35rem; font-weight: 400; color: var(--accent);
  transition: transform 0.25s;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { margin-top: 0.7rem; color: var(--muted); font-size: 0.93rem; }

/* CTA banner */
.cta-banner {
  position: relative; overflow: hidden;
  background:
    radial-gradient(760px 340px at 80% 10%, rgba(62, 230, 168, 0.22), transparent 60%),
    radial-gradient(600px 300px at 10% 100%, rgba(110, 168, 255, 0.16), transparent 60%),
    linear-gradient(160deg, var(--navy-2), var(--primary-dark));
  padding: 5rem 0;
}
.cta-inner { text-align: center; color: #fff; }
.cta-inner h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -0.025em; }
.cta-inner p { color: #b9c6dd; margin: 0.75rem 0 1.9rem; font-size: 1.06rem; }

/* Form */
.contact-form { margin-top: 2.3rem; display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { display: grid; gap: 0.35rem; font-weight: 600; font-size: 0.9rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 0.78rem 1rem; border: 1px solid var(--border); border-radius: 12px;
  font: inherit; font-weight: 400; background: #fff; transition: border-color 0.18s, box-shadow 0.18s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(11, 61, 145, 0.12);
}
/* Honeypot anti-bot: invisibile agli umani, i bot lo compilano */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex !important; gap: 0.6rem; align-items: flex-start; font-weight: 400 !important; font-size: 0.85rem !important; color: var(--muted); }
.consent input { margin-top: 0.25rem; accent-color: var(--primary); }
.form-feedback { font-weight: 600; min-height: 1.4em; }
.form-feedback.ok { color: var(--accent-dark); }
.form-feedback.err { color: #c0392b; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c6d8; padding: 3.8rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { color: #fff; font-size: 1.22rem; margin-bottom: 0.5rem; }
.footer-brand em { font-style: normal; color: var(--accent-bright); }
.site-footer h4 { color: #fff; font-size: 0.82rem; margin-bottom: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer a { display: block; color: #b9c6d8; font-size: 0.92rem; margin-bottom: 0.5rem; transition: color 0.15s; }
.site-footer a:hover { color: #fff; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 2.6rem; padding-top: 1.5rem; }
.footer-legal p { font-size: 0.78rem; color: #7e8ca0; margin-bottom: 0.6rem; }

/* Cookie banner */
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  padding: 1rem; display: flex; justify-content: center;
  animation: cc-slide 0.35s ease;
}
@keyframes cc-slide { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.cc-box {
  width: min(680px, 100%); background: #fff; border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow-lg); padding: 1.4rem 1.5rem;
}
.cc-box h3 { font-size: 1.02rem; color: var(--primary-dark); margin-bottom: 0.4rem; }
.cc-box p { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.9rem; }
.cc-prefs { border-top: 1px solid var(--border); margin-bottom: 0.9rem; }
.cc-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.7rem 0; border-bottom: 1px solid var(--border); font-size: 0.86rem;
  cursor: pointer;
}
.cc-row small { color: var(--muted); }
.cc-row input { width: 20px; height: 20px; accent-color: var(--accent); flex-shrink: 0; }
.cc-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.cc-btn {
  padding: 0.55rem 1.2rem; border-radius: 999px; font: inherit; font-weight: 600;
  font-size: 0.88rem; cursor: pointer; border: 2px solid transparent; transition: filter 0.15s;
}
.cc-btn:hover { filter: brightness(1.06); }
.cc-primary { background: var(--grad-primary); color: #fff; }
.cc-outline { background: #fff; border-color: var(--border); color: var(--primary); }
.cc-ghost { background: none; color: var(--muted); text-decoration: underline; }

/* ---- Reveal on scroll + varianti ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.9, 0.3, 1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-scale { opacity: 0; transform: scale(0.94) translateY(14px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.9, 0.3, 1); }
.reveal-scale.visible { opacity: 1; transform: none; }
/* figli di .stagger: ritardo progressivo assegnato da main.js */
.stagger > .reveal { transition-delay: var(--stagger-delay, 0s); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-scale { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .btn:hover, .card:hover, .step:hover { transform: none; }
  .mock-card, .mock-toast, .eyebrow, .mock-bar span { animation: none !important; }
  .btn-primary::before, .btn-accent::before { display: none; }
  .scroll-progress { display: none; }
}

/* ---- Hero interno pagine secondarie ---- */
.page-hero {
  margin-top: -76px; padding: 9.5rem 0 4.2rem;
  background:
    radial-gradient(900px 420px at 85% -20%, rgba(31, 169, 124, 0.18), transparent 60%),
    radial-gradient(700px 380px at 5% 120%, rgba(110, 168, 255, 0.14), transparent 55%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 60%, #0b1f47 100%);
  color: #fff;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; color: #fff;
}
.page-hero .page-sub { color: #b9c6dd; margin-top: 0.8rem; max-width: 44rem; font-size: 1.05rem; }
.page-hero a { color: var(--accent-bright); text-decoration: underline; text-underline-offset: 3px; }
.page-hero a:hover { color: #fff; }

/* Pagine legali */
.legal-page { padding: 3.6rem 0 4.5rem; }
.legal-page h1 { margin-bottom: 1.5rem; color: var(--primary-dark); font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
.legal-page h2 { color: var(--primary-dark); margin: 2rem 0 0.8rem; font-size: 1.3rem; font-family: var(--font-display); letter-spacing: -0.01em; }
.legal-page p, .legal-page li { color: var(--muted); margin-bottom: 0.8rem; }
.legal-page ul { padding-left: 1.4rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner, .split { grid-template-columns: 1fr; gap: 2.6rem; }
  .hero-inner { padding-top: 4rem; min-height: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; }
  .mock-toast { display: none; }
}
@media (max-width: 640px) {
  .site-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 1.2rem 4%; gap: 1rem; border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { color: var(--ink) !important; }
  .site-nav a.btn { color: #fff !important; }
  .nav-toggle { display: block; }
  .steps, .cards, .form-row { grid-template-columns: 1fr; }
  .hero-inner { padding: 3.2rem 0 5rem; }
  .section { padding: 3.6rem 0 3rem; }
  .stats-section { margin-top: -2.6rem; }
  .page-hero { padding: 7.5rem 0 3.2rem; }
}

/* Risorse: glossario e guide */
.gloss-index { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.6rem; }
.gloss-index a {
  padding: 0.3rem 0.85rem; border-radius: 999px; border: 1px solid var(--border);
  background: #fff; font-size: 0.85rem; font-weight: 600; color: var(--primary);
  transition: all 0.18s;
}
.gloss-index a:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-1px); }
.gloss dt { font-weight: 700; color: var(--primary-dark); margin-top: 1rem; font-size: 1rem; }
.gloss dd { color: var(--muted); margin: 0.25rem 0 0; font-size: 0.94rem; }
.legal-page article { margin-bottom: 2.2rem; }
.legal-page article ul, .legal-page article ol { padding-left: 1.4rem; }
.legal-page article li { margin-bottom: 0.5rem; color: var(--muted); }
.legal-page article li strong { color: var(--ink); }
.cta-inline {
  margin-top: 2.5rem; background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 20px; padding: 1.5rem; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.cta-inline p { margin: 0; color: var(--ink); }
