/* ============================================================
   AlbumBuilder PRO — Design System Globale
   style.css — Variabili, Font, Reset, Utility
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Cormorant+Garamond:wght@400;600;700&display=swap');

/* ── VARIABILI ─────────────────────────────────────────── */
:root {
  /* Colori base */
  --color-bg:          #000000;
  --color-bg-card:     #0f0f0f;
  --color-bg-card-2:   #161616;
  --color-border:      #222222;
  --color-border-light:#2e2e2e;

  /* Oro — colori ufficiali AlbumBuilder PRO */
  --color-gold-dark:   #8A6A30;
  --color-gold:        #ae8744;
  --color-gold-mid:    #c9a055;
  --color-gold-light:  #f3e295;
  --color-gold-bright: #f8f0b5;

  /* Testo */
  --color-text:        #FFFFFF;
  --color-text-muted:  #999999;
  --color-text-dim:    #666666;

  /* Gradienti — #ae8744 → #f3e295 (riferimento ufficiale) */
  --gradient-gold:       linear-gradient(135deg, #8A6A30 0%, #ae8744 30%, #f3e295 65%, #ae8744 100%);
  --gradient-gold-h:     linear-gradient(90deg,  #8A6A30 0%, #ae8744 30%, #f3e295 65%, #ae8744 100%);
  --gradient-gold-text:  linear-gradient(135deg, #ae8744 0%, #f3e295 50%, #ae8744 100%);
  --gradient-hero-glow:  radial-gradient(ellipse 80% 60% at 50% 30%, rgba(174,135,68,0.18) 0%, rgba(174,135,68,0.05) 50%, transparent 75%);
  --gradient-card-glow:  radial-gradient(ellipse 100% 80% at 50% 0%, rgba(174,135,68,0.08) 0%, transparent 60%);

  /* Glassmorphism navbar */
  --navbar-bg:    rgba(0, 0, 0, 0.85);
  --navbar-blur:  blur(20px);
  --navbar-border:rgba(174, 135, 68, 0.25);

  /* Font */
  --font:         'Outfit', sans-serif;
  --font-weight-light:  300;
  --font-weight-regular:400;
  --font-weight-medium: 500;
  --font-weight-semi:   600;
  --font-weight-bold:   700;
  --font-weight-black:  800;

  /* Spacing */
  --section-py:   120px;
  --section-px:   24px;
  --container:    1200px;
  --border-radius:12px;
  --radius-lg:    20px;
  --border-radius-lg: 20px;

  /* Transizioni */
  --transition:      0.3s ease;
  --transition-slow: 0.6s ease;

  /* Ombre */
  --shadow-gold:    0 0 30px rgba(174,135,68,0.30);
  --shadow-gold-sm: 0 0 12px rgba(174,135,68,0.18);
  --shadow-card:    0 4px 40px rgba(0,0,0,0.6);
}


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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  outline: none;
}

input, textarea, select {
  font-family: var(--font);
  outline: none;
}

/* ── CONTAINER ─────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--section-px);
}

/* ── TIPOGRAFIA ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-gold {
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted  { color: var(--color-text-muted); }
.text-center { text-align: center; }
.text-white  { color: #ffffff; }

/* ── SEZIONE LABEL (piccola etichetta sopra titolo) ────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 20px;
}
.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gradient-gold-h);
}

/* ── ORNAMENTO ——◆—— ───────────────────────────────────── */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  color: var(--color-gold);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  user-select: none;
}

.divider-gold {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-dark), var(--color-gold), var(--color-gold-dark), transparent);
  position: relative;
  margin: 0 auto;
}
.divider-gold-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 var(--section-px);
  max-width: var(--container);
  margin: 0 auto;
}
.divider-gold-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-dark), var(--color-gold));
}
.divider-gold-line.right {
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-dark), transparent);
}
.divider-gold-diamond {
  color: var(--color-gold);
  font-size: 0.7rem;
  flex-shrink: 0;
}
.section-divider {
  padding: 20px 0;
}

/* ── BOTTONI ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Bottone oro primario */
.btn-gold {
  background: var(--gradient-gold);
  color: #000;
  box-shadow: 0 4px 20px rgba(184,134,11,0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184,134,11,0.5);
  filter: brightness(1.1);
}
.btn-gold:active {
  transform: translateY(0);
}

/* Bottone outline oro */
.btn-outline {
  background: transparent;
  color: var(--color-gold-light);
  border: 1.5px solid var(--color-gold-dark);
}
.btn-outline:hover {
  background: rgba(184,134,11,0.08);
  border-color: var(--color-gold-light);
  transform: translateY(-2px);
}

/* Bottone ghost (solo testo) */
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  padding: 14px 20px;
}
.btn-ghost:hover {
  color: var(--color-gold-light);
}

/* Dimensioni */
.btn-lg {
  padding: 18px 40px;
  font-size: 1.05rem;
}
.btn-sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* ── CARD ──────────────────────────────────────────────── */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-gold-h);
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover::before {
  opacity: 1;
}
.card:hover {
  border-color: rgba(184,134,11,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-gold-sm);
}

/* Card con bordo oro sempre visibile (feature cards) */
.card-gold-top::before {
  opacity: 1;
}

/* ── BADGE ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge-gold {
  background: rgba(184,134,11,0.15);
  color: var(--color-gold-light);
  border: 1px solid rgba(184,134,11,0.3);
}
.badge-popular {
  background: var(--gradient-gold);
  color: #000;
  font-weight: var(--font-weight-bold);
}

/* ── ICONE ─────────────────────────────────────────────── */
.icon-gold {
  color: var(--color-gold);
  flex-shrink: 0;
}
.icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(184,134,11,0.1);
  border: 1px solid rgba(184,134,11,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── ANIMAZIONI SCROLL-IN ──────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ── UTILITY ───────────────────────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8  { gap: 8px;  }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.gap-32 { gap: 32px; }
.w-full { width: 100%; }
.mt-8   { margin-top: 8px; }
.mt-16  { margin-top: 16px; }
.mt-24  { margin-top: 24px; }
.mt-32  { margin-top: 32px; }
.mb-8   { margin-bottom: 8px; }
.mb-16  { margin-bottom: 16px; }
.mb-24  { margin-bottom: 24px; }
.mb-32  { margin-bottom: 32px; }

/* ── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb {
  background: var(--color-gold-dark);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--color-gold); }

/* ── SELEZIONE TESTO ───────────────────────────────────── */
::selection {
  background: rgba(184,134,11,0.3);
  color: #fff;
}

/* ── RESPONSIVE BASE ───────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-py: 80px; }
}
@media (max-width: 768px) {
  :root { --section-py: 60px; --section-px: 20px; }
}
@media (max-width: 480px) {
  :root { --section-py: 48px; --section-px: 16px; }
}
