/*index.css*/

.carousel-item img {
  transition: transform 0.6s ease;
}

.carousel-item img:hover {
  transform: scale(1.2);
}

/* Stile popup */
#popupOverlay {
  display: none; /* nascosto di default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#popupOverlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.4);
}

#closePopup {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

/* Applica Lora ai link della navbar */
.main-menu a,
.main-menu span {
  font-family: "Lora", sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ==========================================================
   LAYOUT HEADER TOP - Desktop vs Mobile
   ========================================================== */

/* Layout base per la sezione top */
.gt3_header_builder__section--top .gt3_header_builder__section-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.top_left, .top_right {
  flex: 1;
}

.top_left {
  display: flex;
  justify-content: flex-start;
}

.top_right {
  display: flex;
  justify-content: flex-end;
}



/* Desktop (≥992px): Mostra tutto */
@media (min-width: 992px) {
  .top_right.desktop-only {
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .top_left .testo {
    text-align: left;
    padding-left: 20px;
  }
  
  .top_right .testo {
    font-size: 18px !important;
    margin-top: 0px !important;
    text-align: right;
  }
}

/* Mobile e Tablet (<992px): Nascondi indirizzo e email */
@media (max-width: 450px) {
  .top_right.desktop-only {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  .top_left {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  
  .top_left .testo {
    font-size: 14px;
    margin: 10px 0;
    text-align: center;
    padding: 0 15px;
  }
  
  .gt3_header_builder__section--top .gt3_header_builder__section-container {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
}

/* Mobile specifico (<769px) */
@media (max-width: 768px) {
  .gt3_header_builder__section--top {
    padding: 10px 0;
  }
  
  .top_left .testo {
    font-size: 13px;
    line-height: 1.4;
  }
  
  /* Assicurati che la sezione top sia sempre visibile */
  .gt3_header_builder__section--top {
    display: flex !important;
    visibility: visible !important;
  }
}

/* ==========================================================
   MENU MOBILE SINISTRO TRASPARENTE
   ========================================================== */

/*  Nascondi completamente il menu mobile e l'icona su desktop */
@media (min-width: 992px) {
  .mobile_menu_container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateX(-100%) !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    outline: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  .mobile-navigation-toggle {
    display: none !important;
  }
}

/*  Stili solo per mobile e tablet */
@media (max-width: 991px) {
  /* --- Pulsante hamburger --- */
  .mobile-navigation-toggle {
    display: block;
    width: 40px;
    height: 30px;
    cursor: pointer;
    position: relative;
    z-index: 10001;
  }

  .toggle-box,
  .toggle-inner {
    position: relative;
    width: 100%;
    height: 100%;
  }

  .toggle-box::before,
  .toggle-box::after,
  .toggle-inner {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #000;
    transition: 0.3s ease;
  }

  .toggle-box::before {
    top: 0;
  }
  .toggle-inner {
    top: 50%;
    transform: translateY(-50%);
  }
  .toggle-box::after {
    bottom: 0;
  }

  /* --- Animazione hamburger → X --- */
  .mobile-navigation-toggle.is-active .toggle-box::before {
    transform: rotate(45deg);
    top: 50%;
  }
  .mobile-navigation-toggle.is-active .toggle-box::after {
    transform: rotate(-45deg);
    top: 50%;
  }
  .mobile-navigation-toggle.is-active .toggle-inner {
    opacity: 0;
  }

  /* --- Menu laterale trasparente --- */
  .mobile_menu_container {
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1),
                opacity 0.3s ease;
    z-index: 10000;
    padding: 80px 20px;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
    border: none;
    outline: none;
    visibility: hidden;
    opacity: 0;
    overflow: hidden;
  }

  .mobile_menu_container.open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
  }

  /* --- Lista link --- */
  .mobile_menu_container ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .mobile_menu_container ul li {
    margin: 18px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  /* Fade-in progressivo dei link */
  .mobile_menu_container.open ul li {
    opacity: 1;
    transform: translateY(0);
  }

  .mobile_menu_container.open ul li:nth-child(1) { transition-delay: 0.1s; }
  .mobile_menu_container.open ul li:nth-child(2) { transition-delay: 0.2s; }
  .mobile_menu_container.open ul li:nth-child(3) { transition-delay: 0.3s; }
  .mobile_menu_container.open ul li:nth-child(4) { transition-delay: 0.4s; }
  .mobile_menu_container.open ul li:nth-child(5) { transition-delay: 0.5s; }
  .mobile_menu_container.open ul li:nth-child(6) { transition-delay: 0.6s; }

  /* --- Link base + hover --- */
  .mobile_menu_container ul li a {
    color: #111;
    text-decoration: none;
    font-size: 20px;
    font-family: "Lora", sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 5px 0;
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease;
  }

  /* Hover moderno, senza underline */
  .mobile_menu_container ul li a:hover {
    color: #c49a02;
    background-color: rgba(196, 154, 2, 0.1);
  }
}

/* ==========================================================
   RICERCA
   ========================================================== */

/* Contenitore principale */
.header_search {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Icona lente */
.header_search__icon i {
  font-size: 22px;
  color: #111;
  cursor: pointer;
  transition: color 0.3s ease;
}

.header_search__icon i:hover {
  color: #c49a02f3;
}

/* Form compatto */
.header_search__form {
  position: relative;
  overflow: hidden;
  width: 0;
  opacity: 0;
  transition: width 0.4s ease, opacity 0.3s ease;
}

/* Campo input */
.header_search__input {
  width: 180px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 20px;
  font-size: 14px;
  outline: none;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: border-color 0.3s ease;
}

.header_search__input:focus {
  border-color: #c49a02;
}

/* Quando è attivo → espande */
.header_search.active .header_search__form {
  width: 200px;
  opacity: 1;
}

/* ==========================================================
   ALTRE REGOLE RESPONSIVE
   ========================================================== */

/* Responsive per la ricerca */
@media (max-width: 768px) {
  .header_search__input {
    width: 150px;
  }
  
  .script {
    margin-left: 15px;
  }

  .fa {
    margin-right: 15px;
  }
  
  .fa-phone {
    margin-right: 2px;
  }
}

/* Regole specifiche per la sezione principale su mobile */
@media (max-width: 769px) {
  .vc_single_image-img {
    margin-bottom: 80px !important;
  }
}

/* Assicurati che l'immagine nel carosello sia responsive */
@media (max-width: 768px) {
  .carousel-item img {
    max-height: 300px;
    object-fit: cover;
  }
  
  #carouselExampleIndicators {
    margin-top: 0px;
  }
}



/* ==========================================================
   CORREZIONE LINEE BIANCHE IN MOBILE (< 768px)
   ========================================================== */


/*@media (max-width: 768px) {
  .gt3_header_builder__section--top * {
    border: 1px solid red !important;
  }
}*/

/* SOLUZIONE 1: Solo rimozione bordi/outline */
@media (max-width: 768px) {
  .gt3_header_builder__section--top .colors.top_left.left.header_side {
    border: none;
    outline: none;
    box-shadow: none;
  }
}

/* SOLUZIONE 2: Isolamento del problema */
@media (max-width: 768px) {
  .colors.top_left.left.header_side {
    all: unset; /* Reset totale degli stili */
    display: none; /* O nascondilo se è davvero vuoto */
  }
}

/* SOLUZIONE 3: Se il problema è davvero solo in mobile e il div è vuoto */
@media (max-width: 768px) {
  .colors.top_left.left.header_side {
    display: none !important;
  }
}


/* ==========================================================
   CORREZIONE COMPLETA LINEE BIANCHE IN MOBILE
   ========================================================== */

/* Rimuovi linee bianche da TUTTI i contenitori della sezione top */
@media (max-width: 768px) {
  /* 1. Il contenitore principale della sezione top */
  .gt3_header_builder__section.gt3_header_builder__section--top {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  /* 2. Il div problematico interno */
  .colors.top_left.left.header_side {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    display: none !important; /* Se è vuoto, nascondilo */
  }
  
  /* 3. Il contenitore di tutta la sezione header */
  .gt3_header_builder__container.header_shadow {
    border: none !important;
    box-shadow: none !important;
  }
  
  /* 4. Eventuali altri div con classe "colors" nella sezione top */
  /* .gt3_header_builder__section--top .colors {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
  } */
}






/* ==========================================================
   SOLUZIONE MINIMA - SOLO DIMENSIONI MIGLIORATE
   ========================================================== */

@media (max-width: 768px) {
  .elenco-intro li {
    font-size: 21px !important;
    line-height: 1.6 !important;
    margin: 12px 0 !important;
  }
  
  .elenco-intro li.firma {
    font-size: 28px !important;
    margin-bottom: 20px !important;
  }
}




/* ==========================================================
   IMMAGINE LOGO RESPONSIVE - SOLUZIONE SEMPLICE
   ========================================================== */

/* ==========================================================
   IMMAGINE LOGO RESPONSIVE
   ========================================================== */


.responsive-logo-container {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 350px !important;
    margin: 0 auto !important;
}


.responsive-logo {
    width: 100% !important;
    height: auto !important;
    max-width: 350px !important;
    display: block !important;
    margin: 0 auto !important;
}

@media (min-width: 992px) {
    .responsive-logo {
        width: 350px !important;
        height: 350px !important;
    }
}


@media (min-width: 769px) and (max-width: 991px) {
    .responsive-logo {
        width: 280px !important;
        height: 280px !important;
        max-width: 280px !important;
    }
    
    .responsive-logo-container {
        max-width: 280px !important;
    }
}


@media (max-width: 768px) {
    .responsive-logo {
        width: 250px !important;
        height: 250px !important;
        max-width: 250px !important;
        padding: 8px !important;
        border-width: 2px !important;
    }
    
    .responsive-logo-container {
        max-width: 250px !important;
    }
}


@media (max-width: 480px) {
    .responsive-logo {
        width: 200px !important;
        height: 200px !important;
        max-width: 200px !important;
        padding: 6px !important;
        border-width: 1px !important;
        border-radius: 12px !important;
    }
    
    .responsive-logo-container {
        max-width: 200px !important;
    }

    
}

@media (max-width: 991px) {
  .custom-title-wrapper {
        /* Aggiunge 20px di spazio sopra il titolo (aumenta questo valore per abbassarlo di più) */
        padding-top: 20px !important;
        bottom: auto !important;
        margin-top: 100px !important;
  }
}





/*sezione cookie -policie*/


#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;               /* tutta la larghezza */
  background: #1e1e1ee8;
  color: #fff;
  padding: 20px 30px;
  display: none;
  flex-direction: column;
  gap: 15px;
  backdrop-filter: blur(6px);
  z-index: 999999;
  font-family: "Lora", serif;
  font-size: 15px;
  line-height: 1.5;
  border-top: 1px solid rgb(255 255 255 / 12%);
}

#cookie-banner p {
  margin: 0;
  text-align: center;
}

#cookie-banner a {
  color: #d4b25f;
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

#cookie-banner button {
  padding: 10px 20px;
  font-size: 14px;
  font-family: "Lora", serif;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.25s ease;
}

/* ACCETTA */
#cookie-accept {
  background: #c7a74a;
  color: #fff;
}

#cookie-accept:hover {
  background: #ddbf63;
}

/* RIFIUTA */
#cookie-reject {
  background: #444;
  color: #fff;
}

#cookie-reject:hover {
  background: #555;
}

.formation {
  margin-bottom: 5px;
  margin-top: -50px;
}



/* MOBILE */
@media (max-width: 600px) {
  #cookie-banner {
    padding: 15px 20px;
    font-size: 14px;
  }

  .cookie-buttons {
    flex-direction: column;
    width: 100%;
  }

  #cookie-banner button {
    width: 100%;
  }
 
}

@media (max-width: 600px) {
  .formation {
    margin-top: 5px;
  }
}

@media screen and (max-width: 750px) {

.gt3_header_builder_text_component {
    display: flex !important;
    justify-content: center !important; /* Centra orizzontalmente */
    align-items: center !important;     /* Centra verticalmente */
    width: 100% !important;             /* Occupa tutta la larghezza */
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 20px !important;
    float: none !important;
    text-align: center !important;
}

.gt3_header_builder_text_component p.testo {
        display: inline-block !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
        white-space: nowrap !important;
        gap: 2px; /* Spazio tra icona e numero */
        margin-left: 20px !important;
}

/* Assicurati che il contenitore genitore non lo blocchi a destra */
.gt3_header_builder__section-container,
.header_side_container {
    width: 100%;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    left: 0 !important;
}

.gt3_header_builder_component,
.gt3_header_builder_text_component {

    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    left: 0 !important;
}

.text_class{
    text-align: center !important;
    margin-right: 35px !important;
    margin-bottom: 10px !important;
}

.header_search__icon{
    margin-top: 65px !important;
}

.fa-phone{
    margin-bottom: 30px !important;
}

}

@media screen and (max-width: 900px) {

  

  

     /* 1. Reset del contenitore principale */
    .image-psicologa {
        width: 305px !important;
        max-height: 600px;
        max-width: 400px;
        height: 350px !important;
        display: flex !important;
        justify-content: center !important; /* Centra il contenuto */
        align-items: center !important;
        text-align: center !important;
        float: none !important;
        margin: 0 auto !important;
    }

   

}


