/* =========================================================================
   Vinhos portugueses para iniciantes — CSS EXCLUSIVO V4 (fase visual)
   Reconstrucao limpa e compacta. Todas as regras isoladas sob:
   body.ep-vinhos-iniciantes-v4
   Nao depende de nenhum CSS antigo de guias (15j / 16a).
   ========================================================================= */

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

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

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

/* ---- Helpers de secao ---- */
body.ep-vinhos-iniciantes-v4 .epv4-section {
  padding: 68px 0;
}

body.ep-vinhos-iniciantes-v4 .epv4-section--alt {
  background: var(--v4-cream);
}

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

body.ep-vinhos-iniciantes-v4 .epv4-section__head {
  max-width: 760px;
  margin: 0 0 32px;
}

body.ep-vinhos-iniciantes-v4 .epv4-section__title {
  font-family: var(--v4-serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 1.15;
  color: var(--v4-green);
  margin: 0 0 10px;
}

body.ep-vinhos-iniciantes-v4 .epv4-section__text {
  font-size: 17px;
  color: var(--v4-muted);
  margin: 0;
}

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

body.ep-vinhos-iniciantes-v4 .epv4-hero__inner {
  max-width: var(--v4-maxw);
  margin: 0 auto;
  padding: 34px 24px 40px;
}

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

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

body.ep-vinhos-iniciantes-v4 .epv4-breadcrumb a:hover {
  color: var(--v4-gold-soft);
}

body.ep-vinhos-iniciantes-v4 .epv4-breadcrumb span {
  margin: 0 8px;
  opacity: 0.55;
}

body.ep-vinhos-iniciantes-v4 .epv4-hero__grid {
  display: grid;
  grid-template-columns: 48% 52%;
  gap: 44px;
  align-items: center;
  min-height: 440px;
}

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

body.ep-vinhos-iniciantes-v4 .epv4-hero__title {
  font-family: var(--v4-serif);
  font-weight: 700;
  font-size: 58px;
  line-height: 1.04;
  margin: 0 0 18px;
  color: #ffffff;
}

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

body.ep-vinhos-iniciantes-v4 .epv4-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}

body.ep-vinhos-iniciantes-v4 .epv4-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(--v4-gold-soft);
  background: rgba(212, 175, 55, 0.08);
}

body.ep-vinhos-iniciantes-v4 .epv4-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---- Botoes ---- */
body.ep-vinhos-iniciantes-v4 .epv4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--v4-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-iniciantes-v4 .epv4-btn--gold {
  background: var(--v4-gold);
  color: var(--v4-green);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.32);
}

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

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

body.ep-vinhos-iniciantes-v4 .epv4-btn--ghost:hover {
  border-color: var(--v4-gold-soft);
  color: var(--v4-gold-soft);
}

/* ---- Imagem do hero ---- */
body.ep-vinhos-iniciantes-v4 .epv4-hero__image {
  margin: 0;
}

body.ep-vinhos-iniciantes-v4 .epv4-hero__image img {
  display: block;
  width: 100%;
  height: 360px;
  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);
}

/* =========================================================================
   Grades reutilizaveis de cards
   ========================================================================= */
body.ep-vinhos-iniciantes-v4 .epv4-grid {
  display: grid;
  gap: 20px;
}

body.ep-vinhos-iniciantes-v4 .epv4-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

body.ep-vinhos-iniciantes-v4 .epv4-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

body.ep-vinhos-iniciantes-v4 .epv4-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* =========================================================================
   2. ESCOLHA SEU ESTILO
   ========================================================================= */
body.ep-vinhos-iniciantes-v4 .epv4-style-card {
  background: var(--v4-white);
  border: 1px solid var(--v4-line);
  border-radius: 16px;
  padding: 22px 20px;
  box-shadow: var(--v4-shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.ep-vinhos-iniciantes-v4 .epv4-style-card__tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--v4-green);
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

body.ep-vinhos-iniciantes-v4 .epv4-style-card__name {
  font-family: var(--v4-serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--v4-green);
  margin: 2px 0 0;
}

body.ep-vinhos-iniciantes-v4 .epv4-style-card__desc {
  font-size: 14.5px;
  color: var(--v4-muted);
  margin: 0;
}

/* =========================================================================
   3. REGIOES COMPACTAS
   ========================================================================= */
body.ep-vinhos-iniciantes-v4 .epv4-region-card {
  background: var(--v4-white);
  border: 1px solid var(--v4-line);
  border-left: 3px solid var(--v4-gold);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--v4-shadow-soft);
}

body.ep-vinhos-iniciantes-v4 .epv4-region-card__name {
  font-family: var(--v4-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--v4-green);
  margin: 0 0 2px;
}

body.ep-vinhos-iniciantes-v4 .epv4-region-card__style {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--v4-wine);
  margin: 0 0 8px;
}

body.ep-vinhos-iniciantes-v4 .epv4-region-card__desc {
  font-size: 14.5px;
  color: var(--v4-muted);
  margin: 0 0 8px;
}

body.ep-vinhos-iniciantes-v4 .epv4-region-card__pairing {
  font-size: 13px;
  color: var(--v4-ink);
  margin: 0;
}

body.ep-vinhos-iniciantes-v4 .epv4-region-card__pairing strong {
  color: var(--v4-green);
}

/* =========================================================================
   4. HARMONIZACAO RAPIDA
   ========================================================================= */
body.ep-vinhos-iniciantes-v4 .epv4-pair {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--v4-white);
  border: 1px solid var(--v4-line);
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: var(--v4-shadow-soft);
}

body.ep-vinhos-iniciantes-v4 .epv4-pair__dish {
  font-family: var(--v4-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--v4-green);
  flex: 1;
  margin: 0;
}

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

body.ep-vinhos-iniciantes-v4 .epv4-pair__wine {
  font-size: 15px;
  color: var(--v4-muted);
  flex: 1;
  text-align: right;
  margin: 0;
}

/* =========================================================================
   5. TEMPERATURAS (cards escuros)
   ========================================================================= */
body.ep-vinhos-iniciantes-v4 .epv4-temp-card {
  background: linear-gradient(160deg, var(--v4-green) 0%, var(--v4-green-2) 100%);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 16px;
  padding: 22px 20px;
  color: var(--v4-white);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.ep-vinhos-iniciantes-v4 .epv4-temp-card__value {
  font-family: var(--v4-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--v4-gold-soft);
}

body.ep-vinhos-iniciantes-v4 .epv4-temp-card__label {
  font-size: 15px;
  font-weight: 700;
}

body.ep-vinhos-iniciantes-v4 .epv4-temp-card__note {
  font-size: 13.5px;
  color: rgba(255, 250, 242, 0.8);
  margin: 0;
}

/* =========================================================================
   6 e 11. ACORDEOES (guia completo)  |  12. FAQ
   ========================================================================= */
body.ep-vinhos-iniciantes-v4 .epv4-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
}

body.ep-vinhos-iniciantes-v4 .epv4-details {
  background: var(--v4-white);
  border: 1px solid var(--v4-line);
  border-radius: 14px;
  overflow: hidden;
}

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

body.ep-vinhos-iniciantes-v4 .epv4-details > summary::-webkit-details-marker {
  display: none;
}

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

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

body.ep-vinhos-iniciantes-v4 .epv4-details__body {
  padding: 0 22px 20px;
  font-size: 15.5px;
  color: var(--v4-ink);
}

body.ep-vinhos-iniciantes-v4 .epv4-details__body p {
  margin: 0 0 12px;
}

body.ep-vinhos-iniciantes-v4 .epv4-details__body p:last-child {
  margin-bottom: 0;
}

body.ep-vinhos-iniciantes-v4 .epv4-details__body ul,
body.ep-vinhos-iniciantes-v4 .epv4-details__body ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

body.ep-vinhos-iniciantes-v4 .epv4-details__body li {
  margin: 0 0 6px;
}

body.ep-vinhos-iniciantes-v4 .epv4-details__body li:last-child {
  margin-bottom: 0;
}

/* ---- Avisos compactos (pos-FAQ) ---- */
body.ep-vinhos-iniciantes-v4 .epv4-notices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

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

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

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

/* =========================================================================
   13. RELACIONADOS (explore)
   ========================================================================= */
body.ep-vinhos-iniciantes-v4 .epv4-explore-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--v4-white);
  border: 1px solid var(--v4-line);
  border-radius: 14px;
  padding: 20px 22px;
  text-decoration: none;
  box-shadow: var(--v4-shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

body.ep-vinhos-iniciantes-v4 .epv4-explore-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--v4-shadow);
  border-color: rgba(212, 175, 55, 0.55);
}

body.ep-vinhos-iniciantes-v4 .epv4-explore-card__cat {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v4-wine);
}

body.ep-vinhos-iniciantes-v4 .epv4-explore-card__name {
  font-family: var(--v4-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--v4-green);
}

body.ep-vinhos-iniciantes-v4 .epv4-explore-card__arrow {
  margin-top: 4px;
  font-size: 18px;
  color: var(--v4-gold);
  transition: transform 0.18s ease;
}

body.ep-vinhos-iniciantes-v4 .epv4-explore-card:hover .epv4-explore-card__arrow {
  transform: translateX(4px);
}

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

body.ep-vinhos-iniciantes-v4 .epv4-cta__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

body.ep-vinhos-iniciantes-v4 .epv4-cta__title {
  font-family: var(--v4-serif);
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #ffffff;
}

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

body.ep-vinhos-iniciantes-v4 .epv4-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* =========================================================================
   RESPONSIVO — TABLET
   ========================================================================= */
@media (max-width: 980px) {
  body.ep-vinhos-iniciantes-v4 .epv4-section {
    padding: 52px 0;
  }

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

  body.ep-vinhos-iniciantes-v4 .epv4-hero__image {
    order: 2;
  }

  body.ep-vinhos-iniciantes-v4 .epv4-hero__image img {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  body.ep-vinhos-iniciantes-v4 .epv4-hero__title {
    font-size: 46px;
  }

  body.ep-vinhos-iniciantes-v4 .epv4-grid--4,
  body.ep-vinhos-iniciantes-v4 .epv4-grid--3,
  body.ep-vinhos-iniciantes-v4 .epv4-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  body.ep-vinhos-iniciantes-v4 .epv4-section__title {
    font-size: 28px;
  }
}

/* =========================================================================
   RESPONSIVO — MOBILE
   ========================================================================= */
@media (max-width: 640px) {
  body.ep-vinhos-iniciantes-v4 .epv4-section {
    padding: 40px 0;
  }

  body.ep-vinhos-iniciantes-v4 .epv4-inner,
  body.ep-vinhos-iniciantes-v4 .epv4-hero__inner,
  body.ep-vinhos-iniciantes-v4 .epv4-cta__inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  body.ep-vinhos-iniciantes-v4 .epv4-hero__inner {
    padding-top: 26px;
    padding-bottom: 32px;
  }

  body.ep-vinhos-iniciantes-v4 .epv4-hero__title {
    font-size: 36px;
  }

  body.ep-vinhos-iniciantes-v4 .epv4-hero__lead {
    font-size: 16px;
  }

  body.ep-vinhos-iniciantes-v4 .epv4-hero__actions {
    flex-direction: column;
  }

  body.ep-vinhos-iniciantes-v4 .epv4-hero__actions .epv4-btn {
    width: 100%;
  }

  body.ep-vinhos-iniciantes-v4 .epv4-grid--4,
  body.ep-vinhos-iniciantes-v4 .epv4-grid--3,
  body.ep-vinhos-iniciantes-v4 .epv4-grid--2 {
    grid-template-columns: 1fr;
  }

  body.ep-vinhos-iniciantes-v4 .epv4-notices {
    grid-template-columns: 1fr;
  }

  body.ep-vinhos-iniciantes-v4 .epv4-pair {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  body.ep-vinhos-iniciantes-v4 .epv4-pair__wine {
    text-align: left;
  }

  body.ep-vinhos-iniciantes-v4 .epv4-pair__arrow {
    transform: rotate(90deg);
  }

  body.ep-vinhos-iniciantes-v4 .epv4-section__title,
  body.ep-vinhos-iniciantes-v4 .epv4-cta__title {
    font-size: 26px;
  }
}
