html, body {
  overflow-x: hidden;
}

body {
    background-color: #e4e2dd;
    font-family: Arial, sans-serif;
    margin: 0px;
    color: #333;
}

header {
  position: relative;
  padding: 20px;
}

.top-bar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 30px;
  background-color: #e4e2dd;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo-container img {
  width: 150px;
  height: auto;
}

.main-menu {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.main-menu li {
  position: relative;
}

.main-menu a {
  text-decoration: none;
  color: #05003a;
  font-weight: 600;
  font-size: 20px;
  padding: 10px;
  display: block;
  transition: color 0.3s ease;
}

.main-menu a:hover {
  text-decoration: underline;
  color: inherit;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #e4e2dd;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  z-index: 1000;
  min-width: 180px;
  width: auto;
  border-radius: 4px;
}

.submenu li {
  padding: 0;
  list-style: none;
}

.submenu a {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #05003a;
  white-space: nowrap;
  display: block;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.submenu a:hover {
  background-color: #f2f2f2;
  color: #a1befd;
}

.has-submenu:hover .submenu {
  display: block;
}

.accedi {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.accedi li {
  display: flex;
}

.accedi a {
  text-decoration: none;
  color: #05003a;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.accedi a:hover {
  color: #a1befd;
}

.hero {
  height: calc(100vh - 80px);
  background-image: url('../img/sfondo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 0 20px;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.7);
}

.hero-content p {
  font-size: 1.2em;
  line-height: 1.6;
  color: #ffffff;
  text-shadow: 0 0 8px rgba(0, 0, 0, 1);
}

.product-scroll-bar {
  background-color: #f9f9f9;
  padding: 15px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  width: 100%; 
  position: relative;
}

.scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 0 20px;
  scrollbar-width: thin;
  scrollbar-color: #a1befd #e0e0e0;
  scroll-behavior: smooth;
  width: 100%; 
  max-width: none; 
}

.scroll-container::-webkit-scrollbar {
  height: 8px;
}

.scroll-container::-webkit-scrollbar-track {
  background: #e0e0e0;
  border-radius: 4px;
}

.scroll-container::-webkit-scrollbar-thumb {
  background-color: #a1befd;
  border-radius: 4px;
}

.scroll-container img {
  flex-shrink: 0;
  height: 400px;
  border-radius: 6px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.scroll-container img:hover {
  transform: scale(1.1);
}

.services-bar {
  background-color: #e4e2dd;
  padding: 15px 0;
}

.aligned-container {
  width: 100%;          
  max-width: 1200px;    
  margin: 0 auto;      
  display: flex;
  gap: 200px;            
  justify-content: center; 
  align-items: flex-start;
  flex-wrap: wrap;
  padding: 0 20px;
}

.column {
  flex: 0 1 auto;
  min-width: 180px;
}

.services-bar .column h3 {
  margin-bottom: 15px;
  font-weight: 700;
  font-size: 1.2em;
  color: #05003a;
}

.services-bar .column ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.services-bar .column ul li {
  margin-bottom: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease;
  color: #05003a;
}

.services-bar .column ul li:hover {
  color: #a1befd;
}

/* FOOTER */

.site-footer {
  background-color: #333;
  color: #fff;
  padding: 40px 30px 20px;
  font-size: 14px;
}

.site-footer .aligned-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 200px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 20px;
  box-sizing: border-box;
}

.site-footer .column {
  flex: 0 1 auto; 
  min-width: 180px;
  text-align: left;
}

.site-footer h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #00a859;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #a1befd;
}

.footer-info a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-info a:hover {
  color: #a1befd;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  border-top: 1px solid #555;
  padding-top: 15px;
  color: #bbb;
}

.social-footer {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-footer li {
  margin-bottom: 10px;
}

.social-footer a {
  display: flex;
  align-items: center;
  gap: 6px; 
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.social-footer a:hover {
  color: #a1befd;
}

.social-footer img {
  width: 18px;
  height: auto;
  border-radius: 30%;
  object-fit: cover;
}

.menu-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}