@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@700&family=Nunito:wght@400;600&display=swap');

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, #ffffff, #f5f5f5);
  color: #222;
}

header {
  background-color: #002868;
  color: #ffffff;
  text-align: center;
  padding: 1rem;
  font-family: 'Comic Neue', cursive;
  font-size: 1.8rem;
  text-shadow: 1px 1px #bf0a30;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 75vh;
  padding: 1rem;
  background: repeating-linear-gradient(
    0deg,
    #bf0a30,
    #bf0a30 20px,
    #ffffff 20px,
    #ffffff 40px
  );
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  border: 4px solid #ffffff;
}

footer {
  background-color: #002868;
  color: white;
  text-align: center;
  padding: 1rem;
}

footer a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* Disclaimer Modal Improvements */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 40, 104, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeIn 0.6s ease-in-out;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #ffffff;
  padding: 2rem;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.4);
  border-top: 6px solid #bf0a30;
  text-align: center;
}

.modal-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

#accept-consent {
  background: #bf0a30;
  color: white;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

#accept-consent:hover {
  background: #8b0723;
}

/* About Us page adapted according to your new margins/padding */
.about {
  max-width: 700px;
  margin: 1rem auto;
  padding: 1rem;
  background: #ffffff;
  border: 4px dashed #bf0a30;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 1s ease;
}

.about h1 {
  font-family: 'Comic Neue', cursive;
  color: #002868;
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 1rem;
  text-shadow: 2px 2px #ffcc00;
}

.about p {
  font-size: 1rem;
  color: #222;
}

.about ul {
  list-style: none;
  padding-left: 0;
}

.about li {
  background: #f5f5f5;
  border-left: 6px solid #002868;
  margin: 0.6rem 0;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.about li:hover {
  transform: translateX(10px);
  background-color: #ffcc00;
}

.about footer {
  margin-top: 1rem;
}

.about footer a {
  background-color: #002868;
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.about footer a:hover {
  background-color: #001d4a;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Perfezionamento media queries per evitare sovrapposizione immagine/testo su 768x1024 */
@media (max-width: 1024px) and (orientation: portrait) {
  .image-container {
    height: auto;
    padding: 1rem;
    margin-bottom: 2rem;
  }

  .image-container img {
    max-width: 80%;
    max-height: 60vh;
  }
}

/* Aggiunta media query specifica per landscape su smartphone e tablet */
@media (max-width: 1024px) and (orientation: landscape) {
  .image-container {
    height: auto;
    padding: 1rem;
    margin: 2rem auto;
  }

  .image-container img {
    max-width: 50%;
    max-height: 50vh;
  }
}

/* Fix immagine responsive per PC e Laptop (schermi larghi) */
@media (min-width: 1025px) {
  .image-container {
    height: auto;
    padding: 2rem;
    margin-bottom: 2rem;
  }

  .image-container img {
    max-width: 50%;
    max-height: 70vh;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: #002868;
  color: white;
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-banner.hidden {
  display: none;
}

#accept-cookies {
  background: #ffe066;
  color: #002868;
  border: none;
  padding: 0.4rem 1rem;
  margin-left: 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}