
.status-badge {
  position: absolute;
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background-color: #28a745; /* Verde attivo */
  border: 1px solid white; /* Bordo per separarlo dall'icona */
  border-radius: 50%;
}

/* Variabili CSS */
:root {
  /* 🎨 Colori Principali */
  --primary: #8a1ea8;
  --primary-dark: #5a1766;
  --primary-light: #9370db;
  --accent: #ffc400;

  /* 🖋️ Testo */
  --text-primary: #000000;
  --text-secondary: #2f2f2f;
  --text-light: #ffffff;

  /* ⚠️ Stati (Success, Warning, Error) */
  --success: #28a745;
  --warning: #ffcc00;
  --error: #ff0000;

  /* 🎭 Hover & Effetti */
  --primary-hover: #6b157f;
  --accent-hover: #e6ac00;

  --shadow-light: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 6px 15px rgba(0, 0, 0, 0.3);
  --shadow-strong: 0 12px 25px rgba(0, 0, 0, 0.5);
}

body {
  margin: 0;
  color: var(--text-primary);
}

main {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/*******************************************/
/* Componenti */
.menu-bar {
  display: flex;
  flex-direction: row;
  gap: 25px;
  padding: 10px;
  background-color: #f4f7fa;
  border: 1px solid #dfdddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 600;
  border: 2px solid #d4d0d069;
  border-radius: 50px;
  background-color: #ffffff;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: #f0f0f0;
  transform: translateY(-1px); /* Movimento verso l'alto */
}

.close-icon {
  position: absolute;
  top: -8px;
  right: 8px;
  cursor: pointer;
  font-size: 30px;
  color: var(--error) !important;
  text-decoration: none !important;
  border-bottom: none !important;
}

.close-icon:hover {
  color: red !important;
}

.back-button {
  display: flex;
  width: fit-content;
  padding: 8px 10px;
  font-weight: bold;
  align-items: center;
  background-color: transparent;
  border: 2px solid var(--primary);
  border-radius: 25px;
  cursor: pointer;
  font-size: inherit;
  transition: background-color 0.3s, color 0.3s;
}

.back-button:hover {
  background-color: var(--primary);
  color: white;
}

.back-button svg {
  width: calc(var(--spacing-unit) * 2);
  height: calc(var(--spacing-unit) * 2);
  margin-right: var(--spacing-unit);
  fill: currentColor;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  position: relative;
  background-color: #fff;
  max-width: 600px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


.dropdown-content a {
  color: #333;
  padding: 12px 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-content a svg,
.dropdown-content a img {
  margin-right: 10px;
  width: 32px;
  height: 24px;
  flex-shrink: 0;
}

.dropdown-content a span {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
  color: #7c3aed;
}


.tooltip {
  visibility: hidden;
  width: auto;
  min-width: 80px;
  background-color: #000000a1;
  color: #fff;
  text-align: center;
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 0.5em;
  position: absolute;
  z-index: 1;
  transform: translateY(-120%) translateX(-105%);
  opacity: 0;
  transition: opacity 0.3s;
}

.favorite-icon:hover .tooltip,
.flag-icon:hover .tooltip,
.print-icon:hover .tooltip,
.share-icon:hover .tooltip {
  visibility: visible;
  opacity: 1;
}

.container {
  display: flex;
  flex-direction: column;
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  margin-right: auto;
  margin-left: auto;
  max-width: 1100px;
  width: 100%;
  box-shadow: 0 4px 20px rgba(138, 43, 226, 0.15);
  color: black;
  line-height: 1.6;
  transition: all 0.3s ease;
  position: relative;
}

.container:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(138, 43, 226, 0.2);
}

.container h1 {
  color: var(--primary-dark);
  margin: 1rem 0 1rem; /* Maggiore margine sopra */
  font-weight: 700; /* Più peso per l'H1 */
  font-size: 2.5rem; /* Aumentare la dimensione del carattere */
}

.container h2 {
  color: var(--primary-dark);
  margin: 1.5rem 0 0.75rem;
  font-weight: 600;
  font-size: 2rem;
}

.container h3 {
  color: var(--primary-dark);
  margin: 0;
  font-weight: 500;
  font-size: 1.75rem;
}

.container p {
  font-size: 1.1rem;
  margin-block-start: 0;
}

.container a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--primary);
  transition: all 0.2s ease;
}

.container a:hover {
  color: var(--primary-dark);
}

textarea {
  width: 100%;
  min-height: 100px;
  max-height: 300px;
  resize: vertical;
  overflow-y: auto;
  padding: 10px;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.messages {
  padding: 10px;
  margin-bottom: -20px;
  width: fit-content;
}

.alert {
  padding: 12px 16px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-success {
  background-color: #d1f3d9;
  border: 1px solid #34c759;
  color: #0a541e;
}

.alert-danger {
  background-color: #fee2e2;
  border: 1px solid #ef4444;
  color: #841717;
}

.alert-error {
  background-color: #fee2e2;
  border: 1px solid #ef4444;
  color: #841717;
}
/*******************************************/

.cookie-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 300px;
  background-color: var(--primary);
  color: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  text-align: center;
  animation: floatIn 0.5s ease-out;
}

.cookie-bar p {
  margin: 0 0 15px;
  font-size: 16px;
  line-height: 1.5;
  color: white;
}

.cookie-bar .buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  cursor: pointer;
}

.cookie-bar button {
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cookie-consent__accept {
  background-color: var(--accent);
  color: var(--primary-dark);
}

.cookie-consent__accept:hover {
  background-color: #ffeb3b;
  transform: translateY(-2px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cookie-consent__decline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.cookie-consent__decline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.cookie-bar a {
  color: #ffd700;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.cookie-bar a:hover {
  color: #ffeb3b;
  text-decoration: underline;
}

@keyframes floatIn {
  from {
    transform: translate(-50%, 100%);
    opacity: 0;
  }
  to {
    transform: translate(-50%, 0);
    opacity: 1;
  }
}

.with-cookie-bar {
  padding-bottom: 100px;
}

/*******************************************/








/* Stile del pulsante di chiusura */
.close {
  color: white;
  font-size: 55px;
  cursor: pointer;
  border: none;
  display: flex;
  padding: 18px 52px;
  align-items: center;
  position: relative;
  float: right;
}



/**********************************************/


/**********************************************/

@media screen and (max-width: 639px), screen and (max-height: 400px) {
  .container h1 {
    font-size: 2rem;
  }
  .container h2 {
    font-size: 1.75rem;
  }
  .container h3 {
    font-size: 1.5rem;
  }
  .cookie-bar {
    width: 95%;
    bottom: 10px;
    padding: 15px;
  }
  .cookie-bar p {
    font-size: 14px;
  }
  .cookie-bar .buttons {
    flex-direction: column;
  }
  .cookie-bar button {
    width: 100%;
  }
  .container {
    padding: 1.5rem;
  }
}
