/* Materiais (materiais.html) — vitrine no estilo "cursos populares" */

.mt-page {
    --mt-wine: #7a2e3a;
    --mt-wine-deep: #3e1f22;
    --mt-copper: #b5653b;
    --mt-copper-soft: #f4e3d6;
    --mt-rose: #c98a93;
    --mt-rose-soft: #f5e4e6;
    --mt-sage: #7f8f6f;
    --mt-sage-soft: #e4eadc;
    --mt-gold: #d8b97c;
    --mt-gold-soft: #f6ecd6;
    --mt-ink: #2b1a1c;
    --mt-muted: #6b5d58;
    --mt-line: rgba(122, 46, 58, 0.22);
    --mt-bg: #fcf8f3;
    --mt-panel: #f6efe6;
    --mt-card: #fff;
    background: var(--mt-bg);
    color: var(--mt-ink);
    font-family: "Nunito", sans-serif;
}
.mt-page main { overflow: hidden; }
.mt-wrap { width: min(1120px, 100% - 2.5rem); margin: 0 auto; }
.mt-serif { font-family: "EB Garamond", Georgia, serif; }

/* ---------- Hero ---------- */
.mt-hero { position: relative; padding: 2.2rem 0 1.5rem; }
.mt-hero-frame {
    position: relative;
    padding: 3.2rem 2rem 2.6rem;
    border: 2px solid var(--mt-line);
    border-radius: 34px;
    text-align: center;
}
.mt-deco-ring {
    position: absolute;
    top: -34px;
    right: -26px;
    width: 150px;
    height: 150px;
    border: 34px solid var(--mt-rose-soft);
    border-radius: 50%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 50% 50%, 0 50%);
    pointer-events: none;
}
.mt-deco-square {
    position: absolute;
    left: -14px;
    bottom: -64px;
    width: 38px;
    height: 38px;
    border: 5px solid var(--mt-gold);
    border-radius: 6px;
    transform: rotate(-12deg);
    opacity: 0.7;
    pointer-events: none;
}
.mt-hero h1 {
    max-width: 820px;
    margin: 0 auto;
    font-family: "EB Garamond", Georgia, serif;
    font-size: clamp(2.1rem, 4.6vw, 3.55rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--mt-ink);
    text-wrap: balance;
}
.mt-hl-copper { color: var(--mt-copper); }
.mt-hl-wine { color: var(--mt-wine); font-style: italic; }
.mt-hero-arrow { display: block; width: 74px; height: 30px; margin: -0.2rem 0 0 58%; color: var(--mt-rose); }
.mt-hero-lead {
    max-width: 560px;
    margin: 0.9rem auto 1.6rem;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--mt-muted);
}
.mt-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem 1.2rem;
}
.mt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 46px;
    padding: 0.7rem 1.6rem;
    border: 0;
    border-radius: 999px;
    font: 700 0.92rem "Nunito", sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.mt-btn:hover { transform: translateY(-2px); }
.mt-btn .material-icons-outlined { font-size: 1.15rem; }
.mt-btn--copper { background: var(--mt-copper); color: #fff; box-shadow: 0 10px 22px rgba(181, 101, 59, 0.28); }
.mt-btn--wine { background: var(--mt-wine); color: #fff; box-shadow: 0 10px 22px rgba(122, 46, 58, 0.26); }
.mt-btn--copper:hover { background: #a2572f; color: #fff; }
.mt-btn--wine:hover { background: #662431; color: #fff; }

.mt-arch {
    position: absolute;
    bottom: -28px;
    width: 150px;
    height: 176px;
    padding: 14px 14px 0;
    border-radius: 80px 80px 26px 26px;
    overflow: hidden;
    box-shadow: 0 16px 32px rgba(62, 31, 34, 0.14);
}
.mt-arch img { display: block; width: 100%; height: auto; border-radius: 6px 6px 0 0; transform: rotate(-4deg) translateY(10px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }
.mt-arch--left { left: 34px; background: var(--mt-sage-soft); }
.mt-arch--right { right: 34px; background: var(--mt-gold-soft); }
.mt-arch--right img { transform: rotate(4deg) translateY(10px); }
.mt-link-line {
    position: absolute;
    bottom: 54px;
    height: 2px;
    background: var(--mt-line);
}
.mt-link-line::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-block: 8px solid transparent;
    transform: translateY(-50%);
}
.mt-link-line--left { left: 186px; right: calc(50% + 190px); }
.mt-link-line--left::after { right: -2px; border-left: 12px solid var(--mt-rose); }
.mt-link-line--right { right: 186px; left: calc(50% + 190px); }
.mt-link-line--right::after { left: -2px; border-right: 12px solid var(--mt-rose); }

/* Faixa de garantias (no lugar dos logos) */
.mt-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem 2.6rem;
    margin: 3.4rem 0 0;
    padding: 0;
    list-style: none;
}
.mt-trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    color: #a3948c;
}
.mt-trust .material-icons-outlined { font-size: 1.45rem; }

/* ---------- Coleção ---------- */
.mt-collection {
    position: relative;
    margin-top: 3rem;
    padding: 4rem 0 4.5rem;
    background: var(--mt-panel);
    border-radius: 56px 56px 0 0;
}
.mt-deco-tri {
    position: absolute;
    top: 2.4rem;
    left: 56%;
    width: 64px;
    height: 56px;
    background: var(--mt-copper-soft);
    clip-path: polygon(0 18%, 100% 0, 62% 100%);
    transform: rotate(-8deg);
    pointer-events: none;
}
.mt-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 1.6rem;
}
.mt-head h2 {
    margin: 0;
    font-family: "EB Garamond", Georgia, serif;
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    font-weight: 600;
    color: var(--mt-ink);
}
.mt-head h2 span { color: var(--mt-wine); }
.mt-head p { margin: 0.4rem 0 0; font-size: 0.95rem; color: var(--mt-muted); }
.mt-head-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--mt-wine);
    text-decoration: underline;
    text-underline-offset: 4px;
}
.mt-head-link .material-icons-outlined { font-size: 1.1rem; }

.mt-page .lj-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 2.2rem; }
.mt-page .lj-jump a {
    padding: 0.45rem 1.05rem;
    border-radius: 999px;
    background: var(--mt-card);
    box-shadow: 0 2px 8px rgba(62, 31, 34, 0.06);
    font-weight: 700;
    font-size: 0.84rem;
    color: var(--mt-wine);
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.mt-page .lj-jump a:hover { background: var(--mt-wine); color: #fff; }

.mt-page .lj-loading { color: var(--mt-muted); }
.mt-page .lj-empty {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 1.1rem 1.25rem;
    border-radius: 18px;
    background: var(--mt-card);
}
.mt-page .lj-empty p { margin: 0; line-height: 1.6; color: var(--mt-muted); }
.mt-page .lj-empty .material-icons-outlined { color: var(--mt-wine); }

.mt-page .lj-section { margin: 0 0 3rem; scroll-margin-top: 90px; }
.mt-page .lj-section-head h3 {
    margin: 0 0 0.3rem;
    font-family: "EB Garamond", Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--mt-ink);
}
.mt-page .lj-section-note { max-width: 42rem; margin: 0 0 1.4rem; font-size: 0.9rem; line-height: 1.6; color: var(--mt-muted); }
.mt-page .lj-cat { margin: 0 0 2rem; scroll-margin-top: 90px; }
.mt-page .lj-cat-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 1rem;
    font: 800 0.76rem "Nunito", sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mt-wine);
}
.mt-page .lj-cat-title .material-icons-outlined { font-size: 1.1rem; }
.mt-page .lj-target .lj-cat-title { background: var(--mt-gold-soft); border-radius: 8px; padding: 0.3rem 0.5rem; }

.mt-page .lj-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.6rem;
    margin-bottom: 1.8rem;
}
.mt-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--mt-card);
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(62, 31, 34, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mt-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px rgba(62, 31, 34, 0.13); }
.mt-card-img {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    color: var(--mt-wine);
}
.mt-card-img img {
    width: 46%;
    height: auto;
    margin-top: 16%;
    border-radius: 4px;
    transform: rotate(-3deg);
    box-shadow: 0 14px 28px rgba(62, 31, 34, 0.22);
    transition: transform 0.25s ease;
}
.mt-card:hover .mt-card-img img { transform: rotate(0deg) translateY(-6px); }
.mt-card-img > .material-icons-outlined { font-size: 3rem; }
.mt-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    max-width: calc(100% - 24px);
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--mt-wine-deep);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mt-card-cat .material-icons-outlined { flex: none; font-size: 0.95rem; }
.mt-card { scroll-margin-top: 90px; }
.mt-card.lj-target { outline: 3px solid var(--mt-gold); outline-offset: 3px; }
.mt-tone-0 .mt-card-img { background: linear-gradient(160deg, #efd9dd, #e2bcc3); }
.mt-tone-1 .mt-card-img { background: linear-gradient(160deg, #e6ecdf, #cbd6bf); }
.mt-tone-2 .mt-card-img { background: linear-gradient(160deg, #f6ead2, #ecd4a6); }
.mt-tone-3 .mt-card-img { background: linear-gradient(160deg, #f2e0d3, #e5bfa6); }
.mt-tone-4 .mt-card-img { background: linear-gradient(160deg, #e9dfe9, #d3c0d6); }
.mt-card-body { display: flex; flex: 1; flex-direction: column; gap: 0.55rem; padding: 1.05rem 1.2rem 1.15rem; }
.mt-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.mt-card-kind { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; color: var(--mt-muted); }
.mt-card-kind i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mt-wine); color: #fff; font-style: normal; font-size: 0.6rem; }
.mt-card-kind i .material-icons-outlined { font-size: 0.8rem; }
.mt-price { margin: 0; font-family: "EB Garamond", Georgia, serif; font-size: 1.35rem; font-weight: 700; font-variant-numeric: lining-nums; color: var(--mt-wine); }
.mt-card h4 {
    margin: 0.15rem 0 0;
    font-family: "EB Garamond", Georgia, serif;
    font-size: 1.28rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--mt-ink);
}
.mt-card-desc {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 0.86rem;
    line-height: 1.55;
    color: var(--mt-muted);
}
.mt-sample { align-self: flex-start; font-size: 0.8rem; font-weight: 700; color: var(--mt-copper); text-underline-offset: 3px; }
.mt-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(62, 31, 34, 0.08);
}
.mt-author { display: flex; align-items: center; gap: 0.55rem; min-width: 0; }
.mt-author img { flex: none; width: 34px; height: 34px; padding: 4px; border-radius: 50%; background: var(--mt-rose-soft); object-fit: contain; }
.mt-author b { display: block; font-size: 0.8rem; color: var(--mt-ink); }
.mt-author small { display: block; font-size: 0.7rem; color: var(--mt-muted); }
.mt-buy {
    flex: none;
    padding: 0.42rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    transition: filter 0.15s ease;
}
.mt-buy:hover { filter: brightness(1.08); color: #fff; }
.mt-tone-0 .mt-buy { background: var(--mt-wine); }
.mt-tone-1 .mt-buy { background: var(--mt-sage); }
.mt-tone-2 .mt-buy { background: #b08a3e; }
.mt-tone-3 .mt-buy { background: var(--mt-copper); }
.mt-tone-4 .mt-buy { background: #7d5a86; }

.mt-page .lj-later-title { margin: 0 0 0.55rem; font-family: "EB Garamond", Georgia, serif; font-style: italic; font-size: 1.08rem; color: var(--mt-muted); }
.mt-page .lj-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.mt-page .lj-chips li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px dashed rgba(122, 46, 58, 0.3);
    font-size: 0.8rem;
    color: var(--mt-muted);
    scroll-margin-top: 90px;
}
.mt-page .lj-chips .material-icons-outlined { font-size: 1rem; color: var(--mt-wine); }
.mt-member { display: flex; align-items: center; justify-content: center; gap: 0.45rem; margin: 1rem 0 0; color: var(--mt-muted); }
.mt-member a { color: var(--mt-wine); font-weight: 700; }

/* ---------- Como funciona ---------- */
.mt-how { padding: 4.2rem 0 1rem; }
.mt-how .mt-head { justify-content: center; text-align: center; }
.mt-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; margin: 0; padding: 0; list-style: none; }
.mt-steps li { position: relative; padding: 1.6rem 1.4rem 1.4rem; background: var(--mt-card); border-radius: 20px; box-shadow: 0 8px 24px rgba(62, 31, 34, 0.06); }
.mt-steps .mt-step-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 0.9rem; border-radius: 16px; color: #fff; }
.mt-steps li:nth-child(1) .mt-step-ico { background: var(--mt-copper); }
.mt-steps li:nth-child(2) .mt-step-ico { background: var(--mt-wine); }
.mt-steps li:nth-child(3) .mt-step-ico { background: var(--mt-sage); }
.mt-steps .mt-step-n { position: absolute; top: 1.2rem; right: 1.4rem; font-family: "EB Garamond", Georgia, serif; font-size: 2.4rem; font-weight: 600; line-height: 1; color: rgba(122, 46, 58, 0.12); }
.mt-steps h3 { margin: 0 0 0.4rem; font-family: "EB Garamond", Georgia, serif; font-size: 1.3rem; font-weight: 600; color: var(--mt-ink); }
.mt-steps p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--mt-muted); }
.mt-steps a { color: var(--mt-wine); font-weight: 700; }

/* ---------- Dúvidas ---------- */
.mt-faq { padding: 3.6rem 0 1rem; }
.mt-faq-list { display: grid; gap: 0.75rem; max-width: 820px; margin: 0 auto; }
.mt-faq details { padding: 1rem 1.25rem; background: var(--mt-card); border-radius: 16px; box-shadow: 0 4px 16px rgba(62, 31, 34, 0.05); }
.mt-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-weight: 700; color: var(--mt-ink); cursor: pointer; list-style: none; }
.mt-faq summary::-webkit-details-marker { display: none; }
.mt-faq summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mt-rose-soft); color: var(--mt-wine); font-size: 1.1rem; }
.mt-faq details[open] summary::after { content: '−'; }
.mt-faq details p { margin: 0.7rem 0 0; font-size: 0.9rem; line-height: 1.65; color: var(--mt-muted); }
.mt-faq details a { color: var(--mt-wine); font-weight: 700; }

/* ---------- Rodapé da página ---------- */
.mt-notes { padding: 3rem 0 4rem; }
.mt-notes-box { max-width: 820px; margin: 0 auto; padding: 1.5rem 1.6rem; border: 2px solid var(--mt-line); border-radius: 24px; text-align: center; }
.mt-notes-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem 1.6rem; margin: 0 0 1rem; }
.mt-notes-links a { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; color: var(--mt-wine); text-decoration: none; }
.mt-notes p { margin: 0.5rem 0 0; font-size: 0.84rem; line-height: 1.6; color: var(--mt-muted); }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
    .mt-arch { width: 112px; height: 132px; bottom: -22px; padding: 10px 10px 0; }
    .mt-arch--left { left: 16px; }
    .mt-arch--right { right: 16px; }
    .mt-link-line { display: none; }
    .mt-hero-frame { padding-bottom: 7rem; }
    .mt-steps { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .mt-wrap { width: min(1120px, 100% - 1.5rem); }
    .mt-hero { padding-top: 1.4rem; }
    .mt-hero-frame { padding: 2.2rem 1.1rem 7.4rem; border-radius: 26px; }
    .mt-deco-ring { width: 96px; height: 96px; border-width: 22px; top: -22px; right: -14px; }
    .mt-hero-arrow { margin-left: 52%; }
    .mt-btn { width: 100%; }
    .mt-arch { width: 98px; height: 116px; }
    .mt-trust { gap: 0.7rem 1.4rem; margin-top: 2.8rem; }
    .mt-trust li { font-size: 0.86rem; }
    .mt-collection { padding: 3rem 0 3.4rem; border-radius: 34px 34px 0 0; }
    .mt-deco-tri { display: none; }
    .mt-page .lj-grid { grid-template-columns: 1fr; }
}

/* ---------- Modo escuro ---------- */
html[data-theme="dark"] .mt-page {
    --mt-ink: #f4efe8;
    --mt-muted: #cbbdb6;
    --mt-line: rgba(230, 169, 177, 0.3);
    --mt-bg: #1c1416;
    --mt-panel: #251b1d;
    --mt-card: #2f2326;
    --mt-rose-soft: #4a2e33;
    --mt-copper-soft: #4a3226;
    --mt-gold-soft: #463a24;
    --mt-sage-soft: #33392d;
}
html[data-theme="dark"] .mt-page .mt-hl-wine,
html[data-theme="dark"] .mt-page .mt-head h2 span,
html[data-theme="dark"] .mt-page .mt-price,
html[data-theme="dark"] .mt-page .lj-cat-title,
html[data-theme="dark"] .mt-page .mt-head-link,
html[data-theme="dark"] .mt-page .mt-notes-links a,
html[data-theme="dark"] .mt-page .mt-faq details a,
html[data-theme="dark"] .mt-page .mt-steps a,
html[data-theme="dark"] .mt-page .mt-member a { color: #e6a9b1; }
html[data-theme="dark"] .mt-page .lj-jump a { color: #e6a9b1; }
html[data-theme="dark"] .mt-page .lj-jump a:hover { background: #e6a9b1; color: #2b1a1c; }
html[data-theme="dark"] .mt-page .mt-trust li { color: #9d8d86; }
html[data-theme="dark"] .mt-page .mt-author img { background: #f5eee3; }
html[data-theme="dark"] .mt-page .lj-chips li { background: rgba(255, 255, 255, 0.04); }

@media (prefers-reduced-motion: reduce) {
    .mt-card, .mt-card-img img, .mt-btn, .mt-page .lj-jump a { transition: none; }
    .mt-card:hover, .mt-btn:hover { transform: none; }
}
