/* Reset e Base */
* {
  box-sizing: border-box;
}

body {
  font-family: "Noto Sans", "Open Sans", "Segoe UI", "Opensans", "Roboto", "Helvetica", -apple-system, system-ui, BlinkMacSystemFont, sans-serif;
  font-size: 1.15rem;
  background-color: #7a6250ff;
  color: #1d1d1d;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5rem;
  font-family: inherit;
  font-weight: 500;
  line-height: 1.2;
  color: inherit;
}

h2 {
  font-size: 2rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.display-3 {
  font-size: 1.25rem !important;
  line-height: 1;
  font-weight: bold;
}

@media (min-width: 1024px) {
  .display-3 {
    font-size: 3.5rem !important;
  }
}

.display-5 {
  font-size: 2rem;
  font-weight: bold;
  line-height: 1.1;
  margin-top: 0px;
  margin-bottom: 1rem;
}

@media (min-width: 1200px) {
  .display-5 {
    font-size: 2.5rem;
  }
}

.display-title {
  font-family: "Glacial Indifference", "Montserrat", "Open Sans", sans-serif;
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 24px;
}

/* Grid System (Bootstrap essenziale) */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

.col-12 {
  position: relative;
  width: 100%;
  min-height: 1px;
  padding-right: 15px;
  padding-left: 15px;
  flex: 0 0 100%;
  max-width: 100%;
}

@media (min-width: 768px) {
  .col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  
  .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
  
  .col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
}

/* Utility Classes */
.text-left {
  text-align: left !important;
}

.pr-4 {
  padding-right: 1.5rem !important;
}

/* Header */
.page-header {
  justify-content: flex-start;
  z-index: 2;
  position: absolute;
  width: 100%;
}

.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  flex-direction: row;
  padding: 0;
  transition: 0.3s ease-in-out;
  color: currentColor;
  margin-top: 16px;
  margin-bottom: 8px;
}

.logo {
  margin-right: 16px;
}

/* Page Cover */
.page-cover {
  position: relative;
  width: 100%;
  height: auto;
}

/* Main Content */
.page-main {
  position: relative;
  z-index: 1;
}

/* Sections */
.section {
  position: relative;
  padding-top: 80px;
  padding-bottom: 80px;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

@media (max-width: 576px) {
  .section {
    display: block;
  }
}

@media (min-width: 768px) {
  .section {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 0;
  }
}

.section-wrapper {
  width: 100%;
  max-width: 1080px;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
}

.section-wrapper.with-margin {
  padding-left: 16px;
  padding-right: 16px;
  max-width: 6000px;
}

@media (min-width: 768px) {
  .section-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  
  .section-wrapper.with-margin {
    padding-left: 48px;
    padding-right: 48px;
    padding-bottom: 32px;
  }
}

.section-content {
  width: 100%;
}

.section-content .title-desc {
  margin-bottom: 2rem;
  position: relative;
}

@media (min-width: 768px) {
  .section-content .title-desc {
    margin-bottom: 1rem;
  }
}

.section-content .title-desc h2 {
  margin-bottom: 2rem;
}

/* Center Vertical Column */
.center-v-col {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

/* Images */
.image {
  position: relative;
  width: 100%;
}

.img-frame-normal {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.img-frame-normal .img,
.img-frame-normal img {
  width: 100%;
  height: auto;
  display: block;
}

/* Animations */
.anim {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}

.anim-3 {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease 0.3s;
}

.anim-4 {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease 0.4s;
}

/* Custom styles for text colors on different backgrounds */
.section[style*="background:#d8c1af"] *,
.section[style*="background:#d8c1af"] h2,
.section[style*="background:#d8c1af"] p {
  color: #ffffff !important;
}

.section[style*="background-color:#7e9ba3"] *,
.section[style*="background-color:black"] *,
.section[style*="background-color:#7e9ba3"] h2,
.section[style*="background-color:black"] h2,
.section[style*="background-color:#7e9ba3"] p,
.section[style*="background-color:black"] p {
  color: #ffffff !important;
}

/* Language switcher styles */
.language-switcher {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-right: 20px;
}

.language-btn {
  background-color: transparent;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  min-width: 40px;
  text-align: center;
}

.language-btn:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* Home button styles (same as language button) */
.home-btn {
  background-color: transparent;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  min-width: 40px;
  text-align: center;
}

.home-btn:hover {
  text-decoration: none;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .language-switcher {
    margin-right: 15px;
  }
  
  .language-btn, .home-btn {
    font-size: 1.2rem;
    padding: 12px 16px;
    min-width: 50px;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .display-3 {
    font-size: 2.5rem;
  }
  
  .section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}