/* ============================================================
   Shynaide Mafra — Design System
   Marca: bordô/vinho + dourado. Serifada elegante (Fraunces) + Inter.
   ============================================================ */

:root {
  /* Marca */
  --wine-900: #3d0a24;
  --wine-800: #560e30;
  --wine-700: #7a0b3d; /* principal (do logo) */
  --wine-600: #93124d;
  --wine-500: #ac1f60;
  --gold-600: #b1863f;
  --gold-500: #c6a15b;
  --gold-300: #e6d2a6;

  /* Neutros */
  --ink: #201319;
  --muted: #6f6169;
  --line: #ece4e7;
  --paper: #ffffff;
  --cream: #faf6f2;
  --cream-2: #f3ebe6;

  /* Sistema */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(61, 10, 36, 0.06), 0 2px 8px rgba(61, 10, 36, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(61, 10, 36, 0.28);
  --shadow-lg: 0 30px 60px -20px rgba(61, 10, 36, 0.35);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--wine-900);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 600;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

p {
  text-wrap: pretty;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.section {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--wine-600);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1.5px;
  background: var(--gold-500);
}

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: var(--muted);
  max-width: 60ch;
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
}
.section-head .lead {
  margin-top: 1rem;
}
.section-head.center .lead {
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--wine-700);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--bg);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s ease, color 0.2s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--gold {
  --bg: var(--gold-500);
  --fg: #3a2508;
}
.btn--ghost {
  --bg: transparent;
  --fg: var(--wine-800);
  border-color: color-mix(in srgb, var(--wine-700) 30%, transparent);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--wine-700);
  color: #fff;
  border-color: var(--wine-700);
}
.btn--light {
  --bg: #fff;
  --fg: var(--wine-800);
  border-color: #fff;
}
.btn--block {
  width: 100%;
}
.btn--sm {
  padding: 0.7rem 1.1rem;
  font-size: 0.9rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--wine-700);
  transition: gap 0.25s var(--ease);
}
.link-arrow:hover {
  gap: 0.7rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: color-mix(in srgb, var(--gold-500) 40%, var(--line));
}

/* ---------- Utilities ---------- */
.bg-cream {
  background: var(--cream);
}
.bg-wine {
  background: var(--wine-800);
  color: #fff;
}
.bg-wine h1,
.bg-wine h2,
.bg-wine h3 {
  color: #fff;
}
.grid {
  display: grid;
  gap: clamp(1.2rem, 2.5vw, 1.8rem);
}
.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wine-700);
  background: color-mix(in srgb, var(--wine-700) 8%, #fff);
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== Base.astro ===== */
      .cookie-bar {
        position: fixed;
        left: clamp(1rem, 3vw, 1.8rem);
        right: clamp(1rem, 3vw, 1.8rem);
        bottom: clamp(1rem, 3vw, 1.8rem);
        z-index: 55;
        max-width: 720px;
        margin-inline: auto;
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: space-between;
        background: var(--wine-900);
        color: color-mix(in srgb, #fff 88%, transparent);
        padding: 0.9rem 1.1rem;
        border-radius: 14px;
        box-shadow: var(--shadow-lg);
      }
      .cookie-bar p { font-size: 0.88rem; margin: 0; flex: 1; min-width: 220px; }
      .cookie-bar a { color: var(--gold-300); text-decoration: underline; }
      .cookie-bar[hidden] { display: none; }
      .skip-link {
        position: absolute;
        left: -999px;
        top: 0;
        z-index: 100;
        background: var(--wine-700);
        color: #fff;
        padding: 0.75rem 1.25rem;
        border-radius: 0 0 10px 0;
      }
      .skip-link:focus {
        left: 0;
      }
      .wa-float {
        position: fixed;
        right: clamp(1rem, 3vw, 1.8rem);
        bottom: clamp(1rem, 3vw, 1.8rem);
        z-index: 50;
        display: grid;
        place-items: center;
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: #25d366;
        color: #fff;
        box-shadow: 0 12px 30px -8px rgba(37, 211, 102, 0.6);
        transition: transform 0.3s var(--ease);
        animation: wa-pop 0.4s var(--ease) 0.8s both;
      }
      .wa-float:hover {
        transform: scale(1.08) translateY(-2px);
      }
      @keyframes wa-pop {
        from { transform: scale(0); }
        to { transform: scale(1); }
      }

/* ===== Header.astro ===== */
  .site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: color-mix(in srgb, var(--paper) 82%, transparent);
    backdrop-filter: saturate(140%) blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  }
  .site-header.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 6px 24px -18px rgba(61, 10, 36, 0.5);
  }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 78px;
  }
  .brand img {
    height: 40px;
    width: auto;
  }
  .nav-desktop {
    display: none;
    gap: 0.4rem;
    margin-left: auto;
  }
  .nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.96rem;
    color: var(--ink);
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
  }
  .nav-link:hover {
    color: var(--wine-700);
    background: color-mix(in srgb, var(--wine-700) 6%, transparent);
  }
  .nav-link.active {
    color: var(--wine-700);
  }
  .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 0.15rem;
    height: 2px;
    background: var(--gold-500);
    border-radius: 2px;
  }
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0 10px;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
  }
  .nav-toggle span {
    height: 2px;
    width: 100%;
    background: var(--wine-800);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s ease;
  }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-mobile {
    display: grid;
    gap: 0.35rem;
    padding: 0 clamp(1.1rem, 4vw, 2.5rem);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease), padding 0.3s ease;
  }
  .nav-mobile.open {
    max-height: 460px;
    padding-block: 1rem 1.5rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-mobile .nav-link {
    padding: 0.8rem 0.6rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }
  .nav-mobile .btn {
    margin-top: 0.8rem;
  }

  @media (min-width: 900px) {
    .nav-desktop {
      display: flex;
    }
    .header-cta {
      display: block;
    }
    .nav-toggle,
    .nav-mobile {
      display: none;
    }
  }

/* ===== Footer.astro ===== */
  .site-footer {
    background: var(--wine-900);
    color: color-mix(in srgb, #fff 82%, transparent);
    padding-top: clamp(3rem, 6vw, 4.5rem);
    margin-top: 2rem;
  }
  .footer-grid {
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
    grid-template-columns: 1fr;
  }
  .footer-brand img {
    height: 42px;
    width: auto;
    margin-bottom: 1.1rem;
  }
  .footer-brand p {
    max-width: 42ch;
    font-size: 0.96rem;
    color: color-mix(in srgb, #fff 70%, transparent);
  }
  .socials {
    display: flex;
    gap: 0.7rem;
    margin-top: 1.3rem;
  }
  .socials a {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, #fff 18%, transparent);
    color: #fff;
    transition: background 0.25s ease, transform 0.25s var(--ease), border-color 0.25s ease;
  }
  .socials a:hover {
    background: var(--gold-500);
    border-color: var(--gold-500);
    color: var(--wine-900);
    transform: translateY(-3px);
  }
  .footer-col h4 {
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
  }
  .footer-col ul {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.6rem;
  }
  .footer-col a {
    color: color-mix(in srgb, #fff 72%, transparent);
    transition: color 0.2s ease;
    font-size: 0.96rem;
  }
  .footer-col a:hover {
    color: var(--gold-300);
  }
  .contact-list .muted,
  .footer-bottom .muted {
    color: color-mix(in srgb, #fff 45%, transparent);
  }
  .footer-bottom {
    margin-top: clamp(2.5rem, 5vw, 4rem);
    padding-block: 1.5rem;
    border-top: 1px solid color-mix(in srgb, #fff 12%, transparent);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    justify-content: space-between;
    font-size: 0.86rem;
    color: color-mix(in srgb, #fff 60%, transparent);
  }
  @media (min-width: 720px) {
    .footer-grid {
      grid-template-columns: 1.6fr 1fr 1.2fr;
    }
  }

/* ===== CourseCard.astro ===== */
  .course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  .course-media {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--cream-2);
  }
  .course-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
  }
  .course-card:hover .course-media img {
    transform: scale(1.05);
  }
  .course-cat {
    position: absolute;
    top: 0.9rem;
    left: 0.9rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: color-mix(in srgb, var(--wine-800) 88%, transparent);
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
  }
  .course-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.4rem;
    flex: 1;
  }
  .course-mode {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-600);
  }
  .course-body h3 {
    font-size: 1.18rem;
    line-height: 1.25;
  }
  .course-body p {
    color: var(--muted);
    font-size: 0.94rem;
    flex: 1;
  }
  .course-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }
  .course-price {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--wine-700);
  }

/* ===== index.astro ===== */
  /* HERO */
  .hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--cream) 0%, #fff 100%);
    padding-block: clamp(2rem, 6vw, 5rem) clamp(2.5rem, 7vw, 5.5rem);
  }
  .hero-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    max-width: 720px;
    max-height: 720px;
    background: radial-gradient(circle, color-mix(in srgb, var(--wine-700) 16%, transparent), transparent 62%);
    filter: blur(20px);
    z-index: 0;
    pointer-events: none;
  }
  .hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: clamp(1.8rem, 5vw, 3.5rem);
    align-items: center;
  }
  .hero-text h1 {
    margin: 0 0 1.3rem;
  }
  .hero-text h1 em {
    font-style: italic;
    color: var(--wine-700);
  }
  .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.8rem 0 2rem;
  }
  .hero-stats {
    list-style: none;
    padding: 1.6rem 0 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 2rem;
    border-top: 1px solid var(--line);
  }
  .hero-stats strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.35rem;
    color: var(--wine-700);
    line-height: 1.1;
  }
  .hero-stats span {
    font-size: 0.85rem;
    color: var(--muted);
  }
  .hero-media {
    position: relative;
    order: -1;
  }
  .hero-photo {
    position: relative;
    border-radius: 22px 22px 22px 70px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 5;
    max-width: 360px;
    margin-inline: auto;
    background: var(--cream-2);
  }
  .hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
  }
  .hero-badge {
    position: absolute;
    left: max(4px, calc(50% - 220px));
    bottom: 18px;
    background: #fff;
    border-radius: 14px;
    padding: 0.7rem 1rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--line);
  }
  .hero-badge strong {
    display: block;
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--wine-700);
    font-size: 1rem;
  }
  .hero-badge span {
    font-size: 0.8rem;
    color: var(--muted);
  }
  @media (min-width: 620px) {
    .hero-photo {
      max-width: 420px;
    }
  }
  @media (min-width: 940px) {
    .hero-inner {
      grid-template-columns: 1.12fr 0.88fr;
    }
    .hero-media {
      order: 0;
    }
    .hero-photo {
      max-width: 440px;
    }
    .hero-badge {
      left: -6px;
    }
  }

  /* ÁREAS */
  .areas-grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(2, 1fr);
    background: var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
  }
  .area-item {
    background: var(--cream);
    padding: 1.3rem 1.2rem;
  }
  .area-item h3 {
    font-size: 1.02rem;
    margin-bottom: 0.25rem;
  }
  .area-item p {
    font-size: 0.86rem;
    color: var(--muted);
  }
  @media (min-width: 820px) {
    .areas-grid {
      grid-template-columns: repeat(4, 1fr);
    }
    .area-item {
      padding: 1.6rem 1.5rem;
    }
    .area-item h3 {
      font-size: 1.1rem;
    }
  }

  /* CURSOS */
  .courses-grid {
    grid-template-columns: 1fr;
  }
  @media (min-width: 600px) {
    .courses-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (min-width: 980px) {
    .courses-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  .section-cta {
    display: flex;
    justify-content: center;
    margin-top: clamp(2rem, 4vw, 3rem);
  }

  /* SOBRE */
  .about-grid {
    display: grid;
    gap: clamp(1.8rem, 5vw, 3.2rem);
    align-items: center;
  }
  .about-media {
    display: flex;
    justify-content: center;
  }
  .about-frame {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  .about-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
  }
  .about-text p {
    color: var(--muted);
    margin-bottom: 1rem;
  }
  .about-text .link-arrow {
    margin-top: 0.5rem;
  }
  @media (min-width: 900px) {
    .about-grid {
      grid-template-columns: 0.9fr 1.1fr;
    }
    .about-frame {
      max-width: 380px;
    }
  }

  /* DEPOIMENTOS */
  .testi-grid {
    grid-template-columns: 1fr;
  }
  @media (min-width: 680px) {
    .testi-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (min-width: 1000px) {
    .testi-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  .testi-card {
    position: relative;
    background: color-mix(in srgb, #fff 8%, transparent);
    border: 1px solid color-mix(in srgb, #fff 15%, transparent);
    border-radius: var(--radius-lg);
    padding: 1.8rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .quote-mark {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    line-height: 0.5;
    color: var(--gold-500);
    height: 1.2rem;
  }
  .testi-card blockquote {
    font-size: 0.96rem;
    color: color-mix(in srgb, #fff 88%, transparent);
    flex: 1;
    margin: 0;
  }
  .testi-card figcaption strong {
    display: block;
    color: #fff;
    font-family: var(--font-serif);
  }
  .testi-card figcaption span {
    font-size: 0.83rem;
    color: var(--gold-300);
  }

  /* GALERIA */
  .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
  }
  .gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 2;
    box-shadow: var(--shadow-sm);
  }
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
  }
  .gallery-item:hover img {
    transform: scale(1.06);
  }
  @media (min-width: 780px) {
    .gallery {
      grid-template-columns: repeat(4, 1fr);
      grid-auto-rows: 1fr;
      gap: 0.9rem;
    }
    .gallery-item.tall {
      grid-row: span 2;
      aspect-ratio: auto;
    }
  }

  /* BLOG */
  .blog-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: clamp(1.6rem, 3vw, 2.5rem);
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  @media (min-width: 720px) {
    .blog-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  .blog-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: #fff;
  }
  .blog-card h3 {
    font-size: 1.1rem;
    line-height: 1.3;
  }
  .blog-card p {
    color: var(--muted);
    font-size: 0.9rem;
    flex: 1;
  }
  .blog-more {
    font-weight: 600;
    color: var(--wine-700);
    font-size: 0.9rem;
  }

  /* CTA */
  .cta-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.3rem 2rem;
    background: linear-gradient(120deg, var(--wine-800), var(--wine-600));
    color: #fff;
    padding: clamp(1.8rem, 5vw, 3.2rem);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }
  .cta-panel h2 {
    color: #fff;
    max-width: 18ch;
  }
  .cta-panel .lead {
    color: color-mix(in srgb, #fff 85%, transparent);
    margin-top: 0.6rem;
  }

/* ===== quem-sou-eu.astro ===== */
  .page-hero {
    padding-block: clamp(2rem, 6vw, 4.5rem);
  }
  .page-hero-inner {
    display: grid;
    gap: clamp(1.8rem, 5vw, 3rem);
    align-items: center;
  }
  .page-hero-text { order: 2; }
  .page-hero-photo { order: 1; }
  .page-hero h1 {
    margin: 0 0 1rem;
  }
  .page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.8rem;
  }
  .page-hero-photo { display: flex; justify-content: center; }
  .ph-frame {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 22px 22px 22px 70px;
    box-shadow: var(--shadow-lg);
  }
  .ph-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
  }
  @media (min-width: 900px) {
    .page-hero-inner {
      grid-template-columns: 1.15fr 0.85fr;
    }
    .page-hero-text { order: 1; }
    .page-hero-photo { order: 2; }
    .ph-frame { max-width: 380px; }
  }

  .bio-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: start;
  }
  .bio-main p {
    color: var(--muted);
    margin-bottom: 1.1rem;
  }
  .bio-main h2 {
    margin-bottom: 1.3rem;
  }
  .pull-quote {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-style: italic;
    color: var(--wine-700);
    line-height: 1.4;
    border-left: 3px solid var(--gold-500);
    padding: 0.4rem 0 0.4rem 1.4rem;
    margin: 1.8rem 0 0;
  }
  .bio-photo {
    margin-top: 2rem;
  }
  .bio-frame {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }
  .bio-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
  }
  .bio-side {
    display: grid;
    gap: 1.2rem;
  }
  .side-card {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
  }
  .side-card h3 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--line);
  }
  .side-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.8rem;
  }
  .side-card li {
    position: relative;
    padding-left: 1.4rem;
    font-size: 0.92rem;
    color: var(--muted);
  }
  .side-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-500);
  }
  @media (min-width: 900px) {
    .bio-grid {
      grid-template-columns: 1.35fr 0.65fr;
    }
    .bio-side {
      position: sticky;
      top: 100px;
    }
  }

  .values-grid {
    grid-template-columns: 1fr;
  }
  @media (min-width: 560px) {
    .values-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (min-width: 1000px) {
    .values-grid {
      grid-template-columns: repeat(4, 1fr);
    }
  }
  .value-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.6rem;
    height: 100%;
  }
  .value-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--wine-700);
  }
  .value-card p {
    font-size: 0.92rem;
    color: var(--muted);
  }

  .cta-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.3rem 2rem;
    background: linear-gradient(120deg, var(--wine-800), var(--wine-600));
    color: #fff;
    padding: clamp(1.8rem, 5vw, 3.2rem);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }
  .cta-panel h2 {
    color: #fff;
  }
  .cta-panel .lead {
    color: color-mix(in srgb, #fff 85%, transparent);
    margin-top: 0.6rem;
  }

/* ===== cursos.astro ===== */
  .page-hero {
    padding-block: clamp(2.5rem, 6vw, 4.5rem);
  }
  .page-hero-center {
    max-width: 62ch;
    margin-inline: auto;
    text-align: center;
  }
  .page-hero-center h1 {
    margin: 0.8rem 0 1rem;
  }
  .page-hero-center .lead {
    margin-inline: auto;
  }

  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
  }
  .filter-btn {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .filter-btn:hover {
    border-color: var(--wine-700);
    color: var(--wine-700);
  }
  .filter-btn.active {
    background: var(--wine-700);
    border-color: var(--wine-700);
    color: #fff;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }
  @media (min-width: 640px) {
    .catalog-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  @media (min-width: 980px) {
    .catalog-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  .catalog-item.hidden {
    display: none;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    counter-reset: step;
  }
  @media (min-width: 800px) {
    .steps-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  .step-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
  }
  .step-n {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--gold-500);
    line-height: 1;
  }
  .step-card h3 {
    margin: 0.8rem 0 0.4rem;
    font-size: 1.15rem;
  }
  .step-card p {
    color: var(--muted);
    font-size: 0.94rem;
  }

  .cta-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    background: linear-gradient(120deg, var(--wine-800), var(--wine-600));
    color: #fff;
    padding: clamp(2rem, 5vw, 3.2rem);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
  }
  .cta-panel h2 {
    color: #fff;
  }
  .cta-panel .lead {
    color: color-mix(in srgb, #fff 85%, transparent);
    margin-top: 0.6rem;
  }

/* ===== blog.astro ===== */
  .page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
  .page-hero-center { max-width: 62ch; margin-inline: auto; text-align: center; }
  .page-hero-center h1 { margin: 0.8rem 0 1rem; }
  .page-hero-center .lead { margin-inline: auto; }

  .feature-post {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  }
  .feature-post:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
  .feature-body {
    padding: clamp(1.8rem, 4vw, 2.6rem);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }
  .feature-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
  .feature-body p { color: var(--muted); max-width: 60ch; }
  .feature-meta { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
  .feature-side {
    background: linear-gradient(135deg, var(--wine-800), var(--wine-600));
    display: grid;
    place-items: center;
    min-height: 120px;
    color: color-mix(in srgb, #fff 85%, transparent);
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
  }
  @media (min-width: 820px) {
    .feature-post { grid-template-columns: 1.7fr 0.7fr; }
  }

  .filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: clamp(2rem, 4vw, 3rem);
  }
  .filter-btn {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
    border: 1.5px solid var(--line);
    background: #fff;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .filter-btn:hover { border-color: var(--wine-700); color: var(--wine-700); }
  .filter-btn.active { background: var(--wine-700); border-color: var(--wine-700); color: #fff; }

  .posts-grid { grid-template-columns: 1fr; }
  @media (min-width: 640px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (min-width: 980px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }
  .post-card.hidden { display: none; }
  .post-body { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.7rem; height: 100%; }
  .post-body h3 { font-size: 1.12rem; line-height: 1.3; }
  .post-body p { color: var(--muted); font-size: 0.92rem; flex: 1; }
  .post-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }
  .post-meta { font-size: 0.82rem; color: var(--muted); }
  .link-arrow { font-size: 0.9rem; }
  .empty-msg { text-align: center; color: var(--muted); padding: 2rem 0; }

  .news-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    background: #fff;
    border: 1px solid var(--line);
    padding: clamp(2rem, 5vw, 3rem);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
  }
  .news-panel .lead { margin-top: 0.5rem; }

/* ===== contato.astro ===== */
  .page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
  .page-hero-center { max-width: 60ch; margin-inline: auto; text-align: center; }
  .page-hero-center h1 { margin: 0.8rem 0 1rem; }
  .page-hero-center .lead { margin-inline: auto; }

  .contact-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
  }
  @media (min-width: 900px) {
    .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
  }

  .channels { list-style: none; padding: 0; display: grid; gap: 1.1rem; }
  .channels li { display: flex; gap: 1rem; align-items: center; }
  .ch-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 12px;
    background: color-mix(in srgb, var(--wine-700) 8%, #fff);
    color: var(--wine-700);
  }
  .ch-label {
    display: block;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
  }
  .channels a, .channels div > span:not(.ch-label) { font-weight: 500; color: var(--ink); }
  .channels a:hover { color: var(--wine-700); }
  .hours-card {
    margin-top: 2rem;
    padding: 1.2rem 1.4rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    display: grid;
    gap: 0.2rem;
  }
  .hours-card strong { color: var(--wine-800); }
  .hours-card span { color: var(--muted); font-size: 0.94rem; }

  .contact-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 4vw, 2.4rem);
    box-shadow: var(--shadow-md);
  }
  .contact-form h3 { font-size: 1.35rem; }
  .form-hint { color: var(--muted); font-size: 0.92rem; margin: 0.4rem 0 1.6rem; }
  .field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
  .field-row { display: grid; gap: 1.1rem; }
  @media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
  label { font-size: 0.86rem; font-weight: 600; color: var(--wine-800); }
  input, select, textarea {
    font-family: var(--font-sans);
    font-size: 1rem;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: var(--cream);
    color: var(--ink);
    width: 100%;
    transition: border-color 0.2s ease, background 0.2s ease;
  }
  input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--wine-600);
    background: #fff;
  }
  textarea { resize: vertical; }
  .contact-form .btn { margin-top: 0.6rem; }
  .form-alt { text-align: center; font-size: 0.9rem; color: var(--muted); margin-top: 1rem; }
  .form-alt a { color: var(--wine-700); font-weight: 600; }
  input:invalid.touched, textarea:invalid.touched { border-color: #c0392b; }

/* ===== termos.astro ===== */
  .page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
  .page-hero-center { max-width: 60ch; margin-inline: auto; text-align: center; }
  .page-hero-center h1 { margin: 0.8rem 0 1rem; }
  .page-hero-center .lead { margin-inline: auto; }
  .legal { max-width: 780px; margin-inline: auto; }
  .legal-body h2 {
    font-size: 1.3rem;
    margin: 2rem 0 0.7rem;
    color: var(--wine-800);
  }
  .legal-body h2:first-child { margin-top: 0; }
  .legal-body p { color: var(--muted); margin-bottom: 0.5rem; }
  .legal-body a { color: var(--wine-700); font-weight: 600; }
  .legal-note { margin-top: 2.5rem; font-size: 0.88rem; font-style: italic; }

/* ===== privacidade.astro ===== */
  .page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
  .page-hero-center { max-width: 60ch; margin-inline: auto; text-align: center; }
  .page-hero-center h1 { margin: 0 0 1rem; }
  .page-hero-center .lead { margin-inline: auto; }
  .legal { max-width: 780px; margin-inline: auto; }
  .legal-body h2 { font-size: 1.3rem; margin: 2rem 0 0.7rem; color: var(--wine-800); }
  .legal-body h2:first-child { margin-top: 0; }
  .legal-body p { color: var(--muted); margin-bottom: 0.5rem; }
  .legal-body a { color: var(--wine-700); font-weight: 600; }
  .legal-note { margin-top: 2.5rem; font-size: 0.88rem; font-style: italic; }

/* ===== 404.astro ===== */
  .nf { display: grid; place-items: center; min-height: 62vh; text-align: center; }
  .nf-code {
    font-family: var(--font-serif);
    font-size: clamp(5rem, 18vw, 10rem);
    font-weight: 700;
    line-height: 0.9;
    color: var(--wine-700);
    opacity: 0.15;
  }
  .nf h1 { margin: -1rem 0 0.8rem; }
  .nf .lead { margin-inline: auto; }
  .nf-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }


/* safety */
.hidden{display:none !important}
[hidden]{display:none !important}
