@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/open-sans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/montserrat-latin.woff2') format('woff2');
}

:root {
  --cream: #FFFDD0;
  --beige: #E6E3BC;
  --yellow: #FFD129;
  --text: #000000;
  --link: #0C0C0C;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.8;
  font-size: 14px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  background: var(--cream);
  padding: 50px 0 30px;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img {
  width: 300px;
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
}

.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--link);
  padding: 10px 20px;
  border-radius: 2px;
}

.main-nav a:hover {
  text-decoration: none;
  background: var(--yellow);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--link);
}

/* Sections */
.section {
  padding: 40px 0;
}

.section.beige {
  background: var(--beige);
}

.section h2 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px;
  display: inline-block;
  border-bottom: 3px solid var(--yellow);
  padding-bottom: 4px;
}

.section p {
  margin: 0 0 20px;
}

.section p:last-child {
  margin-bottom: 0;
}

/* Banda gialla */
.yellow-band {
  background: var(--yellow);
  height: 21px;
}

/* Linee spezzate di transizione tra le sezioni (stile "montagne") */
.cut {
  height: 25px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.cut-cream-beige {
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M761.9,55.9 L643.1,72.8 L333.8,2 L0,96.2 L0,100 L1000,100 L1000,96.1 Z' fill='%23E6E3BC'/%3E%3C/svg%3E");
}

.cut-cream-beige.alt-cut {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M238.1,55.9 L356.9,72.8 L666.2,2 L1000,96.2 L1000,100 L0,100 L0,96.1 Z' fill='%23E6E3BC'/%3E%3C/svg%3E");
}

.cut-beige-cream {
  background-color: var(--beige);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 100' preserveAspectRatio='none'%3E%3Cpath d='M238.1,55.9 L356.9,72.8 L666.2,2 L1000,96.2 L1000,100 L0,100 L0,96.1 Z' fill='%23FFFDD0'/%3E%3C/svg%3E");
}

.contatti-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 40px;
}

.contatti-col p {
  margin: 0 0 20px;
}

.contatti-col p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  background: linear-gradient(var(--beige) 80%, var(--cream) 100%);
  padding: 25px 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  color: var(--link);
  text-align: right;
}

.site-footer p {
  margin: 3px 0;
}

.site-footer a {
  color: #333333;
}

/* Responsive */
@media (max-width: 760px) {
  .site-header {
    padding: 30px 0 20px;
    position: relative;
  }

  .logo img {
    width: 220px;
  }

  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--cream);
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.open {
    max-height: 300px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .main-nav a {
    padding: 14px 30px;
  }

  .contatti-grid {
    grid-template-columns: 1fr;
  }

  .cut {
    height: 16px;
  }

  .site-footer {
    text-align: center;
  }
}
