/*
Theme Name: NLT Broker Inspired
Theme URI: https://openai.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Tema WordPress standalone in stile broker moderno con gradienti, card, CTA e sezione FAQ. Creato come base installabile e modificabile.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: nlt-broker-inspired
*/

:root {
  --bg: #f7f8fc;
  --surface: rgba(255,255,255,0.76);
  --surface-strong: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: rgba(16, 24, 40, 0.08);
  --brand-1: #ff6a3d;
  --brand-2: #ff965a;
  --brand-3: #6f7dff;
  --brand-4: #9c6bff;
  --shadow: 0 10px 30px rgba(16,24,40,.08);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 0%, rgba(111,125,255,.20), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(255,106,61,.18), transparent 26%),
    linear-gradient(180deg, #fdfdff 0%, #f6f8fc 42%, #eef2f8 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }
.section { padding: 84px 0; }
.section-title { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; margin: 0 0 12px; letter-spacing: -0.03em; }
.section-subtitle { font-size: 1.05rem; color: var(--muted); max-width: 720px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.75); backdrop-filter: blur(16px);
  color: #344054; font-size: .9rem; box-shadow: var(--shadow);
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,.65);
  border-bottom: 1px solid rgba(255,255,255,.7);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px;
}
.brand {
  display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: -.02em; font-size: 1.05rem;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-3), var(--brand-4) 38%, var(--brand-1));
  box-shadow: 0 8px 20px rgba(111,125,255,.25);
}
.menu-toggle { display: none; }
.primary-nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 24px; align-items: center; }
.primary-nav a { color: #344054; font-weight: 600; }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center; padding: 13px 18px; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: white; font-weight: 700; box-shadow: 0 12px 24px rgba(255,106,61,.28);
}

.hero { padding: 80px 0 40px; }
.hero-shell {
  position: relative; overflow: hidden; border-radius: 36px; padding: 52px;
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.64));
  border: 1px solid rgba(255,255,255,.8); box-shadow: var(--shadow);
}
.hero-shell::before {
  content: ""; position: absolute; inset: -15% auto auto -10%; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(111,125,255,.20) 0%, rgba(111,125,255,0) 70%);
}
.hero-shell::after {
  content: ""; position: absolute; inset: auto -8% -16% auto; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,106,61,.18) 0%, rgba(255,106,61,0) 68%);
}
.hero-grid {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 38px; align-items: center;
}
.hero-copy h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: .95; letter-spacing: -0.055em; margin: 16px 0 18px; }
.hero-copy p { font-size: 1.12rem; line-height: 1.7; color: var(--muted); max-width: 670px; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.button, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; padding: 15px 22px; border-radius: 999px;
  font-weight: 700; border: 1px solid transparent; transition: .22s ease;
}
.button.primary {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: white; box-shadow: 0 14px 30px rgba(255,106,61,.22);
}
.button.secondary {
  background: rgba(255,255,255,.88); border-color: rgba(16,24,40,.08); color: var(--text); box-shadow: var(--shadow);
}
.button:hover { transform: translateY(-1px); }

.hero-panel {
  position: relative; z-index: 2; padding: 22px; border-radius: 28px; background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.86); box-shadow: 0 18px 50px rgba(16,24,40,.08);
}
.mockup {
  border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line);
}
.mockup-toolbar {
  display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fafbff;
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: #d0d5dd; }
.mockup-body { padding: 22px; display: grid; gap: 16px; }
.mock-kpi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.mock-card, .glass-card {
  padding: 20px; border-radius: 22px; background: rgba(255,255,255,.82); border: 1px solid rgba(16,24,40,.08); box-shadow: var(--shadow);
}
.mock-card strong { display: block; font-size: 1.55rem; margin-bottom: 8px; }
.mock-form { display: grid; gap: 12px; }
.input {
  width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(16,24,40,.1); background: #fff; color: #344054;
}
.gradient-strip {
  height: 12px; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-3), var(--brand-4), var(--brand-1), var(--brand-2));
}

.feature-grid, .service-grid, .stats-grid, .faq-grid, .posts-grid {
  display: grid; gap: 22px;
}
.feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.posts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-icon {
  width: 54px; height: 54px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 18px; background: linear-gradient(135deg, rgba(111,125,255,.18), rgba(255,106,61,.14)); font-size: 1.5rem;
}
.glass-card h3 { margin: 16px 0 10px; font-size: 1.3rem; letter-spacing: -.02em; }
.glass-card p { margin: 0; color: var(--muted); line-height: 1.7; }

.section.center { text-align: center; }
.section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.18));
  border-top: 1px solid rgba(255,255,255,.65); border-bottom: 1px solid rgba(255,255,255,.65);
}
.stat strong { display: block; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; margin-bottom: 8px; }
.stat span { color: var(--muted); }

.cta-box {
  position: relative; overflow: hidden; border-radius: 34px; padding: 40px;
  background: linear-gradient(135deg, #121a2f 0%, #273268 52%, #ff6a3d 160%);
  color: white; box-shadow: 0 20px 60px rgba(16,24,40,.18);
}
.cta-box::before {
  content: ""; position: absolute; inset: auto -10% -35% auto; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 60%);
}
.cta-box h2 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; margin: 0 0 12px; letter-spacing: -.05em; }
.cta-box p { color: rgba(255,255,255,.82); max-width: 700px; font-size: 1.08rem; margin: 0 0 22px; }
.cta-box .button.secondary { background: rgba(255,255,255,.14); color: white; border-color: rgba(255,255,255,.24); }

.faq-item details {
  border-radius: 22px; background: rgba(255,255,255,.82); border: 1px solid rgba(16,24,40,.08); box-shadow: var(--shadow); padding: 18px 22px;
}
.faq-item summary { cursor: pointer; list-style: none; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { color: var(--muted); line-height: 1.7; margin: 14px 0 0; }

.site-footer {
  padding: 28px 0 50px; color: #475467;
}
.footer-shell {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px;
  padding: 24px 26px; border-radius: 24px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.8); box-shadow: var(--shadow);
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

.page-content,
.entry-content,
.archive-content { padding: 50px 0 80px; }
.entry-card, .archive-card {
  background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.84); border-radius: 28px; box-shadow: var(--shadow); padding: 34px;
}
.entry-title, .archive-title { font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1; letter-spacing: -.05em; margin: 0 0 18px; }
.entry-meta { color: var(--muted); margin-bottom: 20px; }
.entry-content p,
.entry-content li,
.archive-card p { color: #344054; line-height: 1.8; }

@media (max-width: 1024px) {
  .hero-grid,
  .feature-grid,
  .service-grid,
  .stats-grid,
  .posts-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex; border: 1px solid var(--line); background: rgba(255,255,255,.8); border-radius: 14px; padding: 10px 12px; font-weight: 700;
  }
  .primary-nav {
    position: absolute; left: 16px; right: 16px; top: calc(100% + 10px);
    background: rgba(255,255,255,.94); border: 1px solid rgba(16,24,40,.08); border-radius: 22px; box-shadow: var(--shadow);
    padding: 14px; display: none;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .header-cta { display: none; }
  .hero-shell { padding: 28px; }
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid,
  .service-grid,
  .stats-grid,
  .posts-grid { grid-template-columns: 1fr; }
  .mock-kpi-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section { padding: 62px 0; }
  .hero { padding-top: 42px; }
  .hero-copy h1 { font-size: 2.5rem; }
  .cta-box, .hero-shell, .entry-card, .archive-card { padding: 24px; }
}
