/* =========================================
   VARIABILI E RESET
========================================= */
:root {
  --color-primary: #00e5ff;
  --color-secondary: #ff4081; /* Un tocco pop per la superficie */
  --text-main: #ffffff;
  --bg-dark: #0a1e3f;
  
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-dark);
  overflow-x: hidden;
}

/* =========================================
   CANVAS 3D BACKGROUND
========================================= */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* =========================================
   LAYOUT UTILS
========================================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  position: relative;
  min-height: 100vh;
  padding: 100px 0;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.5; /* Manteniamo una leggera trasparenza per mixarlo con lo sfondo 3D */
}

.header-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  display: block;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.4);
  animation: float 3s infinite ease-in-out;
  border: 4px solid var(--color-primary);
}

.hero-logo-container {
  margin-bottom: 1rem;
}

.hero-logo {
  max-width: 80%;
  max-height: 200px;
  width: auto;
  filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.6));
}

.subtitle {
  font-size: 1.5rem;
  letter-spacing: 2px;
  opacity: 0.9;
}

.scroll-indicator {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: float 2s infinite ease-in-out;
}

.arrow-down {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(45deg);
}

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

/* =========================================
   STORY SECTION
========================================= */
.story-section {
  background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.4));
  backdrop-filter: blur(5px);
}

.story-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.story-text h2 {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.story-text p {
  font-size: 1.25rem;
  line-height: 1.6;
  max-width: 500px;
}

.story-image-placeholder {
  width: 400px;
  height: 500px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.story-image-placeholder img,
.story-image-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =========================================
   CHARACTER SECTION (IMG LEFT, TEXT RIGHT)
========================================= */
.character-section {
  background: rgba(10, 30, 63, 0.8);
  backdrop-filter: blur(5px);
}

.char-container {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap; /* Per la responsiveness */
}

.char-image, .char-text {
  flex: 1;
  min-width: 300px;
}

.char-image img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  border: 1px solid rgba(0, 229, 255, 0.2);
}

.char-text h2 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
}

.char-text p {
  font-size: 1.25rem;
  line-height: 1.6;
}

/* =========================================
   PARALLAX SECTION
========================================= */
.parallax-section {
  background-image: url('../assets/images/parallax-bg.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
}

.parallax-content h2 {
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--text-main);
  text-shadow: 2px 2px 20px rgba(0,0,0,0.9);
  padding: 0 20px;
}

/* =========================================
   GALLERY SECTION
========================================= */
.gallery-section {
  padding-bottom: 50px;
}

.gallery-section h2 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-main);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.gallery-item {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  border: 1px solid rgba(0, 229, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease, box-shadow 0.5s ease, border-color 0.5s ease;
  backdrop-filter: blur(5px);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 229, 255, 0.3);
  border-color: rgba(0, 229, 255, 0.8);
  z-index: 2;
}

.gallery-placeholder {
  font-size: 1.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* =========================================
   MEDIA SECTION
========================================= */
.media-section h2 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 4rem;
}

.video-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.video-card {
  flex: 1;
  max-width: 350px;
  aspect-ratio: 9/16; /* Stile verticale tipo TikTok */
  background: linear-gradient(45deg, #2a0845, #6441A5);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: transform 0.3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-card:hover video {
  transform: scale(1.05);
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.video-overlay h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

.play-btn {
  background: var(--color-primary);
  color: var(--bg-dark);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  padding-left: 3px;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
}

.video-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 229, 255, 0.3);
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
  background: rgba(10, 30, 63, 0.95);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(0, 229, 255, 0.2);
  backdrop-filter: blur(10px);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  text-align: center;
}

.footer-logo {
  max-width: 180px;
  filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.4));
}

.social-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-icon {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 25px;
  border: 1px solid rgba(0, 229, 255, 0.4);
  border-radius: 30px;
  transition: all 0.3s;
  background: rgba(0, 0, 0, 0.2);
}

.social-icon:hover {
  background: var(--color-primary);
  color: var(--bg-dark);
  border-color: var(--color-primary);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.5);
  transform: translateY(-3px);
}

.copyright {
  opacity: 0.6;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* =========================================
   ANIMAZIONI
========================================= */
.wave-text {
  display: inline-block;
  animation: waveMotion 4s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes waveMotion {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-2deg); }
  75% { transform: translateY(5px) rotate(2deg); }
}
