* {
    margin: 0;
    box-sizing: border-box;
    font-family: europa, sans-serif;
    }

body {
    background: #fff;
}
.lang-switcher {
      right: 40px;
    position: absolute;
  font-size: 12px;
  white-space: nowrap;
}
.navbar {
    width:100%;
    position: absolute;
    top: 0;
    height: 80px;
    display: flex;
    align-items: center;
    z-index: 999999;
}

.navbar.sticky {
    position: fixed;
    top: 0;
    background-color: white;
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
     margin-left: 0 !important;
}

/* Logo */
.logo{
    position: relative; 
    height: 50px;
    width: 160px;
    margin-right: 20px;
}
.logo img {
    position: absolute; 
    top: 0;
    left: 0;
    height:100%;
    width: 100%;
    object-fit: contain;
}

.logo-default {
    opacity: 1;
}

/* logo sticky nascosto di default */
.logo-sticky {
    opacity: 0;
}

/* quando la navbar è sticky */
.navbar.sticky .logo-default {
    opacity: 0;
}

.navbar.sticky .logo-sticky {
    opacity: 1;
}

/* Menu */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.navbar.sticky .nav-menu a {
    color: #333333; 
}

.nav-menu a:hover {
    color: #f7931e; /* arancione */
}

.navbar.sticky .nav-menu a:hover {
    color: #f7931e;
}

/* Active link */
.nav-menu a.active {
    color: #f7931e;
}

.navbar.sticky .nav-menu a.active {
    color: #f7931e;
}

/* ===== HERO ===== */
.hero {
  display: flex;
  align-items: flex-end;
  position: relative;
  width: 100%;
  height: 70vh;
  background: #FFFFFF url(../images/gem_toscana-02.jpg?crc=4204859606) no-repeat center center; 
  background-size: cover;
  background-position: center;
  
}

/*.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}*/

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-left: 17rem;
    padding-bottom: 4rem;
    max-width: 850px;
}

.hero-content h1 {
    font-size: 70px;
    line-height: .8;
    margin-bottom: 20px;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.34), 0px 0px 5px rgba(0, 0, 0, 0.34);
}

.hero-content p {
    font-size: 25px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 30px;
    text-shadow: 0px 0px 5px rgba(0, 0, 0, 0.34), 0px 0px 5px rgba(0, 0, 0, 0.34);
}

.hero-btn {
    display: inline-block;
    background: #f7941d;
    color: #fff;
    border: 5px solid white;  
    text-decoration: none;
    font-weight: 700;
    font-size: 25px;
    padding: 25px;
    padding-top: 15px;
    padding-bottom: 20px;
    min-height: 30px;
}

.hero-btn:hover {
    background: #333333;
}

/* ===== ARCHIVE INTRO ===== */
.archive-intro {
 padding-left:6rem;
 padding-top: 6rem;
 padding-bottom: 4rem;
}

.archive-intro h2 {
  font-size: 70px;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.archive-intro span {
  color: #f7941d;
}

.archive-intro .linea_arancione {
  width: 100px;
  height: 5px;
}


/* BLOCCO PROGETTO  */
.project-block {
    display: flex;
    justify-content: center;
    height: 780px;           /*  ALTEZZA BLOCCO */
    margin-bottom: 30px;     /* spazio tra slider */
    padding: 3rem 2rem;

}

.project-block.grigio{
    background-color: #F8F8F8;
}

/* LEFT COLUMN */
.project-info {
 
    width: 350px;
    padding: 60px;
    padding-top: 0;
    padding-left: 0;
    display: flex;
    flex-direction: column;
}


/* RIGHT COLUMN */
.project-slider {
    width: 70%;
}

.project-info h2 {
    font-size: 35px;
    letter-spacing: -2px;
    margin-bottom: 10px;
    
}

.subtitle {
    color: #555;
    margin-bottom: 40px;
    font-size: 18px;
}

.linea_arancione{
    height: 5px;
    width: 80px;
    background-color: #f7941d;
    margin-bottom: 1rem;
    
}

#quadrato_arancione{
    height: 7px;
    min-width: 7px;
    background-color: #f7941d;
    margin-right: 3px;
}

.info{
    font-size: 15px;
}
.info p {
    margin-bottom: 20px;
    margin-top: 0;
}

.info span{
    font-weight: 300;
}

.info strong {
    letter-spacing: 1px;
}

.riga{
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
}



/* NAV BUTTONS */
.nav-buttons {
    display: flex;
    margin-top: 4rem;
    gap: 0px;
}

.nav-buttons button {
  background: #f7941d;
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  font-size: 32px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.nav-buttons button:hover {
  background: #333333;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hamburger {
  display: none;
}

.scroll-arrow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  color: #f7941d;
  opacity: 0;
  pointer-events: none;  
  transition: opacity 0.3s ease; 
}

@media (max-width: 1200px) {
    .project-block {
    display: flex;
    justify-content: center;
    height: 550px;
    }

    .linea_arancione{
    width:80px;
    }  

}
@media (max-width: 1050px) {
.logo-default {
    opacity: 1 !important;
  }

  .logo-sticky {
    opacity: 0 !important;
  }
  .navbar {
    background: #333333;
    height: 50px;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
  }

  .nav-container {
    justify-content: space-between;
  }

  /* HAMBURGER */
  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    margin-right: 15px;
  }

  .hamburger span {
    width: 28px;
    height: 3px;
    background: #f7941d;
    display: block;
  }

  /* MENU OVERLAY */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: right 0.4s ease;
    z-index: 1000;
  }

  .nav-menu a {
    color: #333;
    font-size: 14px;
    font-weight: 700;
  }

  .nav-menu a.active {
    color: #f7941d;
  }

  .nav-container{
    padding-left: 10px;
  }
  /* MENU APERTO */
  .nav-menu.open {
    right: 0;
    top:50px;
    max-height: 350px;
    width: 230px;
    padding: 0 2rem;
    text-align: center;
  }
  .navbar.sticky {
    background-color: #333333;
  }
  .contenitore_mappa_e_info{
    flex-direction: column;
  }
  .contenitore_mappa_e_info .parte_sx {
    width: 100% !important;
  
  }
  .contenitore_mappa_e_info .parte_sx iframe{
   height: 350px !important;
  }
   .contenitore_mappa_e_info .parte_dx {
    width: 100% !important;
   
    padding: 4rem 0;
  }
  
  .lang-switcher{
      position:unset !important;
  }
}


/*  RESPONSIVE  */
@media (max-width: 991px) {

    .hero-content{
        padding-left: 2rem;
    }
    .hero-content p{
        font-size: 14px;
    }

    .project-block {
        position: relative;
    flex-direction: column-reverse;
    height: auto;
    padding-bottom: 1rem;
    }

    .project-info,
    .project-slider {
    width: 100%;
    }

    .project-slider {
    height: 600px;
    padding-bottom: 1.4rem;
    }

    
    .nav-buttons{
         position: absolute;
    top:4.9%;
    left: 11.6%;
    transform: translateX(-50%);
    margin-top: 0;
    z-index: 99;
    }
}

@media (max-width: 650px) {
  .swiper-slide:hover .scroll-arrow {
    opacity: 1;  /* La freccia appare al passaggio del mouse */
  }
}

@media (max-width: 790px) {
    .hero h1{
        font-size: 35px;
    }
    
    .archive-intro h2{
        font-size: 35px; 
    }
    .archive-intro{
        padding-left: 2rem;
    }
    .nav-buttons{
     left: 50%;
    }
}

@media (max-width: 530px) {

    .nav-buttons{
      display: none;
    }
}