/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Poppins:wght@300;400;600;700&display=swap');

/* Reset e variabili */
:root {
  --red-primary: #ff0000;
  --red-dark: #8b0000;
  --red-light: #ff4444;
  --blue-primary: #0000ff;
  --blue-dark: #00008b;
  --blue-light: #4444ff;
  --gold: #f6d88f;
  --gold-light: #fae6b3;
  --white: #ffffff;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --gradient-main: linear-gradient(135deg, #ff0000, #8b0000, #0000ff);
  --gradient-card: linear-gradient(135deg, #f6d88f, #fae6b3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #f5f0e8;
  font-family: 'Poppins', sans-serif;
}

.cont_all {
  width: 100%;
  max-width: 1400px;
  margin: auto;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
}

/* ===== HERO SECTION ===== */
.hero-section {
  background: var(--gradient-main);
  padding: 60px 20px 50px;
  border-radius: 20px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 60%);
  animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10%, 10%); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.sparkle-left,
.sparkle-right {
  position: absolute;
  font-size: 40px;
  animation: sparkle 3s ease-in-out infinite;
}

.sparkle-left {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.sparkle-right {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  animation-delay: 1.5s;
}

@keyframes sparkle {
  0%, 100% { opacity: 0.3; transform: translateY(-50%) scale(0.8); }
  50% { opacity: 1; transform: translateY(-50%) scale(1.2); }
}

.hero-title {
  font-family: 'Dancing Script', cursive;
  font-size: 68px;
  color: var(--white);
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  animation: fadeInDown 1s ease;
}

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

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}

.divider-line {
  width: 80px;
  height: 2px;
  background: var(--gold);
}

.divider-star {
  color: var(--gold);
  font-size: 24px;
  animation: rotateStar 4s linear infinite;
}

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

.hero-subtitle {
  font-family: 'Dancing Script', cursive;
  font-size: 28px;
  color: var(--gold);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

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

/* ===== VIDEO WRAPPER ===== */
.video-wrapper {
  padding: 0 20px;
  margin-bottom: 50px;
}

.video-frame {
  position: relative;
  padding: 10px;
  background: var(--gradient-main);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.videoCentrale {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.videoCentrale video {
  display: block;
  border-radius: 12px;
}

.corner-deco {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--gold);
  opacity: 0.6;
}

.corner-tl {
  top: 5px;
  left: 5px;
  border-right: none;
  border-bottom: none;
}

.corner-tr {
  top: 5px;
  right: 5px;
  border-left: none;
  border-bottom: none;
}

.corner-bl {
  bottom: 5px;
  left: 5px;
  border-right: none;
  border-top: none;
}

.corner-br {
  bottom: 5px;
  right: 5px;
  border-left: none;
  border-top: none;
}

/* ===== SECTION HEADER ===== */
.section-header {
  text-align: center;
  padding: 40px 20px 30px;
  position: relative;
}

.section-icon {
  font-size: 36px;
  color: var(--red-primary);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.section-title {
  font-family: 'Dancing Script', cursive;
  font-size: 48px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 10px 0;
}

.section-line {
  width: 100px;
  height: 3px;
  margin: 10px auto;
  background: var(--gradient-main);
  border-radius: 2px;
  position: relative;
}

.section-line::after {
  content: '✦';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 0 10px;
  color: var(--red-primary);
  font-size: 14px;
}

/* ===== ABOUT SECTION ===== */
.about-container {
  padding: 0 20px;
  margin-bottom: 40px;
}

.about-card {
  display: flex;
  background: var(--gradient-card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid var(--gold);
  transition: transform 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
}

.about-image {
  flex: 0 0 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: var(--gradient-main);
}

.about-image img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid var(--gold);
  animation: float 3s ease-in-out infinite;
}

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

.about-content {
  flex: 1;
  padding: 30px 40px;
}

.about-content h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 32px;
  color: var(--red-dark);
  margin-bottom: 15px;
}

.txtpresentazione {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

.about-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--gradient-main);
  color: var(--white);
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

/* ===== ESIBIZIONI GRID ===== */
.esibizioni-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  padding: 0 20px 40px;
}

.esibizione-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
  transition: all 0.4s ease;
}

.esibizione-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--red-primary);
  box-shadow: 0 12px 40px rgba(255, 0, 0, 0.3);
}

.card-header {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  background: var(--gradient-main);
  position: relative;
  overflow: hidden;
}

.card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.card-number {
  font-family: 'Dancing Script', cursive;
  font-size: 32px;
  color: var(--gold);
  margin-right: 15px;
  font-weight: 700;
  opacity: 0.7;
  flex-shrink: 0;
}

.card-title-wrapper {
  flex: 1;
}

.card-title {
  font-family: 'Dancing Script', cursive;
  font-size: 24px;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
  position: relative;
  z-index: 1;
}

.card-video {
  background: #000;
  position: relative;
}

.card-video video {
  display: block;
}

.card-footer {
  padding: 15px 20px;
  background: var(--gradient-card);
  text-align: center;
}

.btn-gallery {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 30px;
  background: var(--gradient-main);
  color: var(--white);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

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

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

.btn-gallery:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 0, 0, 0.5);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-gallery:hover .btn-arrow {
  transform: translateX(5px);
}

/* ===== FOOTER STYLES ===== */
.foot {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  padding: 40px 30px;
  margin-top: 50px;
  background: var(--gradient-main);
  color: var(--white);
  border-radius: 20px 20px 0 0;
  box-shadow: var(--shadow);
}

.foot h4 {
  font-family: 'Dancing Script', cursive;
  font-size: 24px;
  margin-bottom: 15px;
  color: var(--gold);
}

.foot ul {
  list-style: none;
  padding: 0;
}

.foot ul li {
  padding: 5px 0;
  transition: transform 0.3s ease;
}

.foot ul li:hover {
  transform: translateX(5px);
}

.foot a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.foot a:hover {
  color: var(--gold);
}

img.logo_foot {
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  transition: transform 0.3s ease;
}

img.logo_foot:hover {
  transform: scale(1.05) rotate(-5deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .hero-title {
    font-size: 48px;
  }
  
  .esibizioni-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .foot {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 40px 15px 30px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .sparkle-left,
  .sparkle-right {
    display: none;
  }
  
  .divider-line {
    width: 40px;
  }
  
  .about-card {
    flex-direction: column;
  }
  
  .about-image {
    flex: none;
    padding: 20px;
  }
  
  .about-image img {
    width: 100px;
    height: 100px;
  }
  
  .about-content {
    padding: 20px;
  }
  
  .about-content h3 {
    font-size: 24px;
  }
  
  .esibizioni-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .card-title {
    font-size: 18px;
  }
  
  .foot {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 20px;
  }
  
  .video-frame {
    padding: 5px;
  }
  
  .corner-deco {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .card-number {
    font-size: 24px;
  }
  
  .card-title {
    font-size: 16px;
  }
  
  .btn-gallery {
    font-size: 14px;
    padding: 8px 20px;
  }
}

/* ===== ANIMAZIONI AGGIUNTIVE ===== */
.esibizione-card {
  animation: fadeInUp 0.6s ease;
}

.esibizione-card:nth-child(1) { animation-delay: 0.1s; }
.esibizione-card:nth-child(2) { animation-delay: 0.2s; }
.esibizione-card:nth-child(3) { animation-delay: 0.3s; }
.esibizione-card:nth-child(4) { animation-delay: 0.4s; }

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

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

::-webkit-scrollbar-track {
  background: #f5f0e8;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-main);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--red-dark);
}

.chi-siamo-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 30px;
  position: relative;
  z-index: 1;
}
