/* =========================================================
   SocialMio — Design system
   Font: Poppins (titoli) + Inter (testo)
   Colore brand: arancione Webmio (#EC681D)
   ========================================================= */

:root {
  --brand: #EC681D;
  --brand-dark: #C6510F;
  --brand-light: #FFF1E7;
  --ink: #17181C;
  --ink-soft: #4A4D57;
  --paper: #FFFFFF;
  --paper-alt: #FAF8F6;
  --line: #ECE7E2;
  --success: #1F9D63;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 8px 30px rgba(23, 24, 28, 0.07);
  --shadow-lg: 0 20px 60px rgba(23, 24, 28, 0.14);
  --maxw: 1160px;
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; }
.section-alt { background: var(--paper-alt); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(236,104,29,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(236,104,29,.36); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 24px; }
.logo-mark { font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--ink); }
.logo-mark .accent { color: var(--brand); }
.main-nav { flex: 1; display: flex; justify-content: center; }
.nav-menu { display: flex; gap: 32px; }
.nav-menu a { font-weight: 500; color: var(--ink-soft); font-size: .95rem; }
.nav-menu a:hover, .nav-menu a.active { color: var(--brand); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-copy p.lead { font-size: 1.15rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0; }
.hero-trust { color: var(--ink-soft); font-size: .85rem; margin-top: 8px; }
.hero-visual {
  background: linear-gradient(160deg, var(--brand-light), #fff);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.hero-visual img { border-radius: var(--radius); }
.platform-strip { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.platform-strip span { font-family: var(--font-head); font-weight: 600; color: var(--ink-soft); font-size: .85rem; }

/* Cards / grids */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

/* Steps / how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--brand);
  display: block;
  margin-bottom: 10px;
}

/* Segments (per-chi) */
.segment-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.segment-tabs a { padding: 10px 20px; border-radius: 100px; border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.segment-tabs a.active, .segment-tabs a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.segment-block { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); }
.segment-block:last-child { border-bottom: none; }
.use-case { background: var(--paper-alt); border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; padding: 20px 24px; }
.use-case p { margin: 0; color: var(--ink); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow-lg); position: relative; transform: translateY(-8px); }
.price-card.featured .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700;
  padding: 5px 14px; border-radius: 100px; font-family: var(--font-head);
}
.price-amount { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; margin: 14px 0 4px; }
.price-amount span { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.price-features { margin: 22px 0; flex: 1; }
.price-features li { padding: 8px 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--ink-soft); }
.price-features li:first-child { border-top: none; }
.price-features li strong { color: var(--ink); }

/* FAQ accordion */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; color: var(--ink);
}
.faq-question .plus { font-size: 1.4rem; color: var(--brand); flex-shrink: 0; transition: transform .2s ease; }
.faq-item.open .faq-question .plus { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { padding-bottom: 20px; margin: 0; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  color: #fff;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.cta-band .btn-ghost:hover { border-color: #fff; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
input, textarea, select {
  width: 100%; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: .95rem; background: var(--paper-alt);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brand); background: #fff; }
.form-note { font-size: .8rem; color: var(--ink-soft); }
.alert { padding: 16px 20px; border-radius: 10px; margin-bottom: 24px; font-weight: 500; }
.alert-success { background: #EAF8F1; color: #146C43; border: 1px solid #BFE8D3; }
.alert-error { background: #FDECEA; color: #B3261E; border: 1px solid #F5C6C2; }

/* Footer */
.site-footer { background: var(--ink); color: #C9CAD1; padding: 64px 0 0; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .logo-mark { color: #fff; }
.footer-brand p { color: #9698A3; margin-top: 14px; }
.footer-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-social a { font-size: .82rem; color: #C9CAD1; border: 1px solid #33353D; padding: 6px 12px; border-radius: 100px; }
.footer-col h3 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #C9CAD1; font-size: .92rem; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid #2A2C33; padding: 22px 0; text-align: center; font-size: .82rem; color: #82848F; }

/* Breadcrumb */
.breadcrumb { font-size: .85rem; color: var(--ink-soft); padding: 20px 0 0; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--brand); }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-card .post-body { padding: 24px; }
.post-meta { font-size: .78rem; color: var(--brand); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.post-thumb { height: 160px; background: linear-gradient(135deg, var(--brand-light), #fff); }
.article-body h2 { margin-top: 1.6em; }
.article-body { max-width: 760px; margin: 0 auto; }
.article-body ul { list-style: disc; margin: 0 0 1em 1.3em; }
.article-body li { margin-bottom: .4em; color: var(--ink-soft); }

/* Utilities */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.small { font-size: .85rem; color: var(--ink-soft); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .segment-block { grid-template-columns: 1fr; }
  .segment-block .hero-visual, .segment-block img { order: -1; }
  .grid-3, .grid-4, .pricing-grid, .steps, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price-card.featured { transform: none; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .main-nav { position: static; }
  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 16px 24px; gap: 4px; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { display: block; padding: 12px 0; }
  .header-cta .btn-ghost { display: none; }
  .grid-3, .grid-4, .pricing-grid, .steps, .post-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .cta-band { padding: 40px 24px; }
  .section { padding: 60px 0; }
}
