/* ================= STILE GENERALE ================= */
@import url('style.css'); /* Stile base del sito */

/* Background globale con gradiente animato */
body {
  background: linear-gradient(135deg, #0b0f2f, #13183f, #0e1430);
  background-size: 300% 300%;
  animation: gradientBG 15s ease infinite;
  color: #fff;
  font-family: 'Poppins', sans-serif;
}

/* ================= SEZIONE CHI SIAMO ================= */
.section {
  padding: 90px 0;
  background: rgba(11, 15, 47, 0.9);
  backdrop-filter: blur(4px);
  color: #fff;
  text-align: center;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255,255,255,0.05), transparent 70%);
  pointer-events: none;
}

/* ===== VIDEO SEZIONE ===== */

/* Primo video: video-struttura */
.video-struttura {
  text-align: center;
  margin: 40px auto;
  max-width: 900px;
  padding: 20px;
}

.video-struttura .video-title {
  font-size: 42px;
  color: #ffffff;
  margin-bottom: 15px;
  font-family: sans-serif;
  letter-spacing: 1px;
}

.video-struttura .video-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    width: 116%;
    justify-self: center;
}

.video-struttura .video-wrapper video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  transition: transform 0.4s ease-in-out;
}

.video-struttura .video-wrapper video:hover {
  transform: scale(1.04);
}

/* ===== Secondo video: video-finale semplice ===== */
.video-finale {
  text-align: center;
  margin: 50px auto;
}

.video-finale .video-title {
  font-size: 40px;
  color: #ffffff;
  margin-bottom: 20px;
  font-family: sans-serif;
}

/* Wrapper solo per centrare il video */
.video-finale .video-wrapper-vertical {
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-finale .video-wrapper-vertical video {
  width: auto;
  max-width: 100%;
  max-height: 500px; /* altezza massima */
  object-fit: contain;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.video-finale .video-wrapper-vertical video:hover {
  transform: scale(1.02);
}



/* Responsive */
@media (max-width: 600px) {
  .chi-siamo-immagini-grid {
    grid-template-columns: 1fr;
  }
}

/* Testo */
.chi-siamo-text-container {
  margin-top: 40px;
  background: rgba(17, 21, 58, 0.9);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.chi-siamo-text {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeInUp 1s ease forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

.chi-siamo-text h2 {
  font-size: 40px;
  margin-bottom: 25px;
  display: inline-block;
  position: relative;
}

.chi-siamo-text h2 span {
  font-size: 42px;
}

.chi-siamo-text h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #f0c330, #ff9500);
  border-radius: 2px;
}

.chi-siamo-text p {
  font-size: 18px;
  line-height: 1.7;
  color: #ddd;
  margin-bottom: 15px;
}

.highlight {
  color: #e6b800;
  font-weight: bold;
}

/* Box orari */
.orari {
    background: rgba(255, 255, 255, 0.06);
    padding: 40px 144px; 
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.orari:hover {
  transform: scale(1.03);
}

.orari h3 {
  margin-bottom: 15px;
  font-size: 22px;
  color: #e6b800;
}

.orari p {
  margin: 5px 0;
  font-size: 17px;
}

/* ================= MAPPA ================= */
.mappa {
  padding: 50px 20px;
  background: rgba(17, 21, 58, 0.95);
  color: #fff;
  text-align: center;
  margin-top: 40px;
}

.mappa h2 {
  font-size: 42px;
  margin-bottom: 20px;
  color: #e6b800;
}

.mappa-container {
  border: 3px solid #e6b800;
  border-radius: 14px;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0px 6px 25px rgba(0,0,0,0.4);
}

.mappa-container iframe {
  width: 100%;
  height: 400px;
  display: block;
}

/* ================= VALORI ================= */
.valori {
  padding: 60px 20px;
  background: linear-gradient(135deg, #0b0f2f, #13183f);
  text-align: center;
  margin-top: 30px;
}

.valori h3 {
  font-size: 42px;
  margin-bottom: 40px;
  text-shadow: 0 0 8px rgba(255,255,255,0.15);
}

.valori-row {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.valore {
  background: rgba(255,255,255,0.06);
  padding: 25px 20px;
  border-radius: 50px;
  flex: 1 1 220px;
  max-width: 260px;
  transition: transform 0.4s, background 0.4s, box-shadow 0.4s;
  opacity: 0;
  animation: fadeInUp 0.8s forwards;
}

.valori-row .valore:nth-child(1) { animation-delay: 0.1s; }
.valori-row .valore:nth-child(2) { animation-delay: 0.3s; }
.valori-row .valore:nth-child(3) { animation-delay: 0.5s; }

.valore:hover {
  transform: translateY(-10px) scale(1.05);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.valore i {
  font-size: 36px;
  margin-bottom: 15px;
  transition: transform 0.3s, color 0.3s;
  color: #fff;
}

.valore:hover i {
  transform: scale(1.2);
  color: #e6b800;
}

.valore h4 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #fff;
}

.valore p {
  font-size: 14px;
  line-height: 1.5;
  color: #ccc;
}







/* 📱 Responsive Chi Siamo */
@media (max-width: 768px) {
  .section {
    padding: 40px 10px; /* meno spazio su mobile */
  }

  .section h1,
  .section h2 {
    font-size: 1.5rem; /* titoli più piccoli */
  }

  video {
    max-width: 100%;
    height: 487px;
  }
}


/* ================= ANIMAZIONI SCROLL ================= */
.hidden {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* ================= ANIMAZIONI ================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ================= RESPONSIVE ================= */
@media screen and (max-width: 1024px) {
  .chi-siamo-text h2 { font-size: 32px; }
  .chi-siamo-text p { font-size: 16px; }
}

@media screen and (max-width: 768px) {
  .chi-siamo-text { padding: 0 15px; }
  .chi-siamo-text h2 { font-size: 24px; }
  .chi-siamo-text p { font-size: 15px; }

  .orari { width: 80%;
        font-size: 14px;
        padding: 34px;}

  .video-struttura, .video-finale { height: auto; }

  .mappa h2 { font-size: 24px; }
  .mappa-container iframe { height: 250px; }

  .valori-row {  gap: 25px; }
  .valore { border-radius: 20px; }

  .slideshow-container { max-width: 95%; }
}

@media screen and (max-width: 480px) {
  .chi-siamo-text h2 { font-size: 20px; }
  .chi-siamo-text p { font-size: 14px; }
}
