/* RC88 · Sezione «Tutte le opere» e banner in Home.
   Usa le variabili di opera-giorno.css: stesso inchiostro, stessa carta, stesso oro. */

/* Banner in Home: riquadro scuro, doppio filetto dorato, poche parole. */
.opere-banner {
  width: min(1180px, calc(100% - 24px));
  margin: 22px auto 8px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.opere-banner-box {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid rgba(231, 179, 90, .45);
  border-radius: 26px;
  background: var(--og-ink);
  color: var(--og-paper);
  box-shadow: inset 0 0 0 6px var(--og-ink), inset 0 0 0 7px rgba(231, 179, 90, .28), 0 22px 50px rgba(20, 12, 4, .22);
}

.opere-banner-kicker {
  margin: 0;
  color: var(--og-gold);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.opere-banner-title {
  margin: 0;
  font: 700 clamp(1.9rem, 5vw, 2.8rem)/1.05 Georgia, "Times New Roman", serif;
}

.opere-banner-text {
  margin: 0;
  max-width: 60ch;
  color: var(--og-muted);
  font-size: .98rem;
  line-height: 1.6;
}

.opere-banner-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 6px;
}

.opere-banner-count {
  margin: 0;
  color: var(--og-gold);
  font-size: .86rem;
  font-weight: 700;
}

.opere-banner-box .og-btn:focus-visible {
  outline: 3px solid rgba(231, 179, 90, .6);
  outline-offset: 3px;
}

/* Un solo banner artistico, subito sotto il Club dei Piccoli Esploratori. */
.home-arte-block {
  display: grid;
  gap: 0;
  width: min(var(--home-box-max, 1120px), calc(100% - (var(--home-box-gutter, 24px) * 2)));
  max-width: var(--home-box-max, 1120px);
  margin: 22px auto;
  overflow: hidden;
  border: 1px solid rgba(231, 179, 90, .45);
  border-radius: var(--home-box-radius, 24px);
  background: var(--og-ink);
  box-shadow: 0 22px 50px rgba(20, 12, 4, .22);
}

.home-arte-banner {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 30px);
  color: var(--og-paper);
}

.home-arte-intro {
  display: grid;
  gap: 8px;
  max-width: 760px;
}

.home-arte-kicker,
.home-arte-card-kicker {
  margin: 0;
  color: var(--og-gold);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.home-arte-title {
  margin: 0;
  color: var(--og-paper);
  font: 700 clamp(1.5rem, 3.4vw, 2.05rem)/1.08 Georgia, "Times New Roman", serif;
}

.home-arte-lead,
.home-arte-card-text {
  margin: 0;
  color: var(--og-muted);
  font-size: .96rem;
  line-height: 1.55;
}

.home-arte-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-arte-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  padding: clamp(15px, 2.2vw, 20px);
  border: 1px solid rgba(231, 179, 90, .3);
  border-radius: 18px;
}

.home-arte-card--catalog {
  background: rgba(255, 255, 255, .06);
}

.home-arte-card-title {
  margin: 0;
  color: var(--og-paper);
  font: 700 clamp(1.2rem, 2.2vw, 1.5rem)/1.1 Georgia, "Times New Roman", serif;
}

.home-arte-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}

.home-arte-card-foot .og-btn {
  min-height: 44px;
}

.home-arte-block .arte-home-banner {
  width: 100%;
  margin: 0;
  border: 0;
  border-radius: 18px;
  background: transparent;
}

.home-arte-block .arte-home-hit {
  min-height: 100%;
  border-color: rgba(83, 61, 32, .2);
  border-radius: 18px;
}

/* La sezione vera e propria: fondo scuro a tutta pagina, titolo e «torna». */
.opere-page {
  min-height: 100vh;
  padding: 16px 0 56px;
  background: var(--og-ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.opere-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
}

.opere-page-title {
  margin: 0;
  color: var(--og-paper);
  font: 700 clamp(1.5rem, 4vw, 2rem)/1.1 Georgia, "Times New Roman", serif;
}

.opere-page .og-grid-section {
  margin-top: 36px;
}

@media (max-width: 640px) {
  .home-arte-options {
    grid-template-columns: 1fr;
  }

  .home-arte-card-foot {
    align-items: stretch;
  }

  .home-arte-card-foot .og-btn {
    flex: 1 1 100%;
  }

  .opere-banner-foot .og-btn {
    flex: 1 1 100%;
  }
}
