/* ════════════════════════════════════════════════════
   ANIMAZIONI & FORME ARCHITETTONICHE DORATE
════════════════════════════════════════════════════ */

/* Keyframes per movimento forme */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10px, -15px) rotate(1deg); }
  50% { transform: translate(-5px, -25px) rotate(-1deg); }
  75% { transform: translate(-10px, -15px) rotate(0.5deg); }
}

@keyframes float-reverse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(20px) rotate(-2deg); }
}

@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fade-pulse {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.3; }
}

/* Forme architettoniche di sfondo */
.architectural-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.arch-shape {
  position: absolute;
  border: 1px solid rgba(201, 151, 28, 0.2);
  opacity: 0.15;
}

/* Hero shapes */
.hero .arch-shape-1 {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  top: -100px;
  right: 10%;
  border-width: 2px;
  animation: float 20s ease-in-out infinite;
}

.hero .arch-shape-2 {
  width: 200px;
  height: 200px;
  top: 30%;
  left: 5%;
  transform: rotate(45deg);
  border-width: 1.5px;
  animation: float-reverse 15s ease-in-out infinite;
}

.hero .arch-shape-3 {
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 151, 28, 0.3), transparent);
  bottom: 20%;
  left: 10%;
  animation: float-slow 25s ease-in-out infinite;
}

.hero .arch-shape-4 {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  top: 60%;
  right: 15%;
  border-width: 1px;
  animation: float 18s ease-in-out infinite 2s;
}

/* Grid pattern architettonico */
.architectural-grid {
  position: absolute;
  inset: 0;
  background-image: 
    repeating-linear-gradient(0deg, transparent, transparent 49px, rgba(201, 151, 28, 0.03) 49px, rgba(201, 151, 28, 0.03) 50px),
    repeating-linear-gradient(90deg, transparent, transparent 49px, rgba(201, 151, 28, 0.03) 49px, rgba(201, 151, 28, 0.03) 50px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

/* Forme decorative sezioni */
.section-decoration {
  position: absolute;
  pointer-events: none;
  opacity: 0.08;
}

.section-decoration svg {
  width: 100%;
  height: 100%;
  stroke: rgba(201, 151, 28, 0.6);
  fill: none;
  stroke-width: 1;
}

.decoration-corner {
  width: 200px;
  height: 200px;
  top: 20px;
  right: 20px;
  animation: fade-pulse 8s ease-in-out infinite;
}

.decoration-center {
  width: 300px;
  height: 300px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: rotate-slow 120s linear infinite;
}

/* Texture overlay ricca */
.texture-overlay {
  position: absolute;
  inset: 0;
  background-image: 
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C9971C' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

/* Linee architettoniche dinamiche */
.dynamic-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.arch-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 151, 28, 0.4), transparent);
  animation: line-slide 15s ease-in-out infinite;
}

.arch-line:nth-child(1) {
  width: 40%;
  top: 15%;
  left: -40%;
  animation-delay: 0s;
}

.arch-line:nth-child(2) {
  width: 30%;
  top: 45%;
  right: -30%;
  animation: line-slide-reverse 18s ease-in-out infinite;
  animation-delay: 3s;
}

.arch-line:nth-child(3) {
  width: 35%;
  top: 75%;
  left: -35%;
  animation-delay: 6s;
}

@keyframes line-slide {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  100% { transform: translateX(calc(100vw + 40%)); opacity: 0; }
}

@keyframes line-slide-reverse {
  0% { transform: translateX(0); opacity: 0; }
  20% { opacity: 0.6; }
  80% { opacity: 0.6; }
  100% { transform: translateX(calc(-100vw - 30%)); opacity: 0; }
}

/* Effetto parallax subtle */
.parallax-slow {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Golden particles */
.golden-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(201, 151, 28, 0.4);
  border-radius: 50%;
  animation: particle-float 20s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 15s; }
.particle:nth-child(2) { top: 40%; left: 30%; animation-delay: 3s; animation-duration: 18s; }
.particle:nth-child(3) { top: 60%; left: 50%; animation-delay: 6s; animation-duration: 22s; }
.particle:nth-child(4) { top: 80%; left: 70%; animation-delay: 9s; animation-duration: 20s; }
.particle:nth-child(5) { top: 30%; left: 80%; animation-delay: 12s; animation-duration: 16s; }

@keyframes particle-float {
  0%, 100% { transform: translate(0, 0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  50% { transform: translate(-50px, -100px); }
}
