/* Global Font Override - Assicura che tutto sia Roboto */
* {
  font-family: "Roboto", sans-serif !important;
}

/* Quote text smooth appearance */
.quote-text,
.quote-author {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.quote-text.typing,
.quote-author.typing {
  opacity: 0.95;
}

/* Typing cursor effect */
.typing-cursor::after {
  content: "|";
  display: inline-block;
  animation: blink 1s infinite;
  margin-left: 2px;
  color: #f5f5f5;
  font-weight: 300;
}

@keyframes blink {
  0%,
  40% {
    opacity: 1;
  }
  50%,
  90% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Animazione più marcata per le citazioni */
@keyframes quoteBlink {
  0%,
  30% {
    opacity: 1;
    transform: scaleY(1);
  }
  40%,
  70% {
    opacity: 0.2;
    transform: scaleY(0.8);
  }
  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Reset e base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
  color: #1a1a1a; /* Nero moderno invece di #333 */
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Quote Styles - ora all'interno della sezione dedicata */
.quote-container {
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem 2rem;
}

.quote-text {
  font-family: "Roboto", sans-serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease; /* Sincronizzato con slide */
}

/* Cursore specifico per citazioni - ora sarà visibile */
.quote-text.typing-cursor::after {
  display: inline-block !important;
  content: "|" !important;
  font-size: 1.2em;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
  font-family: "Roboto", sans-serif;
  font-style: normal;
  font-weight: 700;
  margin-left: 4px;
  animation: quoteBlink 0.8s infinite;
  opacity: 1 !important;
}

.quote-author {
  font-family: "Roboto", sans-serif;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.7;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  transition: opacity 0.5s ease, transform 0.5s ease; /* Sincronizzato con slide */
}

/* Animations */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Main Content Visibility Control */
.main-content {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.main-content.hidden-for-splash {
  opacity: 0;
  pointer-events: none;
}

/* Homepage Curtain Opening Effect */
.homepage-curtain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  display: flex;
  pointer-events: none;
}

.curtain-left,
.curtain-right {
  width: 50%;
  height: 100%;
  background: #000000;
  transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.curtain-left {
  transform-origin: left center;
}

.curtain-right {
  transform-origin: right center;
}

/* Opening animation */
.homepage-curtain-overlay.curtain-opening .curtain-left {
  transform: translateX(-100%);
}

.homepage-curtain-overlay.curtain-opening .curtain-right {
  transform: translateX(100%);
}

/* Hide the overlay after animation completes */
.homepage-curtain-overlay.curtain-opening {
  transition-delay: 1s;
  opacity: 0;
  pointer-events: none;
}
