@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@700&display=swap");



.container_poze {
  width: 90%;
  margin: 0 auto;
}

/* main section */

.carousel {
  max-height: 700px;
  /* Set the maximum height for the carousel */
  overflow: hidden;
}

.carousel-inner {
  max-height: 700px;
  /* Ensure inner carousel respects the height */
}

.carousel-item img {
  width: 100%;
  max-height: 700px;
  object-fit: cover;
  /* Ensures the image covers the container */
}




/* hero wrapper             */
@media (max-width:635px) {

  /* need to fix the horizontal scroll on hero wrapper */
  .overlay-content p {
    font-size: 2vmin;

  }
}

@media (max-width:385px) {

  /* need to fix the horizontal scroll on hero wrapper */
  .overlay-content h1 {
    font-size: 0.6rem;

  }
}

p {

  margin-bottom: 1.5rem;
  font-family: sans-serif;
  font-weight: 300;
  line-height: 1.42;
}



.wrap {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  width: 90%;
  height: 65vh;
  margin: 2rem auto;
  border: 8px solid;
  border: none;
  transition: 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.overlay {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 1rem 0.75rem;
  background: #186218;
  transition: 0.4s ease-in-out;
  z-index: 1;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 0.5rem 0 0 0.5rem;
  border: 3px solid;
  border-image: linear-gradient(to bottom, #aea724 5%, forestgreen 35% 65%, #aea724 95%) 0 0 0 100%;
  transition: 0.3s ease-in-out 0.2s;
  z-index: 1;
}

.overlay-content h1 {
  color: white;
}

.image-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background-image: url('../IMAGES/ferme/Sarca/sarca-4.jpg');
  background-size: cover;
  transition: 0.3s ease-in-out;
}

.inset {
  max-width: 45%;
  border-radius: 0.25em;
  float: left;
}

.dots {
  position: absolute;
  bottom: 1rem;
  right: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  width: 55px;
  height: 4vh;
  transition: 0.3s ease-in-out 0.3s;
}

.dot {
  width: 14px;
  height: 14px;
  background: yellow;
  border: 1px solid indigo;
  border-radius: 50%;
  transition: 0.3s ease-in-out 0.3s;
}

.text {
  position: absolute;
  top: 0;
  right: 0;
  width: 70%;
  height: 100%;
  padding: 3vh 4vw;
  background: #fff;
  box-shadow: inset 1px 1px 15px 0 rgba(0 0 0 / 0.4);
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 2%;
}

.text>p:first-child {
  display: flex;
  justify-content: center;
}

.wrap:hover .overlay,
.wrap:active .overlay {
  transform: translateX(-70%);
}

.wrap:hover .image-content,
.wrap:active .image-content {
  width: 30%;
}

.wrap:hover .overlay-content,
.wrap:active .overlay-content {
  border: none;
  transition-delay: 0.2s;
  transform: translateX(70%);
}

.wrap:hover .dots,
.wrap:active .dots {
  transform: translateX(1rem);
}

.wrap:hover .dots .dot,
.wrap:active .dots .dot {
  background: white;
}

.animate {
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.26, 0.53, 0.74, 1.48);
  animation-fill-mode: backwards;
}

.slide {
  animation-name: slide;
}

@keyframes slide {
  0% {
    opacity: 0;
    transform: translate(4em, 0);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

.slide-left {
  animation-name: slide-left;
}

@keyframes slide-left {
  0% {
    opacity: 0;
    transform: translate(-40px, 0);
  }

  100% {
    opacity: 1;
    transform: translate(0, 0);
  }
}

.slide-up {
  animation-name: slide-up;
}

@keyframes slide-up {
  0% {
    opacity: 0;
    transform: translateY(3em);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.delay-1 {
  animation-delay: 0.3s;
}

.delay-2 {
  animation-delay: 0.6s;
}

.delay-3 {
  animation-delay: 0.9s;
}

.delay-4 {
  animation-delay: 1.2s;
}

.delay-5 {
  animation-delay: 1.5s;
}

.delay-6 {
  animation-delay: 1.8s;
}

.delay-7 {
  animation-delay: 2.1s;
}

.delay-8 {
  animation-delay: 2.4s;
}

/* styling pentru inlocuitor de text de la o marime specifica */

#coaster_poze {
  margin-top: 150px;
  /* pentru a nu se suprapune cu navbar-ul */
}

/* iconita separatoare */
.separator {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
  /* Adjust spacing as needed */
}

/* accrodion */
.wrapper {
  width: 100%;
  margin: auto;
  font-family: 'Source Sans Pro', sans-serif;
  display: none;
}

@media (max-width: 580px) {
  .hero-wrapper {
    display: none;
  }

  .wrapper {
    display: block;
  }
}

@media (max-width: 768px) {
  .wrapper {
    width: auto;
    padding: 0 0.3rem;
  }
}

input[type='radio'] {
  display: none;
}

input[type='radio']:checked+.item_accordion .title {
  color: #fff;
  border-color: #ffd300;
  background-color: #009c45;
}

input[type='radio']:checked+.item_accordion .title:after {
  transform: rotate(180deg);
}

input[type='radio']:checked+.item_accordion .content {
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
  height: auto;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s, opacity 0.7s;
}

.item_accordion {
  display: block;
  margin-bottom: 0.1rem;
}

.title {
  padding: 0.1rem 0.3rem;
  border-radius: 0.3rem;
  color: #009c45;
  border: 1px solid;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title:after {
  content: '\25bc';
  display: inline-block;
  font-size: 12px;
}

.content {
  width: 95%;
  margin: 0 auto;
  padding: 0 0.3rem;
  line-height: 1.6;
  color: #009c45;
  border: 1px #ffd300 solid;
  border-width: 0 1px;
  height: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
}

/* end of accordion */
.line {
  flex: 1;
  height: 1px;
  background-color: #009c45;
  /* Color of the line */
}

.icon {
  margin: 0 10px;
  /* Space between the icons and lines */
}

.icon svg {
  height: 24px;
  /* Adjust size of the SVGs */
  width: 24px;
  fill: #ffd300;
  /* Color of the SVGs */
}

/* css oferte */

.offer-text {
    font-family: sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: black;
    text-align: center;
    margin: 40px 0 20px 0;
    padding: 0 20px;
}

.certificate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 2%;
}

/* funda */
.certificate h1 {
  position: relative;
  margin: 0 auto 20px;
  padding: 10px 40px;
  text-align: center;
  background-color: #009c45;
  max-width: 200px;
  font-family: 'Lato', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
}

.certificate h1::before,
.certificate h1::after {
  content: '';
  width: 80px;
  height: 100%;
  background-color: #009c45;

  /* position ribbon ends behind and slightly lower */
  position: absolute;
  z-index: -1;
  top: 20px;

  /* clip ribbon end shape */
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 25% 50%);

  /* draw and position the folded ribbon bit */
  background-image: linear-gradient(45deg, transparent 50%, #ffd300 50%);
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: bottom right;
}

.certificate h1::before {
  left: -60px;
}

.certificate h1::after {
  right: -60px;
  transform: scaleX(-1);
  /* flip horizontally */
}

.text_certificate {
  max-width: 1300px;
  margin: 20px auto;
  padding: 0 20px;
  text-align: center;
  font-family: 'Lato', sans-serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: #186218;
}

/* css testing for cards */

.profile-card-6 {
  max-width: 300px;
  background-color: #FFF;
  border-radius: 5px;
  box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  margin: 10px auto;
  cursor: pointer;
}

.profile-card-6 img {
  transition: all 0.15s linear;
  /* height: 400px; */
}

.profile-card-6 .profile-name {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 25px;
  font-weight: bold;
  color: rgb(32, 31, 31);
  padding: 15px 20px;
  background: linear-gradient(140deg, rgba(0, 156, 69, 0.6) 50%, rgba(255, 255, 0, 0) 50%);
  transition: all 0.15s linear;
}

.profile-card-6 .profile-position {
  position: absolute;
  color: rgba(255, 255, 255, 0.4);
  left: 30px;
  top: 100px;
  transition: all 0.15s linear;
}

.profile-card-6 .profile-overview {
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 50%, rgba(255, 255, 0, 0));
  color: #FFF;
  padding: 50px 0px 20px 0px;
  transition: all 0.15s linear;
}

.profile-card-6 .profile-overview h3 {
  font-weight: bold;
}

.profile-card-6 .profile-overview p {
  color: rgba(255, 255, 255, 0.7);
}

.profile-card-6:hover img {
  filter: brightness(80%);
}

.profile-card-6:hover .profile-name {
  padding-left: 25px;
  padding-top: 20px;
}

.profile-card-6:hover .profile-position {
  left: 40px;
}

.profile-card-6:hover .profile-overview {
  padding-bottom: 25px;
}

:root {
  /* Colors */
  --brand-color: hsl(46, 100%, 50%);
  --black: hsl(0, 0%, 0%);
  --white: hsl(0, 0%, 100%);
  /* Fonts */
  --font-title: "Montserrat", sans-serif;
  --font-text: "Lato", sans-serif;
}

/* Scoped styles for .custom-section */
.custom-section *,
.custom-section *::before,
.custom-section *::after {
  box-sizing: border-box;
}

.custom-section body,
.custom-section h2,
.custom-section p {
  margin: 0;
}

.custom-section body {
  display: grid;
  place-items: center;
  height: 100vh;
}

.custom-section h2 {
  font-size: 2.25rem;
  font-family: var(--font-title);
  color: var(--white);
  line-height: 1.1;
}

.custom-section p {
  font-family: var(--font-text);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--white);
}

.custom-section .flow>*+* {
  margin-top: var(--flow-space, 1em);
}

.container-cards {
  display: flex;
  justify-content: space-around;
  /* Space around the cards */
  flex-wrap: wrap;
  /* Allows wrapping to the next line if there are too many cards for one row */
  gap: 20px;
  /* Adds space between the cards */
  padding: 20px;
  /* Adds padding around the container */
}

.container-cards .card {
  flex: 1 1 calc(50% - 40px);
  /* Take up roughly 50% of the container's width, minus the gap */
  display: grid !important;
  place-items: center;
  max-width: 21.875rem;
  /* Max width for the.container-cards  card */
  height: 28.125rem !important;
  /* Height for the.container-cards  card */
  overflow: hidden;
  border-radius: 0.625rem;
  box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.25);


}

.container-cards .card>* {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.card__background {
  object-fit: cover;
  max-width: 100%;
  height: 100%;
}

.card__content {
  --flow-space: 0.9375rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-self: flex-end;
  height: 100%;
  padding: 12% 1.25rem 1.875rem;
  background: linear-gradient(180deg,
      hsla(0, 0%, 0%, 0) 0%,
      hsla(0, 0%, 0%, 0.3) 10%,
      hsl(0, 0%, 0%) 100%);
}

.card__content--container {
  --flow-space: 1.25rem;
}

.card__title {
  position: relative;
  width: fit-content;
  width: -moz-fit-content;
}

.card__title::after {
  content: "";
  position: absolute;
  height: 0.3125rem;
  width: calc(100% + 1.25rem);
  bottom: calc((1.25rem - 0.5rem) * -1);
  left: -1.25rem;
  background-color: var(--brand-color);
}

.card__button {
  padding: 0.75em 1.6em;
  margin-bottom: 1.85rem;
  width: fit-content;
  width: -moz-fit-content;
  font-variant: small-caps;
  font-weight: bold;
  border-radius: 0.45em;
  border: none;
  background-color: var(--brand-color);
  font-family: var(--font-title);
  font-size: 1.125rem;
  color: var(--black);
}

@media (max-width: 585px) {
  .card__content {
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 0;
  }

  .card__title {
    text-align: center;
  }

  .card__description {
    display: none;
  }

  .card__button {
    padding: 0.4em 0.5em;
  }
}

@media (max-width: 585px) {
  .card__title {
    font-size: 1.5rem !important;
  }
}

@media (max-width: 485px) {
  .container-cards .card {
    height: 22.125rem !important;
  }

  .offer-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 420px) {
  .container-cards .card {
    height: 19.125rem !important;
  }

  .offer-text {
    font-size: 1rem !important;
  }

  .card__title {
    font-size: 1.2rem !important;
  }

  .card__button {
    font-size: 0.8rem !important;
  }

  .carousel__wrapper img {
    width: 80px !important;
    height: 45px !important;
    max-width: 80px !important;
    max-height: 55px !important;
  }

}

@media (max-width: 320px) {
  .container-cards .card {
    height: 15.125rem !important;
  }


  .card__title {
    font-size: 1rem !important;
  }

  .card__button {
    font-size: 0.6rem !important;
  }

}

.card__button:focus {
  outline: 2px solid black;
  outline-offset: -5px;
}

@media (any-hover: hover) and (any-pointer: fine) {
  .card__content {
    transform: translateY(62%);
    transition: transform 500ms ease-out;
    transition-delay: 500ms;
  }

  .card__title::after {
    opacity: 0;
    transform: scaleX(0);
    transition: opacity 1000ms ease-in, transform 500ms ease-out;
    transition-delay: 500ms;
    transform-origin: right;
  }

  .card__background {
    transition: transform 500ms ease-in;
  }

  .card__content--container> :not(.card__title),
  .card__button {
    opacity: 0;
    transition: transform 500ms ease-out, opacity 500ms ease-out;
  }

  .container-cards .card:hover,
  .container-cards .card:focus-within {
    transform: scale(1.05);
    transition: transform 500ms ease-in;
  }

  .container-cards .card:hover .card__content,
  .container-cards .card:focus-within .card__content {
    transform: translateY(0);
    transition: transform 500ms ease-in;
  }

  .container-cards .card:focus-within .card__content {
    transition-duration: 0ms;
  }

  .container-cards .card:hover .card__background,
  .container-cards .card:focus-within .card__background {
    transform: scale(1.3);
  }

  .container-cards .card:hover .card__content--container> :not(.card__title),
  .container-cards .card:hover .card__button,
  .container-cards .card:focus-within .card__content--container> :not(.card__title),
  .container-cards .card:focus-within .card__button {
    opacity: 1;
    transition: opacity 500ms ease-in;
    transition-delay: 1000ms;
  }

  .container-cards .card:hover .card__title::after,
  .container-cards .card:focus-within .card__title::after {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: left;
    transition: opacity 500ms ease-in, transform 500ms ease-in;
    transition-delay: 500ms;
  }
}



/* sectiune pentru scroll si apare partea */
.hidden_custom {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.6s, transform 0.6s;
}

.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s, transform 0.6s;
}

#container_home {
  display: grid;
  grid-template-columns: 1fr;
  /* Two columns of equal width */
  gap: 10px;
  /* Adjust the gap between columns as needed */
  align-items: center;
  /* Center items vertically */
  justify-content: space-between;
  /* Spread items evenly */
}


/* in case of touch screen */
.touchscreen {
  display: inline;
}

/* Hide the text on touch devices */
.touch-device .touchscreen {
  display: none;
}