.magazine-paper-page #contenuto.site-page :is(.rubric-edition, .heart-column) {
  --rubric-ink: #24112f;
  --rubric-pink: #ed0076;
  --rubric-paper: #fff7df;
}

.magazine-paper-page #contenuto.site-page :is(.rubric-edition, .heart-column) .rubric-mast {
  margin: 0 0 clamp(24px, 4vw, 52px);
  padding: clamp(26px, 5vw, 66px);
  border: 1px solid var(--rubric-ink);
  background: var(--rubric-paper);
  box-shadow: 6px 6px var(--rubric-pink);
}
.magazine-paper-page #contenuto.site-page :is(.rubric-edition, .heart-column) .rubric-mast::before {
  display: none;
}
.magazine-paper-page #contenuto.site-page :is(.rubric-edition, .heart-column) .rubric-mast h1 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(2.65rem, 7vw, 6rem);
  line-height: .95;
  overflow-wrap: anywhere;
}
.magazine-paper-page #contenuto.site-page :is(.rubric-edition, .heart-column) .rubric-mast p {
  max-width: 60ch;
  margin-bottom: 0;
}
.magazine-paper-page #contenuto.site-page .rubric-mast .rubric-stamp {
  display: none;
}
.magazine-paper-page #contenuto.site-page .rubric-edition .rubric-stories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 34px);
  align-items: stretch;
}
.magazine-paper-page #contenuto.site-page .rubric-edition .rubric-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 0;
  margin: 0;
  background: #fff;
  border: 1px solid var(--rubric-ink);
  box-shadow: 4px 4px #f7c0d8;
}
.magazine-paper-page #contenuto.site-page .rubric-edition .rubric-lead {
  grid-column: 1 / -1;
  grid-row: auto;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: auto;
  align-items: stretch;
  background: var(--rubric-paper);
  box-shadow: 5px 5px var(--rubric-pink);
}
.magazine-paper-page #contenuto.site-page .rubric-edition .rubric-story .rubric-photo {
  min-width: 0;
  border: 0;
  box-shadow: none;
  transform: none;
}
.magazine-paper-page #contenuto.site-page .rubric-edition .rubric-photo [data-photo] {
  display: block;
  margin: 0 !important;
}
.magazine-paper-page #contenuto.site-page .rubric-edition .rubric-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto !important;
  max-height: none;
  object-fit: cover !important;
  object-position: center var(--rubric-focus, 50%) !important;
  background: #f4eee5;
}
.magazine-paper-page #contenuto.site-page .rubric-edition .rubric-story > div {
  align-self: center;
  margin: 0;
  padding: clamp(16px, 3vw, 34px);
  background: transparent;
}
.magazine-paper-page #contenuto.site-page .rubric-edition .rubric-story > div::after {
  display: none;
}
.magazine-paper-page #contenuto.site-page .rubric-edition .rubric-story h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.1;
}
.magazine-paper-page #contenuto.site-page .rubric-edition .rubric-lead h2 {
  font-size: clamp(1.8rem, 3.6vw, 3.35rem);
}
@media (max-width: 880px) {
  .magazine-paper-page #contenuto.site-page .rubric-edition .rubric-stories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .magazine-paper-page #contenuto.site-page .rubric-edition .rubric-stories,
  .magazine-paper-page #contenuto.site-page .rubric-edition .rubric-lead {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* La vita in tasca uses the home palette and opens on a real story photograph. */
.magazine-paper-page #contenuto.site-page .rubric-edition:is(.rubric-lifestyle,.rubric-magazine-spread) {
  --pocket-ink: #24112f;
  --pocket-paper: #fff9f0;
  max-width: 1100px;
  margin-inline: auto;
}
.magazine-paper-page #contenuto.site-page :is(.rubric-lifestyle,.rubric-magazine-spread) .rubric-mast {
  margin-bottom: clamp(20px, 3vw, 34px);
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.magazine-paper-page #contenuto.site-page :is(.rubric-lifestyle,.rubric-magazine-spread) .rubric-mast h1 {
  display: table;
  max-width: 100%;
  padding: .12em .28em .19em;
  background: url('/assets/approved-home/paint-yellow-pop.svg') center / 100% 100% no-repeat;
  color: var(--pocket-ink);
  font-size: clamp(2.9rem, 7vw, 6rem);
}
.magazine-paper-page #contenuto.site-page :is(.rubric-lifestyle,.rubric-magazine-spread) .rubric-mast p {
  margin-top: 10px;
}
.magazine-paper-page #contenuto.site-page :is(.rubric-lifestyle,.rubric-magazine-spread) .rubric-stories {
  gap: clamp(28px, 5vw, 58px) clamp(18px, 3vw, 32px);
}
.magazine-paper-page #contenuto.site-page :is(.rubric-lifestyle,.rubric-magazine-spread) .rubric-story {
  align-content: start;
  border: 0;
  background: none;
  box-shadow: none;
}
.magazine-paper-page #contenuto.site-page :is(.rubric-lifestyle,.rubric-magazine-spread) .rubric-lead {
  position: relative;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: center;
  padding: 0;
  background: var(--pocket-paper);
}
.magazine-paper-page #contenuto.site-page :is(.rubric-lifestyle,.rubric-magazine-spread) .rubric-lead .rubric-photo img {
  aspect-ratio: 4 / 3;
}
.magazine-paper-page #contenuto.site-page :is(.rubric-lifestyle,.rubric-magazine-spread) .rubric-lead::after {
  content: '';
  position: absolute;
  inset: auto 12px -15px auto;
  width: 40px;
  height: 42px;
  background: url('/assets/approved-home/heart-reference.svg') center / contain no-repeat;
  pointer-events: none;
}
.magazine-paper-page #contenuto.site-page :is(.rubric-lifestyle,.rubric-magazine-spread) .rubric-brief > div {
  align-self: start;
  padding: 15px 0 0;
}
.magazine-paper-page #contenuto.site-page :is(.rubric-lifestyle,.rubric-magazine-spread) .rubric-brief {
  padding-bottom: 16px;
  border-bottom: 3px solid #f7d3e1;
}
.magazine-paper-page #contenuto.site-page :is(.rubric-lifestyle,.rubric-magazine-spread) .rubric-brief:nth-child(3n) {
  border-bottom-color: #f5de51;
}
.magazine-paper-page #contenuto.site-page :is(.rubric-lifestyle,.rubric-magazine-spread) .rubric-brief:nth-child(3n + 1) {
  border-bottom-color: #89d8dd;
}
@media (max-width: 680px) {
  .magazine-paper-page #contenuto.site-page :is(.rubric-lifestyle,.rubric-magazine-spread) .rubric-lead {
    grid-template-columns: minmax(0, 1fr);
  }
  .magazine-paper-page #contenuto.site-page :is(.rubric-lifestyle,.rubric-magazine-spread) .rubric-lead .rubric-photo img {
    aspect-ratio: 16 / 10;
  }
}

.pocket-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin: 14px 0 26px;
}
.pocket-links a {
  padding: 8px 14px;
  border: 1px solid #24112f;
  color: #24112f;
  background: #fff;
  font-weight: 750;
  text-underline-offset: 3px;
}
.pocket-links a:hover,
.pocket-links a:focus-visible {
  background: #ffe86a;
}
.pocket-category,
.pocket-discover {
  margin-top: clamp(32px, 6vw, 66px);
  scroll-margin-top: 24px;
}
.pocket-category > h2,
.pocket-discover > h2 {
  display: table;
  padding: .12em .35em .2em;
  margin: 0 0 18px;
  background: url('/assets/approved-home/paint-yellow-pop.svg') center / 100% 100% no-repeat;
}
#casa-quotidianita > h2 {
  background-image: url('/assets/approved-home/paint-bubblegum-pop.svg');
}
#arte-libri-cultura > h2 {
  background-image: url('/assets/approved-home/paint-cyan-pop.svg');
}
.pocket-discover {
  padding: clamp(16px, 4vw, 36px);
  background: #fff0f6;
}
.pocket-discover .pocket-links {
  margin-bottom: 0;
}
.pocket-discover a:first-child {
  background: #ffe86a;
}

.pocket-story-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 10px 16px;
  padding: 0;
  list-style: none;
}
.pocket-story-list a {
  display: block;
  padding: 10px 14px;
  border-left: 3px solid #f38abd;
  background: #fff9ef;
  color: #24112f;
  font-weight: 750;
}
.pocket-story-list a:hover,
.pocket-story-list a:focus-visible {
  background: #ffe5f1;
}
.rubric-reading-footer {
  margin-block: 35px;
}
.rubric-reading-footer .article-letter {
  margin-bottom: 26px;
}

.pocket-story-list.pocket-photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: min(74%, 16rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: #e7599c #fff0f6;
  gap: 16px;
  padding: 4px 4px 12px;
}
.pocket-photo-strip li {
  min-width: 0;
  scroll-snap-align: start;
}
.pocket-photo-strip li a {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
  padding: 0;
  border: 1px solid #eec3da;
  border-radius: 3px;
  box-shadow: 3px 3px #f7d3e1;
}
.pocket-photo-strip li a:hover {
  box-shadow: 3px 3px #ffdc45;
}
.pocket-photo-strip a img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  object-position: center var(--rubric-focus, 50%);
  background: #f4eee5;
}
.pocket-photo-strip a span {
  padding: 10px 12px;
  line-height: 1.25;
}
@media (min-width: 761px) {
  .rubric-reading-footer > .article-letter {
    width: 56%;
    margin-left: auto;
  }
}
@media (min-width: 1050px) {
  .rubric-reading-footer .article-explore ul {
    grid-template-columns: repeat(6,minmax(0,1fr));
  }
}

.rubric-reading-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}
.rubric-reading-pair > .article-letter {
  width: auto;
  margin: 0;
}
.outings-spotlight {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  background: #fff0f6;
  border-left: 4px solid #e90078;
  box-shadow: 4px 4px #f4afd0;
}
.outings-spotlight > div {
  position: relative;
  padding: 18px 22px;
}
.outings-spotlight h2 {
  margin: 0 22px 7px 0;
  color: #291632;
  font: 900 italic clamp(24px, 3vw, 32px)/1.05 'Barlow Condensed', Impact, sans-serif;
}
.outings-spotlight p {
  margin: 0 0 8px;
  line-height: 1.3;
}
.outings-spotlight a {
  font-weight: 800;
  text-underline-offset: 4px;
}
.outings-star {
  position: absolute;
  top: 8px;
  right: 10px;
  color: #e00070;
  font-size: 23px;
}
.outings-photo {
  display: block;
  width: clamp(78px, 13vw, 146px);
}
.outings-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center var(--rubric-focus, 50%);
  background: #f4eee5;
}
@media (min-width: 761px) {
  .rubric-reading-pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  }
}

.outings-spotlight > div:only-child { grid-column: 1 / -1; }


.magazine-paper-page #contenuto.site-page .rubric-magazine-spread:is(.rubric-santi,.rubric-gesu,.rubric-maria,.rubric-fede,.rubric-star,.rubric-music) .rubric-mast h1 {
  background-image: url('/assets/approved-home/paint-bubblegum-pop.svg');
}
.magazine-paper-page #contenuto.site-page .rubric-magazine-spread:is(.rubric-animali,.rubric-natura,.rubric-sport,.rubric-solidarieta,.rubric-salvataggi) .rubric-mast h1 {
  background-image: url('/assets/approved-home/paint-cyan-pop.svg');
}

/* Reuse the preloaded Nunito files and avoid a visible font swap in rubric copy. */
@font-face {
  font-family: 'Nunito Rubric';
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url('/fonts/font-3.woff2') format('truetype');
}
@font-face {
  font-family: 'Nunito Rubric';
  font-style: normal;
  font-weight: 800;
  font-display: block;
  src: url('/fonts/font-6.woff2') format('truetype');
}
.magazine-paper-page #contenuto.site-page .rubric-edition :is(.rubric-mast > p, .rubric-story > div > p) {
  font-family: 'Nunito Rubric', Arial, sans-serif;
  font-weight: 400;
}
.magazine-paper-page #contenuto.site-page .rubric-edition :is(.rubric-tools a, .rubric-end a, .pocket-links a, .pocket-story-list a) {
  font-family: 'Nunito Rubric', Arial, sans-serif;
  font-weight: 800;
}

/* Frame upright subjects above centre, with overrides for the artwork itself. */
.rubric-edition .rubric-photo :is(.visual-vertical),
.pocket-photo-strip .rubric-photo[data-portrait] {
  --rubric-focus: 25%;
}
.rubric-edition .rubric-photo [data-photo="francesco"],
.pocket-photo-strip .rubric-photo[data-rubric-image="francesco"] {
  --rubric-focus: 0%;
}
.rubric-edition .rubric-photo [data-photo="chiara"],
.pocket-photo-strip .rubric-photo[data-rubric-image="chiara"] {
  --rubric-focus: 50%;
}

.rubric-journal .rubric-reading-pair {
  align-items: stretch;
  margin-top: 46px;
}
.rubric-journal .outings-spotlight {
  display: block;
  border: 0;
  background: #ffb4d8;
  box-shadow: none;
}
.rubric-journal .outings-photo {
  position: relative;
  z-index: 1;
  width: auto;
  margin: 0 9px;
  padding: 8px;
  transform: rotate(-2deg);
  background: #fff;
  box-shadow: 0 4px 14px #30222b20;
}
.rubric-journal .outings-photo::before {
  content: "";
  position: absolute;
  inset: -7px auto auto 42%;
  width: 58px;
  height: 16px;
  transform: rotate(5deg);
  background: #fff03ee6;
}
.rubric-journal .outings-photo img {
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}
.rubric-journal .outings-spotlight > div {
  padding: 20px 24px 24px;
}
.rubric-journal .outings-spotlight > div > a {
  display: inline-block;
  padding: 5px 10px;
  background: #fff03e;
}
.rubric-journal .rubric-reading-pair > .article-letter {
  position: relative;
  padding-top: 58px;
  border: 0;
  background: #fff5df;
  box-shadow: none;
}
.rubric-journal .rubric-reading-pair > .article-letter::before {
  content: "✉";
  position: absolute;
  top: 12px;
  left: 26px;
  color: #e90078;
  font: 30px/1 Arial, sans-serif;
}
.rubric-journal .article-explore {
  border: 0;
  background: transparent;
  padding-inline: 0;
}
.rubric-journal .article-explore li a {
  border: 0;
  border-radius: 0;
  padding: 12px;
  background: #fff5df;
  clip-path: polygon(0 4%, 13% 0, 28% 3%, 47% 0, 65% 4%, 83% 1%, 100% 3%, 100% 96%, 83% 99%, 65% 96%, 49% 100%, 32% 97%, 13% 100%, 0 97%);
}
.rubric-journal .article-explore li:nth-child(3n+2) a { background: #9ae2e8; }
.rubric-journal .article-explore li:nth-child(3n) a { background: #ffb4d8; }
.rubric-journal .article-explore li a:hover,
.rubric-journal .article-explore li a:focus-visible { background: #fff03e; }
@media (max-width: 600px) {
  .rubric-journal .article-explore ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Keep the complete layout with the rubric component that renders it. */
.rubric-journal .rubric-reading-pair {
  align-items: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.rubric-journal .outings-photo img {
  aspect-ratio: 2 / 1;
  max-height: 220px;
}
.rubric-journal .rubric-reading-pair > .article-letter {
  box-sizing: border-box;
  padding: 58px clamp(22px, 4vw, 42px) 28px;
}
.rubric-journal .article-letter-star {
  position: absolute;
  top: 12px;
  right: 20px;
  color: #e90078;
  font-size: 28px;
  line-height: 1;
}
.rubric-journal .article-letter .article-letter-title {
  margin: 0 0 12px;
  font: 900 italic clamp(25px, 3vw, 36px)/1.05 'Barlow Condensed', Impact, sans-serif;
}
.rubric-journal .article-letter a {
  display: inline-block;
  margin-top: 12px;
  border-bottom: 3px solid #e90078;
  font-weight: 800;
  text-decoration: none;
}
.rubric-journal .article-explore ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rubric-journal .article-explore li {
  display: flex;
  min-width: 0;
  margin: 0;
}
.rubric-journal .article-explore li a {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #24112f;
  font: 800 15px/1.25 Arial, sans-serif;
  text-decoration: none;
  overflow-wrap: anywhere;
}
@media (min-width: 1060px) {
  .rubric-journal .article-explore ul { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .rubric-journal .rubric-reading-pair { grid-template-columns: minmax(0, 1fr); }
  .rubric-journal .article-explore ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.article-journal-footer {
  margin-top: 34px;
}
.article-journal-footer .rubric-reading-pair {
  margin-top: 26px;
}

.outings-journal .rubric-reading-pair { align-items: stretch; }
.outings-invitation {
  position: relative;
  padding: 48px clamp(22px, 4vw, 42px) 28px;
  background: #9ae2e8;
  clip-path: polygon(0 2%, 16% 0, 32% 2%, 51% 0, 68% 2%, 84% 0, 100% 2%, 100% 98%, 84% 100%, 67% 98%, 50% 100%, 34% 98%, 16% 100%, 0 98%);
}
.outings-invitation h2 { margin: 0 0 10px; }
.outings-invitation a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 800;
  border-bottom: 3px solid #e90078;
  text-decoration: none;
}
.outings-postcard {
  position: absolute;
  top: 14px;
  right: 24px;
  padding: 0 9px;
  border: 2px solid #fff;
  background: #fff5df;
  transform: rotate(8deg);
  font-weight: 900;
}
.outings-postcard::before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  top: -4px;
  left: 50%;
  border-radius: 50%;
  background: #e90078;
}

.reading-spotlight {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #ffb4d8;
}
.reading-spotlight-photo {
  position: relative;
  flex: 0 0 min(32%, 112px);
  padding: 5px;
  background: #fff;
  transform: rotate(-3deg);
}
.reading-spotlight-photo::before {
  content: "";
  position: absolute;
  inset: -6px auto auto 28%;
  width: 42px;
  height: 13px;
  background: #fff03e;
}
.reading-spotlight-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 28%;
}
.rubric-journal .reading-spotlight h2 {
  margin: 0 0 8px;
  font: 900 italic clamp(21px, 2.6vw, 30px)/1.04 'Barlow Condensed', Impact, sans-serif;
}
.reading-spotlight p { margin: 0 0 8px; line-height: 1.3; }
.reading-spotlight a { font-weight: 800; text-decoration: underline; }

.frasi-closing .rubric-reading-pair { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.frasi-closing .frasi-postcards { min-width: 0; }
.frasi-closing .frasi-postcards .frasi-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.frasi-closing .frasi-postcards .frasi-card { min-width: 0; }
@media (max-width: 820px) {
  .frasi-closing .rubric-reading-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .frasi-closing .frasi-postcards .frasi-grid { grid-template-columns: minmax(0, 1fr); }
}

.faith-reading-footer { max-width: 1100px; margin-inline: auto; }
.faith-reading-card {
  position: relative;
  padding: 24px 50px 28px 24px;
  background: #9ae2e8;
  clip-path: polygon(0 3%, 22% 0, 45% 3%, 71% 0, 100% 2%, 100% 97%, 75% 100%, 49% 97%, 23% 100%, 0 97%);
}
.faith-reading-card.faith-reading-pink { background: #ffb4d8; }
.faith-reading-card > span { position: absolute; top: 13px; right: 18px; color: #9d004e; font-size: 28px; }
.faith-reading-card h2 { margin: 0 0 12px; }
.faith-reading-card a { font-weight: 800; text-decoration: underline; }
