/*
cd "C:\Users\Jan\Documents\Sito Podere Campetti"
npx sass --watch scss/style.scss:assets/css/style.css
*/
/* --- General Page & Global Styles --- */
body {
  font-family: "Georgia", serif;
  background-color: #fdfaf5;
  color: #333333;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: url("../assets/images/background.webp");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}
body .page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body .page .main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}
body .page .main-header {
  display: grid;
  margin-top: 24px;
  padding: 18px;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto;
  gap: 10px;
  justify-items: center;
  align-items: center;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  width: 100%;
  max-width: 90%;
  height: auto;
}
@media (min-width: 769px) {
  body .page .main-header {
    gap: 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
  }
}
@media (max-width: 480px) {
  body .page .main-header {
    padding: 10px;
  }
}
body .page .main-header .menu-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  -webkit-tap-highlight-color: transparent;
}
body .page .main-header .menu-container .menu-toggle {
  border: 1px solid #4a5d23;
  background: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  color: #4a5d23;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.2rem;
  flex-shrink: 0;
}
body .page .main-header .menu-container .menu-toggle:hover {
  background-color: #f5f2ea;
}
body .page .main-header .menu-container .side-menu {
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  width: 180px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  padding: 8px;
  margin: 4px 0 0 0;
  z-index: 100;
  opacity: 0;
  -webkit-tap-highlight-color: transparent;
}
body .page .main-header .menu-container .side-menu.open {
  max-height: 400px;
  opacity: 1;
  outline: 1px solid #4a5d23;
  visibility: visible;
}
body .page .main-header .menu-container .side-menu a {
  text-decoration: none;
  color: #000000;
  padding: 18px 12px;
  display: block;
  position: relative;
  margin: 0;
}
body .page .main-header .menu-container .side-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 1px;
  background-color: #000000;
  pointer-events: none;
}
body .page .main-header .menu-container .side-menu a:last-child::after {
  display: none;
}
body .page .main-header .menu-container .side-menu a:hover {
  background-color: #f5f2ea;
  border-radius: 8px;
}
body .page .main-header .menu-container .side-menu a.active-page {
  font-weight: bold;
  color: #a52a2a;
  padding-left: 15px;
  position: relative;
}
body .page .main-header .menu-container .side-menu a.active-page::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 3px;
  background-color: #a52a2a;
  border-radius: 2px;
}
body .page .main-header .lang-dropdown {
  position: relative;
  margin-left: auto;
  align-self: center;
  width: clamp(40px, 10vw, 80px);
  cursor: pointer;
  z-index: 1000;
  -webkit-tap-highlight-color: transparent;
}
body .page .main-header .lang-dropdown.is-active .lang-current {
  border-radius: 4px 4px 0 0;
  background: white;
}
body .page .main-header .lang-dropdown.is-active .lang-options {
  display: block;
}
body .page .main-header .lang-dropdown .lang-current {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  pointer-events: none;
}
@media (max-width: 768px) {
  body .page .main-header .lang-dropdown .lang-current span {
    display: none !important; /* !important ensures no other styles override this */
  }
  body .page .main-header .lang-dropdown .lang-current span.arrow {
    display: inline-block !important;
    margin-left: clamp(0px, 1vw, 20px); /* Remove margin since the text is gone */
  }
  body .page .main-header .lang-dropdown .lang-current {
    justify-content: center; /* Centers the flag when text is gone */
    width: auto;
  }
}
body .page .main-header .lang-dropdown .lang-options {
  display: none;
  position: absolute;
  width: 100%;
  box-sizing: border-box;
  background: white;
  border: 1px solid #ddd;
  border-top: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 4px 4px;
}
body .page .main-header .lang-dropdown .lang-options a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  text-decoration: none;
  color: #333333;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  body .page .main-header .lang-dropdown .lang-options a .lang-label {
    display: none;
  }
}
body .page .main-header .lang-dropdown .lang-options a:hover {
  background: #fdfaf5;
  color: #a52a2a;
}
body .page .main-header .lang-dropdown .flag-icon {
  width: 20px;
  height: auto;
  border-radius: 2px;
}
body .page .main-header .lang-dropdown .arrow {
  font-size: 0.7rem;
  color: #666;
}
body .page .main-header .logo {
  width: clamp(100px, 10vw, 200px);
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  padding-left: 20px;
  padding-right: 20px;
}
body .page .main-header .brand-text {
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: bold;
  color: #4a5d23;
}
body .page .main-content {
  margin-top: 24px;
  padding: 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 90%;
}

h1 {
  font-size: 2.2rem;
  color: #4a5d23;
  margin-bottom: 15px;
}

p {
  color: #53602b;
  line-height: 1.6;
}

/* --- Preloader & Loader Components --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
#preloader.hide-loader {
  opacity: 0;
  pointer-events: none;
}
#preloader .loader {
  position: relative;
  border: 6px solid #f3f3f3;
  border-top: 6px solid #808000;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1.5s linear infinite;
  display: flex;
  justify-content: center;
  align-items: center;
}
#preloader .olive {
  font-size: 30px;
  position: absolute;
  animation: anti-spin 1.5s linear infinite;
}

/* --- Keyframes --- */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes anti-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}
/* --- Mobile Media Queries --- */
@media (max-width: 768px) {
  header.main-header .menu-container {
    grid-area: 1/1;
    justify-self: start;
  }
  header.main-header .logo {
    grid-area: 1/2;
    height: 40px;
    order: unset;
  }
  header.main-header .lang-dropdown {
    grid-area: 1/3;
    justify-self: end;
  }
  header.main-header .brand-text {
    grid-area: 2/1/2/4;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    order: unset;
  }
}
/* --- Layout Structure --- */

/*# sourceMappingURL=style.css.map */
