/* Prodi Multi Services — shared styles for the whole multi-page site.
   Brand colors are injected as CSS vars by assets/site.js from content.js. */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --ink: #0F2A43; --ink-soft: #1C3D5A; --accent: #E0A53B; --accent-dark: #C8902B;
  --bg: #F7F7F4; --surface: #FFF; --line: #E6E3DC; --muted: #5C6B7A; --text: #10202E;
}
body { font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.2; color: var(--ink); font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

.btn { display: inline-block; background: var(--accent); color: var(--ink); font-weight: 700; padding: 13px 26px; border-radius: 10px; border: 0; cursor: pointer; font-size: 16px; }
.btn:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { background: #fff; }

/* ---- Header / nav (shared) ---- */
header { position: sticky; top: 0; background: rgba(247,247,244,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 50; }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 700; color: var(--ink); font-size: 18px; }
.logo span { color: var(--accent-dark); }
nav { display: flex; align-items: center; flex-wrap: wrap; }
nav a { margin-left: 20px; color: var(--muted); font-weight: 500; font-size: 15px; }
nav a:hover, nav a.active { color: var(--ink); }
nav a.active { font-weight: 700; }
nav a.cta { background: var(--accent); color: var(--ink); font-weight: 700; padding: 9px 16px; border-radius: 9px; }
nav a.cta:hover { background: var(--accent-dark); }
.lang { margin-left: 18px; background: transparent; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.lang:hover { background: #fff; }
.menu-toggle { display: none; margin-left: 14px; background: transparent; border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 18px; cursor: pointer; color: var(--ink); }
@media (max-width: 860px) {
  .menu-toggle { display: inline-block; }
  nav { position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 10px 20px 16px; display: none; }
  nav.open { display: flex; }
  nav a { margin: 8px 0; }
  nav a.cta { margin-top: 8px; }
  .lang { margin: 8px 0 0; }
}

/* ---- Hero (home) ---- */
.hero { padding: 72px 0 56px; text-align: center; }
.eyebrow { color: var(--accent-dark); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.hero h1 { font-size: 44px; margin: 14px 0 16px; }
.hero p { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 720px) { .hero h1 { font-size: 32px; } .hero p { font-size: 17px; } }

/* ---- Page hero (subpages) ---- */
.page-hero { padding: 56px 0 8px; text-align: center; }
.page-hero h1 { font-size: 36px; }
.page-hero p { color: var(--muted); font-size: 17px; margin-top: 8px; }

section { padding: 56px 0; }
.section-title { text-align: center; font-size: 30px; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 40px; }

.props { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.prop { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.prop .ic { font-size: 30px; }
.prop h3 { font-size: 18px; margin: 12px 0 6px; }
.prop p { color: var(--muted); font-size: 15px; }

/* ---- How it works steps ---- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.step .n { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--ink); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.step h3 { font-size: 18px; margin: 14px 0 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---- Plans ---- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 24px; position: relative; }
.plan.featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan.featured h3, .plan.featured .price { color: #fff; }
.plan.featured .tag { color: #DCE6F0; }
.badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: var(--ink); font-weight: 700; font-size: 12px; padding: 5px 12px; border-radius: 20px; }
.plan .ic { font-size: 26px; }
.plan .tag { color: var(--muted); font-size: 14px; margin: 8px 0 2px; }
.plan h3 { font-size: 22px; }
.price { font-size: 34px; font-weight: 800; color: var(--ink); margin: 14px 0 2px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan.featured .price small { color: #B9C7D6; }
.setup { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.plan.featured .setup { color: #B9C7D6; }
.feat { list-style: none; margin: 0 0 22px; }
.feat li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; }
.feat li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-dark); font-weight: 700; }
.plan.featured .feat li { color: #DCE6F0; }
.plan.featured .feat li::before { color: var(--accent); }
.plan .btn { width: 100%; text-align: center; }
.plan.featured .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.setup-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 26px; }

/* ---- Templates (gallery + groups) ---- */
.type-group { margin-bottom: 44px; }
.type-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.type-head .ic { font-size: 26px; }
.type-head h2 { font-size: 24px; }
.type-desc { color: var(--muted); margin-bottom: 20px; font-size: 15px; }
.tpls { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.tpl { border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--surface); position: relative; transition: box-shadow .15s, border-color .15s; }
.tpl:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.tpl.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.tpl-thumb { position: relative; height: 165px; overflow: hidden; background: #eef0f2; border-bottom: 1px solid var(--line); }
.tpl-thumb iframe { width: 1280px; height: 860px; border: 0; transform: scale(.27); transform-origin: top left; pointer-events: none; }
.tpl-body { padding: 12px 14px; }
.tpl-body .nm { font-weight: 700; font-size: 15px; }
.tpl-body .ds { color: var(--muted); font-size: 13px; margin-top: 2px; }
.tpl-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.tpl-prev { font-size: 13px; font-weight: 600; color: var(--accent-dark); border: 1px solid var(--line); padding: 5px 11px; border-radius: 7px; }
.tpl-prev:hover { background: var(--bg); }
.tpl-check { font-size: 13px; font-weight: 700; color: var(--accent-dark); display: none; }
.tpl.sel .tpl-check { display: inline; }

/* ---- Onboarding (plan page) ---- */
.alta-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; max-width: 720px; margin: 0 auto; }
.alta-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 8px; }
.plan-pill { background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; padding: 5px 14px; border-radius: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; font-family: inherit; }
.field input:focus, .field select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.field .hint { color: var(--muted); font-size: 13px; }
.field.agree { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.agree-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 500; cursor: pointer; }
.agree-row input { width: auto; margin-top: 3px; flex-shrink: 0; }
.two { display: flex; gap: 14px; }
.two .field { flex: 1; }
.alta-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; gap: 12px; flex-wrap: wrap; }
.msg { margin-top: 14px; padding: 12px; border-radius: 10px; font-size: 15px; display: none; }
.msg.ok { display: block; background: #EAF6EE; color: #1B6B3A; }
.msg.err { display: block; background: #FCEBEB; color: #A32D2D; }
@media (max-width: 560px) { .two { flex-direction: column; gap: 0; } }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item h3 { font-size: 17px; margin-bottom: 6px; }
.faq-item p { color: var(--muted); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; text-align: center; }
.contact-card .ic { font-size: 28px; }
.contact-card h3 { font-size: 16px; margin: 10px 0 4px; }
.contact-card a, .contact-card p { color: var(--muted); font-size: 15px; word-break: break-word; }
.contact-card a:hover { color: var(--ink); }

/* ---- CTA band ---- */
.cta-band { background: var(--ink); color: #fff; text-align: center; padding: 56px 0; }
.cta-band h2 { color: #fff; font-size: 30px; }
.cta-band p { color: #B9C7D6; margin: 10px 0 24px; font-size: 18px; }

/* ---- Footer ---- */
footer { background: var(--ink-soft); color: #C7D3DF; padding: 36px 0; text-align: center; font-size: 14px; }
footer .logo { color: #fff; margin-bottom: 8px; }
footer a { color: #C7D3DF; }
footer .social { margin: 12px 0; display: flex; gap: 16px; justify-content: center; font-size: 22px; }
footer .social a:hover { color: var(--accent); }
.foot-links { margin-top: 10px; }
.foot-links a { color: var(--accent); margin: 0 8px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 100; }
.skip:focus { left: 12px; top: 10px; }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 60; }
.wa-float:hover { background: #1ebe5b; }
