/*
Theme Name: Portfolio Editorial Nakel — Galerias na página inicial (v5)
Theme URI: https://wordpress.org/themes/
Author: Portfolio Editorial
Description: Modelo editorial responsivo com galerias de projetos, categorias priorizadas, biografia e contatos editáveis.
Version: 1.4.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: portfolio-editorial-nakel
*/
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--bg:#fafaf8;--ink:#171717;--muted:#777;--line:#dcdcd8;--accent:#db4a2b}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:'DM Sans',Arial,sans-serif;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font:inherit}.wrap{width:min(1420px,calc(100% - 100px));margin:auto}.site-header{height:92px;display:flex;align-items:center;justify-content:space-between;padding:0 50px;border-bottom:1px solid var(--line)}.wordmark{font-family:Manrope,sans-serif;font-size:21px;letter-spacing:-1.3px;font-weight:800}.wordmark span{font-weight:400}.wordmark i{font-size:9px;font-style:normal;vertical-align:top;margin-left:3px}.nav{display:flex;gap:37px;align-items:center;font-size:12px;font-weight:600}.nav a:hover,.text-link:hover{color:var(--accent)}.contact-link{border-bottom:1px solid;padding-bottom:5px}.menu-toggle{display:none}.hero{min-height:680px;padding-top:98px;padding-bottom:65px}.eyebrow,.section-heading,.footer-cta>span{font-size:10px;letter-spacing:1.5px;font-weight:700}.dot{display:inline-block;width:7px;height:7px;background:var(--accent);border-radius:50%;margin-right:10px}.hero h1{font-family:Manrope,sans-serif;font-size:clamp(76px,10vw,170px);letter-spacing:-.09em;line-height:1.02;font-weight:600;margin:45px 0 52px}.hero h1 em,.bio h2 em,.footer-cta h2 em{font-family:Georgia,serif;font-weight:400;letter-spacing:-.07em}.hero-bottom{display:flex;justify-content:space-between;align-items:end}.hero-bottom p{font-size:18px;line-height:1.6}.round-link{width:62px;height:62px;border:1px solid var(--ink);border-radius:50%;display:grid;place-items:center;font-size:26px;transition:.2s}.round-link:hover{background:var(--ink);color:white}.work-intro{padding:90px 0 55px;border-top:1px solid var(--line)}.section-heading{display:flex;justify-content:space-between}.work-intro h2{font-size:clamp(40px,6vw,80px);letter-spacing:-.065em;margin:65px 0 10px;font-weight:500}.work-intro p{max-width:540px;color:#666;line-height:1.7}.projects{display:grid;grid-template-columns:1fr;gap:100px;padding-bottom:150px}.project-visual{height:clamp(400px,55vw,750px);position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}.project-info{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:20px 0 17px}.project-info h3{font-size:clamp(24px,3vw,40px);letter-spacing:-.055em;font-weight:500;margin:0}.project-info span{font-size:12px;color:var(--muted)}.project-info b{font-size:22px;color:var(--ink);margin-left:24px;font-weight:400}.project>p{color:#777;font-size:15px;line-height:1.6}.visual-note{position:absolute;bottom:23px;left:28px;font-size:10px;letter-spacing:.4px;opacity:.6}.visual-ad{background:#e6e3da;color:#1e2521;flex-direction:column}.visual-ad .visual-kicker{position:absolute;top:30px;left:30px;font-size:11px;letter-spacing:2px}.visual-ad strong{font-family:Manrope,sans-serif;font-size:clamp(58px,10vw,155px);line-height:.91;letter-spacing:-.09em;font-weight:800}.accent{color:var(--accent)}.visual-direct{background:#b9c4c1}.small-index{position:absolute;top:30px;left:30px;font-size:11px;letter-spacing:1.5px}.direct-card{background:#f1efe6;width:64%;min-height:65%;padding:7%;display:flex;flex-direction:column;justify-content:space-between;transform:rotate(-5deg);box-shadow:25px 30px 50px #0002}.direct-card>span{font-size:12px;letter-spacing:2px}.direct-card strong{font-size:clamp(35px,6vw,95px);letter-spacing:-.08em;line-height:1}.direct-card .line{height:2px;background:#222;width:100%}.direct-card small{font-size:10px}.visual-web{background:#222f38;padding:7%}.browser{width:90%;height:85%;background:#f1f1e9;box-shadow:15px 25px 65px #0005}.browser-top{height:43px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 20px;font-size:11px;color:#777}.browser-body{padding:6%;height:calc(100% - 43px);display:flex;flex-direction:column;justify-content:space-between}.browser-body>span{font-size:11px;letter-spacing:2px}.browser-body strong{font-size:clamp(32px,6vw,85px);letter-spacing:-.08em;line-height:1}.browser-grid{display:flex;gap:10px;height:24%}.browser-grid div{flex:1;background:#b8c9c2}.browser-grid div:nth-child(2){background:#d0b3a1}.browser-grid div:nth-child(3){background:#d4d2bd}.visual-web .visual-note{color:#fff}.visual-social{background:#e3dbcf;gap:3%;padding:9%}.social-one,.social-two{width:40%;height:78%;display:flex;flex-direction:column;justify-content:center;padding:5%;box-shadow:12px 20px 30px #0002}.social-one{background:#f55b34;color:#191919;font-family:Manrope,sans-serif;font-size:clamp(35px,6vw,90px);font-weight:800;line-height:.9;letter-spacing:-.08em}.social-one i{font-family:Georgia,serif;font-weight:400}.social-two{background:#161b19;color:#fff;justify-content:space-between}.social-two span{font-size:10px;letter-spacing:1.5px}.social-two strong{font-size:clamp(25px,4.5vw,70px);line-height:1;letter-spacing:-.08em}.visual-ent{background:#e7bc44;flex-direction:column;align-items:flex-start;padding:8%}.visual-ent>span:first-child{font-size:11px;letter-spacing:2px}.ent-type{font-family:Manrope,sans-serif;font-size:clamp(62px,10vw,160px);line-height:.85;font-weight:800;letter-spacing:-.1em;margin:auto 0}.ent-type i{font-family:Georgia,serif;font-weight:400}.ent-type span{font-size:.6em;color:#e34e2e;margin-left:30px}.visual-brand{background:#ddd7cd}.brand-mark{font-family:Georgia,serif;font-size:clamp(250px,40vw,570px);line-height:1;color:#2e4039;letter-spacing:-.13em;transform:translateY(-8%)}.brand-mark span{color:#b55d45}.brand-details{position:absolute;bottom:50px;right:50px;text-align:right}.brand-details span{font-size:10px;letter-spacing:1px}.brand-details strong{display:block;font-size:22px;margin-top:12px;font-weight:500}.visual-ai{background:#172723;color:#f1f3e8;display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;padding:5%}.ai-grid,.ai-bottom{display:flex;justify-content:space-between;font-size:11px;letter-spacing:2px;border-top:1px solid #ffffff55;padding-top:20px}.visual-ai strong{font-family:Manrope,sans-serif;font-size:clamp(50px,8vw,125px);line-height:.97;letter-spacing:-.085em}.visual-ai strong i{font-family:Georgia,serif;font-weight:400;color:#b3d3b5}.metrics{display:flex;align-items:center;gap:35px;margin-top:30px}.metrics div{display:flex;flex-direction:column}.metrics strong{font-size:50px;font-weight:500;letter-spacing:-.07em}.metrics small{font-size:19px}.metrics div span{font-size:12px;color:#777}.metric-arrow{font-size:30px;color:#999}.bio{background:#eeeee9;padding:90px 0 120px}.bio-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:10%;margin-top:90px}.bio h2,.footer-cta h2{font-family:Manrope,sans-serif;font-size:clamp(55px,7vw,110px);font-weight:500;line-height:1.08;letter-spacing:-.08em;margin:0}.bio-grid p{font-size:18px;line-height:1.8;margin:0 0 25px}.bio-tags{display:flex;gap:9px;flex-wrap:wrap;margin:40px 0}.bio-tags span{border:1px solid #bbb;border-radius:40px;padding:9px 13px;font-size:11px}.text-link{border-bottom:1px solid;padding-bottom:8px;font-size:14px}.footer-cta{padding:120px 0}.footer-cta h2{margin:50px 0}.footer-cta>a{font-size:20px;border-bottom:1px solid;display:flex;justify-content:space-between;padding-bottom:15px}.site-footer{border-top:1px solid var(--line);padding:30px 0 40px;display:flex;justify-content:space-between;font-size:10px;letter-spacing:1px}a:focus-visible,button:focus-visible{outline:2px solid var(--accent);outline-offset:5px}
@media(max-width:750px){.wrap{width:calc(100% - 36px)}.site-header{height:70px;padding:0 18px}.wordmark{font-size:18px}.menu-toggle{display:block;border:0;background:none;font-size:12px;letter-spacing:1px}.menu-toggle span{margin-left:8px}.nav{display:none;position:absolute;z-index:5;top:70px;left:0;right:0;background:var(--bg);padding:25px 18px 30px;border-bottom:1px solid var(--line);flex-direction:column;align-items:flex-start;gap:25px}.nav.open{display:flex}.hero{min-height:540px;padding-top:90px;padding-bottom:45px}.hero h1{font-size:clamp(59px,13vw,100px);margin:65px 0 65px}.hero-bottom p{font-size:14px}.round-link{width:50px;height:50px}.work-intro{padding-top:60px}.work-intro h2{margin-top:50px}.section-heading{font-size:9px}.projects{gap:65px;padding-bottom:90px}.project-visual{height:clamp(310px,95vw,540px)}.project-info h3{font-size:25px}.project>p{font-size:14px}.visual-ad strong{font-size:clamp(45px,12vw,90px)}.direct-card{width:77%;min-height:62%}.direct-card strong{font-size:clamp(30px,8vw,65px)}.browser{width:96%;height:78%}.browser-body strong{font-size:clamp(30px,7vw,60px)}.social-one,.social-two{width:46%;height:65%}.social-one{font-size:clamp(28px,8vw,65px)}.social-two strong{font-size:clamp(22px,5vw,45px)}.ent-type{font-size:clamp(55px,13vw,95px)}.brand-mark{font-size:300px}.brand-details{bottom:30px;right:25px}.visual-ai strong{font-size:clamp(36px,8vw,65px)}.ai-grid,.ai-bottom{font-size:8px}.bio{padding:70px 0}.bio-grid{grid-template-columns:1fr;gap:40px;margin-top:60px}.bio-grid p{font-size:16px}.footer-cta{padding:90px 0}.site-footer{flex-wrap:wrap;gap:15px}.site-footer span:nth-child(2){display:none}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* WordPress: projetos e imagens reais substituem as composições demonstrativas. */
.project-photo { background: #e9e8e2; }
.project-photo img,
.project-detail-featured img,
.project-content img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.project-photo img { height: 100%; }
.category-works { display: grid; grid-template-columns: 1fr; gap: 72px; }
.project-gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; align-items: start; }
.project-gallery-item { display: block; overflow: hidden; background: #eeede8; line-height: 0; }
.project-gallery-item img { display: block; width: 100%; height: auto; object-fit: contain; transition: transform .3s ease; }
.project-gallery-item:hover img { transform: scale(1.02); }
.return-top-arrow { display: inline-grid; place-items: center; min-width: 24px; margin-left: 14px; color: var(--ink); transition: color .2s ease, transform .2s ease; }
.return-top-arrow:hover { color: var(--accent); transform: translateY(-2px); }
.category-description { margin-top: 0; }
.work-item { min-width: 0; }
.work-item .project-visual { margin: 0; }
.work-item > p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.category-info { margin-top: 8px; }
.contact-prompt { color: var(--muted); font-size: 14px; line-height: 1.6; }
.contact-details { display: flex; gap: 12px 24px; flex-wrap: wrap; margin-top: 32px; }
.contact-details a { border-bottom: 1px solid var(--line); padding-bottom: 7px; font-size: 14px; }
.contact-details a:hover { color: var(--accent); }
.archive-projects { display: grid; gap: 64px; padding-bottom: 120px; }
.archive-no-image { color: var(--muted); padding: 20px; font-size: 13px; }
.project-detail { padding-top: 60px; padding-bottom: 110px; }
.project-detail h1 { font-family: Manrope, sans-serif; font-size: clamp(48px, 8vw, 110px); line-height: .96; letter-spacing: -.08em; font-weight: 600; margin: 50px 0 20px; }
.project-area-label { color: var(--muted); font-size: 11px; letter-spacing: 1.3px; text-transform: uppercase; }
.project-detail-featured { margin: 35px 0 50px; background: #eeede8; }
.project-content { max-width: 980px; margin: 38px auto 0; font-size: 16px; line-height: 1.8; }
.project-content figure { margin: 30px 0; }
.project-content .wp-block-gallery.has-nested-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start; gap: 18px; margin: 30px 0 40px; }
.project-content .wp-block-gallery.has-nested-images figure.wp-block-image { width: 100% !important; margin: 0 !important; flex: none !important; }
.project-content .wp-block-gallery.has-nested-images img { width: 100%; height: auto; object-fit: contain; }
.project-content figcaption { color: var(--muted); font-size: 12px; line-height: 1.5; }
@media(max-width:750px) {
  .category-works { gap: 48px; }
  .work-item > p { font-size: 14px; }
  .project-detail { padding-top: 38px; }
  .project-content { font-size: 15px; }
  .project-content .wp-block-gallery.has-nested-images { grid-template-columns: 1fr; }
  .contact-details { gap: 12px 18px; }
}

/* Área adicionada: Embalagens */
.visual-packaging { background: #d8cdbd; color: #202923; flex-direction: column; padding: 8%; }
.packaging-kicker { position: absolute; top: 30px; left: 30px; font-size: 11px; letter-spacing: 2px; }
.packaging-stage { width: min(780px, 88%); height: 68%; display: flex; align-items: flex-end; justify-content: center; gap: 2%; margin-top: 4%; perspective: 1000px; }
.packaging-box { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 5%; box-shadow: 15px 22px 40px #0002; font-family: Manrope, sans-serif; letter-spacing: -.055em; }
.packaging-box span { font-size: clamp(22px, 3vw, 48px); line-height: .96; font-weight: 700; }
.packaging-box small { font-family: 'DM Sans', Arial, sans-serif; font-size: 9px; line-height: 1.4; letter-spacing: 1px; }
.packaging-box-tall { width: 25%; height: 86%; color: #1b2b25; background: #a8b9ab; transform: rotate(-6deg); }
.packaging-box-wide { width: 36%; height: 65%; background: #f1ece1; transform: translateY(-5%) rotate(3deg); }
.packaging-box-small { width: 23%; height: 53%; color: #f8f5ed; background: #d35b3d; transform: rotate(7deg); }
@media(max-width:750px) {
  .packaging-stage { width: 100%; height: 60%; gap: 2%; }
  .packaging-box-tall { width: 28%; height: 78%; }
  .packaging-box-wide { width: 38%; height: 61%; }
  .packaging-box-small { width: 25%; height: 50%; }
  .packaging-kicker { top: 22px; left: 18px; right: 14px; font-size: 8px; letter-spacing: 1.2px; }
  .packaging-box span { font-size: clamp(18px, 5vw, 28px); }
  .packaging-box small { font-size: 7px; letter-spacing: .6px; }
}

/* Áreas adicionadas: Impressos e Editorial/Educação */
.visual-print { background: #d8d1c6; color: #191d1a; flex-direction: column; }
.print-kicker, .editorial-kicker { position: absolute; top: 30px; left: 30px; font-size: 11px; letter-spacing: 2px; }
.print-stack { width: min(700px, 76%); height: 72%; position: relative; }
.print-poster { position: absolute; width: 49%; height: 92%; padding: 7%; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 18px 25px 45px #0003; }
.print-poster span { font: 800 clamp(27px, 5vw, 74px)/.91 Manrope, sans-serif; letter-spacing: -.08em; }
.print-poster small, .print-poster i { font-size: 10px; letter-spacing: 1.4px; font-style: normal; }
.print-poster-back { left: 4%; top: 2%; color: #f2eee4; background: #28433b; transform: rotate(-8deg); }
.print-poster-front { right: 4%; top: 4%; color: #1c211e; background: #eb6848; transform: rotate(6deg); }
.visual-editorial { background: #b7c5bc; color: #1e2923; flex-direction: column; }
.editorial-spread { display: grid; grid-template-columns: 1fr 1fr; width: min(880px, 82%); height: 68%; margin-top: 4%; box-shadow: 18px 28px 55px #0003; }
.editorial-page { padding: 8%; background: #f4f0e6; display: flex; flex-direction: column; justify-content: space-between; }
.editorial-page-left { border-right: 1px solid #d0ccc2; }
.editorial-page-right { background: #f8f6ef; }
.editorial-page small { font-size: 9px; letter-spacing: 1.2px; }
.editorial-page strong { font: 700 clamp(27px, 4.5vw, 60px)/.96 Manrope, sans-serif; letter-spacing: -.08em; }
.editorial-page span { font-size: 10px; letter-spacing: 1px; }
.editorial-lines { display: grid; gap: 10px; }
.editorial-lines i { display: block; width: 100%; height: 2px; background: #b8b8ad; }
.editorial-lines i:nth-child(2), .editorial-lines i:nth-child(5) { width: 82%; }
.editorial-lines i:nth-child(3) { width: 92%; }
.editorial-diagram { display: flex; gap: 8px; align-items: flex-end; height: 28%; }
.editorial-diagram b { flex: 1; height: 70%; background: #d86648; }
.editorial-diagram b:nth-child(2) { height: 100%; background: #93a994; }
.editorial-diagram b:nth-child(3) { height: 54%; background: #e1bd62; }
@media(max-width:750px) {
  .print-kicker, .editorial-kicker { top: 22px; left: 18px; right: 14px; font-size: 8px; letter-spacing: 1.1px; }
  .print-stack { width: 88%; height: 64%; }
  .print-poster span { font-size: clamp(24px, 7vw, 42px); }
  .print-poster small, .print-poster i { font-size: 7px; letter-spacing: .8px; }
  .editorial-spread { width: 94%; height: 60%; }
  .editorial-page { padding: 7%; }
  .editorial-page small { font-size: 7px; letter-spacing: .5px; }
  .editorial-page strong { font-size: clamp(20px, 5.5vw, 31px); }
  .editorial-page span { font-size: 7px; letter-spacing: .5px; }
  .editorial-lines { gap: 7px; }
}
