/* ==========================================================================
   CASALE SAN GIOVANNI - LUXURY DESIGN SYSTEM & THEME
   Cantalupo in Sabina (XVII Secolo)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Palette - Italian Heritage & Warm Earth Tones */
  --color-terracotta: #A44A29;
  --color-terracotta-dark: #84371C;
  --color-terracotta-light: #C86743;
  --color-gold: #C5A059;
  --color-gold-light: #DFC288;
  --color-gold-dark: #9A7733;
  
  --color-stone-50: #FBF9F5;
  --color-stone-100: #F5EFEB;
  --color-stone-200: #EADBCE;
  --color-stone-300: #D8C3AE;
  --color-stone-400: #B79F88;
  --color-stone-700: #4A443D;
  --color-stone-800: #2C2824;
  --color-stone-900: #1A1715;
  
  --color-olive: #556B2F;
  --color-olive-light: #708A44;
  --color-olive-dark: #3B4B20;

  --color-dark-surface: #141211;
  --color-dark-card: #201D1A;
  --color-dark-border: rgba(197, 160, 89, 0.2);

  --color-text-main: #2C2824;
  --color-text-muted: #6B6259;
  --color-text-light: #9E9489;
  --color-text-inverse: #FBF9F5;

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 23, 21, 0.04);
  --shadow-md: 0 8px 24px rgba(26, 23, 21, 0.08);
  --shadow-lg: 0 16px 40px rgba(26, 23, 21, 0.12);
  --shadow-gold: 0 8px 30px rgba(197, 160, 89, 0.25);
  --shadow-card: 0 10px 30px -5px rgba(0,0,0,0.06), 0 0 1px 1px rgba(0,0,0,0.04);

  /* Spacing */
  --container-max: 1320px;
  --container-narrow: 980px;
  --header-height: 88px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-main);
  background-color: var(--color-stone-50);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  border: none;
  background: none;
  outline: none;
}

/* Luxury Typography Utilities */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--color-stone-900);
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.75;
}

p.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--color-stone-700);
  line-height: 1.6;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--color-terracotta);
  margin-bottom: 0.85rem;
}

.section-tag::before,
.section-tag::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background-color: var(--color-gold);
}

.section-tag.no-after::after {
  display: none;
}

.section-tag.light {
  color: var(--color-gold-light);
}
.section-tag.light::before,
.section-tag.light::after {
  background-color: var(--color-gold-light);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section-padding {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 4rem auto;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.section-header h2 {
  margin-bottom: 1.25rem;
}

.section-header p {
  font-size: 1.15rem;
}

/* Luxury Divider */
.ornament-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto;
  color: var(--color-gold);
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  height: 1px;
  width: 60px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-terracotta);
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(164, 74, 41, 0.3);
  border: 1px solid var(--color-terracotta);
}

.btn-primary:hover {
  background-color: var(--color-terracotta-dark);
  border-color: var(--color-terracotta-dark);
  box-shadow: 0 6px 20px rgba(164, 74, 41, 0.4);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #FFFFFF;
  box-shadow: var(--shadow-gold);
  border: 1px solid var(--color-gold-light);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(197, 160, 89, 0.4);
  color: #FFFFFF;
}

.btn-outline-light {
  background-color: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(4px);
}

.btn-outline-light:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: #FFFFFF;
  transform: translateY(-2px);
  color: #FFFFFF;
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-stone-900);
  border: 1px solid var(--color-stone-300);
}

.btn-outline-dark:hover {
  background-color: var(--color-stone-900);
  color: var(--color-stone-50);
  border-color: var(--color-stone-900);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.65rem 1.35rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

/* Cards & Badges */
.luxury-card {
  background: #FFFFFF;
  border: 1px solid var(--color-stone-200);
  border-radius: 6px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
  overflow: hidden;
}

.luxury-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold-light);
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 30px;
}

.badge-gold {
  background-color: rgba(197, 160, 89, 0.15);
  color: var(--color-gold-dark);
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.badge-terracotta {
  background-color: rgba(164, 74, 41, 0.1);
  color: var(--color-terracotta);
  border: 1px solid rgba(164, 74, 41, 0.2);
}

.badge-olive {
  background-color: rgba(85, 107, 47, 0.12);
  color: var(--color-olive);
  border: 1px solid rgba(85, 107, 47, 0.25);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-stone-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-stone-300);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-terracotta);
}
