/* ═══════════════════════════════════════════════════════════════════════
   GnamSpace flat — design system (token della homepage crea-menu.html)
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --ink: #1A1611;
  --ink-soft: #4A4138;
  --terracotta: #C3492E;
  --terracotta-deep: #9E3820;
  --peach: #E8A06B;
  --cream: #F5EFE4;
  --cream-deep: #EBE2D1;
  --paper: #FDFAF3;
  --gold: #C9A961;
  --olive: #3B4A2C;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Manrope', -apple-system, sans-serif;
  --script: 'Caveat', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
}
.site-main { flex: 1; padding-top: 72px; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

/* NAV:START */
/* ─── Navbar ─────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253, 250, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cream-deep);
}
.nav-wrap {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 72px; display: flex; align-items: center; gap: 28px;
}
.nav-logo {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  letter-spacing: -0.02em; text-decoration: none; color: var(--ink);
}
.nav-dot { color: var(--terracotta); }
.nav-menu {
  display: flex; gap: 24px; list-style: none; margin: 0 auto; padding: 0;
}
.nav-menu a {
  text-decoration: none; font-size: 0.92rem; font-weight: 600;
  color: var(--ink-soft); transition: color .15s;
}
.nav-menu a:hover { color: var(--terracotta); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login { text-decoration: none; font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.nav-login:hover { color: var(--ink); }
.nav-register {
  text-decoration: none; font-size: .92rem; font-weight: 700; color: #fff;
  background: var(--terracotta); padding: 10px 22px; border-radius: 999px;
  transition: transform .15s, box-shadow .15s;
}
.nav-register:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(195,73,46,.3); }
@media (max-width: 760px) { .nav-menu { display: none; } }

/* NAV:END */
/* ─── Layout helpers ─────────────────────────────────────────────────── */
.container        { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px;  margin: 0 auto; padding: 0 24px; }
.container-mid    { max-width: 960px;  margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }

/* ─── Tipografia ─────────────────────────────────────────────────────── */
.h1-serif {
  font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem); line-height: 1.08;
  letter-spacing: -0.02em; margin: 0;
}
.h2-serif {
  font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; margin: 0 0 8px;
}
.title-bar {
  display: block; width: 48px; height: 3px; border-radius: 99px;
  background: var(--terracotta); margin-top: 12px;
}
.center .title-bar { margin-left: auto; margin-right: auto; }
.eyebrow-script {
  font-family: var(--script); font-size: 1.5rem; font-weight: 600;
  color: var(--terracotta); margin: 0 0 8px;
}
.lead { font-size: 1.1rem; line-height: 1.65; color: var(--ink-soft); }
.prose p { line-height: 1.75; color: var(--ink-soft); font-size: 1.02rem; margin: 0 0 16px; }
.prose h2 { font-family: var(--serif); font-weight: 500; color: var(--ink); font-size: clamp(1.4rem,2.4vw,1.85rem); margin: 40px 0 14px; }
.prose h3 { font-family: var(--serif); font-weight: 600; color: var(--ink); font-size: 1.2rem; margin: 30px 0 10px; }
.prose ul, .prose ol { color: var(--ink-soft); line-height: 1.75; padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--terracotta); }
.prose img { border-radius: 14px; margin: 18px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--cream-deep); padding: 10px 12px; text-align: left; }
.prose th { background: var(--cream); font-weight: 700; }
.prose blockquote { border-left: 4px solid var(--terracotta); margin: 18px 0; padding: 6px 0 6px 18px; color: var(--ink); font-style: italic; }

/* ─── Bande / sezioni ────────────────────────────────────────────────── */
.hero-band {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-deep);
  padding: 56px 0 60px;
}
.band-cream { background: var(--cream); padding: 56px 0; }
.band-ink   { background: var(--ink); color: #fff; padding: 64px 0 72px; }

/* ─── Bottoni ────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--terracotta); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .98rem; padding: 15px 30px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(195,73,46,.28);
  transition: transform .15s, box-shadow .15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(195,73,46,.36); }
.btn-primary.large { padding: 18px 38px; font-size: 1.05rem; }
.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink); text-decoration: none;
  font-weight: 700; padding: 15px 30px; border-radius: 999px;
  transition: transform .15s, box-shadow .15s;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.25); }
.trust-line {
  margin-top: 16px; font-size: .88rem; color: var(--ink-soft);
  display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center;
}
.center .trust-line { justify-content: center; }
.trust-line .dot { color: var(--terracotta); }

/* ─── Breadcrumb ─────────────────────────────────────────────────────── */
.breadcrumb { font-size: .82rem; color: var(--ink-soft); margin-bottom: 22px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { opacity: .7; }
.breadcrumb .sep { margin: 0 8px; opacity: .5; }
.breadcrumb .here { color: var(--ink); font-weight: 600; }

/* ─── Card griglie (soluzioni index, blog index) ─────────────────────── */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.niche-card {
  display: block; background: #fff; border: 1px solid var(--cream-deep);
  border-radius: 18px; padding: 26px; text-decoration: none;
  transition: transform .18s, box-shadow .18s;
}
.niche-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(26,22,17,.1); }
.niche-card .icon { font-size: 1.9rem; }
.niche-card h2 { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--ink); margin: 12px 0 6px; }
.niche-card p { font-size: .9rem; line-height: 1.55; color: var(--ink-soft); margin: 0 0 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.niche-card .more { font-size: .88rem; font-weight: 700; color: var(--terracotta); }

.post-card { display: block; text-decoration: none; }
.post-card .thumb {
  border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; background: var(--cream);
  margin-bottom: 14px;
}
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .thumb img { transform: scale(1.04); }
.post-card .cat {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 6px;
}
.post-card h2 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; line-height: 1.25; color: var(--ink); margin: 0 0 8px; }
.post-card p { font-size: .92rem; line-height: 1.6; color: var(--ink-soft); margin: 0 0 10px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .meta { font-size: .78rem; color: var(--ink-soft); opacity: .65; }

/* ─── Soluzioni: hero a 2 colonne + phone mockup ─────────────────────── */
.niche-hero { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .niche-hero { grid-template-columns: 1.2fr .8fr; } }
.niche-hero .sub { font-size: 1.15rem; font-weight: 700; color: var(--terracotta); margin: 14px 0 0; line-height: 1.4; }
.niche-hero .pain { margin: 18px 0 0; color: var(--ink-soft); font-size: 1.04rem; line-height: 1.65; }
.niche-hero .benefit { margin: 8px 0 0; color: var(--ink); font-size: 1.04rem; line-height: 1.65; }

.phone { max-width: 290px; margin: 0 auto; }
.phone-frame { background: var(--ink); border-radius: 30px; padding: 9px; box-shadow: 0 24px 50px rgba(26,22,17,.3); }
.phone-screen { background: var(--paper); border-radius: 22px; overflow: hidden; }
.phone-screen .ph-head { padding: 18px 16px 12px; text-align: center; border-bottom: 1px solid var(--cream-deep); }
.phone-screen .ph-head .name { font-family: var(--serif); font-weight: 600; font-size: 1rem; }
.phone-screen .ph-head .tag  { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.phone-screen .ph-cat { padding: 12px 16px 4px; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); }
.phone-screen .ph-item { display: flex; justify-content: space-between; gap: 10px; padding: 7px 16px; }
.phone-screen .ph-item .t { font-size: .8rem; font-weight: 700; color: var(--ink); }
.phone-screen .ph-item .d { font-size: .68rem; color: var(--ink-soft); margin-top: 1px; }
.phone-screen .ph-item .p { font-size: .78rem; font-weight: 800; color: var(--terracotta); white-space: nowrap; }
.phone-caption { text-align: center; font-size: .76rem; color: var(--ink-soft); margin-top: 12px; }

/* ─── Killer feature / testimonial / pricing / FAQ ───────────────────── */
.feature-card {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--cream); border: 1px solid var(--cream-deep);
  border-radius: 18px; padding: 26px;
}
.feature-card .icon { font-size: 2.1rem; line-height: 1; }
.feature-card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; margin: 0 0 6px; color: var(--ink); }
.feature-card p { margin: 0; font-size: .96rem; line-height: 1.6; color: var(--ink-soft); }

.stars { color: var(--gold); letter-spacing: 3px; font-size: 1.05rem; }
.testimonial-quote {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.4; color: var(--ink);
  margin: 14px 0 0;
}
.testimonial-name { font-family: var(--script); font-size: 1.5rem; color: var(--terracotta); margin-top: 18px; display: block; }
.testimonial-role { font-size: .88rem; color: var(--ink-soft); margin-top: 2px; display: block; }

.pricing-card { background: var(--ink); border-radius: 24px; overflow: hidden; box-shadow: 0 26px 60px rgba(26,22,17,.25); }
.pricing-main { padding: 36px; }
.pricing-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.pricing-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--terracotta); color: #fff; font-size: .72rem; font-weight: 800;
  padding: 7px 16px; border-radius: 999px; letter-spacing: .04em;
}
.pricing-price { margin-top: 14px; }
.pricing-price .num { font-family: var(--serif); font-size: 3rem; font-weight: 600; color: #fff; }
.pricing-price .per { color: rgba(255,255,255,.6); margin-left: 4px; }
.pricing-feats { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px 28px; }
@media (min-width: 640px) { .pricing-feats { grid-template-columns: 1fr 1fr; } }
.pricing-feats li { display: flex; gap: 10px; font-size: .9rem; color: rgba(255,255,255,.85); }
.pricing-feats li::before { content: "✓"; color: var(--gold); font-weight: 800; }
.pricing-foot { background: rgba(255,255,255,.05); padding: 14px 24px; text-align: center; font-size: .82rem; color: rgba(255,255,255,.5); }
.guarantee { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; font-size: .88rem; color: var(--ink-soft); }

.faq-item {
  background: #fff; border: 1px solid var(--cream-deep); border-radius: 14px;
  padding: 16px 20px; margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; font-weight: 700; color: var(--ink); font-size: .99rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "▾"; color: var(--terracotta); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(180deg); }
.faq-item p { margin: 12px 0 0; line-height: 1.65; color: var(--ink-soft); font-size: .95rem; }

/* ─── Banda CTA finale ───────────────────────────────────────────────── */
.band-ink .eyebrow-script { color: var(--gold); }
.band-ink h2 { font-family: var(--serif); font-weight: 500; color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0; line-height: 1.2; }
.band-ink .lead { color: rgba(255,255,255,.7); }

/* ─── Footer (porting 1:1 di components/shared/footer.tsx) ───────────── */
.site-footer { background: #1A1611; color: #EBE2D1; padding: 56px 24px 24px; margin-top: auto; }
.footer-wrap { max-width: 1100px; margin: 0 auto; }
.footer-cols {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px; padding-bottom: 36px; border-bottom: 1px solid rgba(245,239,228,.08);
}
.footer-brand { max-width: 320px; }
.footer-logo { font-family: var(--serif); font-size: 24px; font-weight: 600; color: #FDFAF3; text-decoration: none; letter-spacing: -0.02em; }
.footer-logo span { color: #C3492E; }
.footer-tagline { margin: 14px 0 0; font-size: 13.5px; line-height: 1.6; color: rgba(245,239,228,.65); }
.footer-by { margin: 16px 0 0; font-size: 12px; line-height: 1.6; color: rgba(245,239,228,.45); }
.footer-by a { color: #E8A06B; text-decoration: none; }
.footer-cols h6 { margin: 0 0 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: rgba(245,239,228,.5); font-weight: 600; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; font-size: 13.5px; line-height: 2; }
.footer-cols ul a { color: #EBE2D1; text-decoration: none; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 16px; padding-top: 24px; font-size: 12px; color: rgba(245,239,228,.5);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: #E8A06B; text-decoration: none; }

/* ─── TOC articolo ───────────────────────────────────────────────────── */
.toc {
  background: var(--cream); border: 1px solid var(--cream-deep);
  border-radius: 16px; padding: 20px 24px; margin: 26px 0;
}
.toc-title { margin: 0 0 10px; font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 6px 0; font-size: .93rem; }
.toc li.lvl3 { padding-left: 18px; font-size: .88rem; }
.toc a { color: var(--terracotta); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

/* ─── Blocco autore (fine articolo) ──────────────────────────────────── */
.author-box {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--cream); border: 1px solid var(--cream-deep);
  border-radius: 16px; padding: 22px 24px; margin: 8px 0 26px;
}
.author-avatar {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: var(--terracotta); color: #fff; display: flex;
  align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 1.4rem; font-weight: 600;
}
.author-label { margin: 0; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); opacity: .7; }
.author-name  { margin: 2px 0 0; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.author-role  { margin: 1px 0 0; font-size: .82rem; color: var(--terracotta); font-weight: 700; }
.author-bio   { margin: 8px 0 0; font-size: .9rem; line-height: 1.6; color: var(--ink-soft); }

/* NAV:START */
/* ─── Sottomenu Soluzioni (dropdown) ─────────────────────────────────── */
.nav-drop { position: relative; }
.nav-drop .caret { font-size: .7em; opacity: .6; }
.nav-dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  display: none; list-style: none; margin: 0; padding: 14px;
  background: #fff; border: 1px solid var(--cream-deep); border-radius: 16px;
  box-shadow: 0 18px 44px rgba(26,22,17,.14);
  width: 420px; grid-template-columns: 1fr 1fr; gap: 2px 18px;
  z-index: 200;
}
.nav-drop:hover .nav-dropdown,
.nav-drop:focus-within .nav-dropdown { display: grid; }
/* ponte invisibile per non perdere l'hover tra voce e tendina */
.nav-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
.nav-dropdown li.all { grid-column: 1 / -1; border-bottom: 1px solid var(--cream-deep); margin-bottom: 6px; padding-bottom: 8px; }
.nav-dropdown li.all a { color: var(--terracotta) !important; font-weight: 800; }
.nav-dropdown a {
  display: block; padding: 7px 10px; border-radius: 8px;
  font-size: .88rem; font-weight: 600; color: var(--ink-soft);
}
.nav-dropdown a:hover { background: var(--cream); color: var(--ink); }
/* NAV:END */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
