
/* ========== BASE ========== */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  line-height: 1.8;
  color: #333;
}

h2 {
  font-size: 24px;
  line-height: 1.4;
  margin-bottom: 20px;
  font-weight: 700;
  color: #000;
}

/* ========== CONTAINER GENERICO ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-demo {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #00a09d;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-demo:hover {
  background-color: #008a88;
}

/* ========== LOGO ========== */
.logo {
  flex-shrink: 0;
  max-width: 200px;
}

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

/* ========== HEADER ========== */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 999;
  padding: 10px 0;
}

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

.header-flex .logo img {
  height: 60px;
}

/* ========== MENU ========== */
.main-menu {
  display: flex;
  align-items: center;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-menu li a,
.main-menu .lang-select select {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  color: #333;
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  appearance: none;
}

.lang-select {
  position: relative;
}

.lang-select select {
  padding: 5px 25px 5px 10px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' width='12' height='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon fill='%23333' points='70,100 20,40 120,40'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  border: none;
}

.main-menu a.active {
  color: #306ab6;
  font-weight: bold;
}

/* ========== ICONA MENU ========== */
.menu-toggle {
  display: none;
  cursor: pointer;
  user-select: none;
  position: absolute;
  right: 30px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
}

/* ========== FOOTER ========== */
footer {
  background: #333;
  color: #fff;
  padding: 40px 30px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 10px;
}

.footer-menu ul,
.footer-demo ul {
  list-style: none;
  padding: 0;
}

.footer-menu ul li,
.footer-demo ul li {
  margin: 5px 0;
}

.footer-menu ul li a,
.footer-demo ul li a {
  color: #fff;
  text-decoration: none;
}

.footer-menu h4,
.footer-demo h4 {
  margin-bottom: 10px;
}

/* ========== SEZIONE CARATTERISTICHE (MotoPress-style) ========== */
.features {
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature.light,
.feature.gray {
  width: 100%;
}

.feature.light {
  background-color: #ffffff;
}

.feature.gray {
  background-color: #f9f9f9;
}

.feature .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.feature.reverse .container {
  flex-direction: row-reverse;
}

.feature .text {
  flex: 1;
}

.feature .image {
  flex: 1;
}

.feature .image img {
  max-width: 100%;
}

/* ========== CUSTOM SELECT LINGUA ========== */
.custom-select {
  position: relative;
  cursor: pointer;
  padding: 5px 10px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
  display: inline-block;
  user-select: none;
}
.custom-select span {
  display: flex;
  align-items: center;
}
.custom-select .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ccc;
  width: 100%;
  z-index: 999;
}
.custom-select .dropdown li {
  padding: 5px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.custom-select .dropdown li:hover {
  background: #f0f0f0;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .container,
  .header-flex {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .main-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    display: none;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  nav.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .features {
    padding: 100px 20px 60px;
  }

  .feature .container {
    flex-direction: column !important;
    text-align: left;
  }

  .feature .text,
  .feature .image {
    flex: 1 1 100%;
  }

  .feature .text p {
    max-width: 100%;
  }
}
