@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Cormorant:ital,wght@0,300..700;1,300..700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Cormorant", serif;
  font-optical-sizing: auto;
  font-weight: 300;
  font-style: normal;
}

/* MENU */
#header {
  position: fixed;
  width: 100%;
  top: 0;
  padding: 1rem;
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  margin: 0 auto;
}

.logo a img {
  width: 120px;
  margin-top: 10px;
}

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background: #000;
  margin: 5px 0;
  transition: 0.3s;
}

#menu {
  display: flex;
  align-items: center;
}

.links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.links a {
  text-decoration: none;
  color: #000;
  transition: color 0.3s;
}

.links a h3 {
  font-size: 1.3em;
}

.links a:hover {
  color: #666;
}

.dropdown {
  position: relative;
}

@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  #menu {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background: rgba(255, 255, 255, .9);
    flex-direction: column;
    padding: 2rem;
    transition: right 0.3s ease-in-out;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  }

  #menu.active {
    right: 0;
  }

  .links {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 2rem;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

.disabled {
  pointer-events: none;
  cursor: not-allowed;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .links {
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 600px;
  }

  .links li {
    width: calc(21% - 1rem);
    text-align: left;
  }
}

/* MENU */

/* CONTATTI */
.contact-page {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 1rem;
  width: 90%;
  margin: 8rem auto 5rem;
}

.contact-info {
  letter-spacing: 0.2em;
  line-height: 2.6;
  font-size: 1.2rem;
}

.contact-info .via {
    font-size: 0.9rem;
}

.map-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

#map {
  width: 100%;
  height: 400px;
  pointer-events: none;
}

.contact-info a {
  color: #000;
  font-size: 22px;
}

@media (min-width: 768px) {
  #map {
    height: 500px;
  }
}

@media (min-width: 1005px) {
  .contact-page {
    flex-direction: row;
    margin: 10rem auto 5rem;
  }

  .contact-info {
    width: 50%;
  }

  .contact-info {
    letter-spacing: 0.3em;
    line-height: 2.8;
    font-size: 1.2rem;
  }

  .last {
    letter-spacing: 0.2em;
  }

  #map {
    width: 100%;
    height: 400px;
  }
}

/* CONTATTI */

/* FOOTER */
footer {
  background-color: #F5F0E1;
  color: #000;
  padding: 20px 10px;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  gap: 20px;
}

.footer-logo a img {
  width: 70px;
  height: 70px;
  margin-bottom: 10px;
}

.footer-links ul,
.footer-social ul,
.footer-legal ul {
  list-style: none;
  padding: 0;
  text-align: center;
}

.footer-links ul li,
.footer-social ul li,
.footer-legal ul li {
  margin-bottom: 8px;
}

.footer-links a,
.footer-legal a {
  color: #000;
  text-decoration: none;
}

.footer-links a:hover,
.footer-legal a:hover {
  text-decoration: underline;
}

.footer-social img {
  width: 30px;
  margin: 0 5px;
}

.footer-contacts p {
  margin: 5px 0;
}

.footer-contacts p a {
  text-decoration: none;
  color: #000;
}

.footer-copyright {
  margin-top: 15px;
  opacity: 0.7;
}

.footer ul li a,
.footer p,
.footer-legal p,
.footer-legal ul li a {
  font-size: 22px;
}

@media (min-width: 600px) {
  .footer-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    text-align: left;
  }

  .footer-logo {
    flex-basis: 100%;
    text-align: center;
  }

  .footer-links,
  .footer-social,
  .footer-contacts,
  .footer-legal {
    flex-basis: 25%;
    text-align: center;
  }

  .footer-social img {
    width: 35px;
  }

  .footer-legal ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
  }
}

@media (min-width: 1024px) {
  footer {
    padding: 30px 0 10px;
  }

  .footer-container {
    flex-direction: row;
    justify-content: space-around;
    text-align: left;
  }

  .footer-logo {
    flex-basis: auto;
    text-align: left;
  }

  .footer-links,
  .footer-social,
  .footer-contacts,
  .footer-legal {
    flex-basis: auto;
    text-align: left;
  }

  .footer-links ul,
  .footer-legal ul {
    text-align: left;
  }

  .footer-links a,
  .footer-legal a {
    font-size: 15px;
  }

  .footer-copyright {
    font-size: 14px;
    text-align: center;
  }
}

/* FOOTER */

/* COOKIE */
.cookie-banner {
  position: fixed;
  z-index: 9999;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  color: white;
  transition: transform 0.4s ease-in-out;
}

.cookie-banner.hidden {
  transform: translateY(100%);
}

#cookie-toggle {
  width: 35px;
  height: 35px;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: -55px;
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px;
}

.cookie-content p {
  margin: 0 10px 10px 0;
}

.cookie-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cookie-buttons button {
  padding: 8px 14px;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 14px;
  background: #333;
  color: white;
}

#accept-cookies {
  background: #4CAF50;
}

#decline-cookies {
  background: #D9534F;
}

#open-popup {
  color: #ffb84d;
  cursor: pointer;
}

.cookie-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 10000;
  width: 350px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 10px;
  text-align: center;
  overscroll-behavior: contain;
}

.cookie-popup-content label {
  text-align: left;
  padding-left: 15px;
}

.cookie-popup::-webkit-scrollbar {
  width: 10px;
  background: transparent;
}

.cookie-popup::-webkit-scrollbar-thumb {
  background: rgb(0, 0, 0, 0.8);
  border-radius: 10px;
  transition: background 0.3s ease-in-out;
}

.cookie-popup h2 {
  margin-bottom: 10px;
}

.cookie-popup label {
  display: block;
  margin: 10px 0;
}

.popup-buttons {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.popup-buttons button {
  padding: 8px 12px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  font-size: 14px;
}

#save-cookies {
  background: #4CAF50;
  color: white;
}

#close-popup {
  background: #D9534F;
  color: white;
}

@media (max-width: 768px) {
  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    flex-direction: row;
    position: static;
    margin-top: 10px;
  }

  .cookie-popup {
    width: 90%;
    max-height: 70vh;
  }
}

/* COOKIE */