* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Kumbh Sans', sans-serif;
}

.navbar{
    background: white;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 999;
}

.navbar__container{
    display: flex;
    justify-content: space-between;
    height: 80px;
    z-index: 1;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 50px;
}

.logo-sub {
  font-size: 0.9rem;
  color: gray;
  font-style: italic;
  line-height: 1.2;
}

#navbar__logo{
    background-color:  white;
    background-size: 100%;
    -webkit-text-fill-color: black;
    -moz-text-fill-color: black;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 1.2rem;
}

.navbar__menu{
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.navbar__item{
    height: 80px;
}

.navbar__links{
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
}

.navbar__links:hover{
    color: gray;
    transition: all 0.3s ease;
}


@media screen and (max-width: 960px) {
    .navbar__container{
        display: flex;
        justify-content: space-between;
        height: 80px;
        z-index: 1;
        width: 100%;
        max-width: 1300px;
        padding: 0;
    }

    .navbar__menu{
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        position: absolute;
        top: -1000px;
        opacity: 0;
        transition: all 0.5s ease;
        height: 50vh;
        z-index: -1;
    }

    .navbar__menu.active{
        background: white;
        top: 100%;
        opacity: 1;
        transition: all 0.5s ease;
        z-index: 99;
        height: 100vh;
        font-size: 1.6rem;
    }

    #navbar__logo{
        padding-left: 25px;
    }

    .navbar__toggle .bar{
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
        background: black;
    }

    .navbar__item{
        width: 100%;
    }

    .navbar__links{
        text-align: center;
        padding: 2rem;
        width: 100%;
        display: table;
    }

    #mobile-menu{
        position: absolute;
        top: 20%;
        right: 5%;
        transform: translate(5%, 20%);
    }

    .navbar__toggle .bar{
        display: block;
        cursor: pointer;
    }

    .navbar__toggle {
        cursor: pointer;
    }

    #mobile-menu.is-active .bar:nth-child(2){
        opacity: 0;
    }

    #mobile-menu.is-active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }

    #mobile-menu.is-active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Hero Section CSS */
.main{
    background-color: white;
}

.main__container{
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 100%;
}

#main__img{
      width: 100vw;
  height: auto;
  display: block;
}

.main__img--container{
    text-align: left;
    position: relative;
}

.text-block-image p {
  font-size: 60px;
}

.text-block-image {
  position: absolute;
  bottom: 160px;
  left: 70px;
  color: black;
}

.text-block {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  margin-top: 2rem;
  background-color: white;
  color: #444;
  text-align: center;
  clear: both; /* prevents overlapping with floated images */
}

.text-block h1 {
  font-size: 1.8rem;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  max-width: 90%;
}

.image-wrapper {
  width: 50%;
  float: left;
  margin-bottom: -4px;
}

.image-wrapper:nth-child(even)
{
  padding-left:0px;
}

.image-wrapper:nth-child(odd)
{
  padding-right:0px;
}

.image-wrapper > img {
  width: 100%;
}

.image-wrapper > span {
  display: inline-block;
  width: 100%;
}

.lang-switch {
  background: white;
  border: none;
  font-size: 1rem;
  padding: 0.5rem;
  cursor: pointer;
  color: black;
}


.lang-switch:focus {
  outline: none;
}

@media screen and (max-width: 960px) {
  .lang-switch {
    width: 100%;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 1.2rem;
    background: white;
  }
}

.lang-switch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem; /* Reduced gap */
  padding: 0.2rem; /* Less padding */
  line-height: 1;
}

.flag-icon {
  font-size: 24px;
  padding: 0.3rem 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.flag-icon:hover {
  transform: scale(1.2);
}

.lang-switch .flag-icon:first-child {
  margin-top: 0.5rem; /* adjust as needed */
}

.lang-switch .flag-icon:last-child {
  margin-top: -0.5rem;      /* ensures IT emoji stays put */
}

.site-footer {
  text-align: center;
  padding: 0.5rem 0;
  background-color: #f5f5f5;
  color: #888;
  font-size: 1.0rem;
  width: 100%;
  clear: both;
  margin-top: 2rem;
}

.social-icons {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.social-icons a {
  text-decoration: none;
  color: #555;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #000;
}


/* Contact Page Styles */
.contact-section {
  padding: 4rem 2rem;
  background-color: white;
  color: #333;
  display: flex;
  justify-content: center;
}

.contact-container {
  max-width: 600px;
  width: 100%;
}

.contact-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
}


.about-section {
  background-color: white;
  padding: 2rem 1rem;
  display: flex;
  justify-content: center;
}

.photo-credit {
  font-size: 0.8rem;
  color: #777;
  margin-top: 0.5rem;
  text-align: right;
}


.about-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1600px;
  gap: 2rem;
  align-items: center;
  width: 100%;
  padding: 1rem;
}

.about-text {
  font-size: 1rem;
  color: #333;
  line-height: 1.6;
}

.about-text h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-text a {
  color: #555;
  text-decoration: underline;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

@media screen and (max-width: 960px) {
  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text {
    padding-bottom: 1rem;
  }
}

.top-image-container {
  width: 100%;
  overflow: hidden;
}

.top-image {
  width: 100%;
  height: auto;
  display: block;
}

.image-protect-wrapper {
  position: relative;
  display: inline-block;
}

.image-protect-wrapper img {
  display: block;
  width: 100%;
  height: auto;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* Invisible */
  z-index: 2;
  pointer-events: all;
  cursor: default;
}

/* Photos Page Layout */

.photos-section {
  padding: 2rem;
  background-color: #fff;
  color: #333;
}

.photos-section h2 {
  font-size: 2rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
}

.photos-section h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
  color: #555;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.photo-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.photo-grid img:hover {
  transform: scale(1.02);
  cursor: pointer;
}

/* Responsive spacing */
@media screen and (max-width: 768px) {
  .photos-section {
    padding: 1rem;
  }

  .photos-section h2,
  .photos-section h3 {
    text-align: center;
  }
}

.section-banner {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 0;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  display: block; 
}

.section-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  border: none;
}

.photo-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.photo-link-item {
  text-align: center;
  max-width: 300px;
}

.park-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.park-thumbnail {
  width: 100%;
  height: auto;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.park-thumbnail:hover {
  transform: scale(1.03);
}

/* Base Dropdown */
.navbar__item.dropdown {
  position: relative;
}

.dropdown-menu,
.dropdown-submenu {
  display: none;
  position: absolute;
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  background-color: white;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 999;
  min-width: 180px;
}

.dropdown-menu li a,
.dropdown-submenu li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-menu li a:hover,
.dropdown-submenu li a:hover {
  background-color: #f0f0f0;
}

/* Show dropdown on hover */
.navbar__item.dropdown:hover .dropdown-menu {
  display: block;
}

/* Submenu (US National Parks) */
.submenu-parent {
  position: relative;
}

.submenu-parent:hover .dropdown-submenu {
  display: block;
  top: 0;
  left: 100%;
}

.parks-title {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: bold;
  border-bottom: none;        /* Ensure no border */
  text-decoration: none;      /* Remove underlines if any */
  color: black;
}

.park-link {
  text-decoration: none;
  color: inherit;
}

.park-link:hover .park-name {
  color: gray; /* or your preferred hover color */
}

.park-link:hover .park-thumbnail {
  transform: scale(1.03);
}

.photos-section p {
  margin-bottom: 2rem; /* or more if needed */
}
.photosub-gallery {
  column-width: 300px;        /* forza la larghezza stimata delle colonne */
  column-gap: 1rem;
  width: 80%;
  max-width: 1200px;
  margin: 0 auto;
}

.photosub-gallery img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  cursor: pointer;
  break-inside: avoid;        /* evita che le immagini si spezzino tra colonne */
}


.photosub-gallery {
  column-count: 1; /* default */
}

@media screen and (min-width: 768px) {
  .photosub-gallery {
    column-count: 2;
  }
}

@media screen and (min-width: 1024px) {
  .photosub-gallery {
    column-count: 3;
  }
}



.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 8px;
}

.lightbox p {
  color: #fff;
  margin-top: 1rem;
  font-size: 1.1rem;
  text-align: center;
}

.lightbox.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10000;
  padding: 1rem;
}

.lightbox-btn:hover {
  color: #ddd;
}

.lightbox-btn.prev {
  left: 1rem;
}

.lightbox-btn.next {
  right: 1rem;
}
