/**
 * Bootstrap 5 Custom CSS per il Configuratore
 * Questo file fornisce la compatibilità tra le vecchie classi Bootstrap 3 e Bootstrap 5
 * oltre a implementare stili personalizzati per il configuratore
 */

/* ============ GENERALI ============ */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --warning-color: #ffc107;
  --danger-color: #dc3545;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --bs-border-radius: 0.375rem;
}

body {
  font-family: "Jost", sans-serif;
  color: #333;
  background-color: #fff;
}

.wrapper {
  position: relative;
  min-height: 100vh;
  background: #fff;
}

/* ============ TRANSIZIONE CLASSI BOOTSTRAP 3 A 5 ============ */

/* Sistema di griglia */
.col-xs-1 { width: 8.33%; }
.col-xs-2 { width: 16.66%; }
.col-xs-3 { width: 25%; }
.col-xs-4 { width: 33.33%; }
.col-xs-5 { width: 41.66%; }
.col-xs-6 { width: 50%; }
.col-xs-7 { width: 58.33%; }
.col-xs-8 { width: 66.66%; }
.col-xs-9 { width: 75%; }
.col-xs-10 { width: 83.33%; }
.col-xs-11 { width: 91.66%; }
.col-xs-12 { width: 100%; }

/* Utilità */
.hidden-xs { display: none !important; }
@media (min-width: 576px) {
  .hidden-xs { display: initial !important; }
}

.hidden-sm { display: none !important; }
@media (min-width: 768px) {
  .hidden-sm { display: initial !important; }
}

.visible-xs { display: initial !important; }
@media (min-width: 576px) {
  .visible-xs { display: none !important; }
}

.visible-sm { display: initial !important; }
@media (min-width: 768px) {
  .visible-sm { display: none !important; }
}

.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-left { text-align: left !important; }

.img-responsive {
  max-width: 100%;
  height: auto;
}

.container-fluid-nav {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

.pull-left { float: left !important; }
.pull-right { float: right !important; }

/* ============ HEADER E NAVIGAZIONE ============ */
header {
  background-color: var(--dark-color);
  padding: 10px 0;
  position: relative;
  z-index: 1030;
}

.navbar {
  background-color: transparent;
  border: none;
}

.logo {
  display: inline-block;
  padding: 10px 0;
}

.logo img {
  max-height: 50px;
  width: auto;
}

.nav-tabs {
  border-bottom: 0;
}

.nav-tabs .nav-item .nav-link {
  color: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 10px 15px;
  transition: color 0.3s;
}

.nav-tabs .nav-item .nav-link:hover,
.nav-tabs .nav-item .nav-link.active {
  color: #fff;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid var(--primary-color);
}

.btn-up {
  margin-top: 10px;
}

.menu-hide {
  padding-right: 20px;
}

/* Offcanvas menu */
#menuOffcanvas {
  background-color: var(--dark-color);
}

#menuOffcanvas .nav-link {
  color: #fff;
  padding: 10px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#menuOffcanvas .offcanvas-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#menuOffcanvas .offcanvas-title {
  color: #fff;
}

#menuOffcanvas .btn-close {
  filter: invert(1);
}

/* ============ WIZARD E STEPS ============ */
.smart_wizard_theme_dots .nav {
  padding: 0;
}

.sw-theme-dots .nav .nav-link {
  padding: 12px 20px;
}

.paddingTopSingleStep {
  padding-top: 20px;
}

/* Step navigation buttons */
.hide-nav {
  padding: 10px 0;
  text-align: center;
}

.hide-nav .btn {
  margin: 0 5px;
}

/* ============ ELEMENTI UI DEL CONFIGURATORE ============ */

/* Selezione colori/opzioni */
.colorsList {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.containerColoreSingolo {
  margin-bottom: 15px;
}

.cerchioEsterno {
  border-radius: 50%;
  padding: 2px;
  border: 2px solid transparent;
  display: inline-block;
  transition: border-color 0.3s;
}

.cerchioEsterno.coloreSelected {
  border-color: var(--primary-color);
}

.cerchioImmagine {
  overflow: hidden;
  border-radius: 50%;
}

.cerchioImmagine img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  transition: transform 0.3s;
}

.cerchioImmagine img:hover {
  transform: scale(1.05);
}

.nomeColore {
  font-size: 14px;
  margin-top: 5px;
  color: var(--dark-color);
}

.barrato {
  opacity: 0.5;
  position: relative;
}

.barrato:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 2px solid var(--danger-color);
}

/* Opzioni selezionate */
.opzioneSelezionata {
  border-color: var(--primary-color);
  font-weight: bold;
}

.selectNo {
  opacity: 0.5;
}

/* Accordion */
.accordion-button:not(.collapsed) {
  background-color: rgba(13, 110, 253, 0.1);
  color: var(--primary-color);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(13, 110, 253, 0.25);
}

/* Carousel */
.carousel-control-prev,
.carousel-control-next {
  width: 10%;
  opacity: 0.7;
}

/* Vista stage */
.overlay-container {
  position: relative;
}

.visuali {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.stage {
  max-width: 100%;
  height: auto;
}

/* Loader */
#ajax_loader {
  text-align: center;
  padding: 15px;
}

/* ============ FORM E USER DATA ============ */
#user_data {
  max-height: 400px;
  overflow-y: auto;
}

.form-control {
  margin-bottom: 1rem;
}

.form-check {
  padding-left: 1.5rem;
}

.hasError {
  color: var(--danger-color);
  font-size: 12px;
  margin-top: 3px;
}

.accettazionePrivacyRequired {
  padding: 10px;
  border-radius: var(--bs-border-radius);
}

/* ============ SUMMARY ============ */
#summary {
  background-color: var(--light-color);
  border-radius: var(--bs-border-radius);
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 0, 0, 0.125);
}

#summary h5 {
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

/* ============ NOTIFICHE ============ */
.toast-container {
  z-index: 1060;
}

/* ============ RESPONSIVE ADJUSTMENTS ============ */
@media (max-width: 767.98px) {
  .fullHeader {
    padding: 5px 0;
  }
  
  .logo img {
    max-height: 40px;
  }
  
  .paddingTopSingleStep {
    padding-top: 10px;
  }
  
  .nomeColore {
    font-size: 12px;
  }
  
  .cerchioEsterno {
    max-width: 80px;
    margin: 0 auto;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .cerchioEsterno {
    max-width: 100px;
    margin: 0 auto;
  }
}