/* Reset base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #ffffff;
  color: #333;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f1a1c3; /* rosa principale */
  color: #fff;
  padding: 0.5rem 1.5rem;
  margin: 1rem auto;
  border-radius: 50px;
  max-width: 1200px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Parte sinistra con foto e nome */
.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
}

.doctor-info {
  display: flex;
  flex-direction: column;
}

.doctor-name {
  font-weight: bold;
  font-size: 1rem;
}

.doctor-location {
  font-size: 0.8rem;
  opacity: 0.9;
}

/* Parte destra con menu */
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-right ul {
  display: flex;
  list-style: none;
  gap: 1rem;
}

.nav-right a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

.nav-right a:hover {
  text-decoration: underline;
}

/* Bottone prenota */
.btn-prenota {
  background: #fdcbde; /* rosa chiaro */
  color: #f56ca3;      /* rosa scuro */
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-prenota:hover {
  background: #e573a6; /* rosa principale */
}

/* Hero di esempio */
.hero {
  text-align: center;
  padding: 4rem 2rem;
}

/* Sezione intro */
.intro-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Colonna sinistra */
.intro-left {
  flex: 1;
}

.intro-left h2 {
  font-size: 2rem;
  color: #f1a1c3; /* rosa principale */
  margin-bottom: 1rem;
}

.intro-left p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.intro-left p1 {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-weight: bold;
}

.btn-mappa {
  display: inline-block;
  background: #f1a1c3; /* rosa principale */
  color: #c2185b;      /* rosa scuro */
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-mappa:hover {
  background: #f55394; /* rosa scuro */
  color: #fff;
}

/* Colonna destra */
.intro-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Sezione Servizi */
.servizi-section {
  text-align: center;
  padding: 4rem 2rem;
  background: #f9f9f9;
  margin-bottom: 0.5rem; /* spazio minimo sotto servizi */
}

.servizi-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #c2185b; /* rosa scuro */
}

.servizi-section .subtitle {
  font-size: 1rem;
  color: #555;
  margin-bottom: 3rem;
}

/* Griglia servizi */
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Card servizio */
.servizio-card {
  background: #fea2c8; /* rosa principale */
  color: #fff;
  padding: 2rem 1rem;
  border-radius: 20px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.servizio-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.15);
}

.servizio-card h3 {
  font-size: 1rem;
  font-weight: bold;
}

.preparazione-section h2 {
  text-align: center;
  padding: 4rem 2rem;
  background: #f9f9f9;
}

.preparazione-section {
  text-align: left;
  padding: 8rem;
  background: #f9f9f9;
  padding-top: 1rem;      /* spazio minimo sopra preparazione */
  padding-bottom: 2rem;   /* spazio minimo sotto preparazione */
}

/* Sezione prenotazione */
.prenotazione-section {
  text-align: center;
  padding: 4rem 2rem;
  background: #f9f9f9;
  padding-top: 3rem;    /* spazio minimo sopra prenotazione */
  padding-bottom: 2rem;
}

.prenotazione-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #c2185b; /* rosa scuro */
}

/* Wrapper calendario */
.calendar-wrapper {
  display: flex;
  justify-content: center;
}

/* Striscia separatrice */
.separator-section {
  margin: 0;
  padding: 0;
}

.separator-img {
  width: 100%;
  height: 500px;   /* puoi regolare l’altezza */
  object-fit: cover;
  display: block;
}

/* Footer */
.site-footer {
  background: #fea2c8; /* rosa principale */
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Responsive Navbar: tablet */
@media (max-width: 1024px) {
  .navbar {
    max-width: 95%;
    padding: 0.5rem 1rem;
  }
}

/* Responsive Navbar: mobile */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    border-radius: 0;
    max-width: 100%;
  }

  .nav-left {
    margin-bottom: 1rem;
  }

  .nav-right {
    width: 100%;
    justify-content: flex-start;
    gap: 1rem;
  }

  .nav-right ul {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .btn-prenota {
    width: 100%;
    margin-top: 1rem;
  }
}

/* Responsive Navbar: schermi molto piccoli */
@media (max-width: 480px) {
  .navbar {
    padding: 0.5rem 0.5rem;
  }
  .logo {
    width: 40px;
    height: 40px;
  }
  .doctor-name {
    font-size: 0.9rem;
  }
  .nav-right ul {
    gap: 0.3rem;
  }
  .btn-prenota {
    font-size: 0.9rem;
    padding: 0.4rem 0.7rem;
  }
}

/* Responsive: la colonna destra va a capo su mobile */
@media (max-width: 768px) {
  .intro-section {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1rem;
  }
  .intro-left,
  .intro-right {
    width: 100%;
  }
  .intro-right {
    align-items: center; /* invece di stretch */
  }
  .btn-cv {
    width: auto; /* assicura larghezza naturale */
    max-width: 100%; /* evita che sfori */
  }
}

/* Responsive: la colonna destra va a capo su tablet */
@media (max-width: 1024px) {
  .intro-section {
    flex-direction: column;
    gap: 2rem;
    padding: 3rem 1.5rem;
  }
  .intro-left,
  .intro-right {
    width: 100%;
  }
  .intro-right {
    align-items: center;
  }
  .btn-cv {
    width: auto;
    max-width: 100%;
  }
}

/* Responsive: calendar mobile */

@media (max-width: 768px) {
  .calendar-wrapper {
    flex-direction: column;
    padding: 0;
    width: 100%;
  }
  .calendar-wrapper > * {
    width: 100% !important;
    min-width: 0;
    max-width: 100%;
  }
}

/* Responsive: calendar tablet */

@media (max-width: 1024px) {
  .calendar-wrapper {
    flex-direction: column;
    padding: 0.5rem 0;
    width: 100%;
    align-items: center;
  }
  .calendar-wrapper > * {
    width: 95% !important;
    min-width: 0;
    max-width: 600px;
    margin: 0 auto 1rem auto;
  }
}

/* Responsive: schermi grandi */
@media (min-width: 1400px) {
  body {
    font-size: 1.15rem;
  }
  .navbar {
    max-width: 1400px;
    padding: 1rem 3rem;
    font-size: 1.1rem;
    background: #fea2c8; /* rosa principale */
  }
  .intro-section {
    max-width: 1400px;
    gap: 5rem;
    padding: 6rem 3rem;
  }
  .doctor-photo {
    max-width: 400px;
  }
  .servizi-section,
  .prenotazione-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 3rem;
  }
  .servizi-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  .calendar-wrapper {
    max-width: 900px;
    margin: 0 auto;
  }
  .calendar-iframe {
    height: 70vh;
    max-height: 900px;
    min-height: 500px;
  }
}

/* Sottolinea specifica per la mail nel footer (non link) */
.email-text {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  color: inherit;
  cursor: default;
}

/* Responsive: schermi extra-large
@media (min-width: 1800px) {
  .navbar,
  .intro-section,
  .servizi-section,
  .prenotazione-section {
    max-width: 1800px;
    padding-left: 10vw;
    padding-right: 10vw;
    /*background: #fea2c8; /* rosa principale
  }
  .calendar-wrapper {
    max-width: 1200px;
  }
  .calendar-iframe {
    height: 80vh;
    max-height: 1200px;
  }
}*/
