.test-container {
  max-width: 720px;
  margin: auto;
  padding: 2em;
  font-family: 'Helvetica Neue', sans-serif;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.test-container h2 {
  text-align: center;
  font-size: 1.6em;
  font-weight: bold;
  color: #cc3366;
  margin-bottom: 1.5em;
}

.test-question {
  margin-bottom: 2em;
}

.test-question p {
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 0.8em;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* ✅ CENTRATURA */
  gap: 10px;
}


.btn-group button {
  background: #f6d3dc;
  color: #80002a;
  border: none;
  border-radius: 25px;
  padding: 0.8em 1.5em;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-group button:hover {
  background: #f2b7c5;
}

.btn-group button.selected {
  background: #cc3366 !important;
  color: #fff !important;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transform: scale(1.05);
}

.test-submit-btn {
  display: block;
  margin: 3em auto 0;
  background: #cc3366;
  color: white;
  padding: 1em 2em;
  border: none;
  border-radius: 30px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.test-submit-btn:active {
  transform: scale(0.98);
}

.result-box {
  margin-top: 2em;
  padding: 1.2em;
  background: #fff6f9;
  border: 1px solid #ffc4d9;
  border-radius: 12px;
  color: #55001d;
}

#start-button {
  background-color: #b8e3dd;
  color: #004445;
  font-weight: bold;
  border: none;
  border-radius: 20px;
  padding: 1em 2em;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
}

#start-button:hover {
  background-color: #a2d8d2;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-group button:focus,
#start-button:focus {
  outline: 2px solid #004445;
  outline-offset: 2px;
}

.test-result-container {
  max-width: 900px;
  margin: auto;
  padding: 2em;
  font-family: 'Helvetica Neue', sans-serif;
}

.intro-msg {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 2em;
}

.routine-block {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 20px;
  padding: 2em;
  margin-bottom: 2em;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.routine-block h3 {
  font-size: 1.5em;
  color: #cc3366;
  margin-bottom: 0.5em;
  text-align: center;
}

.usage {
  font-size: 0.95em;
  text-align: center;
  margin-bottom: 1.5em;
  color: #333;
}

/* Griglia stile Ricerca Avanzata */
.result-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.result-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
  width: 180px;
  padding: 1em;
}

.result-card img.result-thumb {
  max-width: 100px;
  height: auto;
  margin: auto;
}

.result-card h3 {
  font-size: 0.95em;
  margin-top: 0.5em;
  color: #cc3366;
}

.test-product-link {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  padding: 1em;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.test-product-link:hover {
  transform: scale(1.03);
}

.test-product-link img {
  max-width: 150px; /* aumentata leggermente la dimensione */
  height: auto;
  margin-bottom: 0.6em;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.test-product-link h4 {
  font-size: 1.1em;
  color: #cc3366;
  margin: 0;
  line-height: 1.3;
}
.result-thumb {
  display: block;
  margin: 0 auto 0.6em auto;
  max-width: 140px;
  height: auto;
  margin-bottom: 0.6em;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Contenitore del toggle */
.facile-reperibilita {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 0 25px;
  font-family: 'Helvetica Neue', sans-serif;
  gap: 12px;
}

/* Nascondiamo il checkbox originale */
.facile-reperibilita input[type="checkbox"] {
  display: none;
}

/* Stile generale della label */
.facile-reperibilita label {
  position: relative;
  padding-left: 60px;
  font-size: 1.1em;
  color: #333;
  cursor: pointer;
  font-weight: 500;
  transition: color 0.3s ease;
}

/* Testo in evidenza */
.facile-reperibilita label strong {
  color: #cc3366;
  font-weight: bold;
}

/* Base dell'interruttore */
.facile-reperibilita label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 26px;
  background-color: #f6d3dc; /* Rosa chiaro */
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Pallina interna */
.facile-reperibilita label::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Stato attivo del toggle */
.facile-reperibilita input[type="checkbox"]:checked + label::before {
  background-color: #cc3366; /* Rosa bottoni */
  box-shadow: 0 0 8px rgba(204, 51, 102, 0.4);
}

.facile-reperibilita input[type="checkbox"]:checked + label::after {
  transform: translateX(22px);
  background-color: #fff;
}

/* CTA, Shop e Disclaimer */
.result-disclaimer {
  text-align: center;
  background: #fff6f9;
  border: 1px solid #ffc4d9;
  padding: 1.5em;
  border-radius: 18px;
  margin-top: 2em;
  font-size: 1em;
  color: #55001d;
  line-height: 1.6;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.result-disclaimer.cta {
  background: #eafaf7;
  border: 1px solid #b8e3dd;
  color: #004445;
}

.result-disclaimer.shop {
  background: #f1f9ff;
  border: 1px solid #cce5ff;
  color: #003366;
}

.result-disclaimer.note {
  background: #fff;
  border: 1px dashed #ccc;
  color: #444;
  font-size: 0.9em;
}

/* Pulsanti CTA */
.cta-button {
  display: inline-block;
  margin-top: 1em;
  background: #b8e3dd;
  color: #004445;
  padding: 0.9em 2em;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.cta-button:hover {
  background: #a2d8d2;
}

/* Bottone rifai test */
.result-retry {
  text-align: center;
  margin-top: 3em;
}

.retry-button {
  background: #cc3366;
  color: white;
  padding: 0.8em 1.8em;
  border-radius: 25px;
  font-size: 1.1em;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.retry-button:hover {
  background: #b02c57;
}

/* Ricerca Avanzata - Stile Riccionario aggiornato */
.accordion {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-bottom: 1.5em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}
.accordion-header {
  cursor: pointer;
  padding: 1em;
  background: #f5f5f5;
  color: #dd0c44;
  font-size: 1.1em;
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
}
.accordion-description {
  font-size: 0.9em;
  color: #6a6a6a;
  margin-top: 0.2em;
}
.accordion-body {
  display: none;
  padding: 1em;
}
.accordion.active .accordion-body {
  display: block;
}
.checkbox-group {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.5em;
  margin-top: 0.5em;
}
.accordion.active .checkbox-group {
  display: grid;
}
.checkbox-group label {
  font-size: 0.95em;
  color: #333;
}
.sticky-btn {
  position: sticky;
  bottom: 1em;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  background: #dd0c44;
  color: #fff;
  padding: 1em 2em;
  border-radius: 10px;
  font-size: 1.2em;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 999;
}

@media (max-width: 768px) {
  .sticky-btn {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90%;
    z-index: 99999;
  }
}

.pill-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0.8em;
  margin-bottom: 1.2em;
}
.pill {
  padding: 8px 14px;
  background: #f0f0f0;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.95em;
  transition: all 0.3s ease;
}
.pill.selected {
  background-color: #dd0c44;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.ingredient-mode-btn {
  padding: 12px 20px;
  font-size: 1em;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  margin: 0 5px;
  cursor: pointer;
  color: white;
  background-color: #68B3C6; /* Colore neutro di default */
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.ingredient-mode-btn.active {
  background-color: #dd0c44; /* Rosso acceso quando selezionato */
  transform: scale(1.05); /* Leggera animazione per feedback */
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2em;
  margin-top: 2em;
  padding: 0;
  justify-items: center; /* ✅ centra ogni card nella colonna */
}


.result-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
  padding: 1em;
  transition: transform 0.3s ease;
}

.result-card:hover {
  transform: scale(1.03);
}

.result-thumb {
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 0.5em;
}

.result-card h3 {
  font-size: 1em;
  color: #8c6239;
  margin: 0;
}

.result-pagination {
  text-align: center;
  margin-top: 2em;
}

.result-pagination a,
.result-pagination span {
  display: inline-block;
  margin: 0 5px;
  font-weight: bold;
  color: #dd0c44;
  text-decoration: none;
}

.result-pagination a:hover {
  text-decoration: underline;
}

/* Add your CSS code here.

For example:
.example {
    color: red;
}

For brushing up on your CSS knowledge, check out http://www.w3schools.com/css/css_syntax.asp

End of comment */ 


