/* ============================================================
   Di Mangiare — LP estática · design clean
   Tokens, base, componentes. Sem dependências externas.
   ============================================================ */

:root {
  color-scheme: light;
  --green: #23744a;
  --green-dark: #1c5c3b;
  --green-deep: #15472e;
  --green-tint: #e9f5ee;
  --cream: #faf7f1;
  --ink: #29241d;
  --muted: #6b6257;
  --line: #e5e0d8;
  --brown: #2a170d;
  --white: #ffffff;
  --cta-accent: #ffcf3f;
  --cta-accent-hover: #ffdc70;
  --cta-ink: #173321;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 10px 30px rgba(41, 36, 29, 0.10);
  --container: 1120px;
  --pad: clamp(16px, 4vw, 28px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.18; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); font-weight: 750; }
p { margin: 0 0 1em; }
a { color: var(--green-dark); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.9em;
  opacity: 0.85;
}

/* botões ------------------------------------------------------ */
.button,
.header-cta,
.cta .actions a,
.geo-selector button,
.sellflux-form input[type="submit"] {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.8em 1.7em;
  cursor: pointer;
  transition: background 0.15s ease;
}
.button:hover,
.header-cta:hover,
.cta .actions a:hover,
.geo-selector button:not(:disabled):hover,
.sellflux-form input[type="submit"]:hover { background: var(--green-dark); }

.secondary-action {
  display: inline-block;
  background: transparent;
  color: var(--green-dark);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--green);
  border-radius: 999px;
  padding: calc(0.8em - 2px) 1.7em;
}
.secondary-action:hover { background: var(--green-tint); }

/* header ------------------------------------------------------ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px var(--pad);
}
.site-header .brand img { width: 132px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: 18px; }
.header-whats {
  font-weight: 700;
  text-decoration: none;
  color: var(--green-dark);
}
.header-cta { font-size: 0.95rem; padding: 0.65em 1.4em; }

@media (max-width: 640px) {
  .header-whats { display: none; }
  .header-cta { font-size: 0.85rem; }
}

/* hero -------------------------------------------------------- */
.hero {
  background: linear-gradient(160deg, var(--green) 0%, var(--green-dark) 100%);
  color: var(--white);
}
.hero .eyebrow { color: var(--white); }
.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero-copy h1 strong { color: #ffe08a; font-weight: 800; }
.hero-sub { font-size: 1.1rem; max-width: 34em; opacity: 0.95; }
.hero-button {
  margin-top: 10px;
  background: var(--cta-accent);
  color: var(--cta-ink);
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 20px rgba(20, 42, 29, 0.28);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.hero-button:hover {
  background: var(--cta-accent-hover);
  color: var(--cta-ink);
  box-shadow: 0 10px 24px rgba(20, 42, 29, 0.34);
  transform: translateY(-1px);
}
.hero-button:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}
.hero-button:active { transform: translateY(0); }

.hero.compact {
  background: var(--green-tint);
  color: var(--ink);
  padding: clamp(32px, 5vw, 56px) var(--pad);
  text-align: center;
}
.hero.compact h1 { color: var(--green-deep); }
.hero.compact p { max-width: 40em; margin-inline: auto; }
.hero.compact .button { margin-top: 8px; }

.hero.local-hero .hero-inner { align-items: start; }
.hero.local-hero .hero-copy p:last-of-type { margin-bottom: 0; }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; }
}

/* formulário / lead card -------------------------------------- */
.lead-card {
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(20px, 3vw, 30px);
}
.form-title {
  font-weight: 750;
  font-size: 1.05rem;
  line-height: 1.35;
  margin-bottom: 14px;
}
.sellflux-form { display: flex; flex-direction: column; gap: 6px; }
.sellflux-form label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  margin-top: 6px;
}
.sellflux-form input[type="text"],
.sellflux-form input[type="email"],
.sellflux-form input[type="tel"],
.sellflux-form select,
.geo-selector select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.sellflux-form input:focus,
.sellflux-form select:focus,
.geo-selector select:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.sellflux-form input[type="submit"] { margin-top: 14px; width: 100%; }

/* faixa de confiança ------------------------------------------ */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 40px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 14px var(--pad);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-deep);
}

/* seções ------------------------------------------------------- */
main section { scroll-margin-top: 80px; }
.content-text,
.highlights,
.testimonials,
.selector-section,
.link-panel,
.banner,
.categories,
.faq,
.cta,
.content-block,
.evidence,
.local-content-grid,
#produtos {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(28px, 4.5vw, 52px) var(--pad);
}
.content-text { text-align: center; }
.content-text p { max-width: 44em; margin-inline: auto; color: var(--muted); }

/* categorias -------------------------------------------------- */
.categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  text-align: center;
}
.categories a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.85rem;
}
.categories a strong { font-weight: 700; }
.categories img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  background: var(--green-tint);
  border-radius: 50%;
  padding: 12px;
  transition: background 0.15s ease;
}
.categories a:hover img { background: #d5ecdf; }

/* banners ------------------------------------------------------ */
.banner picture { display: block; }
.banner img { width: 100%; border-radius: var(--radius); }
.hero-banner { padding-top: clamp(18px, 3vw, 32px); padding-bottom: 0; }

/* ícone WhatsApp ------------------------------------------------ */
.wa-icon {
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.15em;
  display: inline-block;
}

/* destaques ---------------------------------------------------- */
.highlights h2, .testimonials h2, .selector-section h2, .link-panel h2 { text-align: center; }
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.highlight {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.highlight strong { display: block; margin-bottom: 6px; color: var(--green-deep); }
.highlight span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) { .highlight-grid { grid-template-columns: 1fr; } }

/* depoimentos -------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.testimonial-grid img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
@media (max-width: 760px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }

/* seletor de cidade -------------------------------------------- */
.selector-section { text-align: center; }
.geo-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 12px;
  max-width: 900px;
  margin: 22px auto 0;
  padding: 18px;
  background: var(--green-tint);
  border-radius: var(--radius);
}
.geo-selector button:disabled { opacity: 0.45; cursor: not-allowed; }
.geo-selector [data-role="fallback"] {
  grid-column: 1 / -1;
  font-weight: 700;
}
@media (max-width: 760px) { .geo-selector { grid-template-columns: 1fr; } }

/* listas de links (cidades/produtos/hubs) ----------------------- */
.cards {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 10px;
}
.cards a {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.cards a:hover { border-color: var(--green); background: var(--green-tint); }
.empty { color: var(--muted); text-align: center; }

/* breadcrumbs --------------------------------------------------- */
.breadcrumbs { max-width: var(--container); margin: 0 auto; padding: 12px var(--pad) 0; }
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-dark); }

/* página local -------------------------------------------------- */
.local-content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.local-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.local-card h2 { font-size: 1.12rem; color: var(--green-deep); }
.local-card p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.local-card.feature {
  grid-column: 1 / -1;
  background: var(--green-tint);
  border-color: transparent;
}
.local-card.feature h2 { font-size: 1.3rem; }
.local-card.feature p { color: var(--ink); font-size: 1.02rem; max-width: 62em; }
@media (max-width: 880px) { .local-content-grid { grid-template-columns: 1fr; } }

.local-category-strip { border-top: 1px solid var(--line); }

/* blocos simples / hubs ----------------------------------------- */
.content-block h2, .evidence h2 { font-size: 1.25rem; }
.content-block p { color: var(--muted); max-width: 52em; }

/* FAQ ------------------------------------------------------------ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
}
.faq summary:hover { color: var(--green-dark); }
.faq details p { color: var(--muted); padding-bottom: 12px; margin: 0; }

/* CTA final ------------------------------------------------------- */
.cta { text-align: center; }
.cta .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}
.cta p { color: var(--muted); max-width: 40em; margin-inline: auto; }

/* footer ----------------------------------------------------------- */
.site-footer { background: var(--brown); color: #efe7dd; margin-top: 40px; }
.factory-strip {
  background: var(--green-deep);
  color: var(--white);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 12px var(--pad);
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) var(--pad);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
  font-size: 0.92rem;
}
.footer-grid strong { font-size: 1.05rem; }
.footer-grid p { color: #cbbfae; margin: 8px 0 0; }
.footer-grid nav { display: flex; flex-direction: column; gap: 10px; }
.footer-grid a { color: #efe7dd; text-decoration: none; font-weight: 600; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* CTAs flutuantes (loja acima, WhatsApp abaixo) ----------------------- */
.floating-cta {
  position: fixed;
  right: 18px;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  text-decoration: none;
  border-radius: 50%;
  box-shadow: var(--shadow);
}
.floating-cta.whats { bottom: 18px; background: #25d366; }
.floating-cta.whats:hover { background: #1eb457; }
.floating-cta.shop { bottom: 86px; background: var(--green); }
.floating-cta.shop:hover { background: var(--green-dark); }
.floating-cta .wa-icon { width: 30px; height: 30px; }
.floating-cta .cart-icon { width: 28px; height: 28px; }

/* preview ------------------------------------------------------------- */
.preview-banner {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #7f1d1d;
  color: var(--white);
  text-align: center;
  font-weight: 800;
  padding: 8px;
}

/* página de erro ------------------------------------------------------- */
.error-page .hero.compact { min-height: 40vh; display: grid; place-content: center; }
