/* Journal-specific OJS 3.5 correction: keep the supplied logo readable. */
.pkp_structure_head .pkp_site_name .is_img {
  background: #fff;
  padding: 5px 8px;
}

.pkp_structure_head .pkp_site_name .is_img img {
  display: block;
  width: auto;
  height: auto;
  max-height: 80px;
  max-width: 100%;
}

/* Give the full mark and its tagline room beside the mobile menu button. */
@media (max-width: 991px) {
  .pkp_site_name_wrapper,
  .pkp_site_nav_toggle {
    height: 72px;
  }

  .pkp_structure_head .pkp_site_name {
    top: 0;
    left: 40px;
    right: 0;
    padding-left: 10px;
    overflow: visible;
  }

  .pkp_structure_head .pkp_site_name .is_img {
    max-width: calc(100% - 10px);
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 3px 5px;
  }

  .pkp_structure_head .pkp_site_name .is_img img {
    max-height: 56px;
  }
}

/* The PKP brand artwork has an intrinsic width larger than its footer link. */
.pkp_brand_footer a {
  width: 150px;
  max-width: 100%;
}

.pkp_brand_footer a img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 767px) {
  .pkp_brand_footer {
    padding: 24px 15px;
  }

  .pkp_brand_footer a {
    float: none;
    margin: 0 auto;
  }
}

/* Keep the PKP brand legible on the dark journal footer. */
.pkp_structure_footer_wrapper .pkp_brand_footer img {
  filter: invert(1);
}

/* ==========================================================================
   Palladianist – Homepage refinements (OJS 3.5, tema "palladianist")
   Foglio di stile completo (regole 2026-10-18 + homepage 2026-11-03)
   (Settings › Website › Appearance › Advanced › Journal style sheet).
   1) immagine al posto della "P" nell'hero
   2) blocco Call for Papers (dal campo "Additional Content")
   3) indice del numero corrente a griglia
   ========================================================================== */

:root {
  --pj-navy: #1f2a4d;
  --pj-red: #9b1b2a;
  --pj-sand: #e8d9c4;
  --pj-cream: #f7f3ec;
  --pj-ink: #1b1b1b;
  --pj-muted: #5b6b8c;
}

/* --------------------------------------------------------------------------
   0. Ordine dei blocchi in homepage: hero → call for papers → numero → percorsi
   -------------------------------------------------------------------------- */
.pj-home {
  display: flex;
  flex-direction: column;
}
.pj-home > .pj-home-hero        { order: 1; }
.pj-home > .additional_content  { order: 2; }
.pj-home > .pj-home-issue       { order: 3; }
.pj-home > .pj-home-pathways    { order: 4; }
.pj-home > *                    { order: 5; } /* eventuali altri blocchi in fondo */

/* --------------------------------------------------------------------------
   1. Immagine al posto della "P"
   L'URL è quello dell'immagine caricata in
   Settings › Website › Appearance › Homepage Image.
   Verificate il nome esatto del file (tasto destro › Copia indirizzo immagine).
   -------------------------------------------------------------------------- */
.pj-home-mark {
  align-self: stretch;
}
.pj-home-mark span {
  display: block;
  width: 100%;
  min-width: 200px;
  aspect-ratio: 3 / 4;
  font-size: 0;                 /* nasconde la lettera */
  line-height: 0;
  color: transparent;
  background: var(--pj-cream) url("/public/journals/1/homepageImage_en.jpg") center / cover no-repeat;
  border-bottom: 3px solid var(--pj-red);
}
/* se il tema mostra anche l'immagine di homepage altrove, la nascondiamo */
.pj-home .homepage_image { display: none; }

/* --------------------------------------------------------------------------
   2. Call for Papers (contenuto del campo "Additional Content")
   Struttura attesa (solo tag ammessi da OJS):
   <p><em>kicker</em></p> <p><strong>titolo</strong></p> <p>sottotitolo</p>
   <p>testo…</p> <dl>date</dl> <p><a>Submit</a> <a>PDF</a></p>
   -------------------------------------------------------------------------- */
.pj-home > .additional_content {
  position: relative;
  margin: 0 0 56px;
  padding: 48px 56px;
  background: var(--pj-navy);
  color: #fff;
  border-top: 4px solid var(--pj-red);
}
.additional_content p { margin: 0 0 14px; line-height: 1.6; max-width: 62ch; }
.additional_content p:first-child em {
  font: 600 13px/1 "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-style: normal;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #e7b9be;
}
.additional_content p:nth-child(2) strong {
  display: block;
  font: 400 clamp(30px, 4vw, 44px)/1.08 "Cormorant Garamond", Georgia, serif;
  color: #fff;
  margin-top: 6px;
}
.additional_content p:nth-child(3) {
  font: italic 400 21px/1.35 "Cormorant Garamond", Georgia, serif;
  color: var(--pj-sand);
  margin-bottom: 22px;
}
/* dt/dd affiancati: ogni coppia data-etichetta occupa una colonna */
.additional_content dl {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: auto auto;
  grid-auto-columns: 1fr;
  column-gap: 20px;
  margin: 26px 0 30px;
  border-top: 1px solid rgba(255,255,255,.25);
}
.additional_content dl > dt,
.additional_content dl > dd { margin: 0; }
.additional_content dl dt {
  padding-top: 14px;
  font: 600 12px/1.2 "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #c9cfdd;
}
.additional_content dl dd {
  padding-bottom: 14px;
  font: 400 22px/1.2 "Cormorant Garamond", Georgia, serif;
  color: #fff;
}
.additional_content dl dd:last-of-type { color: #f2c46d; } /* data di pubblicazione */
.additional_content p:last-child { margin: 0; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.additional_content a { color: #fff; }
.additional_content p:last-child a:first-child {
  background: var(--pj-red);
  padding: 11px 20px;
  text-decoration: none;
  font: 600 16px/1 "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  letter-spacing: .02em;
}
.additional_content p:last-child a:first-child:hover { background: #7d1522; }
.additional_content p:last-child a:first-child::after { content: "  →"; }
.additional_content p:last-child a + a {
  font: 600 16px/1 "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  text-underline-offset: 4px;
}
@media (max-width: 760px) {
  .pj-home > .additional_content { padding: 32px 22px; }
  .additional_content dl { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
}

/* --------------------------------------------------------------------------
   3. Numero corrente: testata orizzontale + indice a griglia
   -------------------------------------------------------------------------- */
.pj-home-issue-grid {
  grid-template-columns: 1fr !important;
  gap: 28px !important;
}
.pj-home-issue-intro {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-areas:
    "cover kicker"
    "cover title"
    "cover issue"
    "cover link";
  column-gap: 36px;
  align-content: end;
  align-items: end;
}
.pj-home-issue-intro .pj-home-kicker   { grid-area: kicker; margin-bottom: 6px; }
.pj-home-issue-intro h2                { grid-area: title; margin: 0 0 10px; }
.pj-home-issue-intro .pj-home-issue-cover { grid-area: cover; align-self: start; }
.pj-home-issue-intro .pj-home-issue-cover img { width: 100%; display: block; box-shadow: 0 10px 28px rgba(31,42,77,.18); }
.pj-home-issue-intro .current_issue_title { grid-area: issue; margin-bottom: 12px; }
.pj-home-issue-intro .pj-home-text-link   { grid-area: link; }

/* la copertina ripetuta dentro l'indice non serve più */
.pj-home-issue-contents .obj_issue_toc > .heading .cover { display: none; }
.pj-home-issue-contents .obj_issue_toc > .heading {
  display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: baseline;
  padding-bottom: 14px; border-bottom: 1px solid var(--pj-sand);
}
.pj-home-issue-contents .obj_issue_toc > .heading p { margin: 0; }

/* sezioni a tutta larghezza, articoli in griglia */
.pj-home-issue-contents .galleys,
.pj-home-issue-contents .sections .section {
  margin: 34px 0 0 !important;
  padding: 0 !important;
}
.pj-home-issue-contents .galleys::before,
.pj-home-issue-contents .sections .section::before { display: none !important; }
.pj-home-issue-contents .galleys > h3,
.pj-home-issue-contents .sections .section > h3 {
  padding: 0 !important;
  margin: 0 0 16px !important;
  left: 0 !important;
  top: 0 !important;
  background: none !important;
  color: var(--pj-red) !important;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pj-home-issue-contents .cmp_article_list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 28px 24px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
}
.pj-home-issue-contents .cmp_article_list > li { margin: 0 !important; padding: 0 !important; }
.pj-home-issue-contents .obj_article_summary {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 14px 0 0;
  border-top: 3px solid var(--pj-navy);
}
.pj-home-issue-contents .obj_article_summary .cover { order: -1; float: none; width: 100%; margin: 0 0 12px; }
.pj-home-issue-contents .obj_article_summary .cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pj-home-issue-contents .obj_article_summary .title { font-size: 1rem; margin: 0 0 8px; }
.pj-home-issue-contents .obj_article_summary .title a { font-size: 22px; line-height: 1.15; }
.pj-home-issue-contents .obj_article_summary .title .subtitle { display: block; margin-top: 6px; font-size: 16px; line-height: 1.3; }
.pj-home-issue-contents .obj_article_summary .meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.pj-home-issue-contents .obj_article_summary .galleys_links { margin-top: auto; padding-top: 12px; }
.pj-home-issue-contents .articleStatsGrid--summary { margin-top: 10px; }

@media (max-width: 760px) {
  .pj-home-issue-intro {
    grid-template-columns: 110px 1fr;
    column-gap: 18px;
  }
}
