:root {
  --primary-color: #4682B4;
  --secondary-color: #3CB371;
  --accent-color: #e66657;
  --text-color: #333;
  --light-bg: #f9f9f9;
  --white: #fff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-bg);
}

/* Container */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header e Navigazione */
header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: fixed;
  width: 100%;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-color);
}

.cta-button {
  background-color: var(--accent-color);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s;
  display: inline-block;
}

.cta-button:hover {
  background-color: #d16f64;
}

.intro-cta {
  margin-top: 25px;
}

/* Hero */
.hero {
  background: linear-gradient(rgba(70, 130, 180, 0.1), rgba(70, 130, 180, 0.2));
  padding: 160px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Sezioni */
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  color: var(--primary-color);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  margin: 15px auto 0;
}

/* About e Where */
.about, .where {
  background-color: var(--white);
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
}

.about-flex-container {
  display: flex;
  gap: 40px;
  align-items: stretch;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Aumentare spazio rispetto alla sezione superiore */
.about-flex-container:first-child {
  margin-bottom: 50px;
}

/* Ridurre spazio rispetto alla sezione inferiore */
section#about {
  margin-bottom: -50px; /* Valore negativo più grande per ridurre ulteriormente lo spazio */
}

/* Overriding potenziali stili che potrebbero centrare il testo */
.box-primary, .box-primary ul, .box-primary li {
  text-align: left !important;
}

.about-intro {
  flex: 1;
  text-align: left;
}

.about-intro h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 24px;
}

.about-intro p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.profile-photo {
  flex: 1;
  text-align: center;
  padding-right: 30px;
}

.profile-photo img {
  border-radius: 50%;
  width: 100%;
  max-width: 300px;
  box-shadow: var(--shadow);
}

.box, .credentials {
  background-color: var(--light-bg);
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow);
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.box-primary {
  border-left: 4px solid var(--primary-color);
}

.box-secondary, .credentials {
  border-left: 4px solid var(--secondary-color);
}

.box-title, .credentials h4 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 20px;
  text-align: center;
}

.credentials {
  text-align: left;
}

.custom-list {
  list-style: none;
  padding-left: 5px;
}

.custom-list li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  text-align: left;
}

.custom-list li .bullet {
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.bullet-primary {
  background-color: var(--primary-color);
}

.bullet-secondary {
  background-color: var(--secondary-color);
}

/* Services e Slider */
.services {
  background-color: var(--light-bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.service-card .service-image,
.service-card > img {
  background-color: #f2f2f2;
  padding: 30px 0 20px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.service-card > img {
  height: 200px;
  padding: 0;
  object-fit: cover;
}

.service-card .service-image img {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  display: block;
}

.service-card .service-content {
  padding: 25px;
  text-align: center;
}

.service-card .service-content h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.service-card .service-content p {
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  margin-bottom: 25px;
  padding-left: 0;
}

.feature-list li {
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.feature-icon {
  margin-right: 10px;
  margin-top: 5px;
  width: 18px;
  height: 18px;
  stroke: var(--secondary-color);
  stroke-width: 2;
}

.slider-container {
  position: relative;
  overflow: hidden;
  padding: 20px 0;
}

.services-slider {
  display: flex;
  gap: 20px;
  padding: 0 20px;
  transition: transform 0.5s ease;
}

.services-slider .service-card {
  flex: 0 0 calc(33.333% - 20px);
  width: calc(33.333% - 20px);
  min-width: 280px;
  max-width: 400px;
}

.slider-nav {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  gap: 10px;
}

.slider-button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.slider-button:hover {
  background-color: var(--accent-color);
}

.slider-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.slider-button svg {
  width: 20px;
  height: 20px;
}

/* Contact */
.contact {
  background-color: var(--light-bg);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.contact-info {
  line-height: 2;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
}

.contact-info p {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.contact-info p svg {
  margin-right: 10px;
  color: var(--primary-color);
}

.contact-form {
  background-color: var(--white);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-column h3 {
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
}

.footer-column h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
  margin-top: 10px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s;
}

.footer-column ul li a:hover {
  opacity: 0.8;
}

copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-content {
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hamburger Menu */

.hamburger-menu {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 101;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  margin-bottom: 5px;
  position: relative;
  background: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-menu span:last-child {
  margin-bottom: 0;
}

/* Animazione hamburger quando attivo */
.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Sidebar Menu */
.sidebar-menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background-color: var(--primary-color);
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  z-index: 200;
  transition: right 0.3s ease;
  overflow-y: auto;
  padding: 20px 0;
}

.sidebar-menu.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px 20px;
  position: relative;
  height: 60px;
}

.sidebar-close {
  background: transparent;
  border: none;
  font-size: 36px;
  cursor: pointer;
  color: var(--white);
  position: absolute;
  top: 0;
  right: 20px;
  line-height: 1;
}

.sidebar-links {
  list-style: none;
  padding: 20px;
}

.sidebar-links li {
  margin-bottom: 20px;
}

.sidebar-links a {
  text-decoration: none;
  color: var(--white);
  font-weight: 600; /* Aumentato il peso del font per migliorare la leggibilità */
  font-size: 18px;
  display: block;
  padding: 10px 0;
  transition: opacity 0.3s;
}

.sidebar-links a:hover {
  opacity: 0.9; /* Aumentata l'opacità per migliorare il contrasto */
  text-decoration: underline; /* Aggiunto sottolineatura per rendere più evidente l'hover */
}

.sidebar-links .cta-button {
  margin-top: 20px;
  display: inline-block;
  text-align: center;
  background-color: var(--accent-color);
  color: var(--white);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
  display: none;
}

.sidebar-overlay.active {
  display: block;
}
/* Modale */
.modal {
  display: none;
  position: fixed;
  z-index: 200;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: var(--white);
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 600px;
  position: relative;
}

.modal-close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-close:hover {
  color: #000;
}

/* Prezzi */
.prices {
  background-color: var(--white);
}

.prices-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.prices-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.prices-intro p {
  font-size: 18px;
  line-height: 1.7;
}

.price-table-container {
  overflow-x: auto;
  margin: 0 auto;
  box-shadow: var(--shadow);
  border-radius: 10px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
}

.price-table th, .price-table td {
  padding: 15px 25px;
  text-align: center;
  border-bottom: 1px solid var(--light-bg);
}

.price-table th {
  background-color: var(--primary-color);
  color: var(--white);
  font-weight: 600;
}

.price-table th:first-child {
  text-align: left;
}

.price-table td:first-child {
  text-align: left;
  font-weight: 500;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table tr:nth-child(even) {
  background-color: var(--light-bg);
}

.price-notes {
  background-color: var(--light-bg);
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid var(--secondary-color);
}

.price-notes p {
  margin-bottom: 15px;
}

.price-cta {
  text-align: center;
  margin-top: 10px;
}

.price-cta .cta-button {
  font-size: 18px;
  padding: 12px 30px;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-slider .service-card {
    flex: 0 0 calc(50% - 20px);
    width: calc(50% - 20px);
  }
}

@media (max-width: 900px) {
  .about-flex-container {
    flex-direction: column;
    gap: 30px;
  }
  .about-intro, .credentials, .profile-photo {
    width: 100%;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .hamburger-menu {
    display: block;
  }

  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }

  section {
    padding: 60px 0;
  }

  .services-slider .service-card {
    flex: 0 0 calc(100% - 40px);
    width: calc(100% - 40px);
    margin: 0 auto;
  }

  .about-intro h3 {
    font-size: 22px;
  }

  .about-intro p {
    font-size: 16px;
  }

  .box-title {
    font-size: 18px;
  }

  .price-table th,
  .price-table td {
    padding: 12px 15px;
  }

  .prices-intro p {
    font-size: 16px;
  }

  /* --- Regole specifiche per #patients --- */
  #patients .service-card .service-content p {
    display: none; /* Nasconde completamente il paragrafo */
  }

  #patients .service-card .service-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  #patients .service-card .service-content h3 {
    margin-bottom: 0; /* Rimuove il margine sotto il titolo */
  }

  /* Opzionale: aggiusta l’altezza dell’immagine per compensare il testo mancante */
  #patients .service-card img {
    height: 150px; /* Riduce leggermente l’altezza dell’immagine */
  }

  #patients .service-card {
    min-height: 0; /* Rimuove eventuali altezze minime */
  }
}
