:root {
  --bg-color: #000000;
  --text-color: #ffffff;
  --accent-color: #cba135;
  --light-accent: #e6c46a;
  --section-padding: 4rem 1rem;
  --max-width: 900px;

  --font-content: 'Cormorant Garamond', serif;
  --font-ui: 'Montserrat', sans-serif;

  /* Colori testo uniformati */
  --text-primary: #fffbe9;
  --text-secondary: rgba(244, 238, 212, 0.85);
  --text-meta: rgba(212, 175, 55, 0.8);

  /* Glassmorphism cards */
  --card-bg-glass: linear-gradient(135deg, rgba(25, 25, 25, 0.95) 0%, rgba(35, 35, 35, 0.92) 100%);
  --card-border: 1px solid rgba(212, 175, 55, 0.2);
  --card-border-hover: 1px solid rgba(212, 175, 55, 0.45);
  --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --card-shadow-hover: 0 8px 32px rgba(212, 175, 55, 0.15), 0 4px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08);

  /* Animation timing */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ====== RESET BASE ====== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  padding-top: 78px;
  margin: 0;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-content);
  line-height: 1.6;
  min-height: 100vh;
}

/* Link generali */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--light-accent);
  text-decoration: underline;
}

/* Titoli e testo contenuto */
h1, h2, h3, h4 {
  font-family: var(--font-content);
  font-weight: 600;
  margin: 0 0 1rem 0;
}
h2 {
  font-size: 1.8rem;
  color: var(--accent-color);
  text-align: center;
}

/* Base container e sezioni */
section {
  padding: var(--section-padding);
  max-width: var(--max-width);
  margin: auto;
}

/* ====== SECTION TITLE (centrale per tutte le sezioni) ======
   Usa lo stesso stile in Home: Projects, News, Video, Concerts, ecc.
   Markup atteso: <div class="section-title">Titolo</div>
*/
.section-title {
  font-family: 'Cormorant Garamond', serif;
  color: var(--accent-color);
  font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 700;
  margin-top: 2.5vw;
  margin-bottom: 3vw;
  letter-spacing: 0.03em;
  text-align: center;
  text-shadow: 0 2px 16px #000, 0 0px 1px rgba(247, 204, 60, 0.5);
}

/* ====== PAGE HERO TITLE (gradient uniformato per tutte le pagine) ====== */
/* Include all page-specific title classes for cascade override */
.page-title-gradient,
.page-title,
.news-hero__title,
.gallery-title,
.gallery-hero h1,
.gallery-header h1,
.rep-hero-title-premium,
.writings-title,
.press-kit-hero__title,
.linktree-title,
.hero-bio .hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 0%, #d4af37 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.5rem 0;
  text-align: center;
  text-transform: none;
}

/* ====== PAGE CLAIM/SUBTITLE (uniformato per tutte le pagine) ====== */
.page-claim,
.news-hero__claim,
.gallery-description,
.rep-hero-subtitle-premium,
.writings-subtitle,
.press-kit-hero__subtitle,
.linktree-role,
.hero-bio .hero-claim {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  text-align: center;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.7);
  background: none;
}

/* ====== PAGE HEADER CONTAINER ====== */
.page-header {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  text-align: center;
}

@media (max-width: 768px) {
  .page-title-gradient,
  .page-title,
  .news-hero__title,
  .gallery-title,
  .gallery-hero h1,
  .gallery-header h1,
  .rep-hero-title-premium,
  .writings-title,
  .press-kit-hero__title,
  .linktree-title,
  .hero-bio .hero-title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }

  .page-claim,
  .news-hero__claim,
  .gallery-description,
  .rep-hero-subtitle-premium,
  .writings-subtitle,
  .press-kit-hero__subtitle,
  .linktree-role,
  .hero-bio .hero-claim {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .page-header {
    padding: 1rem 1.5rem;
  }
}

/* ====== CARD HOVER EFFECT UNIFORMATO ====== */
.card-hover-lift {
  transition: all 0.4s var(--ease-smooth);
  cursor: pointer;
}

.card-hover-lift:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: var(--card-shadow-hover);
}

/* Variant con scale aggiuntivo */
.card-hover-lift-scale {
  transition: all 0.4s var(--ease-smooth);
  cursor: pointer;
}

.card-hover-lift-scale:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: var(--card-shadow-hover);
}

/* ====== GLASSMORPHISM CARD BASE ====== */
.card-glass {
  background: var(--card-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--card-border);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
}

/* ====== ACCESSIBILITY ENHANCEMENTS 2026 ====== */

/* Focus Visible - keyboard navigation indicator */
:focus-visible {
  outline: 2px solid var(--accent-color, #d4af37);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Remove default focus for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}

/* Enhanced focus for buttons and links */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-color, #d4af37);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

/* Skip to content link (accessibility) */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-color, #d4af37);
  color: #000;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  z-index: 10000;
  transition: top 0.3s ease;
}

.skip-to-content:focus {
  top: 0;
}

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

/* ARIA live region styling */
[aria-live="polite"],
[aria-live="assertive"] {
  /* Ensure visibility for screen readers */
}

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

/* ====== REDUCED MOTION SUPPORT ====== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ====== HIGH CONTRAST MODE SUPPORT ====== */
@media (prefers-contrast: high) {
  :root {
    --card-border: 2px solid rgba(212, 175, 55, 0.6);
  }

  a, button {
    text-decoration: underline;
  }

  :focus-visible {
    outline-width: 3px;
  }
}
