/* ===========================================
   I MUSICANTI ROMANTICI - Imperial Roman Theme
   Rosso Porpora + Oro dell'Impero Romano
   =========================================== */

/* Root Variables - Roman Empire Colors */
:root {
  --roma-gold: #D4AF37;
  --roma-gold-light: #F4D03F;
  --roma-red: #8B0000;
  --roma-red-dark: #5C0000;
  --roma-purple: #4A0E4E;
  --roma-cream: #FFF8E7;
  --roma-bronze: #CD7F32;
  --roma-dark: #1A0A0A;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* ==========================================
   PATTERN STILE ROMA - Rombi Sottili
   ========================================== */

/* Pattern principale - Rombi/Diamanti sottili (NO righe) */
.roma-stripes-pattern {
  background-image: 
    /* Rombi piccoli */
    linear-gradient(45deg, rgba(139, 0, 0, 0.06) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(139, 0, 0, 0.06) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(139, 0, 0, 0.06) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(139, 0, 0, 0.06) 75%),
    /* Rombi grandi oro */
    linear-gradient(45deg, rgba(212, 175, 55, 0.04) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(212, 175, 55, 0.04) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(212, 175, 55, 0.04) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(212, 175, 55, 0.04) 75%);
  background-size: 20px 20px, 20px 20px, 20px 20px, 20px 20px, 40px 40px, 40px 40px, 40px 40px, 40px 40px;
  background-position: 0 0, 10px 0, 10px -10px, 0 10px, 0 0, 20px 0, 20px -20px, 0 20px;
}

/* Pattern per sezioni scure */
.roma-pattern-dark {
  background-image: 
    linear-gradient(45deg, rgba(212, 175, 55, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(212, 175, 55, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(212, 175, 55, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(212, 175, 55, 0.08) 75%);
  background-size: 24px 24px;
  background-position: 0 0, 12px 0, 12px -12px, 0 12px;
}

/* Custom Scrollbar - Roman Gold */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--roma-dark);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--roma-gold), var(--roma-bronze));
  border: 2px solid var(--roma-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--roma-gold-light), var(--roma-gold));
}

/* Selection - Roman Gold */
::selection {
  background: var(--roma-gold);
  color: var(--roma-dark);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer-gold {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes pulse-gold {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(212, 175, 55, 0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow-red {
  0%, 100% {
    box-shadow: 0 0 5px var(--roma-red), 0 0 10px var(--roma-red);
  }
  50% {
    box-shadow: 0 0 20px var(--roma-red), 0 0 30px var(--roma-red);
  }
}

/* Animation Classes */
.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

.animate-pulse-gold {
  animation: pulse-gold 2s infinite;
}

/* Navbar Styles - Roman Imperial */
#navbar {
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background: linear-gradient(90deg, rgba(26, 10, 10, 0.98), rgba(92, 0, 0, 0.95), rgba(26, 10, 10, 0.98)) !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 1px 0 var(--roma-gold);
}

#navbar.scrolled .nav-link {
  color: var(--roma-cream);
}

/* Hero Section - Roman Theme */
#hero {
  background-attachment: fixed;
}

#hero h1 {
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.3);
}

/* Font Imperial - Solo Cinzel */
.font-trajan {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.1em;
}

/* Roman Imperial Gold Gradient Text */
.text-gradient-gold {
  background: linear-gradient(135deg, var(--roma-gold), #FFD700, var(--roma-bronze), var(--roma-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Roman Border Style */
.roman-border {
  border: 2px solid var(--roma-gold);
  position: relative;
}

.roman-border::before,
.roman-border::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--roma-gold);
}

.roman-border::before {
  top: -5px;
  left: -5px;
  border-right: none;
  border-bottom: none;
}

.roman-border::after {
  bottom: -5px;
  right: -5px;
  border-left: none;
  border-top: none;
}

/* Card Hover Effects - Imperial */
.card-hover {
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.card-hover:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px var(--roma-gold);
  border-color: var(--roma-gold);
}

/* Button Styles - Roman Imperial */
.btn-imperial {
  background: linear-gradient(135deg, var(--roma-gold), var(--roma-bronze));
  color: var(--roma-dark);
  transition: all 0.3s ease;
  border: 1px solid var(--roma-gold);
  position: relative;
  overflow: hidden;
}

.btn-imperial::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-imperial:hover::before {
  left: 100%;
}

.btn-imperial:hover {
  background: linear-gradient(135deg, var(--roma-gold-light), var(--roma-gold));
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

/* Roman Red Button */
.btn-roman-red {
  background: linear-gradient(135deg, var(--roma-red), var(--roma-red-dark));
  color: white;
  border: 1px solid var(--roma-gold);
}

.btn-roman-red:hover {
  background: linear-gradient(135deg, var(--roma-red-dark), var(--roma-red));
  box-shadow: 0 10px 30px rgba(139, 0, 0, 0.4);
}

/* Section Dividers - Roman Style */
.section-divider {
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--roma-gold), var(--roma-bronze), var(--roma-gold), transparent);
  border: none;
}

/* Form Styles - Roman Theme */
input:focus, 
select:focus, 
textarea:focus {
  outline: none;
  border-color: var(--roma-gold) !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2), inset 0 0 5px rgba(212, 175, 55, 0.1) !important;
}

/* Service Cards - Imperial Style */
.service-card {
  position: relative;
  overflow: hidden;
  border-left: 4px solid var(--roma-gold);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--roma-gold), transparent);
}

/* Contact Form Success/Error States */
.form-success {
  background: linear-gradient(135deg, #10B981, #059669);
  color: white;
  padding: 1rem;
  text-align: center;
  animation: fadeIn 0.5s ease;
  border: 1px solid var(--roma-gold);
}

.form-error {
  background: linear-gradient(135deg, var(--roma-red), var(--roma-red-dark));
  color: white;
  padding: 1rem;
  text-align: center;
  animation: fadeIn 0.5s ease;
  border: 1px solid var(--roma-gold);
}

/* Loading Spinner - Gold */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  border-top-color: var(--roma-gold);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  width: 60px;
  height: 60px;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 30px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: pulse-green 2s infinite;
  border: 2px solid var(--roma-gold);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse-green {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
}

/* SPQR Badge Style */
.spqr-badge {
  font-family: 'Cinzel', serif;
  letter-spacing: 2px;
  background: linear-gradient(135deg, var(--roma-gold), var(--roma-bronze));
  color: var(--roma-red-dark);
}

/* Instagram Feed Container */
.instagram-feed-container {
  background: linear-gradient(135deg, rgba(255, 248, 231, 0.5), rgba(212, 175, 55, 0.1));
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Social Share Buttons */
.social-share-btn {
  transition: all 0.3s ease;
}

.social-share-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Gold Shine Effect */
.gold-shine {
  background: linear-gradient(
    90deg,
    var(--roma-gold) 0%,
    #FFD700 25%,
    var(--roma-gold) 50%,
    #FFD700 75%,
    var(--roma-gold) 100%
  );
  background-size: 200% auto;
  animation: shimmer-gold 3s linear infinite;
}

/* Imperial Font Styling */
.font-imperial {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }
  
  #hero {
    background-attachment: scroll;
  }
  
  .service-card {
    margin-bottom: 1rem;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

/* Print Styles */
@media print {
  #navbar,
  #mobile-menu,
  .whatsapp-float,
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: black;
    background: white;
  }
}

/* Accessibility */
@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;
  }
}

/* Focus Visible for Accessibility */
:focus-visible {
  outline: 3px solid var(--roma-gold);
  outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--roma-gold);
  color: var(--roma-dark);
  padding: 8px 16px;
  z-index: 100;
  transition: top 0.3s;
  font-family: 'Cinzel', serif;
}

.skip-link:focus {
  top: 0;
}

/* Roman Decorative Line */
.roman-line {
  height: 2px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--roma-gold) 20%, 
    var(--roma-bronze) 50%, 
    var(--roma-gold) 80%, 
    transparent 100%
  );
}

/* Video Container with Roman Border */
.video-roman-frame {
  position: relative;
  border: 3px solid var(--roma-gold);
}

.video-roman-frame::before {
  content: 'SPQR';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--roma-gold);
  color: var(--roma-red-dark);
  padding: 2px 15px;
  font-family: 'Cinzel', serif;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 2px;
}
