* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  }

  main {
    flex: 1;
  }

  html {
    scroll-behavior: smooth;
  }
  
  body {
  font-family: "Segoe UI", sans-serif;
  background-color: white;
  padding: 2rem;
  padding-top: 100px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  }

  header {
  display: flex;
  background-color: white;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }

  nav {
  display: flex;
  gap: 2rem;
  }

  nav a {
  text-decoration: none;
  font-weight: 500;
  color: black;
  }

  nav a:hover{
    text-decoration: none;
    transition: transform 0.3s ease;
    transform: scale(1.2);
    color: #2cbb55;
  }

  .logo img {
  font-size: 2rem;
  font-weight: bold;
  width: 75px;
  height: 75px;
  }

  .contact-btn {
  background-color: #2cbb55;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 140px;
  }

.container {
display: flex;
margin-top: 40px;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
gap: 2rem;
}

#home{
scroll-margin-top: 111px;
}

.text-section {
max-width: 600px;
}

.text-section h1 {
font-size: 3.5rem;
color: #111827;
margin-bottom: 1rem;
}

.text-section p {
font-size: 1.1rem;
color: #4b5563;
margin-bottom: 1.5rem;
}

.buttons {
display: flex;
gap: 1.5rem;
align-items: center;
}

.btn-green {
background-color: #34c759;
color: white;
padding: 0.7rem 1.2rem;
border: none;
border-radius: 0.5rem;
font-weight: bold;
cursor: pointer;
}

.btn-text {
color: #111827;
font-weight: 600;
text-decoration: none;
}

.image-grid {
display: grid;
grid-template-columns: repeat(2, 120px);
grid-auto-rows: 120px;
gap: 1rem;
}

.image-placeholder {
border-radius: 0.75rem;
width: 120px;
height: 120px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
background-position: center;
margin-right: 0;
}

.image-placeholder img{
width: 100%;
height: 100%;
border-radius: 0.75rem;
object-fit: cover;
}

.custom-slideshow {
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 400px;
  overflow: hidden;
  margin-top: 60px; /* margine sopra se serve separazione */
  border-radius: 12px;
}

.custom-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  z-index: 0;
}

.custom-slide.active {
  opacity: 1;
  z-index: 1;
}

.custom-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.custom-slide-text {
  position: absolute;
  left: 50px;
  bottom: 50px;
  color: white;
  z-index: 2;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.custom-slide-text h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.custom-slide-text p {
  font-size: 1.1rem;
}

.custom-slide-prev,
.custom-slide-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  padding: 10px;
  z-index: 3;
  transition: opacity 0.3s ease;
}

.custom-slide-prev:hover,
.custom-slide-next:hover {
  opacity: 0.7;
}

.custom-slide-prev {
  left: 20px;
}

.custom-slide-next {
  right: 20px;
}

.bio-section {
  background-color: #f0ffe8;
  padding: 60px 20px;
  text-align: center;
  margin-top: 40px;
  border-radius: 12px; 
}

.bio-intro {
  border: none;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.bio-intro h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #0d0d0d;
}

.bio-intro p {
  font-size: 1rem;
  color: #333;
}

.bio-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bio-card img {
  width: 300px;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 20px;
  transition: transform 0.4s ease;
  border: 2px solid transparent;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Ombra */
}

.bio-card img:hover{
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); /* Ombra */
  border: 2px solid #00cc88; /* Bordo animato colorato */
}

.bio-details h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.bio-details p {
  font-size: 1rem;
  color: #666;
}

/*.consult-section{
  display: flex;
  flex-direction: row;
  background-color: white;
  text-align: center;
  margin-top: 40px;
  border-radius: 12px;
  padding: 60px 20px;
}

.consult-text{
  font-size: 1rem;
  font-weight: 800;
  margin: auto;
  color: #0e1a1a;
}

.consult-text h2{
  font-family: "Segoe UI", sans-serif;
  /*font-weight: 600;
}

.appointment{
  font-family: "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  margin: auto;
  color: #0e1a1a;
}*/

.pricing-section {
  background-color: #f0ffe9;
  padding: 60px 20px;
  text-align: center;
  border-radius: 12px;
  margin-top: 40px;
}

.pricing-main-card {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  max-width: 600px;
  margin: 0 auto 40px;
}

.pricing-main-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: #0e1a1a;
}

.pricing-sub-cards {
  flex-wrap: wrap;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  max-width: 1100px;      /* controlla la larghezza massima */
  width: 100%;
  margin: 0 auto;
}

.pricing-card {
  background-color: white;
  border-radius: 10px;
  padding: 3rem;
  width: 250px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;     /* centra orizzontalmente */
  justify-content: center; /* centra verticalmente */
  text-align: center;
  flex: 1;                
  max-width: none;    
  /*transition: transform 0.3s ease, box-shadow 0.3s ease;*/
}
.pricing-card img {
  max-width: 100%;   /* dimensione controllata */
  width: 100%;
  border-radius: 10px;
  height: auto;
  display: block;
  /*margin-bottom: 15px;*/
}

/*.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}*/

.pricing-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #245b79;
}

.pricing-card p {
  font-size: 1.4rem;
  font-weight: bold;
  color: #2cbb55;
}

@keyframes slideLoop {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  50% {
    transform: translateX(0);
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

.slide-loop h2 {
  display: inline-block;
  white-space: nowrap;
  animation: slideLoop 5s linear infinite;
}

.approach-section {
  background-color: #f0ffe9;
  padding: 60px 20px;
  text-align: center;
  margin-top: 40px;
  /*border-top: 1px solid #ccc;*/
  border-radius: 12px;
}

.approach-header {
  max-width: 800px;
  margin: 0 auto 50px;
}

.approach-subtitle {
  display: inline-block;
  padding: 5px 0px;
  border: none;
  border-radius: 10px;
  font-size: 0.8rem;
  color: #245b79;
  font-weight: 600;
  letter-spacing: 1px;
}

.approach-header h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 15px 0;
  color: #0e1a1a;
}

.approach-header p {
  font-size: 1rem;
  color: #444;
}

.approach-steps {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.approach-step {
  background: white;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  width: 30%;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.approach-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.step-number {
  font-size: 0.75rem;
  color: #245b79;
  font-weight: bold;
  letter-spacing: 1px;
}

.approach-step h3 {
  margin: 10px 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
}

.approach-step p {
  font-size: 0.95rem;
  color: #333;
}

.whatsapp-icon img {
  width: 50px;
  height: 50px;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.values-section {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 40px;
  padding: 60px 20px;
  background-color: #ffffff;
  border-radius: 12px;
}

.value-card {
  width: 250px;
  text-align: center;
  padding: 10px;
}

.value-icon {
  background-color: #c8f3c3;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a7d2d;
  font-size: 20px;
}

.value-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0e1a1a;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 0.95rem;
  color: #1a1a1a;
  line-height: 1.4;
}

.contact-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4rem;
  padding: 4rem 8%;
  /*background-color: #f7f7f7;*/
  background-color: #f0fff4;
  flex-wrap: wrap;
  border-top-right-radius: 12px;
  border-top-left-radius: 12px;
  margin-top: 40px;
}

.contact-left {
  flex: 1;
  min-width: 300px;
}

.contact-left h3 {
  font-size: 1.5rem;
  color: #2cbb55;
  margin-bottom: 0.5rem;
}

.contact-left h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
  max-width: 500px;
}

.contact-left p {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.contact-right {
  flex: 1;
  min-width: 300px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border: 2px solid #2cbb55;
  background-color: transparent;
  border-radius: 8px;
  font-size: 1rem;
  color: #333;
  outline: none;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #1e9942;
}

.contact-form button {
  background-color: #2cbb55;
  color: white;
  font-weight: 600;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.contact-form button:hover {
  background-color: #1e9942;
}

  .contact-form input,
  .contact-form textarea{
    font-size: 1rem;
    padding: 0.65rem 0.9rem;
  }

  .contact-form button {
    text-align: center;
    padding: 0.75rem;
  }

  .privacy-check {
    flex-direction: column;
    align-items: flex-start;
  }

  .privacy-check input[type="checkbox"] {
    margin-top: 0.1rem;
  }

.privacy-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #333;
}

.privacy-check input[type="checkbox"] {
  margin-top: 0.2rem;
  transform: scale(1.2);
}

.privacy-check.error span {
  color: red;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f0fff4;
  padding: 2rem 4rem;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid #ccc;
  font-size: 0.9rem;
  border-bottom-right-radius: 12px;
  border-bottom-left-radius: 12px;
  width: 100%;
  min-height: 250px;
}

.footer-right{
  text-align: center;
}

.footer-left,
.footer-right {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-left a,
.footer-right a {
  text-decoration: none;
  color: #2c2c2c;
  font-weight: 500;
}

.footer-left a:hover,
.footer-right a:hover {
  text-decoration: none;
  transition: transform 0.3s ease;
  transform: scale(1.2);
  color: #2cbb55;
}

.footer-right svg {
  transition: transform 0.3s ease;
}

.footer-right svg:hover {
  transform: scale(1.2);
  fill: #2cbb55;
}

.footer-right .linktree {
  font-weight: 500;
  color: #2c2c2c;
  text-decoration: none;
}

.footer-right .linktree:hover {
  text-decoration: none;
}

.footer-center {
  text-align: center;
  flex: 1;
  color: #666;
}

.policy-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  line-height: 1.7;
  color: #333;
  font-size: 1rem;
}

.policy-wrapper h1,
.policy-wrapper h2 {
  color: #0e1a1a;
  margin-bottom: 1rem;
  font-weight: 700;
}

.policy-wrapper h1 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #2cbb55;
}

.policy-wrapper h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
}

.policy-wrapper p {
  margin-bottom: 1rem;
}

.policy-wrapper ul,
.policy-wrapper ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: #444;
}

.policy-wrapper li {
  margin-bottom: 0.5rem;
}

.policy-wrapper a {
  color: #2cbb55;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.policy-wrapper a:hover {
  color: #1e9942;
}

.policy-highlight {
  background-color: #f0ffe9;
  border-left: 4px solid #2cbb55;
  padding: 1rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  color: #245b79;
}

/* ──────────── MOBILE ──────────── */
@media (max-width: 768px) {
body {
  padding: 1rem;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

#home{
  padding-top: 250px;
  scroll-margin-top: 191px;
}

.logo img {
  width: 65px;
  height: 65px;
}

.contact-btn {
  max-width: none;
  width: 80%;
  justify-content: center;
}

.container {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.buttons {
  display: flex;
  justify-content: center;
}

.buttons a {
  width: 100%;
  display: flex;
  justify-content: center;
  text-decoration: none;
}

.btn-green {
  width: auto;
  min-width: 60%;
  text-align: center;
}

.image-grid {
  gap: 1rem;
}

.image-placeholder {
  width: 100px;
  height: 100px;
}  

.text-section h1 {
  font-size: 2rem;
}

.text-section p {
  font-size: 1rem;
}

.image-grid {
  grid-template-columns: repeat(2, 100px);
  grid-auto-rows: 100px;
}

.custom-slide-text {
  left: 20px;
  bottom: 20px;
}

.custom-slide-text h2 {
  font-size: 1.3rem;
}

.custom-slide-text p {
  font-size: 1rem;
}

.approach-steps {
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.approach-step {
  width: 100%;
  max-width: 90%;
  text-align: center;
}

.contact-section {
  flex-direction: column;
  gap: 2rem;
  padding: 2rem 1.5rem;
}

.contact-left h2 {
  font-size: 1.4rem;
}

.contact-left,
.contact-right {
  width: 100%;
}

.bio-card img {
  width: 90%;
  max-width: 300px;
}

 .pricing-card img {
    max-width: 180px;
  }
  .pricing-sub-cards {
    flex-direction: column;
  }
.values-section {
  flex-direction: column;
  align-items: center;
}

.value-card {
  width: 100%;
  max-width: 300px;
}

.contact-form input,
.contact-form textarea, 
.contact-form button{
  max-width: 600px;
}

span{
  max-width: 200px;
}

.site-footer {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 3rem 1.5rem;
}

.footer-left,
.footer-right {
  justify-content: center;
  gap: 1rem;
}

.footer-center {
  order: 3;
  width: 100%;
  margin-top: 1rem;
}
}