:root {
  --bg: #0b0f14;
  --panel: #101827;
  --panel-soft: #0e1420;
  --text: #e8edf6;
  --muted: #a8b3c9;
  --accent: #f2b544;
  --accent-2: #7a1f2f;
  --border: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --shadow: 0 16px 50px rgba(4, 6, 12, 0.55);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px circle at 15% 10%, rgba(122, 31, 47, 0.25), transparent 50%),
    radial-gradient(900px circle at 85% 20%, rgba(242, 181, 68, 0.18), transparent 45%),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.lang {
  display: inline;
}

[data-language="it"] .lang-en {
  display: none;
}

[data-language="en"] .lang-it {
  display: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 15, 20, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #0b0f14;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-mark.small {
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.nav a {
  padding: 10px 12px;
  color: var(--muted);
  border-radius: 10px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.toggle-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease;
}

.toggle-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f14;
}

.hero {
  position: relative;
  overflow: visible;
  padding: 90px 20px 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px circle at 20% 30%, rgba(242, 181, 68, 0.15), transparent 50%),
    radial-gradient(800px circle at 80% 10%, rgba(122, 31, 47, 0.2), transparent 50%),
    linear-gradient(180deg, rgba(10, 14, 20, 0.6), rgba(10, 14, 20, 0.9));
  filter: blur(0px);
}

.hero-grid {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: 28px;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}

.hero-column {
  display: grid;
  gap: 18px;
}

.hero-copy h1 {
  font-family: "Playfair Display", "Space Grotesk", serif;
  font-size: clamp(32px, 4vw, 44px);
  margin: 16px 0 12px;
  line-height: 1.2;
}

.lead {
  color: var(--muted);
  margin: 0 0 18px;
  max-width: 640px;
}

.badge-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.1px;
}

.pill-dark {
  background: rgba(255, 255, 255, 0.08);
}

.pill-amber {
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.2), rgba(122, 31, 47, 0.18));
  border: 1px solid rgba(242, 181, 68, 0.5);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
}

.cta {
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f14;
  box-shadow: var(--shadow);
}

.cta.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.cta:hover {
  transform: translateY(-2px);
}

.proof-links {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.proof-links a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.hero-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: var(--shadow);
  align-self: start;
  display: flex;
  flex-direction: column;
}

.hero-card .card-title {
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: grid;
  gap: 10px;
}

.hero-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.hero-card li::before {
  content: "•";
  color: var(--accent);
  position: relative;
  top: -1px;
}

.card-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.portrait {
  border: 1px solid var(--card-border);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: var(--shadow);
}

.portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait figcaption {
  padding: 10px 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.35);
}

.portrait-primary {
  max-height: 640px;
  transform: translateY(-16px);
}

.portrait-secondary {
  max-width: 560px;
  justify-self: end;
}

.section {
  padding: 80px 20px;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.04));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.client-spot {
  padding-bottom: 60px;
}

.client-spot .section-shell {
  max-width: 1080px;
}

.client-spot .split {
  gap: 14px;
}

.client-copy .section-lead {
  margin-bottom: 10px;
}

.client-copy .pill-row {
  margin-top: 8px;
}

.client-spot .portrait-secondary {
  max-width: 460px;
}

.section-shell {
  max-width: 1180px;
  margin: 0 auto;
}

.section-header {
  max-width: 900px;
  margin: 0 auto 28px;
  text-align: center;
}

.section-header.narrow {
  max-width: 760px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  margin: 0 0 10px;
}

.section h2 {
  font-family: "Playfair Display", "Space Grotesk", serif;
  font-size: clamp(26px, 3vw, 34px);
  margin: 0 0 10px;
}

.section-lead {
  color: var(--muted);
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}

.info-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.split {
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
}

.focus-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 8px;
}

.focus-list li {
  color: var(--muted);
  display: flex;
  gap: 10px;
}

.focus-list li::before {
  content: "—";
  color: var(--accent);
}

.book-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.book-card {
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}

.book-cover {
  width: 100%;
  max-width: 140px;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}

.book-card a {
  color: var(--text);
}

.book-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.book-card a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
}

.milestone {
  background: radial-gradient(700px circle at 20% 20%, rgba(242, 181, 68, 0.15), transparent 60%),
    rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.milestone-number {
  font-size: 64px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.milestone-text {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.milestone-note {
  color: var(--muted);
  margin-top: 8px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.process {
  display: grid;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0b0f14;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.step-title {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.step p {
  margin: 4px 0 0;
  color: var(--muted);
}

.eyebrow-soft {
  letter-spacing: 0.15em;
  color: var(--accent);
  font-size: 11px;
  text-transform: uppercase;
  margin: 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.blog-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}

.blog-card h3 {
  margin: 2px 0 4px;
  font-size: 20px;
}

.excerpt {
  margin: 0;
  color: var(--muted);
}

.cta-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(242, 181, 68, 0.55);
}

.bot-zone .split {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.bot-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ghost-pill {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  appearance: none;
  font: inherit;
  transition: transform 0.15s ease, border 0.2s ease;
}

.ghost-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
}

.bot-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bot-chat {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-line {
  padding: 10px 12px;
  border-radius: 12px;
  line-height: 1.4;
}

.chat-line.user {
  background: rgba(242, 181, 68, 0.18);
  color: var(--text);
}

.chat-line.bot {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.bot-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  align-items: start;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-group label {
  font-size: 13px;
  color: var(--muted);
}

.bot-form input,
.bot-form select,
.bot-form textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--text);
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 14px;
  font-family: inherit;
  transition: border 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.bot-form input:focus,
.bot-form select:focus,
.bot-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(242, 181, 68, 0.25);
  transform: translateY(-1px);
}

.bot-form input::placeholder,
.bot-form textarea::placeholder {
  color: var(--muted);
}

.field-wide {
  grid-column: 1 / -1;
}

.field-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bot-note {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.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;
}

.cta-section {
  padding: 90px 20px;
}

.cta-card {
  max-width: 1100px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(242, 181, 68, 0.2), rgba(122, 31, 47, 0.35));
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  color: var(--text);
}

.cta-copy h2 {
  margin: 6px 0 8px;
}

.cta-copy p {
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--text);
}

.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-card .cta.primary {
  background: #0b0f14;
  color: var(--text);
  box-shadow: none;
}

.cta-card .cta.ghost {
  border: 1px solid rgba(11, 15, 20, 0.3);
  color: #0b0f14;
}

.contact-links {
  display: grid;
  gap: 10px;
  align-content: start;
}

.contact-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item .label {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-item a {
  color: var(--text);
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 20px 40px;
  background: #0a0e14;
}

.footer-shell {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: center;
}

.footer-title {
  font-weight: 700;
}

.footer-subtitle {
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.footer-note {
  color: var(--muted);
  font-size: 14px;
}

.footer-addresses {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
}

.footer-addresses a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .cta-card {
    grid-template-columns: 1fr;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .portrait-secondary {
    justify-self: start;
    max-width: 100%;
  }

  .hero-below {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
    justify-items: start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 70px;
  }

  .site-header {
    position: sticky;
  }

  .nav {
    gap: 8px;
  }

  .hero-card {
    order: -1;
  }

  .cta {
    width: 100%;
    justify-content: center;
  }

  .bot-form {
    grid-template-columns: 1fr;
  }

  .field-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .portrait-primary {
    transform: none;
  }
}
