/* =========================================================================
   Vinhos para pratos de bacalhau — CSS PREMIUM EXCLUSIVO (V1)
   Reconstrucao editorial premium, compacta e isolada.
   Todas as regras sob: body.ep-vinhos-bacalhau
   Nao altera header, footer nem outras paginas. Prefixo de classe: epb-
   ========================================================================= */

body.ep-vinhos-bacalhau {
  --epb-green: #062f25;
  --epb-green-2: #0b3b2e;
  --epb-green-soft: #0e4636;
  --epb-gold: #d4af37;
  --epb-gold-soft: #e7c96a;
  --epb-cream: #f7efdf;
  --epb-white: #fffaf2;
  --epb-ink: #21302a;
  --epb-muted: #5c6a63;
  --epb-line: rgba(6, 47, 37, 0.14);
  --epb-wine: #7b2233;
  --epb-maxw: 1180px;
  --epb-radius: 18px;
  --epb-shadow: 0 14px 34px rgba(6, 47, 37, 0.12);
  --epb-shadow-soft: 0 8px 20px rgba(6, 47, 37, 0.08);
  --epb-serif: Georgia, "Times New Roman", serif;
  --epb-sans: Arial, Helvetica, "Segoe UI", sans-serif;
  background: var(--epb-white);
}

body.ep-vinhos-bacalhau #conteudo {
  font-family: var(--epb-sans);
  color: var(--epb-ink);
  line-height: 1.6;
  overflow-x: hidden;
}

body.ep-vinhos-bacalhau #conteudo * {
  box-sizing: border-box;
}

/* ---- Helpers de secao ---- */
body.ep-vinhos-bacalhau .epb-section {
  padding: 60px 0;
}

body.ep-vinhos-bacalhau .epb-section--alt {
  background: var(--epb-cream);
}

body.ep-vinhos-bacalhau .epb-inner {
  max-width: var(--epb-maxw);
  margin: 0 auto;
  padding: 0 24px;
}

body.ep-vinhos-bacalhau .epb-block__head {
  margin: 0 0 20px;
}

body.ep-vinhos-bacalhau .epb-block__title {
  font-family: var(--epb-serif);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.18;
  color: var(--epb-green);
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

body.ep-vinhos-bacalhau .epb-block__title::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--epb-gold);
  border-radius: 3px;
  flex: 0 0 auto;
}

body.ep-vinhos-bacalhau .epb-block__text {
  font-size: 16px;
  color: var(--epb-muted);
  margin: 0 0 18px;
}

/* =========================================================================
   1. HERO PREMIUM
   ========================================================================= */
body.ep-vinhos-bacalhau .epb-hero {
  background:
    radial-gradient(120% 140% at 85% 15%, rgba(212, 175, 55, 0.16), transparent 55%),
    linear-gradient(155deg, var(--epb-green) 0%, var(--epb-green-2) 60%, var(--epb-green-soft) 100%);
  color: var(--epb-white);
}

body.ep-vinhos-bacalhau .epb-hero__inner {
  max-width: var(--epb-maxw);
  margin: 0 auto;
  padding: 30px 24px 44px;
}

body.ep-vinhos-bacalhau .epb-breadcrumb {
  font-size: 13px;
  letter-spacing: 0.01em;
  color: rgba(255, 250, 242, 0.72);
  margin: 0 0 24px;
}

body.ep-vinhos-bacalhau .epb-breadcrumb a {
  color: rgba(255, 250, 242, 0.72);
  text-decoration: none;
}

body.ep-vinhos-bacalhau .epb-breadcrumb a:hover {
  color: var(--epb-gold-soft);
}

body.ep-vinhos-bacalhau .epb-breadcrumb span {
  margin: 0 8px;
  opacity: 0.55;
}

body.ep-vinhos-bacalhau .epb-hero__grid {
  display: grid;
  grid-template-columns: 47% 53%;
  gap: 44px;
  align-items: center;
  min-height: 420px;
}

body.ep-vinhos-bacalhau .epb-hero__eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--epb-gold-soft);
  margin: 0 0 16px;
}

body.ep-vinhos-bacalhau .epb-hero__title {
  font-family: var(--epb-serif);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.05;
  margin: 0 0 18px;
  color: #ffffff;
}

body.ep-vinhos-bacalhau .epb-hero__lead {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 250, 242, 0.9);
  margin: 0 0 22px;
  max-width: 32em;
}

body.ep-vinhos-bacalhau .epb-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

body.ep-vinhos-bacalhau .epb-hero__badges span {
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: var(--epb-gold-soft);
  background: rgba(212, 175, 55, 0.08);
}

body.ep-vinhos-bacalhau .epb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---- Botoes ---- */
body.ep-vinhos-bacalhau .epb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--epb-sans);
  font-size: 15px;
  font-weight: 700;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  cursor: pointer;
}

body.ep-vinhos-bacalhau .epb-btn--gold {
  background: var(--epb-gold);
  color: var(--epb-green);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.32);
}

body.ep-vinhos-bacalhau .epb-btn--gold:hover {
  transform: translateY(-2px);
  background: var(--epb-gold-soft);
}

body.ep-vinhos-bacalhau .epb-btn--ghost {
  background: transparent;
  color: var(--epb-white);
  border: 1.5px solid rgba(255, 250, 242, 0.55);
}

body.ep-vinhos-bacalhau .epb-btn--ghost:hover {
  border-color: var(--epb-gold-soft);
  color: var(--epb-gold-soft);
}

/* ---- Imagem do hero ---- */
body.ep-vinhos-bacalhau .epb-hero__image {
  margin: 0;
}

body.ep-vinhos-bacalhau .epb-hero__image img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(212, 175, 55, 0.28);
}

/* =========================================================================
   2. INTRODUCAO ENXUTA
   ========================================================================= */
body.ep-vinhos-bacalhau .epb-intro {
  background: var(--epb-cream);
  border-top: 1px solid var(--epb-line);
  border-bottom: 1px solid var(--epb-line);
}

body.ep-vinhos-bacalhau .epb-intro__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px;
  text-align: center;
}

body.ep-vinhos-bacalhau .epb-intro__text {
  font-family: var(--epb-serif);
  font-size: 21px;
  line-height: 1.55;
  color: var(--epb-green);
  margin: 0;
}

body.ep-vinhos-bacalhau .epb-intro__text strong {
  color: var(--epb-wine);
}

/* =========================================================================
   3. LAYOUT PRINCIPAL (conteudo + sidebar)
   ========================================================================= */
body.ep-vinhos-bacalhau .epb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}

body.ep-vinhos-bacalhau .epb-main {
  min-width: 0;
}

body.ep-vinhos-bacalhau .epb-block {
  margin: 0 0 40px;
}

body.ep-vinhos-bacalhau .epb-block:last-child {
  margin-bottom: 0;
}

body.ep-vinhos-bacalhau .epb-prose p {
  font-size: 16px;
  color: var(--epb-ink);
  margin: 0 0 12px;
}

body.ep-vinhos-bacalhau .epb-prose p:last-child {
  margin-bottom: 0;
}

/* ---- Cards por tipo de bacalhau ---- */
body.ep-vinhos-bacalhau .epb-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

body.ep-vinhos-bacalhau .epb-type-card {
  background: var(--epb-white);
  border: 1px solid var(--epb-line);
  border-left: 3px solid var(--epb-gold);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--epb-shadow-soft);
}

body.ep-vinhos-bacalhau .epb-type-card__dish {
  font-family: var(--epb-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--epb-green);
  margin: 0 0 4px;
}

body.ep-vinhos-bacalhau .epb-type-card__wine {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--epb-wine);
  margin: 0 0 8px;
}

body.ep-vinhos-bacalhau .epb-type-card__desc {
  font-size: 14.5px;
  color: var(--epb-muted);
  margin: 0;
}

/* ---- Combinacoes por estilo (linhas prato -> vinho) ---- */
body.ep-vinhos-bacalhau .epb-pairs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.ep-vinhos-bacalhau .epb-pair {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--epb-white);
  border: 1px solid var(--epb-line);
  border-radius: 12px;
  padding: 15px 20px;
  box-shadow: var(--epb-shadow-soft);
}

body.ep-vinhos-bacalhau .epb-pair__dish {
  font-family: var(--epb-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--epb-green);
  flex: 1;
  margin: 0;
}

body.ep-vinhos-bacalhau .epb-pair__arrow {
  color: var(--epb-gold);
  font-size: 20px;
  line-height: 1;
  flex: 0 0 auto;
}

body.ep-vinhos-bacalhau .epb-pair__wine {
  font-size: 14.5px;
  color: var(--epb-muted);
  flex: 1;
  text-align: right;
  margin: 0;
}

/* ---- Colunas dicas / erros ---- */
body.ep-vinhos-bacalhau .epb-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

body.ep-vinhos-bacalhau .epb-note-card {
  background: var(--epb-white);
  border: 1px solid var(--epb-line);
  border-radius: 14px;
  padding: 22px 22px 20px;
  box-shadow: var(--epb-shadow-soft);
}

body.ep-vinhos-bacalhau .epb-note-card--tips {
  border-top: 3px solid var(--epb-green);
}

body.ep-vinhos-bacalhau .epb-note-card--errors {
  border-top: 3px solid var(--epb-wine);
}

body.ep-vinhos-bacalhau .epb-note-card__title {
  font-family: var(--epb-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--epb-green);
  margin: 0 0 12px;
}

body.ep-vinhos-bacalhau .epb-note-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

body.ep-vinhos-bacalhau .epb-note-card li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--epb-ink);
  margin: 0 0 10px;
}

body.ep-vinhos-bacalhau .epb-note-card li:last-child {
  margin-bottom: 0;
}

body.ep-vinhos-bacalhau .epb-note-card--tips li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--epb-gold);
  font-weight: 700;
}

body.ep-vinhos-bacalhau .epb-note-card--errors li::before {
  content: "\2715";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--epb-wine);
  font-weight: 700;
}

/* ---- FAQ (acordeao) ---- */
body.ep-vinhos-bacalhau .epb-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.ep-vinhos-bacalhau .epb-details {
  background: var(--epb-white);
  border: 1px solid var(--epb-line);
  border-radius: 12px;
  overflow: hidden;
}

body.ep-vinhos-bacalhau .epb-details > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-family: var(--epb-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--epb-green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.ep-vinhos-bacalhau .epb-details > summary::-webkit-details-marker {
  display: none;
}

body.ep-vinhos-bacalhau .epb-details > summary::after {
  content: "+";
  font-family: var(--epb-sans);
  font-size: 22px;
  font-weight: 400;
  color: var(--epb-gold);
  transition: transform 0.2s ease;
}

body.ep-vinhos-bacalhau .epb-details[open] > summary::after {
  content: "\2212";
}

body.ep-vinhos-bacalhau .epb-details__body {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--epb-ink);
}

body.ep-vinhos-bacalhau .epb-details__body p {
  margin: 0;
}

/* ---- Avisos (consumo responsavel / seguranca) ---- */
body.ep-vinhos-bacalhau .epb-notices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

body.ep-vinhos-bacalhau .epb-notice {
  background: var(--epb-cream);
  border: 1px solid var(--epb-line);
  border-left: 3px solid var(--epb-wine);
  border-radius: 12px;
  padding: 16px 18px;
}

body.ep-vinhos-bacalhau .epb-notice strong {
  display: block;
  font-size: 14px;
  color: var(--epb-green);
  margin: 0 0 6px;
}

body.ep-vinhos-bacalhau .epb-notice p {
  font-size: 13.5px;
  color: var(--epb-muted);
  margin: 0;
}

/* =========================================================================
   4. SIDEBAR
   ========================================================================= */
body.ep-vinhos-bacalhau .epb-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 24px;
}

body.ep-vinhos-bacalhau .epb-side-card {
  background: var(--epb-white);
  border: 1px solid var(--epb-line);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: var(--epb-shadow-soft);
}

body.ep-vinhos-bacalhau .epb-side-card__title {
  font-family: var(--epb-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--epb-green);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--epb-line);
}

body.ep-vinhos-bacalhau .epb-side-links {
  display: flex;
  flex-direction: column;
}

body.ep-vinhos-bacalhau .epb-side-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--epb-ink);
  text-decoration: none;
  padding: 9px 0;
  border-bottom: 1px solid var(--epb-line);
  transition: color 0.16s ease, padding-left 0.16s ease;
}

body.ep-vinhos-bacalhau .epb-side-links a:last-child {
  border-bottom: none;
}

body.ep-vinhos-bacalhau .epb-side-links a::before {
  content: "\203A";
  color: var(--epb-gold);
  font-size: 18px;
  line-height: 1;
}

body.ep-vinhos-bacalhau .epb-side-links a:hover {
  color: var(--epb-wine);
  padding-left: 4px;
}

/* =========================================================================
   5. CTA FINAL
   ========================================================================= */
body.ep-vinhos-bacalhau .epb-cta {
  background:
    radial-gradient(120% 160% at 15% 20%, rgba(212, 175, 55, 0.16), transparent 55%),
    linear-gradient(150deg, var(--epb-green) 0%, var(--epb-green-2) 100%);
  color: var(--epb-white);
  text-align: center;
}

body.ep-vinhos-bacalhau .epb-cta__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px;
}

body.ep-vinhos-bacalhau .epb-cta__title {
  font-family: var(--epb-serif);
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #ffffff;
}

body.ep-vinhos-bacalhau .epb-cta__text {
  font-size: 17px;
  color: rgba(255, 250, 242, 0.88);
  margin: 0 0 24px;
}

body.ep-vinhos-bacalhau .epb-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* =========================================================================
   RESPONSIVO — TABLET
   ========================================================================= */
@media (max-width: 980px) {
  body.ep-vinhos-bacalhau .epb-section {
    padding: 48px 0;
  }

  body.ep-vinhos-bacalhau .epb-hero__grid {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: 0;
  }

  body.ep-vinhos-bacalhau .epb-hero__image {
    order: 2;
  }

  body.ep-vinhos-bacalhau .epb-hero__image img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  body.ep-vinhos-bacalhau .epb-hero__title {
    font-size: 42px;
  }

  body.ep-vinhos-bacalhau .epb-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  body.ep-vinhos-bacalhau .epb-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

/* =========================================================================
   RESPONSIVO — MOBILE
   ========================================================================= */
@media (max-width: 640px) {
  body.ep-vinhos-bacalhau .epb-section {
    padding: 38px 0;
  }

  body.ep-vinhos-bacalhau .epb-inner,
  body.ep-vinhos-bacalhau .epb-hero__inner,
  body.ep-vinhos-bacalhau .epb-cta__inner,
  body.ep-vinhos-bacalhau .epb-intro__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  body.ep-vinhos-bacalhau .epb-hero__inner {
    padding-top: 24px;
    padding-bottom: 34px;
  }

  body.ep-vinhos-bacalhau .epb-hero__title {
    font-size: 34px;
  }

  body.ep-vinhos-bacalhau .epb-hero__lead {
    font-size: 16px;
  }

  body.ep-vinhos-bacalhau .epb-hero__actions {
    flex-direction: column;
  }

  body.ep-vinhos-bacalhau .epb-hero__actions .epb-btn {
    width: 100%;
  }

  body.ep-vinhos-bacalhau .epb-intro__text {
    font-size: 18px;
  }

  body.ep-vinhos-bacalhau .epb-type-grid,
  body.ep-vinhos-bacalhau .epb-duo,
  body.ep-vinhos-bacalhau .epb-notices {
    grid-template-columns: 1fr;
  }

  body.ep-vinhos-bacalhau .epb-sidebar {
    grid-template-columns: 1fr;
  }

  body.ep-vinhos-bacalhau .epb-pair {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  body.ep-vinhos-bacalhau .epb-pair__wine {
    text-align: left;
  }

  body.ep-vinhos-bacalhau .epb-pair__arrow {
    transform: rotate(90deg);
  }

  body.ep-vinhos-bacalhau .epb-block__title,
  body.ep-vinhos-bacalhau .epb-cta__title {
    font-size: 24px;
  }
}
