


.site-header {
  position: relative;
  width: 100%;
  background-color: white;
  text-align: center;
  padding: 20px 0;
  z-index: 10;
}


.slideshow {
  position: relative;
  margin-top: 180px; /* păstrat ca să nu se suprapună cu headerul */
  overflow: hidden;
}

.container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  max-height: 7000px; /* limitează înălțimea imaginii */
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 1;
  object-fit: contain;
}


.container.active {
  opacity: 1;
  z-index: 2;
  position: relative;
}

.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px; /* mai mici decât 48px */
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 6px 10px;

  cursor: pointer;
  border-radius: 50%;
  user-select: none;
  z-index: 10;
}

.prev:hover,
.next:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}


.page-container {
  max-width: 1900px; /* sau 1100px, în funcție de preferință */
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.tall-fix {
  max-width: 1900px;       /* mai îngustă */
  max-height: 920px;    /* mai joasă */
  object-fit: contain;  /* păstrează proporțiile fără să taie */
  display: block;
  
}





@media (max-device-width: 1200px)  {
  .logo {
  width: 100%;
  margin-top: -170px; 
  display: flex;
  margin-left: auto;
  margin-right: auto;
}


  .tall-fix {
  margin-left: 18px;
  max-width: 300px;       
  max-height: 900px;    
  object-fit: contain;  
  display: block;
  
}

.page-container{
    padding:30px;
}

 .section-wrapper {
    padding:10px 0px;
  
  }

  .prev, .next {
    font-size: 20px;
    padding: 4px 8px;
  }

  section {
    padding: 20px;
    margin: 30px auto;
  }

  section h2 {
    font-size: 1.35em;
    text-align: left;
    line-height: 1.4;
  }

  section p {
    font-size: 1em;
    line-height: 1.6;
    text-align: justify;
  }

  #chat-box {
    max-height: 280px;
    font-size: 0.95em;
  }

  #user-input {
    font-size: 1em;
    padding: 10px;
  }

  button, .cta-button {
    font-size: 0.95em;
    padding: 10px 14px;
    border-radius: 6px;
  }

  button#send-button,
  button[onclick="sendMessage()"] {
    font-size: 0.9em;
    padding: 10px 20px;
    width: 100%;
    max-width: 150px;
    align-self: center;
  }

  .hamburger-menu {
    top: 15px;
    left: 15px;
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px 15px;
    text-align: center;
  }

  .footer-button {
    position: static;
    width: 80%;
    max-width: 250px;
    text-align: center;
    font-size: 16px;
    padding: 12px 0;
    background-color: #444;
    color: white;
    border-radius: 6px;
    margin-bottom: 10px;
  }

  .footer-button:hover {
    background-color: #666;
  }

  .footer-button.left,
  .footer-button.right {
    left: auto;
    right: auto;
    transform: none;
  }

  .footer-text {
    order: 3;
    font-size: 14px;
    color: #ccc;
    margin-top: 10px;
  }

  .menu-toggle {
    width: 24px;
    height: 20px;
  }

  .menu-toggle span {
    height: 2px;
  }

  .side-menu a {
    font-size: 22px;
    padding: 8px 0;
  }

  .side-menu li {
    margin: 20px 0;
  }

  .close-button {
    font-size: 28px;
    top: 20px;
    right: 20px;
  }
}
@media (max-device-width: 1200px) and (orientation: landscape) {
.logo {

 max-width: 500px;       /* ← mărit puțin față de 200px */
    max-height: 300px;       /* ← mărit puțin pentru claritate */
    width: auto;
    height: auto;

  transform: translateX(-50%);
  margin-top: -120px;
  display: block;
}
 .slideshow {
    margin-top: 10px;
    
    height: auto;
    max-height: none;   /* lasă imaginea să crească */
  }

  .slideshow .container {
    height: auto;
    max-height: none;   /* fără limită artificială */
  }

  .tall-fix {
     max-width: 700px; /* sau cât vrei să fie imaginea maximă */
  }

  .slideshow img {
  width: 100% !important;
  height: auto !important;
  max-height: 90vh;      /* imagine mare dar nu mai înaltă decât viewport-ul */
  object-fit: contain;   /* păstrează proporțiile */
  display: block;
  margin: 0 auto;
}

}


@media (max-device-width: 1200px) and (orientation: portrait) {
.logo {

 max-width: 500px;       
    max-height: 400px;       
    width: auto;
    height: auto;

  transform: translateX(-50%);
  margin-top: -170px;
  display: block;
}
 .slideshow {
    margin-top: 180px;
    
    height: auto;
    max-height: none;   /* lasă imaginea să crească */
  }

  .slideshow .container {
    height: auto;
    max-height: none;   /* fără limită artificială */
  }

  .tall-fix {
     max-width: 700px; /* sau cât vrei să fie imaginea maximă */
  }

  .slideshow img {
    
  width: 65% !important;
  height: auto !important;
  max-height: auto;      /* imagine mare dar nu mai înaltă decât viewport-ul */
  object-fit: contain;   /* păstrează proporțiile */
  display: block;
  margin: 0 auto;
}

}


/* === Desktop fix (indiferent de zoom) === */
@media (min-width: 1201px) {
  .logo {
    max-width: 600px !important;
    width: auto !important;
    height: auto !important;
    margin-top: -250px !important;
    transform: translateX(-50%) !important;
  }
}


