/* ============================================
   BASE.CSS — Variabili, reset, tipografia
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

ul, ol { list-style: none; }

/* --- CSS VARIABLES --- */
:root {
  /* Sunset palette (come la locandina) */
  --sunset-1: #f5e8d0;
  --sunset-2: #f0c96a;
  --sunset-3: #e87040;
  --sunset-4: #cc4080;
  --sunset-5: #a020a0;
  --sunset-6: #601880;
  --sunset-7: #300a60;
  --sunset-8: #14063a;
  --sunset-9: #06021a;

  /* Gold accents */
  --gold-bright: #f5e070;
  --gold-mid:    #d4a820;
  --gold-deep:   #9a7010;
  --gold-shine:  #fff8c0;

  /* Turchese (titolo POOL PARTY) */
  --teal-bright: #60e0f0;
  --teal-mid:    #1ab8cc;
  --teal-deep:   #087888;

  /* Pink hot (accenti) */
  --pink-hot:    #ff2d8a;
  --pink-glow:   #ff70b8;

  /* Water */
  --water-1: #1eccd8;
  --water-2: #0eaabb;
  --water-3: #077888;
  --water-4: #034050;

  /* Neutri */
  --bg-dark:    #050210;
  --bg-card:    rgba(255, 255, 255, 0.04);
  --bg-card-2:  rgba(0, 0, 0, 0.35);
  --text-light: #f5f0e8;
  --text-muted: rgba(245, 240, 232, 0.65);
  --text-dim:   rgba(245, 240, 232, 0.4);
  --border-gold: rgba(212, 168, 32, 0.4);
  --border-teal: rgba(30, 200, 220, 0.35);

  /* Font */
  --font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-italic:  'Cormorant Garamond', Georgia, serif;
  --font-body:    'Montserrat', -apple-system, sans-serif;

  /* Spacing */
  --section-pad-y: clamp(60px, 10vw, 120px);
  --container-w: 1200px;
  --container-pad: clamp(20px, 4vw, 48px);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-pill: 999px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

h2.section-title {
  font-size: clamp(32px, 5vw, 56px);
  text-align: center;
  margin-bottom: 0.3em;
  background: linear-gradient(135deg, var(--gold-shine) 0%, var(--gold-bright) 40%, var(--gold-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-eyebrow {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.5em;
  color: var(--teal-bright);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 16px;
  opacity: 0.85;
}

.section-sub {
  text-align: center;
  font-family: var(--font-italic);
  font-style: italic;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 56px;
}

p { font-size: clamp(15px, 1.5vw, 17px); color: var(--text-muted); }

/* --- CONTAINER --- */
.container {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  position: relative;
  z-index: 2;
}

/* --- SECTION BASE --- */
section {
  position: relative;
  padding: var(--section-pad-y) 0;
}

/* --- UTILITY --- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Gold divider (decorative) */
.gold-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px auto 40px;
}
.gold-divider::before,
.gold-divider::after {
  content: '';
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--gold-mid));
}
.gold-divider::after {
  background: linear-gradient(90deg, var(--gold-mid), transparent);
}
.gold-divider .diamond {
  width: 8px; height: 8px;
  background: var(--gold-bright);
  transform: rotate(45deg);
}

/* Scroll reveal animation base */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
