* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
/* ===== VARIABLES ===== */
:root {
  --color-bg: #f5f5f5;
  --color-text-main: #333;
  --color-text-secondary: #555;
  --color-text-muted: #777;
  --color-border: #ddd;
  --color-accent: #6b7b4b;        
  --color-accent-hover: #5a683f;
  --color-white: #ffffff;
  --color-btn-shadow: rgba(107,123,75,0.25);
  --color-card-shadow: rgba(0,0,0,0.08);
}
body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  color: var(--color-text-main);
  background-color: var(--color-white);
}
/* ===== MAIN STARTS ===== */
/* ===== MAIN CONTAINER ===== */
.main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
}

/* ===== HERO SECTION ===== */
.hero {
  background-color: var(--color-white);
  padding: 60px 40px;
  /*border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);*/
  text-align: center;
}

/* ===== TITLE ===== */
.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 25px;
  color: var(--color-accent);
}

/* ===== TEXT ===== */
.hero p {
  font-size: 20px;
  color: var(--color-text-secondary);
  max-width: 750px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.hero p strong {
  color: var(--color-accent);
}

/* ===== BUTTON ===== */
.cta-button {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  padding: 16px 32px;
  border-radius: 6px;
  font-size: 1.3rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.cta-button:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

.test-links {
  margin: 20px auto 0;
  display: none;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
}

.test-links a {

  display: block;
  padding: 14px 18px;
  font-size: 1.1rem;             
  font-weight: 600;
  text-decoration: none;
  text-align: center;

  background-color: var(--color-white);  
  color: var(--color-accent);

  border: 2px solid var(--color-accent);
  border-radius: 10px;

  transition: all 0.25s ease;
}

.test-links a:hover {

  transform: translateY(-8px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.test-links.show {
  display: flex;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .main-container {
    padding: 60px 15px;
  }

  .hero {
    padding: 40px 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 22px;
  }

  .cta-button {
    width: 100%;
  }
}

/* ===== MAIN ENDS ===== */

/* ===== FOOTER STARTS ===== */

.site-footer {
  background-color: var(--color-bg);
  padding: 50px 20px 25px;
  font-family: Arial, sans-serif;
}

.site-footer__container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.site-footer__section {
  flex: 1;
}

.site-footer__title {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--color-accent);
}

.site-footer__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.site-footer__list {
  list-style: none;
  padding: 0;
}

.site-footer__list li {
  margin-bottom: 8px;
}

.site-footer__list a {
  text-decoration: none;
  color: var(--color-text-secondary);
  transition: color 0.25s ease;
}

.site-footer__list a:hover {
  color: var(--color-accent);
}

/* ===== FORM ===== */

.site-footer__form label {
  font-size: 13px;
  color: var(--color-text-secondary);
}

.site-footer__form input,
.site-footer__form textarea {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 14px;
}

.site-footer__form input:focus,
.site-footer__form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.site-footer__form button {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.site-footer__form button:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* ===== BOTTOM ===== */

.site-footer__bottom {
  margin-top: 35px;
  padding-top: 15px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  .site-footer__container {
    flex-direction: column;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .site-footer__form button {
    width: 100%;
  }
}

/* ===== FOOTER ENDS ===== */

/* ===== PAGINA UTENTE STARTS ===== */
/* Card de perfil */
.card {
  background-color: var(--color-white);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 6px 20px var(--color-card-shadow);
  transition: transform 0.2s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--color-btn-shadow);
}

.profiles-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.profiles-container .card {
  flex: 1 1 100%;
  max-width: 500px;
}

.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.profile img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  transition: transform 0.3s;
}

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

.profile-info {
  width: 100%;
  text-align: center;
}

.profile-info h3 {
  margin: 0;
  font-weight: 600;
  color: var(--color-accent);
}

.profile-info p {
  margin: 5px 0;
  color: var(--color-text-secondary);
}

.toggle-btn {
  margin-top: 10px;
  padding: 8px 16px;
  border-radius: 6px;
  border: none;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.toggle-btn:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* Detalles del perfil */
.profile-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  margin-top: 15px;
}

.profile-details.show {
  max-height: 600px;
  opacity: 1;
}

.test {
  background-color: var(--color-white);
  border-left: 4px solid var(--color-accent);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.test h4 {
  color: var(--color-accent);
  font-weight: 600;
  margin: 0 0 5px 0;
}

.test strong {
  color: var(--color-accent-hover);
}

/* Avatar */
.avatar-options {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 10px 0 20px 0;
}

.avatar-select {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.avatar-select:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px var(--color-btn-shadow);
}


/* Card de registro centrada */
.registration-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 20px;
}

.registration.card {
  max-width: 450px;
  width: 100%;
  padding: 30px 25px;
  border-radius: 16px;
  background-color: var(--color-white);
  box-shadow: 0 12px 32px var(--color-btn-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.registration.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px var(--color-btn-shadow);
}

.registration h2 {
  text-align: center;
  margin-bottom: 25px;
  color: var(--color-accent);
  font-size: 1.8rem;
}

.registration input {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background-color: #fff;
  transition: border 0.3s, box-shadow 0.3s;
}

.registration input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 8px rgba(107,123,75,0.2);
}

.registration button {
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border-radius: 10px;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.registration button:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
  main {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .profile-info h3 {
    font-size: 1.4rem;
  }

  .toggle-btn, .registration button {
    width: 100%;
  }

  .registration.card {
    padding: 25px 20px;
  }

  .registration h2 {
    font-size: 1.5rem;
  }
}

/* ===== PAGINA UTENTE ENDS ===== */

/* ===== TEST 1 STARTS===== */
/* ===== BODY CENTERING ===== */
.test-wrapper {
    min-height: 64vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--color-bg);
    flex-direction: column
}
.hidden {
    display: none !important;;
}

/* ===== MAIN CONTAINER ===== */
.test-container {
    width: 100%;
    max-width: 720px;
    background: var(--color-bg);
    color: var(--color-accent-text);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--color-box-shadow);
}

/* ===== TITLES ===== */
.test-container h1,
.test-container h3 {
    text-align: center;
}

.subtitle {
    text-align: center;
    margin-bottom: 2rem;
}


/* ===== BUTTONS ===== */
.test-container button {
    background-color: #6b7b4b;
    color: var(--color-white);
    border: none;
    border-radius: 10px;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.test-container button:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}


/* ===== PROGRESS ===== */
#progress {
    margin-bottom: 1.5rem;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--color-accent);
    border-radius: 4px;
    margin-top: 0.4rem;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--color-accent-bg);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* ===== OPTIONS ===== */
.options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
}



/* ===== RESULT ===== */
#resultText {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.disclaimer {
    font-size: 0.85rem;
    background: var(--color-accent);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

#result {
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* ===== RESPONSIVE PART ======= */
@media (min-width: 768px) {
    .options {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    body {
        align-items: flex-start;  
        padding: 1rem 0;
    }

    .test-container {
        padding: 1.3rem;
        border-radius: 12px;
    }

    h1 {
        font-size: 1.6rem;
    }
}
/* ===== TEST 1 ENDS===== */

/* ===== TEST 2 STARTS===== */
.stress-test-wrapper {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f5f5f5;
  padding: 20px;
}

.stress-test-section {


  padding: 30px 25px;
  max-width: 750px;
  width: 100%;

}

.stress-title {
  text-align: center;
  color: #6b7b4b;
  margin-bottom: 10px;
}

.stress-instructions {
  text-align: center;
  color: #555;
  margin-bottom: 25px;
}

.stress-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: var(--color-white);
  border: 3px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
}

.stress-question p.stress-question-text {
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.stress-question label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.95rem;
  cursor: pointer;
  color: #555;
  transition: color 0.25s;
}

.stress-question label:hover {
  color: #6b7b4b;
}

.stress-question input[type="radio"] {
  margin-right: 8px;
  accent-color: #6b7b4b;
}

.stress-submit-btn {
  display: block;
  width: 220px;
  max-width: 90%;
  margin: 25px auto 0;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  color: var(--color-white);
  background-color: var(--color-accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.stress-submit-btn:hover {
  background-color: #5a683f;
  transform: translateY(-2px);
}

.stress-result-message {
  text-align: center;
  margin-top: 20px;
  font-size: 1rem;
  color: #6b7b4b;
  font-style: italic;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .stress-test-section {
    padding: 25px 15px;
  }
}

@media (max-width: 480px) {
  .stress-test-section {
    padding: 20px 12px;
  }

  .stress-submit-btn {
    width: 100%;
  }
}

/* ===== TEST 2 ENDS===== */

/* ===== TEST 3 STARTS===== */
/* ===== SECTION ===== */
section.emotional-test {
  background-color: #f5f5f5;
  padding: 60px 20px;
}

section h1.test-title,
section h2 {
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 20px;
}

section p {
  max-width: 800px;
  margin: 0 auto 15px;
  text-align: center;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===== FORM ===== */
.test-form {
  max-width: 700px;
  margin: 30px auto 0;
  padding: 20px;
  background-color: var(--color-white);
  border: 3px solid var(--color-border);
  border-radius: 12px;

  display: flex;
  flex-direction: column; 
  gap: 25px; 
}

.test-question {
  margin-bottom: 25px;
}

.test-question p.question-text {
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--color-text-main);
}

.test-question label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.25s ease;
}

.test-question input[type="radio"] {
  margin-right: 8px;
  accent-color: var(--color-accent);
}

.test-question label:hover {
  color: var(--color-accent);
}

#intro {
    text-align: center;
}
.booking{
      margin-top: 25px;
    padding: 12px 28px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

/* ===== RESULT MESSAGE ===== */
.result-message {
  text-align: center;
  font-style: italic;
  color: var(--color-accent);
  margin-top: 15px;
  font-size: 1rem;
}

/* ===== SUBMIT BUTTON ===== */
.btn-submit {
  display: block;
  width: 220px;
  max-width: 90%;
  margin: 25px auto 0;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  color: var(--color-white);
  background-color: var(--color-accent);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section.emotional-test {
    padding: 40px 15px;
  }
  .test-form {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  section h1.test-title,
  section h2 {
    font-size: 22px;
  }
  .test-form {
    padding: 12px;
  }
  .btn-submit {
    width: 100%;
  }
}
/* ===== TEST 3 ENDS===== */

/* ===== CHI SIAMO STARTS ===== */
/* ===== SECTIONS ===== */
section {
  padding: 60px 20px;
}

section h1,
section h2 {
  text-align: center;
  color: var(--color-accent);
  margin-bottom: 20px;
  font-size: 2.5rem;
}

section p {
  max-width: 800px;
  margin: 0 auto 15px;
  text-align: center;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ===== INTRO ===== */
.about{
  background-color: var(--color-bg);
}
/* ===== TEAM ===== */
.team-cards {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 10px;
  display: flex;
  gap: 30px;
}

.psychologist-card {
  background-color: var(--color-white);
  border: 3px solid var(--color-border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  flex: 1;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.psychologist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.psychologist-card img {
  width: 100%;
  max-width: 180px;
  border-radius: 50%;
  margin-bottom: 15px;
}

.psychologist-card h3 {
  margin: 10px 0 5px;
}

.specialization {
  font-size: 14px;
  color: var(--color-accent);
  margin-bottom: 10px;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background-color: var(--color-bg);
}

.testimonial-slider {
  max-width: 700px;
  margin: 40px auto 0;
  position: relative;
}

.testimonial {
  display: none;
  text-align: center;
}

.testimonial.active {
  display: block;
}

.testimonial p {
  font-style: italic;
}

.testimonial span {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ===== BOOKING FORM ===== */
.booking form {
  max-width: 500px;
  margin: 25px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0 12px;
}
.booking label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.booking input,
.booking textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 3px solid var(--color-border);
  box-sizing: border-box;
}

.booking button {
  width: 100%;
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  padding: 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.booking button:hover {
  background-color: var(--color-accent-hover);
}

.booking textarea {
  resize: none;
}
/* ===== RESPONSIVE ======== */

/* 📱 Tablet */
@media (max-width: 768px) {
  .team-cards {
    flex-direction: column;
  }

  section {
    padding: 40px 15px;
  }
}

/* 📱 Mobile */
@media (max-width: 480px) {
  section h1,
  section h2 {
    font-size: 22px;
  }
    .booking form {
    padding: 0 10px;
  }

  .booking input,
  .booking textarea {
    font-size: 16px; 
    flex-direction: column;
    gap: 0;

  }
  .team-cards {
    flex-direction: column;
    gap: 0;
    padding: 12px 24px;
}   
  .psychologist-card {
    margin-bottom: 20px;
    border: 3px;
  }     
  .psychologist-card img {
    max-width: 140px;
  }
}
/* ===== CHI SIAMO ENDS ===== */
