@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,400;1,100;1,200&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Fenix&display=swap");

* {
  padding: 0px;
  margin: 0px;
  list-style: none;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

:root {
  --main-color: #207178;
}

html {
  scroll-behavior: smooth;
}

header {
  width: 100%;
  padding: 13px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  z-index: 1111;
  transition: 0.5s ease-in-out;
  max-height: 100px;
}

header .logo a {
  font-size: 18px;
  text-decoration: none;
  text-transform: capitalize;
  color: #fff;
}

header .logo img {
  width: 170px;
  margin-top: -1px;
}

header ul {
  display: flex;
  margin: 0;
}

header ul li {
  margin: 0px 20px;
}

header ul li a {
  color: #fff;
  text-decoration: none !important;
  text-transform: capitalize;
  display: block;
  transition: 0.4s;
  font-size: 15px;
}

header ul li a:hover {
  color: #45ccb8;
}

header .bars {
  display: none;
}

header .bars img {
  width: 30px;
  cursor: pointer;
}

header.active {
  background: #fff;
  box-shadow: 0px 1px 0px #ddd;
}

header.active .logo a {
  color: #207178;
}

header.active ul li a {
  color: #207178;
  border-color: #207178;
}

header.active #bar {
  color: #207178;
  padding: 4px 5px;
  width: 40px;
  margin-right: -5px;
}

header.darkened-header {
  background: rgba(0, 0, 0, 0);
  /* Same as overlay background */
  transition: background 0.3s ease;
  /* Smooth transition */
  z-index: 1001;
  /* Ensure it is above other elements */
}

header.hide-header-content {
  visibility: hidden;
  /* Hide the header and its content */
  height: 0;
  /* Collapse the header height */
  padding: 0;
  /* Remove padding */
  border: none;
  /* Remove any borders */
  overflow: hidden;
  /* Ensure nothing spills out */
}

@media (max-width: 991px) {
  header .navigation {
    display: block;
    height: 100vh;
    width: 50%;
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 68px;
    right: -50%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: 0.5s ease-in-out;
  }

  header.active .navigation {
    background: #fff;
    box-shadow: -1px 0px 0px #ddd;
  }

  header .navigation li {
    margin: 15px 0px;
  }

  header .bars {
    display: block;
  }

  header .logo img {
    width: 160px;
    margin-top: 8px;
    margin-left: -20px;
  }
}

@media (max-width: 576px) {
  header {
    padding: 13px 30px;
  }

  header .navigation.new {
    width: 100%;
    right: -100%;
  }

  header .logo img {
    width: 140px;
    margin-top: 0px;
    margin-left: -30px;
    /* Keep this to maintain your desired positioning */
  }

  header .logo a {
    font-size: 15px;
  }
}

@media (max-width: 380px) {
  header {
    padding: 13px 30px;
  }

  header .navigation.new {
    width: 100%;
    right: -100%;
  }

  header .logo img {
    width: 135px;
    margin-top: 0px;
    margin-left: -30px;
    /* Keep this to maintain your desired positioning */
  }

  header .logo a {
    font-size: 14px;
  }
}

.big-bg {
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(pic/bern.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.big-bg .bg-content {
  text-align: center;
  color: #fff;
}

.big-bg .bg-content h1 {
  font-size: 55px;
}

.big-bg .bg-content hr {
  background: #fff;
  width: 35%;
  height: 1px;
  margin: 10px auto 13px auto;
}

.big-bg .bg-content .bg-link {
  margin-top: 16px;
}

.big-bg .bg-content .bg-link a {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;

  position: relative;
  overflow: hidden;
  z-index: 2;
}

.big-bg .bg-link i {
  font-size: 2rem;
  /* Adjust the size as needed */
  margin-top: 30px;
  animation: bounce 1.8s infinite;
}

/* Keyframes for the bounce animation */
@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
    /* Default position */
  }

  50% {
    transform: translateY(6px);
    /* Moves down slightly */
  }
}

/*.bg-content .bg-link a::before{
    position: absolute;
    content: "";
    background: #207178;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: .5s ease-in-out;
}
.bg-content .bg-link a:hover::before{
    left: 0%;
}
.bg-content .bg-link a:hover{
    border-color: #207178;
}*/

@media (max-width: 991px) {
  .big-bg .bg-content h1 {
    font-size: 50px;
  }

  .big-bg .bg-content p {
    font-size: 15px;
  }

  .big-bg .bg-content .bg-link a {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .big-bg .bg-content h1 {
    font-size: 43px;
  }

  .big-bg .bg-content p {
    font-size: 14px;
  }

  .big-bg .bg-content .bg-link a {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .big-bg .bg-content {
    padding: 0px 15px;
  }

  .big-bg .bg-content hr {
    width: 130px;
  }

  .big-bg .bg-content br {
    display: none;
  }

  .big-bg .bg-content h1 {
    font-size: 28px;
  }

  .big-bg .bg-content p {
    font-size: 13px;
  }

  .big-bg .bg-content .bg-link a {
    font-size: 13px;
  }
}

.big-collection {
  width: 90%;
  margin: 100px auto;
}


.big-collection .shop-title {
  text-align: center;
  margin-bottom: 50px;
}

.big-collection .shop-title h2 {
  font-weight: 700;
}

.big-collection .shop-title p {
  font-size: 15px;
}

.big-collection .collect-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  grid-row-gap: 20px;
}

.collect-flex .link {
  margin-top: 20px;
}

.big-collection .collect {
  margin: 0px 10px;
}

.collect-flex .link a {
  display: inline-block;
  color: var(--main-color);
  text-transform: capitalize;
  text-decoration: none;
  position: relative;
  cursor: pointer;
}

.collect-flex .link a::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: var(--main-color);
  left: 0%;
  top: 23px;
  transform: scale(0);
  transition: 0.5s ease-in-out;
}

.collect-flex .collect:hover a::before {
  transform: scale(1);
}

.collect-flex .collect .image {
  position: relative;
  cursor: pointer;
}

.collect-flex .collect .image img {
  max-width: 190px;
  /* Makes the image responsive to container width */
  max-height: 220px;
  /* Prevents the image from exceeding container height */
  width: auto;
  /* Maintains original aspect ratio */
  height: auto;
  /* Maintains original aspect ratio */
  object-fit: contain;
  /* Ensures the whole image is visible */
}

.collect .image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0%;
  width: 0;
  height: 0;
  border: 1px solid transparent;
}

.big-collection .collect:hover .image::before {
  animation: animate1 0.6s linear forwards;
}

@keyframes animate1 {
  0% {
    width: 0;
    height: 0;
    border-top-color: var(--main-color);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
  }

  50% {
    width: 100%;
    height: 0;
    border-top-color: var(--main-color);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
  }

  100% {
    width: 100%;
    height: 100%;
    border-top-color: var(--main-color);
    border-right-color: var(--main-color);
    border-bottom-color: transparent;
    border-left-color: transparent;
  }
}

.collect .image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0%;
  width: 0;
  height: 0;
  border: 1px solid transparent;
}

.big-collection .collect:hover .image::after {
  animation: animate2 0.6s linear forwards;
}

@keyframes animate2 {
  0% {
    width: 0;
    height: 0;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
  }

  50% {
    width: 0;
    height: 100%;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: var(--main-color);
  }

  100% {
    width: 100%;
    height: 100%;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: var(--main-color);
    border-left-color: var(--main-color);
  }
}

@media (max-width: 1230px) {
  .big-collection .collect-flex {
    display: flex;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .big-collection .shop-title h2 {
    font-size: 24px;
  }

  .big-collection .shop-title p {
    font-size: 13px;
  }
}



.overlay-gallery {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: visible;
}

.overlay-gallery .overlay-content {
  position: relative;
  width: fit-content;
  /* Si adatta automaticamente all'immagine */
  max-width: 800px;
  text-align: center;
  padding-top: 40px;
  overflow: visible;
}

.overlay-gallery .gallery-images {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-gallery .gallery-images img {
  width: 100%;
  max-width: 720px;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border: none;
}

/* Frecce all'interno dell'immagine */
.overlay-gallery .prev,
.overlay-gallery .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 5;
}

.overlay-gallery .prev {
  left: 5%;
}

.overlay-gallery .next {
  right: 5%;
}

/* "X" all'interno dell'immagine in alto a destra */
.overlay-gallery .cancel-gallery {
  position: absolute;
  top: 0px;
  /* Più vicina al bordo superiore */
  right: 0px;
  /* Mantiene una buona distanza dal lato destro */
  font-size: 32px;
  /* Leggermente più grande */
  font-weight: 200;
  /* Rende la X più fine */
  transform: scaleX(1.3) scaleY(0.85);
  /* Meno schiacciata verticalmente */
  cursor: pointer;
  z-index: 2000;
  /* Assicura che rimanga visibile sopra tutto */
  color: white;
  pointer-events: all;
  /* Garantisce la cliccabilità */
}








/* Responsive Adjustments */
@media (max-width: 992px) {
  .overlay-gallery .gallery-images img {
    max-width: 720px;
    max-height: 400px;
  }

  .overlay-gallery .cancel-gallery {
    right: 0px;
    /* Keep the "X" near the right edge */
  }
}

@media (max-width: 768px) {
  .overlay-gallery .gallery-images img {
    max-width: 720px;
    max-height: 400px;
  }

  .overlay-gallery .cancel-gallery {
    right: px;
    /* Keep the "X" near the right edge */
  }
}

@media (max-width: 576px) {
  .overlay-gallery .gallery-images img {
    max-width: 480px;
    max-height: 270px;
  }

  .overlay-gallery .cancel-gallery {
    right: 0px;
    /* Keep the "X" near the right edge */
  }
}

@media (max-width: 390px) {
  .overlay-gallery .gallery-images img {
    max-width: 480px;
    max-height: 270px;
  }

  .overlay-gallery .cancel-gallery {
    right: 0px;
    /* Keep the "X" near the right edge */
  }

  .overlay-gallery .prev {
    left: 20px;
    /* Move closer to the image */
  }

  .overlay-gallery .next {
    right: 20px;
    /* Move closer to the image */
  }
}

.big-shop {
  width: 90%;
  margin: 150px auto;
}

.big-shop .shop-title {
  text-align: center;
  margin-bottom: 50px;
}

.big-shop .shop-title h2 {
  font-weight: 700;
}

.big-shop .shop-title p {
  font-size: 15px;
}

.big-shop .shop-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.shop-flex .shop-one {
  width: 26%;
}

.shop-flex img {
  width: 100%;
}

.shop-flex .shop-two {
  width: 44%;
}

.shop-flex .image-one {
  position: relative;
  margin-bottom: 20px;
}

.shop-flex .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  padding: 0px 20px;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.shop-flex .overlay .txt {
  color: #fff;
}

.shop-flex .overlay .txt h3 {
  margin-bottom: 3px;
}

.shop-flex .overlay .txt span {
  color: #45ccb8;
}

.shop-flex .overlay .link {
  position: absolute;
  bottom: 50px;
}

.shop-flex .overlay .link a {
  color: #fff;
  text-decoration: none;
  text-transform: capitalize;
  display: inline-block;
  position: relative;
  overflow: hidden;
  padding-bottom: 5px;
}

.shop-flex .overlay .link i {
  vertical-align: middle;
  transition: padding 0.4s ease-in-out;
  font-size: 15px;
}

.shop-flex .overlay .link a:hover i {
  padding-left: 3px;
}

.shop-flex .overlay .link a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: -100%;
  background: #fff;
  width: 100%;
  height: 2px;
  transition: left 0.4s ease-in-out;
}

.shop-flex .overlay .link a:hover::before {
  left: 0;
}

.shop-flex .image-one:hover .txt {
  animation: job1 0.7s ease-in-out forwards;
}

.shop-flex .image-one:hover .link {
  animation: job1_link 0.7s ease-in-out forwards;
}

.shop-flex .image-one:hover .overlay {
  opacity: 1;
}

.shop-flex .shop-two {
  position: relative;
  height: 100%;
}

.shop-flex .shop-two:hover .txt {
  animation: job1 0.7s ease-in-out forwards;
}

.shop-flex .shop-two:hover .link {
  animation: job1_link 0.7s ease-in-out forwards;
}

.shop-flex .shop-two:hover .overlay {
  opacity: 1;
}

@keyframes job1 {
  0% {
    opacity: 0;
    margin-bottom: 70px;
  }

  100% {
    opacity: 1;
    margin-bottom: 0px;
  }
}

@keyframes job1_link {
  0% {
    opacity: 0;
    bottom: 20px;
  }

  100% {
    opacity: 1;
    bottom: 50px;
  }
}

/* media  */

@media (max-width: 991px) {
  .shop-flex .shop-one {
    width: 49%;
  }

  .shop-flex .shop-two {
    width: 49%;
  }
}

@media (max-width: 576px) {
  .shop-flex .shop-one {
    width: 100%;
  }

  .shop-flex .shop-two {
    width: 100%;
  }

  .big-shop .shop-title h2 {
    font-size: 24px;
  }

  .big-shop .shop-title p {
    font-size: 13px;
  }
}

/* Original styles for .big-product (no changes to font size, layout, etc.) */
.big-product {
  width: 90%;
  margin: 100px auto;
}

.big-product .product-title {
  margin-bottom: 50px;
  text-align: center;
}

.big-product .product-title p {
  margin-bottom: 2px;
  text-transform: uppercase;
  font-size: 15px;
}

.big-product .product-title h2 {
  font-weight: 600;
}

.big-product .product-title hr {
  width: 120px;
  margin: 14px auto;
  background: gray;
}

.big-product .product-flex {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.big-product .product-flex .product-one .content .left h4,
.big-product .product-flex .product-one .content article {
  margin-top: 10px;
  /* Adjust the value to control how much lower both the text and article will move */
}

.product-flex .product-one {
  width: 24%;
  margin-bottom: 20px;
}

.product-flex .product-one img {
  width: 100%;
  height: auto;
}

.product-flex .product-one .product-image {
  position: relative;
}



/* Applying the same animation from .big-collection to .big-product */
.product-one .product-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border: 1px solid transparent;
}

/* Hover effect with the border animation */
.product-one:hover .product-image::before {
  animation: animate1 0.6s linear forwards;
}

/* Border animation keyframes (same as big-collection) */
@keyframes animate1 {
  0% {
    width: 0;
    height: 0;
    border-top-color: var(--main-color);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
  }

  50% {
    width: 100%;
    height: 0;
    border-top-color: var(--main-color);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
  }

  100% {
    width: 100%;
    height: 100%;
    border-top-color: var(--main-color);
    border-right-color: var(--main-color);
    border-bottom-color: transparent;
    border-left-color: transparent;
  }
}

/* Applying the same border animation to the after pseudo-element */
.product-one .product-image::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border: 1px solid transparent;
}

/* Hover effect with the border animation */
.product-one:hover .product-image::after {
  animation: animate2 0.6s linear forwards;
}

/* Border animation keyframes (same as big-collection) */
@keyframes animate2 {
  0% {
    width: 0;
    height: 0;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: transparent;
  }

  50% {
    width: 0;
    height: 100%;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: var(--main-color);
  }

  100% {
    width: 100%;
    height: 100%;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: var(--main-color);
    border-left-color: var(--main-color);
  }
}

/* Additional styling for product items */
.product-one .content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}

.product-one .content h4 {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  text-transform: capitalize;
}

.product-one .content section {
  font-size: 14px;
  font-weight: 600;
}

.product-one article {
  text-transform: uppercase;
  font-size: 14px;
}

/* General styles for the product image */
.product-flex .product-one {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* Ensure content inside each product item is evenly spaced */
}

.product-flex .product-one img {
  width: 100%;

  object-fit: cover;
  /* Prevent stretching */
}

/* Flexbox settings to align the images consistently */
.big-product .product-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  /* Ensures all items are aligned even if they have different content heights */
}

/* Media queries for responsiveness */
@media (max-width: 991px) {
  .big-product .product-one {
    width: 30%;
    /* Adjust product width on medium screens */
    display: flex;
    flex-direction: column;
    /* Ensure that images and text align vertically */
  }

  .product-image img {
    height: 200px;
    /* Set a fixed height for medium screens */
  }
}

@media (max-width: 768px) {
  .big-product .product-one {
    width: 49%;
    /* Adjust product width for tablets */
  }

  .product-image img {
    height: 180px;
    /* Set a fixed height for tablets */
  }
}

@media (max-width: 576px) {
  .big-product .product-one {
    width: 49%;
    /* Adjust product width for mobile screens */
  }

  .product-image img {
    height: 150px;
    /* Set a fixed height for mobile screens */
  }

  .product-flex .product-one img {
    width: 100%;
    height: 160px;
    /* Keep aspect ratio intact */
    object-fit: cover;
    /* Prevent stretching */
  }

  .big-product .product-title h2 {
    font-size: 19px;
  }

  .big-product .product-title hr {
    width: 100px;
  }
}

.big-furn {
  width: 90%;
  margin: 100px auto;
}

.big-furn .furn-title {
  text-align: center;
  margin-bottom: 50px;
}

.big-furn .furn-title h2 {
  font-weight: 600;
}

.big-part {
  text-align: center;
  position: relative;
}

.big-part img {
  width: 75%;
}

.big-part .text-inside {
  position: absolute;
  top: 50%;
  left: 27%;
}

.big-part .text-inside .plus {
  width: 35px;
  padding: 10px;
  background: var(--main-color);
  transition: 0.2s;
  cursor: pointer;
  border-radius: 50%;
}

.text-inside .plus.img_active {
  transform: rotate(45deg);
}

.text-inside .text-box {
  width: 320px;
  background: #f9f9f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  text-align: left;
  padding: 10px 0;
  transform: scale(0);
  transition: 0.5s;
}

.text-inside .text-box.active {
  transform: scale(1);
}

.text-inside .text-box img {
  width: 100px;
}

.text-inside .text-box h5 {
  margin-left: 10px;
  font-size: 17px;
  text-transform: capitalize;
}

.text-inside .text-box p {
  margin-left: 10px;
  font-size: 13px;
  margin-bottom: 7px;
}

.text-inside .text-box a {
  text-decoration: none;
  color: var(--main-color);
  text-transform: capitalize;
  font-size: 14px;
}

/* media  */

@media (max-width: 991px) {
  .big-part img {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .text-inside {
    display: none;
  }

  .big-furn .furn-title h2 {
    font-size: 18px;
  }

  .big-furn .furn-title p {
    font-size: 13px;
  }
}

.bg-show {
  position: relative;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(pic/h1_bg.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  padding: 300px 0;
  margin: 100px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bg-show .link {
  width: 200px;
  height: 200px;
  border: 1px solid #f9f9f9;
  border-radius: 50%;
  transition: 0.3s ease-in-out;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.bg-show .link:hover {
  border-color: rgb(153, 153, 153);
}

.bg-show .link_a {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  /* Ensures the icon is white */
}

.bg-show .link i {
  font-size: 4rem;
  /* Increase the icon size */
  color: #fff;
  /* White color for the icon */
  transition: 0.3s ease-in-out;
}

.bg-show .link:hover i {
  color: rgb(153, 153, 153);
  /* Change icon color when hovering */
}

.bg-show .overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 111;
  display: none;
  overflow: hidden;
  /* Prevent overflow of content inside the overlay */
}

.bg-show .image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bg-show video {
  width: 100%;
  /* Set video to take full width of its container */
  height: 100%;
  /* Maintain aspect ratio */
  min-width: 320px;
  /* Minimum width to avoid the video becoming too small */
  min-height: 180px;
  /* Minimum height to avoid the video becoming too small */
  max-height: 600px;
  position: relative;
  /* Ensures buttons stay aligned with the video */
}

/* Buttons fixed position, without stretching */
.bg-show .image .cancel {
  position: absolute;
  top: -30px;
  /* Reduced distance from top on large screens */
  right: 0;
  /* Keep X button aligned to the right edge */
  width: auto;
  /* Prevent stretching */
  height: auto;
  /* Prevent stretching */
  max-width: 20px;
  /* Smaller size for X button */
  max-height: 20px;
  /* Smaller size for X button */
  cursor: pointer;
  z-index: 10;
  /* Ensure it stays on top of other elements */
}

.bg-show .image .bg-player {
  position: absolute;
  bottom: 7%;
  /* Slightly higher */
  right: 2%;
  /* Proportional position */
  width: auto;
  /* Prevent stretching */
  height: auto;
  /* Prevent stretching */
  max-width: 50px;
  /* Limit size for play/pause button */
  max-height: 50px;
  /* Limit size for play/pause button */
  cursor: pointer;
  z-index: 10;
  /* Ensure it stays on top of other elements */
}

.bg-show .bg-player img {
  width: 100%;
  height: 100%;
}

/* Responsive Adjustments */
@media (max-width: 992px) {

  video:fullscreen,
  video:-webkit-full-screen,
  video:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover !important;
    /* 🔹 Occupa tutto lo schermo eliminando i bordi neri */
  }

  .bg-show .image .cancel {
    top: -28px;
    /* Move X button up (doubled from -14px) */
    right: 0;
    /* Keep X button aligned to the right edge */
    max-width: 18px;
    /* Smaller size for X button */
    max-height: 18px;
    /* Smaller size for X button */
  }

  .bg-show .image .bg-player {
    bottom: 8%;
    /* Slightly higher for smaller screens */
    right: 3%;
    /* Adjust position */
    max-width: 45px;
    /* Adjust size for play/pause button */
    max-height: 45px;
    /* Adjust size for play/pause button */
  }
}






@media (max-width: 768px) {

  video:fullscreen,
  video:-webkit-full-screen,
  video:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover !important;
    /* 🔹 Occupa tutto lo schermo eliminando i bordi neri */
  }

  .bg-show .image .cancel {
    top: -24px;
    /* Move X button up (doubled from -12px) */
    right: 0;
    /* Keep X button aligned to the right edge */
    max-width: 16px;
    /* Smaller size for X button */
    max-height: 16px;
    /* Smaller size for X button */
  }

  .bg-show .image .bg-player {
    bottom: 9%;
    /* Slightly higher for smaller screens */
    right: 4%;
    /* Adjust position */
    max-width: 40px;
    /* Adjust size for play/pause button */
    max-height: 40px;
    /* Adjust size for play/pause button */
  }
}

@media (max-width: 576px) {

  video:fullscreen,
  video:-webkit-full-screen,
  video:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover !important;
    /* 🔹 Occupa tutto lo schermo eliminando i bordi neri */
  }

  .bg-show .image .cancel {
    top: -20px;
    /* Move X button up (doubled from -10px) */
    right: 0;
    /* Keep X button aligned to the right edge */
    max-width: 14px;
    /* Smaller size for X button */
    max-height: 14px;
    /* Smaller size for X button */
  }

  .bg-show .image .bg-player {
    bottom: 10%;
    /* Slightly higher for smaller screens */
    right: 5%;
    /* Adjust position */
    max-width: 30px;
    /* Adjust size for play/pause button */
    max-height: 30px;
    /* Adjust size for play/pause button */
  }
}

@media (max-width: 401px) {

  video:fullscreen,
  video:-webkit-full-screen,
  video:-moz-full-screen {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover !important;
    /* 🔹 Occupa tutto lo schermo eliminando i bordi neri */
  }

  .bg-show .image .cancel {
    top: -16px;
    /* Move X button up (doubled from -8px) */
    right: 0;
    /* Keep X button aligned to the right edge */
    max-width: 12px;
    /* Smaller size for X button */
    max-height: 12px;
    /* Smaller size for X button */
  }

  .bg-show .image .bg-player {
    bottom: 11%;
    /* Slightly higher for smaller screens */
    right: 6%;
    /* Adjust position */
    max-width: 25px;
    /* Adjust size for play/pause button */
    max-height: 25px;
    /* Adjust size for play/pause button */
  }
}

.bg-team {
  width: 100%;
  margin: 100px 0px 0px;
}

.bg-team .team-title {
  margin-bottom: 50px;
  text-align: center;
  color: #fff;
  background: var(--main-color);
  height: 550px;
  padding: 100px 0px;
}

.team-title section {
  text-transform: uppercase;
  font-size: 15px;
}

.team-title h2 {
  font-weight: 600;
}

.team-title hr {
  margin: 15px auto;
  width: 110px;
  background: #fff;
}

.bg-team .team-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 90%;
  margin: 0 auto;
  margin-top: -360px;
  margin-bottom: 100px;
}

.team-flex .team-one {
  width: 32%;
}

.team-flex .team-one img {
  width: 100%;
}

.team-flex .team-one h4 {
  text-transform: capitalize;
  font-size: 18px;
  margin-top: 10px;
}

@media (max-width: 991px) {
  .team-flex .team-one h4 {
    font-size: 19px;
  }
}

@media (max-width: 768) {
  .team-flex .team-one h4 {
    font-size: 18px;
  }
}

@media (max-width: 576) {
  .team-flex .team-one h4 {
    font-size: 17px;
  }
}

.footer-image {
  display: flex;
  flex-wrap: wrap;
}

.footer-image .image1 {
  width: 16.66%;
  position: relative;
}

.footer-image .image1 img {
  width: 100%;
  height: auto;
  /* Adatta l'altezza in base alla larghezza */
  aspect-ratio: 1/1;
  /* Mantiene l'immagine quadrata */
  object-fit: cover;
  /* Ritaglia l'immagine per coprire il contenitore */
}

.footer-image .insta {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.4s ease-in-out;
  opacity: 0;
}

.footer-image .insta img {
  width: 30px;
  /* Fixed width to prevent stretching */
  height: auto;
  /* Maintains aspect ratio */
  cursor: pointer;
}

.footer-image .image1:hover .insta {
  opacity: 1;
}

.footer-image .image1:hover .insta img {
  animation: instagram 0.5s ease-in-out forwards;
}

@keyframes instagram {
  0% {
    opacity: 0;
    margin-bottom: 30px;
  }

  100% {
    opacity: 1;
    margin-bottom: 0px;
  }
}

/* media query */

@media (max-width: 991px) {
  .footer-image .image1 {
    width: calc(100% / 4);
  }
}

@media (max-width: 768px) {
  .footer-image .image1 {
    width: calc(100% / 3);
  }
}

@media (max-width: 576px) {
  .footer-image .image1 {
    width: calc(100% / 2);
  }
}

@media (max-width: 300px) {
  .footer-image .image1 {
    width: 100%;
  }
}

.bg-footer {
  width: 90%;
  margin: 0px auto;
}

.bg-footer .footer-flex {
  display: flex;
  justify-content: space-between;
  grid-row-gap: 20px;
  flex-wrap: wrap;
  margin: 50px 0px;
}

.bg-footer .footer-flex .footer1 {
  width: 24%;
}

.footer-flex .footer1 h2 {
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 20px;
  text-transform: capitalize;
}

.footer-flex .footer1 section {
  font-size: 14px;
  max-width: 300px;
}

.footer-flex .footer1 li {
  font-size: 14px;
}

.footer-flex .footer1 li a {
  color: #000;
}

.footer1 a {
  color: black;
  /* Sets the link text color to black */
  text-decoration: none;
  /* Removes the underline for a cleaner look */
  font-size: 15px;
}

.footer1 a:hover {
  text-decoration: underline;
  /* Optional: Adds an underline when hovered */
  color: var(--main-color);
  /* Optional: Change color on hover */
}

.footer-flex .footer1 .footer-logo {
  margin-top: 30px;
}

.footer1 .footer-logo img {
  width: 100%;
}

.bg-footer hr {
  background: #f9f9f9;
  margin: 15px 0px;
  height: 1px;
  width: 100%;
}

.bg-footer .copy {
  margin: 15px 0px;
  text-align: center;
}

.bg-footer .copy section {
  font-size: 14px;
  text-transform: capitalize;
}

.bg-footer .copy span {
  font-weight: bold;
  color: var(--main-color);
}

/* media query  */

@media (max-width: 900px) {
  .bg-footer .footer-flex {
    flex-wrap: wrap;
  }

  .bg-footer .footer-flex .footer1 {
    width: 49%;
  }
}

@media (max-width: 768px) {
  .bg-footer .footer-flex {
    flex-wrap: wrap;
  }

  .bg-footer .footer-flex .footer1 {
    width: 49%;
  }
}

@media (max-width: 576px) {
  .bg-footer .footer-flex {
    flex-wrap: wrap;
  }

  .bg-footer .footer-flex .footer1 {
    width: 100%;
  }
}

.top {
  position: fixed;
  bottom: 50px;
  right: 30px;
  width: 40px;
  height: 40px;
  line-height: 40px;
  text-align: center;
  z-index: 122;
  border: 1px solid #000;
  border-radius: 50%;
  transition: 0.4s ease-in-out;
  cursor: pointer;
  display: none;
}

.top i {
  font-size: 20px;
  vertical-align: middle;
}

.top:hover {
  background: var(--main-color);
  box-shadow: 0px 0px 1px 1px var(--main-color);
  border-color: #f9f9f9;
  color: #fff;
}