@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Canaveral / Soluzioni Ristoranti Design System */
  --color-primary: #F65F62;          /* Canaveral Coral Accent */
  --color-primary-hover: #ff7578;
  --color-primary-dark: #d94b4e;
  --color-accent: #10B981;           /* Success Emerald */
  
  --color-bg-base: #111011;          /* Canaveral Deep Dark Base */
  --color-card-bg: rgba(25, 23, 24, 0.92); /* #191718 with glass */
  --color-surface-1: #191718;
  --color-surface-2: #242123;
  --color-surface-3: #2e2a2c;
  
  --color-border-subtle: rgba(255, 255, 255, 0.12);
  --color-border-glow: rgba(246, 95, 98, 0.45);
  
  --font-heading: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --card-border-radius: 1.5rem;
  --button-border-radius: 0.85rem;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--color-bg-base);
  color: #f8fafc;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
  background-color: var(--color-bg-base);
  font-family: var(--font-body);
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
  font-weight: 700;
  text-wrap: balance;
}

/* Canaveral Ambient Background with original theme texture and gradients */
.bg-canaveral {
  background-color: #111011;
  background-image: 
    radial-gradient(at 0% 0%, rgba(246, 95, 98, 0.10) 0px, transparent 48%),
    radial-gradient(at 100% 100%, rgba(246, 95, 98, 0.08) 0px, transparent 48%),
    radial-gradient(at 50% 25%, rgba(56, 38, 41, 0.55) 0px, transparent 70%),
    url("https://cdn.gamma.app/theme_images/canaveral-background.5dbf8d8ea7288ff1d7f1055cead80d9f.png");
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
}

/* Glassmorphism Canaveral Cards */
.glass-panel {
  background: var(--color-card-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--card-border-radius);
  box-shadow: 0 12px 35px -10px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel-hover:hover {
  border-color: var(--color-border-glow);
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -15px rgba(246, 95, 98, 0.20), 0 0 30px -5px rgba(246, 95, 98, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.glass-panel-coral {
  background: linear-gradient(180deg, rgba(246, 95, 98, 0.15) 0%, rgba(25, 23, 24, 0.96) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1.5px solid rgba(246, 95, 98, 0.50);
  border-radius: var(--card-border-radius);
  box-shadow: 0 18px 45px -10px rgba(246, 95, 98, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Canaveral Coral Gradient Text */
.text-gradient-coral {
  background: linear-gradient(135deg, #ffffff 0%, #ff9fa1 25%, #F65F62 65%, #d94b4e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-white {
  background: linear-gradient(180deg, #ffffff 0%, #d1d5db 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Canaveral Coral Primary Button */
.btn-coral {
  background: linear-gradient(135deg, #ff7578 0%, #F65F62 55%, #e04b4e 100%);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--button-border-radius);
  box-shadow: 0 8px 24px -4px rgba(246, 95, 98, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.btn-coral:hover {
  background: linear-gradient(135deg, #ff8b8e 0%, #ff6f72 55%, #eb5558 100%);
  box-shadow: 0 14px 32px -4px rgba(246, 95, 98, 0.70), inset 0 1px 0 rgba(255, 255, 255, 0.50);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-coral:active {
  transform: translateY(1px);
  box-shadow: 0 4px 14px -2px rgba(246, 95, 98, 0.45);
}

/* Dark Secondary Button */
.btn-dark {
  background: rgba(36, 33, 35, 0.90);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  border-radius: var(--button-border-radius);
  box-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.btn-dark:hover {
  background: rgba(48, 44, 46, 0.98);
  border-color: rgba(246, 95, 98, 0.55);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -3px rgba(0, 0, 0, 0.6);
}

/* Video Containers Responsive */
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  background: #191718;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Shorts Vertical Video Container */
.shorts-wrapper {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: 1.5rem;
  overflow: hidden;
  background: #191718;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 25px rgba(246, 95, 98, 0.25);
  border: 2px solid rgba(246, 95, 98, 0.35);
}

.shorts-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Grid Pattern Accent */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* Lightbox Modal Animation */
[x-cloak] { display: none !important; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #111011;
}
::-webkit-scrollbar-thumb {
  background: #2e2a2c;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #F65F62;
}
