/* ----------------------------------------------------
   Stili comuni per i siti numismatici (layout a card)
   Valido per moedanumismatica.com, adattabile agli altri
-----------------------------------------------------*/

/* Palette di base (puoi cambiare i valori per gli altri siti) */
:root {
  --nm-body-bg: #e9dec8;
  --nm-surface-bg: #f8f1e3;
  --nm-primary: #394a73;
  --nm-primary-dark: #293553;
  --nm-accent: #c2954d;      /* usato per gradient e hover */
  --nm-text-main: #2d2926;
  --nm-text-muted: #5f574f;
  --nm-card-bg: #394a73;
  --nm-card-text: #ffffff;
  --nm-footer-bg: #394a73;
}

/* Reset leggero */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--nm-text-main);
  background-color: var(--nm-body-bg);
  margin: 0;
  padding-top: 70px; /* spazio per la navbar fixed */
}

/* ------------------ Navbar ------------------ */

.navbar {
  background-color: var(--nm-primary);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.navbar .navbar-brand {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.navbar .navbar-brand img {
  max-height: 42px;
  margin-right: 8px;
}

.navbar-dark .navbar-nav .nav-link {
  color: #ffffff;
  font-weight: 500;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
  color: #fffbde;
}

.navbar-dark .dropdown-menu {
  background-color: var(--nm-primary-dark);
  border-radius: 0.5rem;
  border: none;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.navbar-dark .dropdown-item {
  color: #f3f3f3;
  font-size: 0.9rem;
}

.navbar-dark .dropdown-item:hover,
.navbar-dark .dropdown-item:focus {
  background-color: var(--nm-accent);
  color: #1b1b1b;
}

/* spazio tra menu principale e selettore lingua */
.navbar-nav.ml-auto .nav-link {
  font-size: 0.9rem;
}

/* ------------------ Hero ------------------ */

.hero-gradient {
  background: radial-gradient(circle at 0 0, var(--nm-accent) 0, var(--nm-primary) 40%, var(--nm-primary) 60%, var(--nm-accent) 100%);
  color: #ffffff;
  padding: 3rem 1rem 3.5rem;
  text-align: center;
}

.hero-gradient h1 {
  font-size: clamp(1.9rem, 3vw + 1rem, 2.6rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-gradient p {
  font-size: 1.05rem;
  max-width: 780px;
  margin: 0 auto;
}

/* ------------------ Container principale ------------------ */

.main-section {
  background-color: var(--nm-body-bg);
  padding: 3rem 1rem 2.5rem;
}

@media (min-width: 768px) {
  .main-section {
    padding-top: 3.5rem;
  }
}

/* ------------------ Card catalogo ------------------ */

.catalog-grid {
  max-width: 1100px;
  margin: 0 auto 2.5rem;
}

.catalog-grid-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.75rem;
}

.catalog-card {
  background-color: var(--nm-card-bg);
  color: var(--nm-card-text);
  border-radius: 24px;
  padding: 1.4rem 1.5rem 1.6rem;
  text-align: center;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
  max-width: 280px;
  flex: 1 1 260px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
  background-color: var(--nm-primary-dark);
  text-decoration: none;
  color: var(--nm-card-text);
}

.catalog-card img {
  display: block;
  margin: 0 auto 0.85rem;
  width: 110px;
  height: 110px;
  object-fit: cover;
  background: #000;
  border-radius: 12px;
}

.catalog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.catalog-card-text {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #e7e7e7;
}

/* ------------------ Box pubblicità ------------------ */

.adv-box {
  max-width: 728px;
  margin: 0 auto 2.5rem;
  padding: 0.75rem;
  background-color: var(--nm-surface-bg);
  border-radius: 12px;
  border: 1px dashed rgba(0, 0, 0, 0.12);
  text-align: center;
}

/* ------------------ Blocco testuale SEO ------------------ */

.text-section {
  max-width: 980px;
  margin: 0 auto 1.5rem;
  background-color: var(--nm-surface-bg);
  border-radius: 18px;
  padding: 1.75rem 2rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.text-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--nm-primary-dark);
}

.text-section p {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--nm-text-muted);
  margin-bottom: 0.7rem;
}

.text-section ul {
  padding-left: 1.1rem;
}

.text-section li {
  margin-bottom: 0.35rem;
}

/* ------------------ Link ------------------ */

a {
  color: var(--nm-primary-dark);
  text-decoration: none;
}

a:hover {
  color: var(--nm-accent);
  text-decoration: underline;
}

/* ------------------ Footer ------------------ */

footer {
  margin-top: 2.5rem;
  background-color: var(--nm-footer-bg);
  color: #ffffff;
  padding: 1.8rem 1rem;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

footer h5 {
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

footer a {
  color: #ffffff;
  text-decoration: underline;
}

footer a:hover {
  color: #fffbde;
}

/* Piccolo aggiustamento per il badge Facebook */
footer img {
  max-width: 100%;
  height: auto;
}

/* ------------------ Utility ------------------ */

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  font-size: 0.98rem;
  color: var(--nm-text-muted);
}
