@font-face {
  font-family: 'Anton';
  src: url('../fonts/Anton-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'HelveticaNeueLTStd-Bd';
  src: url('../fonts/HelveticaNeueLTStd-Bd.otf') format('opentype');
}

@font-face {
  font-family: 'HelveticaNeueLTStd-Lt';
  src: url('../fonts/HelveticaNeueLTStd-Lt.otf') format('opentype');
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'HelveticaNeueLTStd-Lt', Helvetica, Arial, sans-serif;
  font-weight: 300;
  background: url('img/background.png') no-repeat center center fixed;
  background-size: cover;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  z-index: 1000;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.logo {
  height: 80px;
  max-width: 100%;
}

.language-dropdown {
  position: relative;
}

.dropdown-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  font-size: 16px;
  padding: 5px 10px;
}

.dropdown-btn img {
  height: 20px;
  margin-right: 5px;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 100px;
  z-index: 2000;
}

.dropdown-content li {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.dropdown-content li img {
  height: 20px;
  margin-right: 5px;
}

.dropdown-content li:hover {
  background: #eee;
}

.bars,
.footer-bars {
  width: 100%;
}

.bar-blue,
.footer-blue {
  height: 5px;
  background: #005bbb;
}

.bar-yellow,
.footer-yellow {
  height: 5px;
  background: #ffd500;
}

nav {
  background: #fff;
  display: flex;
  gap: 40px;
  padding: 10px 20px;
}

nav a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  text-transform: uppercase;
  font-family: 'Anton', sans-serif;
}

nav a:hover {
  border-bottom: 2px solid #ffd500;
}

main {
  margin-top: 200px;
  padding: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

section {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  padding: 60px 40px;
  margin-bottom: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

section h2 {
  text-transform: uppercase;
  font-family: 'Anton', sans-serif;
  margin-top: 0;
}

#home p {
  text-align: justify;
}

.slideshow-container {
  position: relative;
  max-width: 800px;
  margin: 40px auto 40px;
  overflow: hidden;
}

.slide {
  display: none;
}

.slide img {
  width: 100%;
  border-radius: 8px;
}

.fade {
  animation: fade 1s ease-in-out;
}

@keyframes fade {
  from {
    opacity: .4;
  }
  to {
    opacity: 1;
  }
}

.programma-item {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ddd;
}

.programma-toggle {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.programma-header {
  display: flex;
  flex-direction: column;
}

.programma-title {
  font-size: 18px;
  font-weight: bold;
  font-family: 'HelveticaNeueLTStd-Bd', Helvetica, Arial, sans-serif;
}

.programma-date {
  font-size: 14px;
  color: #555;
  margin-top: 4px;
}

.programma-content {
  max-height: 0;
  overflow: hidden;
  background: #fff;
  transition: max-height 0.4s ease;
  padding: 0 20px;
}

.programma-content p {
  margin: 15px 0;
}

.programma-toggle .arrow {
  transition: transform 0.3s ease;
}

.programma-item.open .arrow {
  transform: rotate(180deg);
}

.programma-group {
  margin-bottom: 10px;
}

.programma-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.programma-button {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.programma-button:hover {
  background: #005bbb;
  color: #ffd500;
}

.programma-button-date {
  font-size: 14px;
  margin-bottom: 4px;
}

.programma-button-title {
  font-size: 18px;
  font-weight: bold;
  font-family: 'HelveticaNeueLTStd-Bd', Helvetica, Arial, sans-serif;
}

#artists .artists-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.artist-card {
  flex: 1 1 calc(50% - 20px);
  max-width: calc(50% - 20px);
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.artist-card:hover {
  transform: translateY(-4px);
}

.artist-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#artists h2[data-i18n="artists_installazioni_title"] {
  margin-top: 60px;
}

.artist-card h3 {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-family: 'HelveticaNeueLTStd-Bd', Helvetica, Arial, sans-serif;
}

.artist-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #555;
  text-align: justify;
}

.contacts-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
}

.contacts-info {
  flex: 1 1 300px;
}

.contacts-map {
  flex: 1 1 400px;
}

.contacts-map img {
  width: 70%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: block;
  margin-left: auto;
}

@media (max-width: 800px) {
  .contacts-content {
    flex-direction: column;
  }

  .contacts-map {
    width: 100%;
  }

  .contacts-map img {
    width: 100% !important;
    margin-left: 0 !important;
    display: block;
  }
}

@media (max-width: 600px) {
  .artist-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

footer {
  background: #fff;
  padding: 40px;
  font-size: 14px;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.footer-row img {
  height: 40px;
}

.footer-title {
  flex-basis: 100%;
  font-weight: bold;
}

.footer-credit {
  font-size: 12px;
  color: #555;
}

h3,
strong,
b {
  font-family: 'HelveticaNeueLTStd-Bd', Helvetica, Arial, sans-serif;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  padding: 10px 20px;
}

.menu-toggle i {
  color: #000;
}

.sidebar {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  max-width: 80%;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  padding: 100px 20px;
  transition: right 0.3s ease;
  z-index: 3000;
}

.sidebar a {
  text-decoration: none;
  color: #000;
  font-weight: bold;
  text-transform: uppercase;
  font-family: 'Anton', sans-serif;
  margin-bottom: 20px;
}

.sidebar a:hover {
  border-bottom: 2px solid #ffd500;
}

.sidebar.open {
  right: 0;
}

@media (max-width: 768px) {
  nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

.footer-links {
  margin-top: 20px;
}

.footer-links ul {
  list-style-type: none;
  padding: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.footer-links a {
  color: #005bbb;
  text-decoration: none;
  font-size: 14px;
  font-family: 'HelveticaNeueLTStd-Lt', Helvetica, Arial, sans-serif;
}

.footer-links a:hover {
  color: #ffd500;
}

.footer-links a:focus {
  outline: 2px dashed #005bbb;
  outline-offset: 2px;
}
