#gpi-configurator {
  font-family: sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 100px; /* spazio per bottone fisso su mobile */
}

.gpi-step {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
  text-align: center;
}
.gpi-step.active {
  display: block;
}

.gpi-options {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  justify-content: center;
}

.gpi-option {
  border: 2px solid #ccc;
  padding: 10px;
  width: 200px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s ease;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

@media (max-width: 768px) {
  .gpi-option {
    width: 45%;
  }
}

.gpi-option:hover {
  background: #f4f4f4;
  border-color: #666;
}

.gpi-option img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.gpi-option strong {
  display: block;
  margin-top: auto;
  font-size: 15px;
}

.gpi-option.selected {
  border: 2px solid #0073aa;
  background: #e6f0fa;
}

/* STEP NAV */
.gpi-progress {
  display: flex;
  justify-content: space-between;
  margin: 30px 0;
}
.gpi-progress .step-indicator {
  flex: 1;
  text-align: center;
  position: relative;
  font-weight: bold;
  font-size: 14px;
}
.gpi-progress .step-indicator::before {
  content: '';
  height: 4px;
  width: 100%;
  background: #eee;
  position: absolute;
  top: 20px;
  left: 0;
  z-index: 0;
}
.gpi-progress .step-indicator.active::before {
  background: #0073aa;
}
.gpi-progress .step-indicator span {
  position: relative;
  z-index: 1;
  background: white;
  padding: 5px 10px;
  border-radius: 4px;
}

/* PULSANTI */
.gpi-navigation {
  text-align: right;
  margin-top: 20px;
}
.gpi-navigation button {
  background: #0073aa;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  margin-left: 10px;
}
.gpi-navigation button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .gpi-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 10px 15px;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    text-align: right;
  }
}

/* SOLUZIONI */
#gpi-solutions {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}
.gpi-solution {
  border: 2px solid #ccc;
  padding: 10px;
  width: 200px;
  border-radius: 6px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}
.gpi-solution img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
}
.gpi-solution strong {
  display: block;
  margin-top: auto;
  font-size: 14px;
  font-weight: bold;
}
.gpi-solution p {
  font-size: 13px;
  color: #555;
  margin: 8px 0;
}
.gpi-solution-link {
  display: inline-block;
  margin-top: auto;
  padding: 6px 12px;
  background: #0073aa;
  color: white !important;
  text-decoration: none;
  border-radius: 4px;
}
.gpi-solution-link:hover {
  background: #005a87;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
