/* Stile per SVG */
svg {
    width: 100%;
    height: auto;
    max-width: 1000px;
    display: block;
    margin: auto;
  }
  text {
    font-size: 25px;
    text-anchor: middle;
    dominant-baseline: middle;
    pointer-events: none;
    fill: #000;
  }

  /* Stile per le sezioni degli strumenti */
.section {
  transition: fill 0.3s ease;
  fill: #f5f5f5;
  stroke: #333;
  stroke-width: 1;
}

.section:hover {
  fill: #e0e0e0;
  cursor: pointer;
}

/* Stile per il container delle immagini precaricate */
#instrument-images-preload {
  display: none;
}

#instrument-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
}

#modal-instrument-image {
  display: block;
  margin: 0 auto 15px;
  max-width: 100%;
  max-height: 300px;
}

#modal-instrument-title {
  margin-bottom: 20px;
  color: #333;
}

#modal-instrument-button {
  background-color: #2D3142;
  color: white;
  padding: 10px 15px;
  margin: 10px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
}

#modal-instrument-button:hover {
  background-color: #2D3142;
}

.tap-gif-overlay {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
  opacity: 0.9;
  animation: pulse-gif 2s infinite;
}

@keyframes pulse-gif {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

/* Stili per la navbar dell'accademia */
.navbar-light .navbar-brand {
  color: #2D3142 !important;
  font-weight: bold;
}

.navbar-light .navbar-nav .nav-link {
  color: #2D3142 !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
  color: #1a1d26 !important;
}

.navbar-light .navbar-toggler {
  border-color: #2D3142;
}

.navbar-light .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232D3142' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Override Bootstrap primary color per l'accademia */
.btn-primary {
  background-color: #2D3142;
  border-color: #2D3142;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #1a1d26;
  border-color: #1a1d26;
}

.btn-outline-primary {
  color: #2D3142;
  border-color: #2D3142;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: #2D3142;
  border-color: #2D3142;
  color: white;
}

/* Stile per i bottoni checkbox quando sono selezionati */
.btn-check:checked + .btn-outline-primary {
  background-color: #2D3142 !important;
  border-color: #2D3142 !important;
  color: white !important;
}

.btn-check:focus + .btn-outline-primary {
  box-shadow: 0 0 0 0.25rem rgba(45, 49, 66, 0.25) !important;
}

/* Stile per il hover sui bottoni outline-primary */
.btn-outline-primary:hover {
  background-color: #2D3142 !important;
  border-color: #2D3142 !important;
  color: white !important;
}

/* Stile per lo stato attivo */
.btn-outline-primary:active,
.btn-outline-primary.active {
  background-color: #2D3142 !important;
  border-color: #2D3142 !important;
  color: white !important;
}

.text-primary {
  color: #2D3142 !important;
}

.bg-primary {
  background-color: #2D3142 !important;
}

/* Stile per l'hero dei corsi */
.hero {
  background-size: cover;
  background-position: center;
  height: 500px;
}

/* Stile per l'hero section dell'accademia */
.hero-section {
  background-color: #2D3142;
  padding: 50px 0;
  margin-bottom: 40px;
}

/* Dropdown menu */
.dropdown-menu {
  background-color: #2D3142 !important;
}

.dropdown-item {
  color: white !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #1a1d26 !important;
  color: white !important;
}

.dropdown-item:active {
  background-color: #0f1114 !important;
  color: white !important;
}
/* Stile per le citazioni degli insegnanti */

.citazione-cornice {
  background-color: #f8f9fa;
  border: 2px solid #7FC8F8;
  border-left-width: 6px;
  color: #2D3142;
}

.citazione-cornice blockquote p {
  color: #2D3142;
}

.citazione-cornice .blockquote-footer {
  color: #495057;
  font-weight: 500;
}

.citazione-scura {
  background-color: #2D3142;
  border-left: 5px solid #7FC8F8;
  color: #ffffff;
}

.citazione-scura blockquote p {
  color: #ffffff;
}

.citazione-scura .blockquote-footer {
  color: #d1ecf1;
}

.citazione-icona {
  background: #eaf6ff;
  border-left: 5px solid #7FC8F8;
  color: #2D3142;
}

.text-accent {
  color: #7FC8F8;
}

/* Stile per i bottoni dell'accademia */
.btn-accent {
  background-color: #7FC8F8;
  color: #2D3142;
  border: none;
  transition: 0.3s ease;
}

.btn-accent:hover {
  background-color: #2D96d8;
  color: white;
}

/* Contorno sezioni mission/vision */
.border-custom {
  border: 2px solid #7FC8F8;
  border-radius: 16px;
  background-color: #f9f9f9;
}

/* Hero con immagine e testo */
.hero-section img {
  border-radius: 1rem;
  max-height: 400px;
  object-fit: cover;
}
.testimonianze-section {
  background: url('/img/allievi-accademia.webp') center/cover no-repeat;
  border-radius: 16px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.testimonianze-container {
  position: relative;
  width: 100%;
  max-width: 700px;
  min-height: 220px;
}

.testimonianza {
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  pointer-events: none;
}

.testimonianza.visibile {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.feedback-box {
  max-width: 600px;
  min-height: 180px;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
}







