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

:root {
  --navy:   #0D2B45;
  --blue:   #1B5276;
  --mint:   #52B788;
  --mint2:  #3A9E73;
  --white:  #FFFFFF;
  --gray50: #F5F7FA;
  --gray100:#E8ECF0;
  --gray400:#94A3B8;
  --gray500:#64748B;
  --gray700:#334155;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(13,43,69,.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--gray700);
  background: var(--white);
  line-height: 1.7;
}

/* ── NAV ────────────────────────────────── */
body > nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 60px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 32px; border-radius: 8px; }
.nav-logo span { color: var(--white); font-weight: 700; font-size: 1.1rem; letter-spacing: -.3px; }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a.link { color: rgba(255,255,255,.8); text-decoration: none; font-weight: 600; font-size: .9rem; }
.nav-links a.link:hover { color: var(--white); }
body > nav a.btn-nav {
  background: var(--mint); color: var(--white);
  padding: 8px 20px; border-radius: 40px;
  text-decoration: none; font-weight: 600; font-size: .9rem;
  transition: background .2s;
}
body > nav a.btn-nav:hover { background: var(--mint2); }

/* ── HEADER ─────────────────────────────── */
.blog-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 56px 24px 48px;
  color: var(--white);
}
.blog-hero .inner { max-width: 760px; margin: 0 auto; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.blog-hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800; line-height: 1.2; letter-spacing: -.5px;
  margin-bottom: 16px;
}
.blog-hero p.lead { color: rgba(255,255,255,.78); font-size: 1.1rem; }
.meta { font-size: .85rem; color: rgba(255,255,255,.6); margin-top: 18px; }

/* ── ARTICOLO ───────────────────────────── */
article.post { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; }
.post h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800; color: var(--navy); line-height: 1.25; letter-spacing: -.3px;
  margin: 48px 0 14px;
  scroll-margin-top: 80px;
}
.post h3 {
  font-size: 1.15rem; font-weight: 700; color: var(--navy);
  margin: 28px 0 10px;
  scroll-margin-top: 80px;
}
.post p { margin-bottom: 16px; font-size: 1.05rem; }
.post ul, .post ol { margin: 0 0 18px 22px; font-size: 1.05rem; }
.post li { margin-bottom: 8px; }
.post a { color: var(--mint2); font-weight: 600; }
.post strong { color: var(--navy); }

.post figure { margin: 28px 0; text-align: center; }
.post figure img {
  width: min(280px, 70vw); height: auto;
  border-radius: 24px; box-shadow: var(--shadow);
}
.post figcaption { font-size: .85rem; color: var(--gray500); margin-top: 12px; }

.toc {
  background: var(--gray50); border: 1px solid var(--gray100);
  border-radius: 16px; padding: 22px 26px; margin: 28px 0 8px;
}
.toc strong { display: block; margin-bottom: 8px; color: var(--navy); }
.toc ol { margin: 0 0 0 20px; font-size: .95rem; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--blue); text-decoration: none; font-weight: 500; }
.toc a:hover { text-decoration: underline; }

.box {
  border-left: 4px solid var(--mint);
  background: rgba(82,183,136,.08);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px; margin: 24px 0;
}
.box p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 24px 0; }
.post table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.post th, .post td { border: 1px solid var(--gray100); padding: 10px 12px; text-align: left; vertical-align: top; }
.post th { background: var(--gray50); color: var(--navy); }

.cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white); border-radius: var(--radius);
  padding: 32px; text-align: center; margin: 40px 0;
}
.cta h2 { color: var(--white); margin-top: 0; }
.cta p { color: rgba(255,255,255,.78); }
.cta .stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.cta .stores img { height: 48px; display: block; }

.faq-item { border-bottom: 1px solid var(--gray100); padding: 6px 0; }
.faq-item summary {
  cursor: pointer; font-weight: 700; color: var(--navy);
  padding: 12px 0; font-size: 1.02rem;
}
.faq-item p { margin: 0 0 14px; }

/* ── LISTA ARTICOLI ─────────────────────── */
.posts { max-width: 1000px; margin: 0 auto; padding: 48px 24px 72px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.post-card {
  background: var(--gray50); border: 1px solid var(--gray100);
  border-radius: var(--radius); padding: 28px;
  text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: 10px;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(13,43,69,.08); }
.post-card .tag { color: var(--mint2); font-weight: 700; font-size: .78rem; letter-spacing: .6px; text-transform: uppercase; }
.post-card h2 { font-size: 1.2rem; font-weight: 800; color: var(--navy); line-height: 1.3; }
.post-card p { font-size: .95rem; color: var(--gray500); }
.post-card .date { font-size: .8rem; color: var(--gray400); margin-top: auto; }

/* ── FOOTER ─────────────────────────────── */
footer {
  background: var(--navy); color: rgba(255,255,255,.5);
  text-align: center; padding: 36px 24px;
  font-size: .82rem; line-height: 1.8;
}
footer a { color: rgba(255,255,255,.6); text-decoration: none; }
footer a:hover { color: var(--white); }

@media (max-width: 480px) {
  .nav-links a.link { display: none; }
}
