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

html, body {
  height: 100%;
  scroll-behavior: smooth;
  overflow: hidden;
}

.navbar {
    height : 10vh;
}

.intro {
  background: #0f172a;
  color: white;
  text-align: center;
}

.text-slide {
  max-width: 800px;
  margin: auto;
  font-size: 1.2rem;
}

/* Canva embed */
.canva-container {
  width: 90%;
  max-width: 1200px;
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 12px;
  overflow: hidden;
}

.canva-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}
@keyframes fadeInUp {
  0% {
    opacity: 0.2;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .half-pic {
    display: none;
  }
}
@keyframes fadeInScale {
  0% { opacity: 0; transform: scale(0.95); }
  100% { opacity: 1; transform: scale(1); }
}
.gradient-shine {
  background: linear-gradient(90deg, #d3eaea, #439698, #d3eaea);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
  padding : 4px;
}
@keyframes bgZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}
.fadeInScale  {
  animation: bgZoom 20s ease-in-out infinite alternate;
}
@keyframes shine {
  to { background-position: 200% center; }
}
.animate-fade-scale {
  animation: fadeInScale 1.2s ease-out forwards;
}
.animate-fade-in-up {
  animation: fadeInUp 1.0s ease-out forwards;
}
.slides {
  position: absolute;
  top: 64px;
  height: calc(100vh - 64px);
  width: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
}
.slide {
  height: calc(100vh - 64px);
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
  overscroll-behavior: contain;
}
.canva-container {
  width: min(90vw, calc((100vh - 64px) * 16 / 9));
  aspect-ratio: 16 / 9;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 12px;
  overflow: hidden;
}
.text-full-slide-borders {
  max-width: 70%;
}
.text-full-slide {
  font-size : xx-large;
}
.footer-piva {
  font-size: 12px; 
  line-height: 1.5;
  display : flex; 
  justify-content: space-between; 
  flex-wrap: wrap; 
  padding : 2px;
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.contact-content {
  align-items: center;
}
@media (max-width: 1100px) {
  .footer-piva {
    max-width: auto;
  }
  .text-full-slide {
    font-size : x-large;
  }
}
@media (max-width: 768px) {
  .canva-container {
    width: 100%;
  }

  .slide {
    padding: 1rem;
  }
  .text-full-slide {
    font-size : large;
  }
  .text-full-slide-borders {
    max-width: 90%;
  }
  .footer-piva {
    padding-right : 30px;
  }
}
.canva-container {
  pointer-events: auto;
}


.watermark-text {
  color: rgba(211, 234, 234, 0.12); /* #d3eaea */
}
.watermark-grid {
  transform: rotate(-45deg);
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 4rem;
}

.watermark-grid span {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.06);
  white-space: nowrap;
}
@keyframes drift {
  from { transform: rotate(-45deg) translateX(0); }
  to   { transform: rotate(-45deg) translateX(40px); }
}

.watermark-text {
  animation: drift 20s linear infinite alternate;
}
@keyframes popAttention {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.25); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1); }
}

.animate-attention {
  animation: popAttention 0.6s ease-in-out;
}