/* === Reset base === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #222;
  background-size:cover;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */
header {
  background: white;
  border-bottom: 1px solid #eee;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
  cursor: pointer;
}

.logo {
  height: 64px;
  width: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.brand-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: #b71c1c;
}

/* === Nav === */
#nav {
  position: relative;
}

#navToggle {
  font-size: 2.2rem;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  line-height: 1;
}

.nav-list {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-list li a {
  text-decoration: none;
  font-weight: 600;
  color: #b71c1c;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-list li a:hover,
.nav-list li a:focus {
  background-color: #b71c1c;
  color: white;
  box-shadow: 0 0 8px rgba(183, 28, 28, 0.5);
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 80px 20px 60px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #b71c1c;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 30px;
  color: #444;
}

.btn-primary {
  background-color: #b71c1c;
  color: white;
  padding: 16px 36px;
  font-size: 1.1rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(183, 28, 28, 0.5);
}

.btn-primary:hover {
  background-color: #941010;
}

/* === Footer === */
footer {
  position:fixed;
  bottom: 0;
  left: 0;
  
  padding: 30px 0;
  text-align: center;
  font-weight: 600;
  color: #555;
}

/* === Menu Modal === */
.menu-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 10000;
  flex-direction: column;
  padding: 20px;
  gap: 14px;
}

.menu-modal[aria-hidden="false"] {
  display: flex;
}

.menuClose {
  align-self: flex-end;
  background: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 2.2rem;
  line-height: 38px;
  color: #b71c1c;
  border: 2px solid #b71c1c;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(183, 28, 28, 0.6);
  margin-bottom: 12px;
}

#menuImage {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.9);
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

/* === Responsive === */
@media (max-width: 1024px) {
  .nav-list {
    gap: 24px;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  #navToggle {
    display: block;
  }

  .nav-list {
    display: none;
    position: absolute;
    right: 0;
    top: 60px;
    background: white;
    flex-direction: column;
    width: 220px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  }

  .nav-list.show {
    display: flex;
  }

  .nav-list li {
    padding: 10px 0;
  }

  .nav-list li a {
    display: block;
    font-size: 1rem;
    text-align: right;
  }

  .logo {
    height: 48px;
  }

  .hero {
    padding: 60px 10px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .btn-primary {
    width: 100%;
    font-size: 1rem;
  }
}
/* === Slider quadrato centrato === */
.slider-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 0; /* margine verticale */
}

.slider-container {
  width: 400px;
  height: 400px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  position: relative;
}

.slider {
  display: flex;
  width: calc(400px * 3); /* 3 immagini */
  height: 100%;
  animation: slideSquare 12s infinite;
}

.slide {
  width: 400px;
  height: 400px;
  object-fit: cover;
  flex-shrink: 0;
}

/* === Animazione === */
@keyframes slideSquare {
  0%   { transform: translateX(0); }
  30%  { transform: translateX(0); }
  33%  { transform: translateX(-400px); }
  63%  { transform: translateX(-400px); }
  66%  { transform: translateX(-800px); }
  97%  { transform: translateX(-800px); }
  100% { transform: translateX(0); }
}
@media (min-width: 1024px) {
  .slider-container {
    width: 700px;
    height: 500px;
  }

  .slider {
    width: calc(700px * 3); /* 3 immagini */
  }

  .slide {
    width: 700px;
    height: 500px;
  }

  @keyframes slideSquare {
    0%   { transform: translateX(0); }
    30%  { transform: translateX(0); }
    33%  { transform: translateX(-700px); }
    63%  { transform: translateX(-700px); }
    66%  { transform: translateX(-1400px); }
    97%  { transform: translateX(-1400px); }
    100% { transform: translateX(0); }
  }
}
