#contatti .contatti-title {
  color: var(--color2);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
}
#azienda a,
#degustazioni a,
#contatti a {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-decoration: none;
}
#contatti .contatti-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

#contatti .contatti-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 1.1rem;
  color: var(--color2);
}

#contatti .ico {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

#contatti .map {
  border: none;
  margin: 1rem 0;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}
#contatti .contatti-bg {
  position: relative;
  width: 100%;
  height: 100%;
  background: url("assets/bangolo.png") center center/cover no-repeat;
}

#contatti .contatti-trapezio {
  position: absolute;
  top: 0;
  right: 0;
  width: 65vw;
  height: 100%;
  background: #fff;
  clip-path: polygon(25% 0, 100% 0, 100% 100%, 0 100%);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

#contatti .contatti-content {
  width: 100%;
  text-align: center;
  padding: 2rem;
}
#degustazioni .degustazioni-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

#degustazioni .degustazioni-title {
  color: var(--color2);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

#degustazioni .degustazioni-par {
  color: #222;
  font-size: 1rem;
  margin: 0.7rem 0;
  text-align: center;
  line-height: 1.6;
}
#azienda .azienda-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

#azienda .azienda-title {
  color: var(--color2);
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

#azienda .azienda-par {
  color: #222;
  font-size: 1rem;
  margin: 0.7rem 0;
  text-align: center;
  line-height: 1.6;
}
#azienda .azienda-par a {
  color: var(--color1);
  text-decoration: underline;
}
#main-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#main-menu .menu-lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 2rem;
}

#main-menu .lang-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  font-family: inherit;
  padding: 0.2rem 0.7rem;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}
#main-menu .lang-btn.active {
  background: var(--color1);
  color: var(--color2);
}
#header .trapezio-content {
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  padding-right: 4vw;
}

#header .trapezio-logo {
  width: 64px;
  height: 64px;
  margin-right: 2vw;
  object-fit: contain;
  flex-shrink: 0;
}

#header .trapezio-content h1 {
  font-size: 2.8rem;
  color: var(--color2);
  margin: 0;
  font-weight: 700;
  text-align: right;
}

#header .trapezio-content h2 {
  font-size: 1.3rem;
  color: var(--color1);
  margin: 0.5rem 0 0 0;
  font-weight: 400;
  text-align: right;
}

#header .trapezio {
  position: absolute;
  top: 0;
  right: 0;
  width: 65vw;
  height: 100%;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 25% 100%);
  opacity: 1;
  /* transform: translateX(100vw); */
  /* animation: trapezio-in 1.8s cubic-bezier(0.23, 1, 0.32, 1) forwards; */
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

@keyframes trapezio-in {
  0% {
    opacity: 0;
    transform: translateX(100vw);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}
#main-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
}
#main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}
#main-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 1px;
  transition: color 0.2s;
}
#main-menu a:hover {
  color: var(--color1);
}

#header {
  background: url("assets/vineyard.png") center center/cover no-repeat;
  color: #fff;
  position: relative;
}
/* Variabili CSS */
:root {
  --color1: #ac9e5f;
  --color2: rgb(136, 67, 71);
}

body {
  margin: 0;
  padding: 0;
  font-family: "Encode Sans Condensed", sans-serif;
  width: 100vw;
  overflow-x: hidden;
}

.section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

#azienda {
  background: #f4f4f4;
  color: var(--color2);
}
#degustazioni {
  background: var(--color1);
  color: var(--color2);
}
#contatti {
  color: var(--color2);
}

/* Media queries per dispositivi mobili */
@media screen and (max-width: 768px) {
  /* Layout di base */
  body {
    font-size: 16px;
  }

  .section {
    min-height: 100vh;
    height: auto;
    padding: 4rem 1rem;
  }

  /* Menu principale */
  #main-menu {
    padding: 0.5rem 0;
    flex-direction: row;
    justify-content: center;
  }

  #main-menu ul {
    display: none;  /* Nascondi le voci di menu */
  }

  #main-menu .menu-lang-switch {
    padding: 0;
    width: auto;
    justify-content: center;
  }

  #main-menu .lang-btn {
    font-size: 1rem;
    padding: 0.4rem 1rem;
  }

  /* Header e trapezio */
  #header .trapezio {
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
  }

  #header .trapezio-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    justify-content: center;
  }

  #header .trapezio-logo {
    width: 48px;
    height: 48px;
    margin: 0 0 1rem 0;
  }

  #header .trapezio-content h1 {
    font-size: 2rem;
    text-align: center;
  }

  #header .trapezio-content h2 {
    font-size: 1.1rem;
    text-align: center;
  }

  /* Sezioni contenuto */
  .content-section {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .section-par {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  /* Sezione contatti */
  #contatti .contatti-bg {
    height: 100vh;
  }

  #contatti .contatti-trapezio {
    width: 100%;
    height: 100%;
    position: relative;
    left: 0;
    right: 0;
    clip-path: none;
    background: rgba(255, 255, 255, 0.95);
  }

  #contatti .contatti-content {
    padding: 4rem 1rem;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #contatti .map {
    width: 90vw !important;
    height: 200px !important;
    margin: 1rem 0;
  }

  #contatti .contatti-row {
    font-size: 0.95rem;
  }

  #contatti .ico {
    width: 24px;
    height: 24px;
  }
}

/* Media query per schermi molto piccoli */
@media screen and (max-width: 480px) {
  #header .trapezio-content h1 {
    font-size: 1.5rem;
  }

  #header .trapezio-content h2 {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.3rem;
  }
}
