/* RicostruireX — HOME edicola (handoff: ISTRUZIONI Home del sito) */
body.page-home {
  --paper: #f4f0e7;
  --paper-2: #e2dccd;
  --ink: #1c1a16;
  --ink-soft: #3a362e;
  --muted: #6b665b;
  --muted-2: #9a9484;
  --rule: #d6d0c2;
  --rosso: #9c241a;
  --max: 1180px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Times New Roman", serif;
}

body.page-home main {
  max-width: var(--max);
  padding: 0 44px 4rem;
  overflow-x: clip;
}

@media (max-width: 768px) {
  body.page-home main {
    padding: 0 16px 2.5rem;
  }
}

body.page-home .site-header,
body.page-home .site-footer {
  background: var(--paper);
  border-color: var(--ink);
  font-family: "Libre Franklin", system-ui, sans-serif;
}

body.page-home .site-header nav {
  max-width: var(--max);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.page-home .site-header a {
  color: var(--ink-soft);
}

body.page-home .site-header a:hover {
  color: var(--rosso);
}

body.page-home .site-footer {
  border-top: 1px solid var(--ink);
  font-family: "Libre Franklin", sans-serif;
  font-size: 12px;
  color: var(--muted);
}

body.page-home .footer-legal {
  margin-top: 0.5rem;
}

.rx-edition {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 10px;
  font-family: "Libre Franklin", sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.rx-rule-heavy {
  border-top: 1px solid var(--ink);
}

.rx-nameplate {
  text-align: center;
  padding: 30px 0 22px;
}

.rx-nameplate h1 {
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 5.25rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin: 0;
}

.rx-nameplate .x {
  color: var(--rosso);
}

.rx-nameplate .tagline {
  font-style: italic;
  font-size: 18px;
  color: #5a554a;
  margin: 16px 0 0;
}

.rx-nav-bar {
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 9px 0;
  margin-bottom: 0;
}

.rx-nav-bar nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
  font-family: "Libre Franklin", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .rx-nav-bar nav {
    gap: 10px 14px;
    font-size: 10px;
  }

  .rx-nav-bar .nav-search {
    margin-left: 0;
    width: 100%;
    flex: 1 1 100%;
  }

  .rx-nav-bar .nav-search input {
    width: 100%;
    box-sizing: border-box;
  }
}

.rx-nav-bar a {
  color: var(--ink-soft);
  text-decoration: none;
}

.rx-nav-bar a.active,
.rx-nav-bar a:hover {
  color: var(--rosso);
}

.rx-nav-bar .nav-search {
  margin-left: auto;
}

.rx-nav-bar .nav-search input {
  font-family: "Libre Franklin", sans-serif;
  font-size: 11px;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 4px 8px;
}

.rx-lead-grid {
  display: grid;
  grid-template-columns: 1fr 332px;
  gap: 0;
}

@media (max-width: 900px) {
  .rx-lead-grid {
    grid-template-columns: 1fr;
  }
  .rx-lead-grid article {
    border-right: none !important;
    padding-right: 0 !important;
  }
}

@media (max-width: 768px) {
  .rx-edition {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .rx-nameplate {
    padding: 22px 0 16px;
  }

  .rx-lead-grid article,
  .rx-lead-grid aside {
    padding: 22px 0 28px;
  }

  .rx-summary {
    font-size: 18px;
    max-width: none;
  }

  .rx-headline {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .rx-dropcap {
    font-size: 3rem;
  }

  .rx-cases-grid {
    grid-template-columns: 1fr;
    border-left: none;
  }

  .rx-case-card {
    border-right: none;
  }

  .rx-colophon {
    flex-direction: column;
    align-items: flex-start;
  }
}

.rx-lead-grid article {
  padding: 34px 40px 40px 0;
  border-right: 1px solid var(--rule);
}

.rx-lead-grid aside {
  padding: 34px 0 40px 32px;
}

.rx-eyebrow {
  font-family: "Libre Franklin", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rosso);
  margin-bottom: 16px;
}

.rx-headline {
  display: block;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.375rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  text-decoration: none;
}

.rx-headline:hover {
  color: var(--rosso);
}

.rx-summary {
  font-size: 21px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 20px 0 18px;
  max-width: 34ch;
}

.rx-byline {
  font-family: "Libre Franklin", sans-serif;
  font-size: 12.5px;
  color: #5a554a;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
}

.rx-byline .accent {
  color: var(--rosso);
}

.rx-photo-pit {
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  border: 1px solid #cfc8b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Libre Franklin", sans-serif;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 24px;
}

.rx-photo-cap {
  font-family: "Libre Franklin", sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 8px;
}

.rx-columns {
  margin-top: 26px;
  column-count: 2;
  column-gap: 34px;
  font-size: 16px;
  line-height: 1.62;
  color: #26231d;
  text-align: justify;
}

@media (max-width: 700px) {
  .rx-columns {
    column-count: 1;
  }
}

.rx-columns p {
  margin: 0 0 14px;
}

.rx-dropcap {
  float: left;
  font-weight: 600;
  font-size: 3.875rem;
  line-height: 0.74;
  padding: 7px 10px 0 0;
  color: var(--rosso);
}

.rx-cta {
  color: var(--rosso);
  font-family: "Libre Franklin", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #d8a39d;
}

.rx-rail-title {
  font-family: "Libre Franklin", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
  border-top: 3px solid var(--ink);
  padding-top: 14px;
}

.rx-method-row {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #e0dacd;
}

.rx-method-num {
  font-size: 24px;
  font-weight: 300;
  color: var(--rosso);
  line-height: 1;
  min-width: 30px;
}

.rx-method-desc {
  font-family: "Libre Franklin", sans-serif;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 3px;
}

.rx-legend {
  font-family: "Libre Franklin", sans-serif;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 10px;
}

.rx-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 12px;
}

.rx-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  font-style: normal;
}

.rx-press-item {
  padding: 13px 0;
  border-bottom: 1px solid #e0dacd;
}

.rx-press-meta {
  font-family: "Libre Franklin", sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--rosso);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.rx-press-title {
  font-size: 16px;
  line-height: 1.28;
  font-style: italic;
}

.rx-cases-section {
  border-top: 3px solid var(--ink);
  margin-top: 8px;
  padding-top: 14px;
}

.rx-cases-title {
  font-family: "Libre Franklin", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.rx-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.rx-case-card {
  padding: 22px 24px 26px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  min-width: 0;
}

.rx-case-card[data-accent="rol"] { --card-accent: #4a9d76; }
.rx-case-card[data-accent="padre-pio"] { --card-accent: #b08d3e; }
.rx-case-card[data-accent="majorana"] { --card-accent: #3ec9bc; }

.rx-case-pit {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--paper-2);
  border: 1px solid #cfc8b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Libre Franklin", sans-serif;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 14px;
  overflow: hidden;
}

.rx-case-pit.rx-case-pit--photo {
  display: block;
  padding: 0;
  line-height: 0;
}

.rx-case-pit.rx-case-pit--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.rx-lead-photo-block {
  margin: 24px 0 0;
}

.rx-lead-photo {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid #cfc8b8;
  background: var(--paper-2);
  line-height: 0;
}

.rx-lead-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.rx-case-meta {
  font-family: "Libre Franklin", sans-serif;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--card-accent, var(--muted));
  margin-bottom: 8px;
}

.rx-case-card h3 {
  font-size: 25px;
  font-weight: 400;
  margin: 0 0 8px;
}

.rx-case-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.rx-case-card h3 a:hover {
  color: var(--rosso);
}

.rx-case-blurb {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 12px;
}

.rx-case-cta {
  font-family: "Libre Franklin", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--rosso);
  text-decoration: none;
}

.rx-grow-card {
  background: #ebe6dc;
}

/* ── Newsletter ─────────────────────────────────────────────── */
.rx-newsletter {
  margin: 3rem 0 1rem;
  padding: 2rem 2.5rem;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--rosso);
}

.rx-newsletter-title {
  font-family: "Libre Franklin", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rosso);
  margin: 0 0 0.4rem;
}

.rx-newsletter-blurb {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
}

.rx-newsletter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 0.8rem;
}

.rx-newsletter-row input[type="email"] {
  flex: 1 1 220px;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--muted-2);
  background: var(--paper);
  color: var(--ink);
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.9rem;
}

.rx-newsletter-row input[type="email"]:focus {
  outline: 2px solid var(--rosso);
  outline-offset: 1px;
}

.rx-newsletter-check {
  font-family: "Libre Franklin", sans-serif;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.rx-newsletter-check a {
  color: var(--rosso);
}

.rx-newsletter-page {
  max-width: 640px;
  margin: 2rem auto;
}

@media (max-width: 600px) {
  .rx-newsletter {
    padding: 1.2rem 1rem;
  }
  .rx-newsletter-row {
    flex-direction: column;
  }
  .rx-newsletter-row input[type="email"],
  .rx-newsletter-row button {
    width: 100%;
  }
}

/* ── Colophon ────────────────────────────────────────────────── */
.rx-colophon {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
  font-family: "Libre Franklin", sans-serif;
  font-size: 11px;
  color: var(--muted);
}

.rx-colophon code {
  color: var(--rosso);
}

body.page-home .preview-banner {
  font-family: "Libre Franklin", sans-serif;
}

body.page-legal main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

body.page-legal .legal-doc h1 {
  font-size: 2rem;
  margin-top: 0;
}

body.page-legal .legal-doc h2 {
  font-size: 1.25rem;
  margin-top: 2rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
}

body.page-legal .legal-doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 1rem 0;
}

body.page-legal .legal-doc th,
body.page-legal .legal-doc td {
  border: 1px solid var(--rule);
  padding: 8px 10px;
  text-align: left;
}

body.page-legal .site-header .brand span.accent {
  color: var(--rosso);
}

.rx-nameplate--compact {
  padding: 22px 0 16px;
}

.rx-nameplate--compact h1 {
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  margin: 0;
}

.rx-contact {
  max-width: 640px;
  margin: 28px 0 40px;
}

.rx-contact-lead {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.rx-contact-form {
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}

.rx-form-row {
  margin-bottom: 16px;
}

.rx-form-row label {
  display: block;
  font-family: "Libre Franklin", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.rx-form-row input[type="text"],
.rx-form-row input[type="email"],
.rx-form-row textarea {
  width: 100%;
  box-sizing: border-box;
  font: 16px/1.45 "Newsreader", Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 10px 12px;
}

.rx-form-row textarea {
  resize: vertical;
  min-height: 160px;
}

.rx-form-check label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-family: "Newsreader", Georgia, serif;
  font-size: 14px;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink-soft);
  font-weight: 400;
}

.rx-form-check input {
  margin-top: 4px;
  flex-shrink: 0;
}

.rx-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.rx-turnstile {
  margin: 8px 0 16px;
}

.rx-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.rx-btn-primary {
  font-family: "Libre Franklin", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: var(--ink);
  border: none;
  padding: 12px 20px;
  cursor: pointer;
}

.rx-btn-primary:hover {
  background: var(--rosso);
}

.rx-btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.rx-form-status {
  font-family: "Libre Franklin", sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.rx-form-status--ok {
  color: #2f7d52;
}

.rx-form-status--err {
  color: var(--rosso);
}

.rx-form-note {
  font-family: "Libre Franklin", sans-serif;
  font-size: 12px;
  color: var(--muted);
}

.rx-form-warn {
  color: var(--rosso);
}
