@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;
}

a {
  color: #000;
}

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

/* 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 */

/* FORM */
option , select , a {
  color: #000;
}

.intro {
  max-width: 90%;
  margin: 90px auto 0;
  text-align: center;
  font-size: 30px;
}

.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 40px auto 0px;
  padding-top: 50px;
  background-color: #fff;
}

.form-container {
  margin: 0 auto;
  max-width: 90%;
}

.form-grid div {
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
}

.artist {
  color: #555;
  margin: 10px 0 10px;
}

label {
  font-weight: bold;
  margin: 30px 0 5px 5px;
  font-size: 1.32rem;
  color: #444;
}

label p {
  display: inline;
  color: #888;
  font-size: 16px;
}

input,
select,
textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1.2rem;
}

input:focus {
  outline: none;
}

input[type="radio"] {
  width: auto;
  margin-right: 8px;
  width: 18px;
  height: 18px;
}

input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
  width: 18px;
  height: 18px;
}

.checkbox-group {
  display: flex;
  align-items: left;
  flex-direction: column;
  gap: 10px;
}

textarea {
  resize: vertical;
  margin-bottom: 15px;
}

.submit {
  padding: 10px;
  background-color: transparent;
  color: #000;
  border: 1px solid black;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.5rem;
  width: 250px;
  margin: 40px auto 15px;
}

.submit:hover {
  background-color: #000;
  color: #fff;
}

@media (min-width: 768px) {
  .container {
    flex-direction: column;
    gap: 20px;
  }

  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 0 auto;
  }

  .form-grid div {
    margin-bottom: 0px;
  }

  .intro {
    font-size: 38px;
    margin: 150px auto 0;
  }

  .first-name input {
    margin-top: 40px;
  }
}

/* Contenitore FAQ */
.faq-container {
  background-color: #f5f0e1;
  text-align: center;
}

.faq-container h2 {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin: 15px 0 15px 0;
}

.accordion1 {
  display: flex;
  flex-direction: column;
}

.accordion1 li {
  list-style: none;
}

.accordion1 input {
  display: none;
}

.accordion1 label {
  font-weight: bold;
  font-size: 1.2rem;
  cursor: pointer;
  display: block;
}

.accordion1 .content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease-in-out;
  font-size: 1rem;
  line-height: 1.5;
  padding: 0 15px;
}

.accordion1 input:checked+label+.content {
  max-height: 500px;
  opacity: 1;
}

@media (min-width: 768px) {
  .accordion1 label {
    font-size: 1.3rem;
  }
}

.invalid {
  border: 2px solid red;
}

.error-message {
  color: red;
  font-size: 0.875em;
  margin-top: 5px;
  display: none;
}

.error-message.active {
  display: block;
}

/* POPUP DI CONFERMA PAGAMENTO */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.3),
    0px 5px 15px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.5s ease-in-out;
  max-width: 400px;
  width: 90%;
}

.popup-content h2 {
  color: black;
  font-size: 22px;
  margin-bottom: 10px;
}

.popup-content p {
  color: #555;
  font-size: 16px;
  margin-bottom: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.loader {
  width: 30px;
  height: 30px;
  border: 4px solid #ccc;
  border-top: 4px solid black;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* POPUP DI CONFERMA PAGAMENTO */
/* FORM */

/* 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 */