/* Bella Jozef — reproduces the Divi 5 design with plain CSS.
   Colours and fonts come from content/site.json (CSS variables in <head>). */

@font-face { font-family: "Libre Franklin"; font-weight: 100 900; font-style: normal; font-display: swap; src: url(/assets/fonts/libre-franklin-latin-wght-normal.woff2) format("woff2"); }
@font-face { font-family: "Ibarra Real Nova"; font-weight: 400 700; font-style: normal; font-display: swap; src: url(/assets/fonts/ibarra-real-nova-latin-wght-normal.woff2) format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

body { margin: 0; background: #fff; color: var(--c-text); font: 500 16px/27.2px var(--f-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6 { font-family: var(--f-heading); font-weight: 500; line-height: 1.3; margin: 0; padding-bottom: 10px; color: var(--c-heading); }
h1 { font-size: 36px; } h2 { font-size: 30px; } h3 { font-size: 26px; } h4 { font-size: 21px; } h5 { font-size: 19px; } h6 { font-size: 17px; }
p { margin: 0; padding-bottom: 1em; }
p:last-child { padding-bottom: 0; }
a { color: var(--c-link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
strong, b { font-weight: 700; }

.container { width: 80%; max-width: 1080px; margin: 0 auto; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: #fff; padding: .5em 1em; }
.skip-link:focus { left: 1em; }
:focus-visible { outline: 2px solid var(--c-link); outline-offset: 2px; }

/* Text as in WordPress: pictures floated beside the words */
.prose ul, .prose ol { margin: 0; padding: 0 0 23px 1em; line-height: 26px; }
.prose > p:last-child, .prose > ul:last-child, .prose > ol:last-child { padding-bottom: 0; }
.prose img { display: inline; }
.prose .alignright { float: right; margin: 0 0 0 15px; }
.prose .alignleft { float: left; margin: 0 15px 0 0; }
.prose em { font-style: italic; }
.tab-panel, .accordion-content { display: flow-root; }
/* As in Divi, a floated picture may hang below its own text block */

/* ---------- Header (Divi's fixed header: dark red, logo left, menu and search right) ---------- */
.site-header { background: var(--c-primary); box-shadow: 0 1px 0 rgba(0,0,0,.1); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; height: 134px; position: relative; }
.logo { margin-right: auto; padding-left: 3px; }
.logo img { width: 356px; height: auto; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
.site-nav a { display: block; font: 600 16px/1 var(--f-body); color: #ddd; padding: 6px 0; transition: opacity .3s; }
.site-nav a:hover { text-decoration: none; opacity: .7; }
.site-nav a[aria-current="page"] { color: #8bc34a; }
.menu-toggle { display: none; }
.search-toggle { width: 18px; height: 22px; margin-left: 22px; padding: 0; border: 0; background: none; cursor: pointer; color: #ddd; }
.search-toggle::before, .footer-search a::before { content: ""; display: block; width: 17px; height: 17px; background: currentColor;
  -webkit-mask: var(--icon-search) center / contain no-repeat; mask: var(--icon-search) center / contain no-repeat; }
:root { --icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='14' cy='10' r='7'/%3E%3Cpath d='M9 15 2 22'/%3E%3C/svg%3E"); }
.search-toggle:hover { opacity: .7; }
/* The search box covers the menu while open */
.site-search { position: absolute; inset: 0 0 0 auto; width: calc(100% - 380px); display: flex; align-items: center; background: var(--c-primary); }
.site-search[hidden] { display: none; }
.site-search input { flex: 1; font: 400 30px/1.3 var(--f-body); color: #fff; background: transparent; border: 0; padding: 10px 0; }
.site-search input::placeholder { color: rgba(255,255,255,.6); }
.site-search input:focus { outline: none; }
.search-close { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; position: relative; }
.search-close::before, .search-close::after { content: ""; position: absolute; left: 6px; top: 15px; width: 20px; height: 2px; background: #ddd; transform: rotate(45deg); }
.search-close::after { transform: rotate(-45deg); }

/* ---------- Sections ---------- */
.section { padding: 81px 0; }
.page-title { background: var(--c-band); padding: 47px 0; }
.page-title h1 { font-size: 48px; line-height: 1.3; }

/* Columns: Divi gutter 3 by default; gutter 4 ("wide") for the menu + text rows and the home intro */
.columns { display: flex; flex-wrap: wrap; gap: 30px 3%; align-items: flex-start; }
.column { min-width: 0; }
.column > * + * { margin-top: 30px; }
.column--1 { flex: 0 0 100%; }
.column--1-2 { flex: 0 0 48.5%; }
.column--1-3 { flex: 0 0 31.3333%; }
.column--2-3 { flex: 0 0 65.6667%; }
.column--1-4 { flex: 0 0 22.75%; }
.column--3-4 { flex: 0 0 74.25%; }
.columns--wide { column-gap: 5.5%; }
.columns--wide > .column--1-2 { flex-basis: 47.25%; }
.columns--wide > .column--1-4 { flex-basis: 20.875%; }
.columns--wide > .column--3-4 { flex-basis: 73.625%; }

/* Left column: section menu, then the published books */
.block-nav-list ul { list-style: none; margin: 0; padding: 0; }
.block-nav-list li { margin-bottom: 8px; }
.block-nav-list a { color: var(--c-menu); font-weight: 500; }
.block-nav-list a[aria-current="page"] { color: #000; font-weight: 700; }
.section-menu { padding-bottom: 81px; }
.column > .tight + * { margin-top: 8px; }
.books-heading { border-top: 3px solid var(--c-band); padding-top: 12px; text-align: center; }
.books-heading p { font-size: 14px; text-transform: uppercase; letter-spacing: 3px; color: var(--c-menu); }
.side > .block-nav-list { padding-right: 30px; }
.block-blurb.book { text-align: center; }
.book img { width: 100px; margin: 0 auto 30px; }
.book img[src$="dialogos.jpg"] { width: 104px; }
.book .blurb-title { font: 500 16px/1.7 var(--f-body); padding: 0; }
.book .blurb-title a { color: var(--c-link); }

/* Panels and boxes */
.panel { background: var(--c-panel); padding: 30px; }
.bordered { border: 1px solid rgba(204, 184, 160, .5); padding: 30px; }
.bordered--light { border-color: rgba(204, 184, 160, .3); }
.shadow { box-shadow: 0 12px 18px -6px rgba(0,0,0,.3); }

/* Home: the intro band with the poem */
.home-intro { background: var(--c-band); }
.home-intro h2 { font-size: 27px; line-height: 1.3; padding-bottom: 0; }
.home-intro strong { font-weight: 700; }
.home-intro .columns { align-items: flex-start; }

/* Poets: picture with the name under it, on a light panel */
.poet { text-align: center; }
.poet img { margin: 0 auto 30px; }
.poet .blurb-title { font-size: 30px; }

/* Download boxes (APEERJ, Revista Brasileira de Psicanálise) */
.download { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 0; background: #f5f5f5; padding: 25px 30px 25px 114px; box-shadow: 0 12px 18px -6px rgba(0,0,0,.3); }
.download::before { content: ""; position: absolute; left: 30px; top: 25px; width: 69px; height: 69px; border-radius: 50%; background: #fff; }
.download::after { content: ""; position: absolute; left: 38px; top: 33px; width: 53px; height: 53px; background: var(--c-primary);
  -webkit-mask: var(--icon-download) center / contain no-repeat; mask: var(--icon-download) center / contain no-repeat; }
:root { --icon-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 44h-6a10 10 0 0 1-1-20 15 15 0 0 1 29-4 11 11 0 0 1 9 20 9 9 0 0 1-3 4h-4'/%3E%3Cpath d='M32 30v22M24 45l8 8 8-8'/%3E%3C/svg%3E"); }
.download .blurb-title { font: 500 26px/1.3 var(--f-body); color: #000; padding-bottom: 10px; }
.download .blurb-title a { color: #000; }
.download .blurb-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.download .blurb-title a:hover { text-decoration: none; }
.download .blurb-text p { color: #333; line-height: 1.8; }

/* ---------- Image pages ---------- */
.gallery-links .columns { align-items: stretch; }
.gallery-link { height: 100%; }
.gallery-link img { width: 100%; margin-bottom: 30px; }
.gallery-link .blurb-title { font: 500 21px/1.4 var(--f-body); padding: 0 21px 21px; margin: 0; }
.gallery-link .blurb-title a { color: #333; }
.gallery-link a:hover { text-decoration: none; }
.gallery-page { padding: 57px 0 81px; }
.narrow .container { width: 80%; max-width: 576px; }
.gallery-page .column > .block-gallery + * { margin-top: 54px; }
.gallery-page .block-button { margin-top: 60px; text-align: center; }
.gallery-page .music.shadow + .block-button { margin-top: 76px; }
.block-embed iframe { display: block; }
.music iframe { height: 60px; }
.music:not(.shadow) iframe { height: auto; aspect-ratio: 200 / 24; }

/* Slideshow (Divi's fullwidth gallery: one picture at a time, arrows on hover, dots at the bottom) */
.slideshow { position: relative; overflow: hidden; background: #fff; }
.slideshow.is-ready .slide { display: none; }
.slideshow.is-ready .slide.is-active { display: block; animation: slide-fade .8s ease; }
.slide img { width: 100%; }
@keyframes slide-fade { from { opacity: .2; } to { opacity: 1; } }
.slide-arrow { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 0; background: none; cursor: pointer; opacity: 0; transition: opacity .3s, transform .3s; color: #fff; }
.slide-prev { left: 22px; transform: translateX(-20px); }
.slide-next { right: 22px; transform: translateX(20px); }
.slideshow:hover .slide-arrow, .slide-arrow:focus-visible { opacity: 1; transform: none; }
.slide-arrow::before { content: ""; position: absolute; inset: 12px; border: solid currentColor; border-width: 0 0 4px 4px; transform: rotate(45deg); filter: drop-shadow(0 0 2px rgba(0,0,0,.4)); }
.slide-next::before { transform: rotate(-135deg); }
.slide-prev::before { left: 18px; } .slide-next::before { right: 18px; }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 20px; display: flex; justify-content: center; gap: 10px; }
.slide-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(0,0,0,.3); cursor: pointer; }
.slide-dots button[aria-current="true"] { background: #333; }
.slideshow:not(.is-ready) .slide + .slide { margin-top: 10px; }
.slideshow:not(.is-ready) .slide-arrow, .slideshow:not(.is-ready) .slide-dots { display: none; }

/* Buttons */
.button { display: inline-block; font: 500 20px/1.7 var(--f-body); padding: 6px 20px; border: 2px solid var(--c-link); border-radius: 3px; color: var(--c-link); background: transparent; cursor: pointer; transition: background .2s, border-color .2s; }
.button:hover { text-decoration: none; background: rgba(0,0,0,.05); border-color: transparent; }
.button--blue { color: #2ea3f2; border-color: #2ea3f2; }
.button--solid { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.button--solid:hover { background: #8f210c; border-color: #8f210c; }
.button[disabled] { opacity: .6; cursor: wait; }

/* ---------- Tabs (vida: Português / English) ---------- */
.block-tabs { border: 1px solid #d9d9d9; }
.tab-list { display: flex; flex-wrap: wrap; background: #f4f4f4; border-bottom: 1px solid #d9d9d9; }
.tab-list[hidden] { display: none; }
.tab-list button { font: 600 16px/1.7 var(--f-body); color: #666; background: #f4f4f4; border: 0; border-right: 1px solid #d9d9d9; padding: 4px 30px; cursor: pointer; }
.tab-list button[aria-selected="true"] { background: #fff; color: #333; }
.tab-panel { padding: 50px 50px 80px; }
.tab-panel[hidden] { display: none; }

/* ---------- Accordion (Prosa e Verso) ---------- */
.accordion-item { position: relative; border: 1px solid #d9d9d9; background: #f4f4f4; padding: 20px; }  /* above a floated picture, as in Divi */
.accordion-item + .accordion-item { margin-top: 30px; }
.accordion-item[open] { background: #fff; }
.accordion-title { position: relative; display: block; list-style: none; cursor: pointer; font: 500 26px/1.3 var(--f-heading); color: #666; padding-right: 50px; }
.accordion-title::-webkit-details-marker { display: none; }
.accordion-item[open] .accordion-title { color: #333; }
.accordion-title::before, .accordion-title::after { content: ""; position: absolute; right: 0; top: 50%; width: 14px; height: 2px; margin-top: -1px; background: #ccc; }
.accordion-title::after { transform: rotate(90deg); transition: transform .2s; }
.accordion-item[open] .accordion-title::before, .accordion-item[open] .accordion-title::after { display: none; }  /* Divi hides the sign on the open item */
.accordion-content { padding-top: 20px; }

/* ---------- palavras: the message form ---------- */
.palavras-top { padding-bottom: 0; }
.palavras-row { padding: 27px 0; }
.palavras-end { padding: 27px 0 81px; }
.palavras-form .field { margin-bottom: 20px; }
.palavras-form label { display: block; font-size: 12px; font-weight: 700; line-height: 20px; color: #777771; }
.req { color: inherit; }
.palavras-form input, .palavras-form textarea { width: 100%; font: 400 16px/1.3 var(--f-body); color: #000; background: #ededed; border: 0; border-radius: 0; padding: 10px; }
.palavras-form textarea { height: 140px; resize: vertical; }
.palavras-form input:focus, .palavras-form textarea:focus { outline: 2px solid #097baa; outline-offset: 0; }
.field-count { display: block; text-align: right; font-size: 12px; line-height: 18px; color: #777771; margin-top: 5px; }
.cf-turnstile { margin-bottom: 20px; }
.palavras-form .button { font: 500 14px/20px var(--f-body); text-transform: uppercase; color: #fff; background: #097baa; border: 0; border-radius: 0; padding: 10px; min-width: 100px; }
.palavras-form .button:hover { background: #086c96; }
.form-status { margin-top: 1em; min-height: 1.6em; padding: 0; }
.form-status.is-error { color: #c0392b; }
.form-status.is-success { color: #097baa; font-weight: 700; }

/* ---------- Search results ---------- */
.search-page-form { display: flex; gap: 10px; max-width: 640px; margin-bottom: 30px; }
.search-page-form input { flex: 1; font: 400 16px/1.3 var(--f-body); padding: 10px; border: 1px solid #ccc; }
.search-page-form .button { font-size: 16px; padding: 4px 20px; }
.search-status { color: #333; }
.search-results { margin: 0; padding: 0; list-style: none; }
.search-results li { padding: 20px 0; border-bottom: 1px solid #eee; }
.search-results a { font: 500 26px/1.3 var(--f-heading); color: #333; }
.search-results p { padding: 6px 0 0; }
.search-results mark { background: rgba(204, 184, 160, .45); color: inherit; }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-footer); }
.footer-nav { padding: 32px 0 16px; }
.footer-nav ul { list-style: none; margin-top: 0; margin-bottom: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.footer-nav a { color: #666; font-weight: 500; display: block; padding-bottom: 8px; line-height: 14px; }
.footer-nav a[aria-current="page"] { color: #000; }
.footer-search a { color: #666; padding-bottom: 8px; }
.footer-search a::before { width: 17px; height: 17px; }
.footer-bottom { background: var(--c-footer-bottom); padding: 12px 0; }
.footer-bottom p { color: #fff; font-size: 14px; padding: 0; }

/* ---------- Responsive (Divi breakpoints) ---------- */
@media (max-width: 1100px) { .site-nav > ul { gap: 16px; } .search-toggle { margin-left: 16px; } .logo img { width: 300px; } }
@media (max-width: 980px) {
  /* Divi's phone/tablet header: not fixed, 80px, small logo, search and menu buttons on the right */
  .site-header { position: relative; }
  .header-inner { height: 80px; }
  .logo { padding-left: 3px; }
  .logo img { width: 121px; }
  .menu-toggle { display: block; order: 3; background: none; border: 0; padding: 0; cursor: pointer; width: 32px; height: 32px; position: relative; margin-left: 20px; }
  .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after { position: absolute; left: 3px; width: 26px; height: 2px; background: #ddd; content: ""; transition: transform .2s; }
  .menu-toggle-bars { top: 15px; }
  .menu-toggle-bars::before { left: 0; top: -8px; }
  .menu-toggle-bars::after { left: 0; top: 8px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-8px) rotate(-45deg); }
  .search-toggle { order: 2; width: 22px; height: 26px; }
  .search-toggle::before { width: 21px; height: 21px; }
  /* The menu drops down as a white panel the width of the page column, blue top edge (as in Divi) */
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 3px solid #2ea3f2; box-shadow: 0 2px 5px rgba(0,0,0,.1); padding: 5% 15px; }
  .site-nav.is-open { display: block; }
  .site-nav > ul { display: block; }
  .site-nav li { border-bottom: 1px solid rgba(0,0,0,.03); }
  .site-nav a { color: #999; font-size: 14px; padding: 15px 13.5px; }
  .site-nav a[aria-current="page"] { color: #999; }
  .site-search { width: 100%; }
  .site-search input { font-size: 20px; }

  .column--1-2, .column--1-3, .column--2-3, .column--1-4, .column--3-4,
  .columns--wide > .column--1-2, .columns--wide > .column--1-4, .columns--wide > .column--3-4 { flex-basis: 100%; }
  .main .columns, .home-intro .columns, .palavras-row .columns { row-gap: 30px; }
  .section-menu { padding-right: 0; }
  .block-nav-list { padding-right: 0; }
}
@media (max-width: 767px) {
  .page-title h1 { overflow-wrap: break-word; }
  .tab-list button { flex: 1 0 100%; text-align: left; border-right: 0; border-bottom: 1px solid #d9d9d9; }
  .tab-panel { padding: 30px; }
}

