/* ============================================================
   Variables
   ============================================================ */

:root {
  --color-bg:          #07071a;
  --color-bg-card:     #11112b;
  --color-bg-header:   #000010;
  --color-bg-footer:   #000010;
  --color-text:        #ffffff;
  --color-text-muted:  #9090b8;
  --color-accent:      #7c3aed;
  --color-accent-alt:  #f59e0b;
  --color-border:      #1e1e40;
  --color-table-head:  #1a1a38;
  --color-table-row:   #0f0f26;
  --font-main:         'Inter', sans-serif;
  --radius:            8px;
  --max-width:         1200px;
}

/* ============================================================
   Reset & base
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  background-color: var(--color-bg-header);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.custom-logo-link {
  display: flex;
  align-items: center;
}
.custom-logo-link:hover {
  text-decoration: none;
}

.custom-logo {
  height: 36px;
  width: auto;
  display: block;
}

.site-header__right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.btn--full {
  display: flex;
  width: 100%;
  justify-content: center;
}

.btn--ghost {
  color: var(--color-text);
  background: transparent;
  border: 1px solid var(--color-border);
}
.btn--ghost:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
  text-decoration: none;
}

.btn--primary {
  color: #ffffff;
  background: var(--color-accent);
  border: 1px solid transparent;
}
.btn--primary:hover {
  background: #6d28d9;
  color: #ffffff;
  text-decoration: none;
}

.site-nav__list {
  list-style: none;
  display: flex;
  gap: 32px;
}

.site-nav__list a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav__list a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* ============================================================
   Main content
   ============================================================ */

.site-main {
  min-height: calc(100vh - 64px - 80px);
  padding: 48px 0;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--color-text);
}

.page-body {
  width: 100%;
}

.page-body p {
  margin-bottom: 1.25rem;
  color: var(--color-text);
  line-height: 1.75;
}

.page-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2.5rem 0 1rem;
  color: var(--color-text);
}

.page-body h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--color-text-muted);
}

.page-body ul,
.page-body ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--color-text);
  line-height: 1.75;
}

.page-body li {
  margin-bottom: 0.4rem;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background-color: var(--color-bg-footer);
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer__copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.site-footer__list {
  list-style: none;
  display: flex;
  gap: 24px;
}

.site-footer__list a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-decoration: none;
}
.site-footer__list a:hover {
  color: var(--color-text);
  text-decoration: none;
}

/* ============================================================
   Tables — promozioni e metodi di pagamento
   ============================================================ */

.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9rem;
  background-color: var(--color-bg-card);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-body table thead {
  background-color: var(--color-table-head);
}

.page-body table th {
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
}

.page-body table td {
  padding: 12px 16px;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.page-body table tbody tr:last-child td {
  border-bottom: none;
}

.page-body table tbody tr:nth-child(even) {
  background-color: var(--color-table-row);
}

.page-body table tbody tr:hover {
  background-color: var(--color-table-head);
}

/* ============================================================
   Gutenberg Button block
   ============================================================ */

.wp-block-buttons {
  width: 100%;
}

.wp-block-button {
  width: 100%;
}

.wp-block-button__link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-main);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
  white-space: nowrap;
  background: var(--color-accent);
  color: #ffffff;
  border: 1px solid transparent;
}
.wp-block-button__link:hover {
  background: #6d28d9;
  color: #ffffff;
  text-decoration: none;
}

/* Variante outline (stile "Contorno" nell'editor) */
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border-color: var(--color-text-muted);
  color: var(--color-text);
  background: transparent;
}

/* Full width (opzione "Larghezza" 100% nell'editor) */
.wp-block-button.wp-block-button__width-100 {
  width: 100%;
}
.wp-block-button.wp-block-button__width-100 .wp-block-button__link {
  width: 100%;
}

/* ============================================================
   Badge
   ============================================================ */

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--green  { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.badge--yellow { background: rgba(245, 158, 11, 0.15);  color: #f59e0b; }
.badge--purple { background: rgba(124, 58, 237, 0.15);  color: #7c3aed; }
