/* CCLobo - estilo do site público. As cores principais vêm das Definições (variáveis --c1 e --c2). */
:root { --c1: #1b1f4b; --c2: #e8892b; --ink: #1c2230; --mut: #5d6679; --bg: #f3f5f9; --line: #dfe4ee; --radius: 14px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; }
a { color: var(--c1); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- botões do cabeçalho (área de clientes e idioma) ---------- */
.hdr-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.hdr-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--c1) !important; font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; text-decoration: none; white-space: nowrap; }
.hdr-btn:hover { background: #eef1f8; }
.who { display: inline-flex; gap: 8px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.lang a { padding: 7px 12px; font-weight: 700; font-size: 13px; text-decoration: none; color: var(--c1); }
.lang a.on { background: var(--c2); color: #fff; }
details.login { position: relative; }
details.login summary::-webkit-details-marker { display: none; }
.login-box { position: absolute; right: 0; top: calc(100% + 12px); width: 280px; background: #fff; color: var(--ink); border-radius: 14px; padding: 18px; box-shadow: 0 18px 50px rgba(10,14,50,.30); z-index: 80; border: 1px solid var(--line); }
.login-box label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; color: var(--ink); }
.login-box input { display: block; width: 100%; margin-top: 4px; padding: 9px 11px; border: 1px solid #cfd6e4; border-radius: 9px; font: inherit; }
.login-box .btn { width: 100%; margin-top: 4px; }
.login-err { color: #b02121; font-size: 13px; margin: 10px 0 0; }
.login-reg { margin: 12px 0 0; font-size: 13px; text-align: center; }

/* ---------- cabeçalho e menu ---------- */
.header { background: #fff; position: sticky; top: 0; z-index: 60; box-shadow: 0 2px 14px rgba(20,25,60,.10); }
.header .wrap { max-width: 1320px; }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 76px; }
.brand { flex: none; }
.brand img { display: block; height: 56px; width: auto; max-width: none; }
.mainnav { margin-left: auto; margin-right: 4px; }
.nav, .nav ul { list-style: none; margin: 0; padding: 0; }
.nav { display: flex; gap: 2px; align-items: center; }
.nav li { position: relative; }
.nav > li > a { display: block; padding: 11px 8px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav > li > a:hover, .nav > li:hover > a { background: #eef1f8; color: var(--c1); }
.nav > li.active > a { color: var(--c2); }
.nav > li.has-sub > a:after { content: "\25BE"; margin-left: 6px; font-size: 11px; opacity: .6; }
.sub { display: none; position: absolute; top: 100%; left: 0; min-width: 250px; max-width: 340px; background: #fff; border-radius: 12px; padding: 8px; box-shadow: 0 18px 44px rgba(15,20,60,.22); z-index: 70; }
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.sub li a, .sub li .nolink { display: block; padding: 9px 13px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.sub li a:hover { background: #eef1f8; color: var(--c1); }
.sub li .nolink { font-weight: 700; color: var(--mut); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; cursor: default; }
.sub .sub { left: 100%; top: -8px; }
.sub li.has-sub > a:after { content: "\203A"; float: right; opacity: .6; }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 26px; height: 3px; background: var(--c1); margin: 5px 0; border-radius: 2px; }

/* ---------- banner ---------- */
.hero { background-size: cover; background-position: center; color: #fff; padding: 64px 0 72px; }
.hero h1 { margin: 0; font-size: clamp(30px, 4.6vw, 52px); line-height: 1.1; letter-spacing: -.01em; max-width: 780px; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero-sub { margin: 14px 0 0; font-size: clamp(16px, 2vw, 21px); max-width: 640px; opacity: .93; }
.hero-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .wrap:after { content: ""; display: block; height: 4px; width: 90px; background: var(--c2); border-radius: 3px; margin-top: 26px; }

/* ---------- notícias ---------- */
.ticker { background: #fff6e8; border-bottom: 1px solid #f1dcba; color: #6a4410; overflow: hidden; white-space: nowrap; font-size: 14px; }
.ticker-track { display: inline-flex; animation: tick 60s linear infinite; padding: 9px 0; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track > span { padding-right: 70px; }
.ticker .dot { color: var(--c2); margin: 0 18px; font-size: 10px; vertical-align: middle; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- conteúdo ---------- */
.main { padding-top: 34px; padding-bottom: 50px; flex: 1 0 auto; width: 100%; }
.card { background: #fff; border-radius: 18px; box-shadow: 0 8px 30px rgba(20,25,60,.08); padding: 36px 42px; margin-bottom: 28px; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.prose { font-size: 17px; line-height: 1.8; }
.prose h2, .prose h3 { color: var(--c1); line-height: 1.25; margin: 1.6em 0 .5em; }
.prose p { margin: 0 0 1.1em; }
.prose img { border-radius: 12px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { color: var(--c2); font-weight: 600; }
.prose iframe { border: 0; border-radius: 12px; width: 100%; min-height: 380px; }
.lead { font-size: 19px; color: var(--mut); }
.pill { display: inline-block; background: #eef1f8; color: var(--c1); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; }
h2.sec { margin: 0 0 18px; color: var(--c1); font-size: 24px; }

.btn { display: inline-block; background: var(--c2); color: #fff !important; border: 0; padding: 13px 28px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.14); transition: transform .12s, filter .12s; }
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,.75); box-shadow: none; padding: 11px 26px; }
.btn-dark { background: var(--c1); }

/* ---------- produtos e portfólio ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px; }
.pcard { background: #fff; border-radius: var(--radius); box-shadow: 0 6px 22px rgba(20,25,60,.09); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20,25,60,.16); }
.pcard .pimg { aspect-ratio: 1 / 1; background: #f6f7fb; display: flex; align-items: center; justify-content: center; padding: 14px; }
.pcard .pimg img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.pcard .pbody { padding: 14px 18px 18px; }
.pcard .pname { font-weight: 700; color: var(--c1); line-height: 1.3; }
.pcard .pdesc { margin-top: 6px; font-size: 14px; color: var(--mut); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.empty { text-align: center; color: var(--mut); padding: 30px 0; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 30px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; padding: 9px 14px; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(20,25,60,.1); text-align: center; text-decoration: none; font-weight: 600; color: var(--c1); }
.pager span.on { background: var(--c1); color: #fff; }
.pager span.off { opacity: .4; box-shadow: none; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: start; }
.detail .dimg { background: #f6f7fb; border-radius: 14px; padding: 18px; text-align: center; }
.detail .dimg img { max-height: 420px; cursor: zoom-in; border-radius: 8px; }
.price { font-size: 26px; font-weight: 800; color: var(--c2); margin-top: 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-top: 20px; }
.gallery img { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; cursor: zoom-in; transition: transform .15s; display: block; }
.gallery a:hover img { transform: scale(1.03); }
.strip { margin-top: 36px; }
.strip h2 { color: var(--c1); font-size: 20px; margin: 0 0 14px; }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.strip-grid img { width: 100%; height: 140px; object-fit: cover; border-radius: 12px; display: block; }
.back { display: inline-block; margin-bottom: 18px; font-weight: 600; text-decoration: none; }

/* ---------- formulários ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14.5px; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=file], .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1px solid #cfd6e4; border-radius: 11px; font: inherit; background: #fff; color: var(--ink); }
.field input:focus, .field textarea:focus, .field select:focus, .login-box input:focus { outline: 3px solid color-mix(in srgb, var(--c2) 35%, transparent); border-color: var(--c2); }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { font-size: 13px; color: var(--mut); margin-top: 4px; }
.field .bad { color: #b02121; font-size: 13px; margin-top: 4px; }
.req { color: #c0392b; }
.msg { padding: 14px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 600; }
.msg.ok { background: #e6f6ec; color: #17623a; }
.msg.err { background: #fdecea; color: #9b2020; }
.two { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.info-card { background: var(--c1); color: #dfe3ff; border-radius: 18px; padding: 30px; }
.info-card h3 { color: #fff; margin: 0 0 12px; }
.info-card a { color: #fff; }
.info-card ul { list-style: none; padding: 0; margin: 14px 0 0; }
.info-card li { margin: 8px 0; }
.tbl { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.tbl th { background: var(--c1); color: #fff; text-align: left; padding: 12px 16px; font-size: 14px; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tbl tr:hover td { background: #f7f9fd; }
.dl { display: grid; grid-template-columns: 170px 1fr; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dl dt { background: var(--c1); color: #fff; padding: 12px 16px; font-weight: 700; }
.dl dd { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.dl dt, .dl dd { border-bottom: 1px solid rgba(0,0,0,.06); }

/* ---------- entrega e rodapé ---------- */
.delivery { flex: none; background: var(--c2); color: #fff; text-align: center; padding: 16px 0; font-weight: 700; font-size: 17px; }
.footer { background: var(--c1); color: #c5c9ea; flex: none; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: 46px; padding-bottom: 38px; }
.f-logo { height: 62px; width: auto; margin-bottom: 16px; display: block; }
.f-addr { margin: 0 0 16px; line-height: 1.7; }
.f-col h3 { color: #fff; margin: 0 0 16px; font-size: 14px; text-transform: uppercase; letter-spacing: .09em; }
.f-list, .f-contact { list-style: none; margin: 0; padding: 0; }
.f-list li { margin: 9px 0; }
.f-contact li { margin: 10px 0; display: flex; gap: 10px; align-items: baseline; }
.f-contact .ico { width: 20px; text-align: center; color: var(--c2); }
.f-funding { background: #fff; border-radius: 16px; padding: 22px 30px; max-width: 980px; margin: 0 auto 34px; text-align: center; box-shadow: 0 8px 26px rgba(0,0,0,.18); }
.f-funding img { display: block; width: 100%; max-width: 900px; height: auto; margin: 0 auto; }
.complaints { display: inline-block; width: 82px; height: 82px; border-radius: 50%; background: #cc0000; color: #fff !important; font-size: 9.5px; font-weight: 800; text-align: center; padding-top: 27px; line-height: 1.25; text-decoration: none !important; }
.footer p { margin: 18px 0 0; }
.copy { border-top: 1px solid rgba(255,255,255,.14); padding: 16px 0; font-size: 13.5px; }
.copy-in { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.copy .legal a { color: #dfe3ff; }
.sepdot { margin: 0 10px; opacity: .6; }

/* ---------- visualizador de imagens ---------- */
.lb { position: fixed; inset: 0; background: rgba(8,10,30,.92); z-index: 200; display: none; align-items: center; justify-content: center; }
.lb.on { display: flex; }
.lb img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 10px 50px rgba(0,0,0,.6); }
.lb button { position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.lb button:hover { background: rgba(255,255,255,.3); }
.lb .x { top: 18px; right: 22px; }
.lb .p { left: 18px; top: 50%; }
.lb .n { right: 18px; top: 50%; }
.lb .cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #dfe3ff; font-size: 14px; }

/* ---------- ecrãs pequenos ---------- */
@media (max-width: 1340px) {
  .burger { display: block; }
  .mainnav { position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: #fff; box-shadow: 0 16px 30px rgba(15,20,60,.18); display: none; max-height: 80vh; overflow: auto; }
  .mainnav.open { display: block; }
  .header-in { position: relative; }
  .nav { flex-direction: column; align-items: stretch; padding: 10px 20px 16px; gap: 0; }
  .nav > li > a { padding: 13px 10px; }
  .sub, .sub .sub { display: block; position: static; box-shadow: none; padding: 0 0 0 14px; max-width: none; min-width: 0; background: transparent; }
  .sub li.has-sub > a:after, .nav > li.has-sub > a:after { content: ""; }
  .hdr-actions { margin-left: auto; }
}
@media (max-width: 960px) {
  .card { padding: 24px 20px; }
  .two, .detail { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .dl { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 52px; }
  .hdr-btn .t { display: none; }
  .hdr-btn { padding: 8px 11px; }
  .login-box { position: fixed; left: 14px; right: 14px; top: 80px; width: auto; }
}
