/*
Theme Name: Pasta do Professor
Theme URI: https://example.com/pasta-do-professor
Author: Pasta do Professor
Description: Tema para professores que compartilham materiais, tutoriais, modelos do Canva e curadoria de conteúdos. Inclui tipo de conteúdo "Materiais" com filtros por tipo, disciplina e etapa, pré-visualização de modelos do Canva, botão de download e personalização completa pelo Customizer.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pasta-do-professor
Tags: education, blog, custom-colors, custom-logo, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --ink: #161a3a;
  --ink-2: color-mix(in srgb, var(--ink) 76%, var(--white));
  --line: color-mix(in srgb, var(--ink) 15%, var(--white));
  --grid: color-mix(in srgb, var(--ink) 9%, var(--white));
  --paper: #f6f7fc;
  --white: #fff;
  --on-primary: #fff;
  --sp: 1;
  --bw: 2px;
  --bd: var(--ink);
  --r-btn: 10px;

  --c-primary: #3d3bf3;
  --c-primary-dark: color-mix(in srgb, var(--c-primary) 82%, #000);
  --sun: #ffc933;
  --violet: #7b2ff2;
  --mint: #27c28f;
  --coral: #ff6b57;
  --sky: #2e9bff;

  --font-head: "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-s: 6px;
  --r-m: 12px;
  --r-l: 18px;
  --max: 1180px;
  --gap: clamp(1rem, 2.5vw, 1.75rem);
}

/* Cor de cada tipo de material (as "abas" da pasta) */
[data-tipo] { --tab: var(--ink); --tab-ink: #fff; }
[data-tipo="tutorial"]     { --tab: var(--sun);    --tab-ink: var(--ink); }
[data-tipo="modelo-canva"] { --tab: var(--violet); --tab-ink: #fff; }
[data-tipo="curadoria"]    { --tab: var(--mint);   --tab-ink: var(--ink); }
[data-tipo="jogo"]         { --tab: var(--sky);    --tab-ink: var(--ink); }

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--c-primary); text-underline-offset: 3px; }
a:hover { color: var(--c-primary-dark); }
:focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
  position: absolute; left: .5rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: var(--r-s);
}
.skip-link:focus { top: .5rem; color: #fff; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.icon { flex: none; }

/* ==========================================================================
   3. Botões
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.25rem; border-radius: var(--r-btn); border: 2px solid transparent;
  font: 700 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  background: var(--c-primary); color: var(--on-primary); transition: background .15s, transform .15s;
}
.btn:hover { background: var(--c-primary-dark); color: var(--on-primary); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--canva { background: var(--violet); }
.btn--canva:hover { background: #6420cf; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #ffd65c; color: var(--ink); }
.btn--wa { background: #25d366; color: #0b3b1e; }
.btn--wa:hover { background: #1fbd5b; color: #0b3b1e; }
.btn--block { width: 100%; }
.wa-float {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.1rem; border-radius: 99px;
  background: #25d366; color: #0b3b1e; font-weight: 700; text-decoration: none;
  border: var(--bw) solid var(--bd); box-shadow: 0 6px 18px rgba(0, 0, 0, .22);
}
.wa-float:hover { background: #1fbd5b; color: #0b3b1e; }
@media (max-width: 520px) { .wa-float span { display: none; } .wa-float { padding: .85rem; } }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 2px solid transparent; border-radius: var(--r-btn);
  color: var(--ink); cursor: pointer;
}
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--paper); border-color: var(--line); }

/* ==========================================================================
   4. Cabeçalho
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: .5rem; min-height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: .7rem; margin-right: auto;
  font: 800 1.3rem/1 var(--font-head); letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand__mark {
  width: 32px; height: 24px; flex: none;
  background: linear-gradient(90deg, var(--sun) 0 34%, var(--mint) 34% 67%, var(--coral) 67%);
  clip-path: polygon(0 22%, 0 100%, 100% 100%, 100% 0, 34% 0, 26% 22%);
}
.custom-logo { max-height: 44px; width: auto; }

.nav { order: 3; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav a {
  display: block; padding: .55rem .9rem; border-radius: var(--r-btn);
  color: var(--ink); font-weight: 700; text-decoration: none;
}
.nav a:hover { background: var(--paper); }
.nav .current-menu-item > a, .nav .current_page_item > a { background: var(--ink); color: #fff; }

.nav-toggle { display: none; order: 4; }
.search-toggle { order: 2; }
.search-panel { border-top: 1px solid var(--line); background: var(--paper); padding: .9rem 0; }
.search-panel[hidden] { display: none; }

.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] {
  flex: 1; min-width: 0; padding: .8rem 1rem; border: var(--bw) solid var(--bd); border-radius: var(--r-btn);
  font: inherit; background: var(--white); color: var(--ink);
}

/* ==========================================================================
   5. Página inicial
   ========================================================================== */
.hero {
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 34px 34px,
    var(--white);
  border-bottom: 1px solid var(--line);
  padding: calc(var(--sp) * clamp(2.5rem, 7vw, 5.5rem)) 0 calc(var(--sp) * clamp(2.5rem, 6vw, 4.5rem));
}
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.8vw, 4.6rem); line-height: 1; letter-spacing: -0.03em; margin-bottom: .45em; }
.hero__text { font-size: 1.2rem; color: var(--ink-2); max-width: 34rem; margin-bottom: 1.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* As "pastas": cada tipo de material é uma pasta com aba */
.pastas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.1rem; padding-top: 1.4rem; }
.pasta {
  position: relative; display: flex; flex-direction: column; gap: .35rem; min-height: 168px;
  padding: 1.1rem 1.1rem 1rem; text-decoration: none;
  background: var(--tab); color: var(--tab-ink);
  border-radius: 0 var(--r-m) var(--r-m) var(--r-m);
  box-shadow: 4px 4px 0 var(--ink);
  border: var(--bw) solid var(--bd);
  animation: pasta-in .55s cubic-bezier(.2,.8,.2,1) backwards;
  transition: transform .15s, box-shadow .15s;
}
.pasta:nth-child(1) { animation-delay: .05s; transform: rotate(-1.2deg); }
.pasta:nth-child(2) { animation-delay: .15s; transform: rotate(.8deg); }
.pasta:nth-child(3) { animation-delay: .25s; transform: rotate(.6deg); }
.pasta:nth-child(4) { animation-delay: .35s; transform: rotate(-.8deg); }
.pasta::before {
  content: ""; position: absolute; left: -2px; top: -24px; width: 52%; height: 24px;
  background: var(--tab); border: var(--bw) solid var(--bd); border-bottom: 0;
  border-radius: 10px 10px 0 0;
  clip-path: polygon(0 0, 82% 0, 100% 100%, 0 100%);
}
.pasta:hover { color: var(--tab-ink); transform: rotate(0) translateY(-3px); box-shadow: 6px 7px 0 var(--ink); }
.pasta__icon { margin-bottom: auto; }
.pasta__name { font: 800 1.3rem/1.1 var(--font-head); letter-spacing: -0.01em; }
.pasta__desc { font-size: .92rem; line-height: 1.35; opacity: .92; }
.pasta__count { font-weight: 700; font-size: .9rem; }
@keyframes pasta-in { from { opacity: 0; translate: 0 18px; } }

.section { padding: calc(var(--sp) * clamp(2.5rem, 6vw, 4.5rem)) 0; }
.section--white { background: var(--white); border-block: 1px solid var(--line); }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.section__head h2 { margin: 0; }
.section__head p { margin: .3rem 0 0; color: var(--ink-2); }
.link-more { font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip-link {
  display: inline-flex; align-items: baseline; gap: .5rem; padding: .55rem 1rem;
  background: var(--paper); border: var(--bw) solid var(--bd); border-radius: 99px;
  color: var(--ink); font-weight: 700; text-decoration: none;
}
.chip-link small { font-weight: 400; color: var(--ink-2); }
.chip-link:hover { background: var(--sun); color: var(--ink); }

.about { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.about__photo {
  aspect-ratio: 1; width: 100%; object-fit: cover; border-radius: var(--r-l);
  border: var(--bw) solid var(--bd); box-shadow: 6px 6px 0 var(--sun);
}
.about__photo--empty { background: var(--sun); display: grid; place-items: center; font: 800 4rem var(--font-head); }
.about p { max-width: 42rem; font-size: 1.12rem; }

.cta-band { background: var(--ink); color: #fff; padding: calc(var(--sp) * clamp(2rem, 5vw, 3.5rem)) 0; }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: #d3d6f0; max-width: 36rem; }

/* ==========================================================================
   6. Cartões de material
   ========================================================================== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }
.card {
  display: flex; flex-direction: column; background: var(--white);
  border: var(--bw) solid var(--bd); border-radius: var(--r-m); overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}
.card:hover { box-shadow: 5px 5px 0 var(--tab, var(--ink)); transform: translate(-2px, -2px); }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--tab); border-bottom: var(--bw) solid var(--bd); color: var(--tab-ink); }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__ph { position: absolute; inset: 0; display: grid; place-items: center; opacity: .9; }
.card__tab {
  position: absolute; left: 0; top: 0; z-index: 1; display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .9rem .35rem .7rem; background: var(--tab); color: var(--tab-ink);
  border-right: var(--bw) solid var(--bd); border-bottom: var(--bw) solid var(--bd);
  border-bottom-right-radius: 10px; font-size: .88rem; font-weight: 700; line-height: 1.2;
}
.card__body { display: flex; flex-direction: column; gap: .55rem; padding: 1rem 1.1rem 1.1rem; flex: 1; }
.card__title { font-size: 1.15rem; margin: 0; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* cartão inteiro clicável */
.card { position: relative; }
.card__tab { pointer-events: none; }
.card__excerpt { margin: 0; color: var(--ink-2); font-size: .95rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { padding: .1rem .6rem; background: var(--paper); border: 1px solid var(--line); border-radius: 99px; font-size: .82rem; color: var(--ink-2); }
.card__foot { margin-top: auto; padding-top: .4rem; display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .95rem; color: var(--c-primary); }

/* ==========================================================================
   7. Arquivo / filtros
   ========================================================================== */
.page-head { background: var(--white); border-bottom: 1px solid var(--line); padding: calc(var(--sp) * clamp(2rem, 5vw, 3.5rem)) 0 0; }
.page-head h1 { margin-bottom: .25em; }
.page-head__desc { color: var(--ink-2); max-width: 42rem; margin-bottom: 1.5rem; }

.tabs { display: flex; flex-wrap: wrap; gap: .35rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.tabs a {
  display: inline-flex; align-items: center; gap: .45rem; padding: .6rem 1.1rem .55rem;
  border: var(--bw) solid var(--bd); border-bottom: 0; border-radius: 12px 12px 0 0;
  background: var(--paper); color: var(--ink); font-weight: 700; text-decoration: none;
}
.tabs a:hover { background: color-mix(in srgb, var(--tab, var(--ink)) 30%, #fff); color: var(--ink); }
.tabs a[aria-current="page"] { background: var(--tab, var(--ink)); color: var(--tab-ink, #fff); padding-bottom: .75rem; margin-bottom: calc(-1 * var(--bw)); }

.filters { background: var(--paper); border-bottom: 1px solid var(--line); border-top: var(--bw) solid var(--bd); padding: 1rem 0; }
.filters form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.filters input[type="search"], .filters select {
  padding: .65rem .9rem; border: var(--bw) solid var(--bd); border-radius: var(--r-btn); background: var(--white);
  font: inherit; color: var(--ink); min-width: 0;
}
.filters input[type="search"] { flex: 1 1 220px; }
.filters select { flex: 0 1 200px; }
.filters .btn { padding: .65rem 1.1rem; }
.filters__clear { font-weight: 700; }
.results-count { margin: 0 0 1.25rem; color: var(--ink-2); }

.empty { max-width: 34rem; padding: 2rem; background: var(--white); border: 2px dashed var(--ink-2); border-radius: var(--r-m); }
.empty h2 { font-size: 1.4rem; }

.pagination { margin-top: 2.5rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }
.pagination .page-numbers {
  min-width: 44px; padding: .55rem .9rem; text-align: center; background: var(--white);
  border: var(--bw) solid var(--bd); border-radius: var(--r-btn); color: var(--ink); font-weight: 700; text-decoration: none;
}
.pagination .current, .pagination a.page-numbers:hover { background: var(--ink); color: #fff; }

/* ==========================================================================
   8. Material individual
   ========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: .95rem; color: var(--ink-2); }
.crumbs li + li::before { content: "/"; margin-right: .4rem; }
.crumbs a { color: var(--ink-2); }

.single-head { background: var(--white); border-bottom: 1px solid var(--line); padding: clamp(1.8rem, 4vw, 3rem) 0; }
.single-head h1 { max-width: 46rem; margin-bottom: .6rem; }
.tag-tab {
  display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .9rem .3rem .7rem;
  background: var(--tab); color: var(--tab-ink); border: var(--bw) solid var(--bd); border-radius: 10px 10px 10px 0;
  font-weight: 700; text-decoration: none; margin-bottom: 1rem;
}
.tag-tab:hover { color: var(--tab-ink); }
.single-lead { font-size: 1.2rem; color: var(--ink-2); max-width: 40rem; margin: 0; }

.single-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding: clamp(1.8rem, 4vw, 3rem) 0; }
.preview { margin-bottom: 2rem; border: var(--bw) solid var(--bd); border-radius: var(--r-m); overflow: hidden; background: var(--white); box-shadow: 6px 6px 0 var(--tab, var(--ink)); }
.preview__ratio { position: relative; aspect-ratio: 16 / 9; }
.preview__ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.preview img { width: 100%; }
.preview__note { margin: 0; padding: .6rem 1rem; border-top: var(--bw) solid var(--bd); font-size: .9rem; color: var(--ink-2); background: var(--paper); }

.panel { position: sticky; top: 92px; background: var(--white); border: var(--bw) solid var(--bd); border-radius: var(--r-m); padding: 1.25rem; display: grid; gap: .75rem; }
.panel h2 { font-size: 1.1rem; margin: 0; }
.panel__note { font-size: .9rem; color: var(--ink-2); margin: 0; }
.details { margin: .5rem 0 0; padding: 1rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .65rem; }
.details div { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; }
.details dt { color: var(--ink-2); }
.details dd { margin: 0; font-weight: 700; text-align: right; }
.share { display: flex; gap: .5rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.share .btn { flex: 1; padding: .6rem .5rem; font-size: .92rem; }
.copy-status { font-size: .88rem; color: var(--ink-2); min-height: 1.3em; margin: 0; }

.entry-content { font-size: 1.1rem; max-width: 46rem; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li + li { margin-top: .35em; }
.entry-content img { border-radius: var(--r-s); }
.entry-content blockquote { margin-inline: 0; padding: .6rem 1.2rem; border-left: 5px solid var(--sun); background: var(--white); }
.entry-content .wp-block-button__link { background: var(--c-primary); border-radius: var(--r-btn); font-weight: 700; }
.entry-content figure { margin-inline: 0; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }

.article { padding: calc(var(--sp) * clamp(2rem, 5vw, 3.5rem)) 0; }
.article .entry-content { margin-inline: auto; }
.article__head { max-width: 46rem; margin: 0 auto 2rem; }
.article__meta { color: var(--ink-2); font-size: .95rem; }
.related { padding: 0 0 clamp(2.5rem, 6vw, 4rem); }

/* Comentários */
.comments { max-width: 46rem; margin: 3rem auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem; margin-bottom: 1rem; }
.comment-respond input[type="text"], .comment-respond input[type="email"], .comment-respond input[type="url"], .comment-respond textarea {
  width: 100%; padding: .7rem .9rem; border: var(--bw) solid var(--bd); border-radius: var(--r-btn); font: inherit;
}
.comment-respond .submit { background: var(--c-primary); color: #fff; border: 0; padding: .8rem 1.3rem; border-radius: var(--r-btn); font: 700 1rem var(--font-body); cursor: pointer; }

/* 404 */
.not-found { padding: clamp(3rem, 9vw, 6rem) 0; max-width: 36rem; }
.not-found .search-form { margin-top: 1.5rem; }

/* ==========================================================================
   9. Rodapé
   ========================================================================== */
.site-footer { background: var(--ink); color: #d3d6f0; padding: 3rem 0 2rem; }
.site-footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer__brand { font: 800 1.4rem var(--font-head); color: #fff; margin-bottom: .5rem; }
.footer__grid h2 { font-size: 1rem; color: #fff; margin-bottom: .8rem; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.social { display: flex; gap: .6rem; flex-wrap: wrap; }
.social a {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 2px solid #fff; border-radius: var(--r-btn); color: #fff;
}
.social a:hover { background: var(--sun); border-color: var(--sun); color: var(--ink); }
.footer__legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #343a6b; font-size: .92rem; }

/* WordPress */
.alignleft { float: left; margin: 0 1.2rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.2rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .9rem; color: var(--ink-2); }
.sticky { position: relative; }

/* Vídeo do YouTube nos cartões */
.card__media { overflow: hidden; }
.card__media img.yt { transform: scale(1.334); }
.card__play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.card__play > span {
  display: grid; place-items: center; width: 56px; height: 56px; padding-left: 3px;
  background: #fff; color: #e62117; border-radius: 50%; border: var(--bw) solid var(--bd);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

/* ==========================================================================
   Opções do Customizer
   ========================================================================== */
.sem-grade .hero { background: var(--white); }
.estilo-suave { --bw: 1px; --bd: var(--line); }
.estilo-suave .pasta { box-shadow: 0 8px 22px rgba(22, 26, 58, .12); border-color: color-mix(in srgb, var(--tab) 70%, #000); }
.estilo-suave .pasta:hover { box-shadow: 0 12px 28px rgba(22, 26, 58, .18); }
.estilo-suave .pasta::before { border-color: color-mix(in srgb, var(--tab) 70%, #000); }
.estilo-suave .card:hover { box-shadow: 0 12px 28px rgba(22, 26, 58, .14); transform: translateY(-2px); }
.estilo-suave .preview { box-shadow: 0 10px 28px rgba(22, 26, 58, .1); }
.estilo-suave .about__photo { box-shadow: none; }
.estilo-suave .chip-link { border-color: var(--line); }

/* ==========================================================================
   10. Responsivo
   ========================================================================== */
@media (max-width: 900px) {
  .hero__in, .single-layout { grid-template-columns: 1fr; }
  .panel { position: static; }
  .footer__grid { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 200px; }

  .nav-toggle { display: inline-grid; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; order: 5;
    background: var(--white); border-bottom: var(--bw) solid var(--bd); padding: .75rem 1rem 1rem;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; }
}
@media (max-width: 520px) {
  .pastas { gap: 1.8rem .8rem; }
  .pasta { min-height: 150px; padding: .9rem; }
  .pasta__desc { display: none; }
  .filters select { flex: 1 1 100%; }
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .panel, .filters, .tabs, .related { display: none; }
}
