body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  background-color: #f5f5f5;
}

/* Navbar */
.navbar {
  background-color: white;
  padding: 10px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  border-bottom: 2px solid #ddd;
  gap: 15px;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  text-decoration: none;
  color: #0078d4;
  margin-right: auto;
}

.theme-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  margin-right: 10px;
  color: #333;
  transition: transform 0.3s ease;
}

.theme-btn:hover {
  transform: rotate(20deg);
}

.nav-links {
  display: flex;
  gap: 15px;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropbtn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  padding: 8px 12px;
}

.arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.dropdown.active .arrow {
  transform: rotate(180deg);
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  border: 1px solid #ddd;
  min-width: 150px;
  z-index: 100;
}

.dropdown-content a {
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

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

.dropdown.active .dropdown-content {
  display: block;
}

/* Galleria */
.gallery {
  text-align: center;
  margin-top: 40px;
}

.zoom-img {
  width: 200px;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.zoom-img:hover {
  transform: rotate(-1deg) scale(1.07);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

/* 🌗 Modalità scura */
body.dark-mode {
  background-color: #1c1c1c;
  color: #f0f0f0;
}

body.dark-mode .navbar {
  background-color: #2c2c2c;
  border-bottom: 2px solid #444;
}

body.dark-mode .logo {
  color: #50b7f5;
}

body.dark-mode .dropbtn,
body.dark-mode .dropdown-content a {
  color: #f0f0f0;
}

body.dark-mode .dropdown-content {
  background-color: #333;
  border-color: #555;
}

body.dark-mode .dropdown-content a:hover {
  background-color: #444;
}

/* 🚨 Popup uscita */
.exit-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 200;
}

.exit-popup {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.exit-popup.entrata {
  animation: popupEntrance 0.6s ease-out forwards;
}

.exit-popup.uscita {
  animation: popupExit 0.6s ease-in forwards;
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.popup-buttons button {
  padding: 8px 18px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.exit-confirm {
  background-color: #0078d4;
  color: white;
}

.exit-confirm:hover {
  background-color: #005fa3;
}

.exit-cancel {
  background-color: #eee;
}

.exit-cancel:hover {
  background-color: #ccc;
}

@keyframes popupEntrance {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  60% {
    transform: scale(1.05);
    opacity: 1;
  }
  80% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.97);
  }
}

@keyframes popupExit {
  0% {
    transform: scale(0.97);
    opacity: 1;
  }
  40% {
    transform: scale(1.03);
  }
  100% {
    transform: scale(0.6);
    opacity: 0;
  }
}

body.dark-mode .exit-popup {
  background-color: #2c2c2c;
  color: #f0f0f0;
}

body.dark-mode .exit-confirm {
  background-color: #50b7f5;
  color: #1c1c1c;
}

body.dark-mode .exit-confirm:hover {
  background-color: #3498db;
}

body.dark-mode .exit-cancel {
  background-color: #444;
  color: #fff;
}

body.dark-mode .exit-cancel:hover {
  background-color: #666;
}

/* 🟡 Barra WIP */
.wip-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fffbe6;
  border-bottom: 1px solid #ddd;
  padding: 10px 20px;
  font-size: 1rem;
  color: #444;
}

.notice-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: #666;
  transition: transform 0.3s ease;
}

.notice-close:hover {
  transform: rotate(90deg);
}

body.dark-mode .wip-notice {
  background-color: #333;
  color: #eee;
  border-color: #444;
}

body.dark-mode .notice-close {
  color: #aaa;
}

@keyframes slideUpFade {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-100%);
    opacity: 0;
  }
}

.wip-notice.slide-up {
  animation: slideUpFade 0.6s ease forwards;
}

.nav-link-text {
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
  transition: color 0.3s ease;
}

.nav-link-text {
  font-size: 1rem;
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  height: 25px;
  box-sizing: border-box;
  vertical-align: middle;
}

.navbar .nav-link-text {
  margin-top: 2px;
}

body.dark-mode .nav-link-text {
  color: #f0f0f0;
}

.homepage-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 60px 20px;
  background-color: #fafafa;
}

.hero-visual {
  flex: 1 1 300px;
  text-align: center;
}

.hero-content {
  flex: 1 1 300px;
  font-size: 1.2rem;
  color: #333;
}

body.dark-mode .hero-content {
  color: #ddd;
}

.png-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 60px 20px;
  align-items: center;
}

.reversed-layout {
  flex-direction: row-reverse;
}

.png-visual {
  flex: 0 0 220px;
  height: 420px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bordered-img {
  border: 2px solid #aaa;
  border-radius: 12px;
  padding: 8px;
  background-color: #f9f9f9;
}

.png-img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.png-content {
  flex: 1;
  font-size: 1.1rem;
  color: #222;
}

.bordered-text .png-content {
  border: 2px solid #ccc;
  border-radius: 12px;
  background-color: #fff;
  padding: 20px;
}

body.dark-mode .bordered-img {
  border-color: #666;
  background-color: #333;
}

body.dark-mode .bordered-text .png-content {
  border-color: #666;
  background-color: #222;
  color: #ddd;
}olor: #ddd;
}

/* Blocco con layout immagine a destra */
.reversed-layout {
  flex-direction: row-reverse;
}

/* Text box vicino al bordo sinistro */
.left-tight {
  padding-left: 0;
  margin-left: 0;
}

/* Bordo per contenuto testuale */
.bordered-text .png-content {
  border: 2px solid #ccc;
  border-radius: 12px;
  background-color: #fff;
  padding: 20px;
}

/* Bordo per immagine */
.bordered-img {
  border: 2px solid #aaa;
  border-radius: 12px;
  padding: 8px;
  background-color: #f9f9f9;
} 

.intro-section {
  padding: 60px 20px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ccc;
}

.intro-box {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
}

.profile-pic {
  flex: 0 0 160px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2c2c2c;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nome-sotto {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.titolo-piccolo {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #222;
}

.intro-breve {
  font-size: 1.1rem;
  color: #555;
}

body.dark-mode .profile-img {
  border-color: #444;
}

body.dark-mode .nome-sotto,
body.dark-mode .titolo-piccolo,
body.dark-mode .intro-breve {
  color: #ddd;
}

body.dark-mode .intro-section {
  background-color: #1a1a1a;
}

.bot-showcase {
  display: flex;
  gap: 30px;
  padding: 40px 20px;
  align-items: center;
  justify-content: center;
}

.emoji-frame {
  width: 225px;
  height: 400px;
  border: 2px solid #aaa;
  border-radius: 12px;
  background-color: #f9f9f9;
  box-sizing: content-box; /* ← evita che il padding alteri le dimensioni */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* Immagine bot */
.bot-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1;
}

/* Emojis */
.emoji {
  position: absolute;
  font-size: 1.5rem;
  z-index: 0;
}

.swing-left {
  animation: swingL 3s ease-in-out infinite;
}
.swing-right {
  animation: swingR 4s ease-in-out infinite;
}

.emoji-frame .emoji:nth-child(1) { top: 20px; left: 25px; }
.emoji-frame .emoji:nth-child(2) { top: 50px; right: 25px; }
.emoji-frame .emoji:nth-child(3) { bottom: 60px; left: 30px; }
.emoji-frame .emoji:nth-child(4) { bottom: 30px; right: 30px; }

@keyframes swingL {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(6deg); }
}
@keyframes swingR {
  0%, 100% { transform: rotate(6deg); }
  50% { transform: rotate(-6deg); }
}

.content-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  flex: 1;
  padding: 20px;
  border: 2px solid #ccc;
  border-radius: 12px;
  background-color: #fff;
  box-sizing: border-box;
}

.bot-button {
  display: flex;
  justify-content: center; 
}

.invite-btn {
  padding: 12px 20px;
  background-color: #0078d4;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  margin: 0 auto;
}

.invite-btn:hover {
  background-color: #005fa3;
  transform: scale(1.05);
}

/* Dark mode */
body.dark-mode .emoji-frame {
  background-color: #222;
  border-color: #666;
}

body.dark-mode .content-wrap {
  background-color: #222;
  border-color: #666;
}

body.dark-mode .invite-btn {
  background-color: #50b7f5;
  color: #1c1c1c;
}

body.dark-mode .invite-btn:hover {
  background-color: #3498db;
}

.language-switcher {
  margin-left: 10px;
}

#language-select {
  font-size: 1rem;
  padding: 6px 10px;
  border: 2px solid #0078d4;
  border-radius: 6px;
  background-color: #fff;
  color: #0078d4;
  cursor: pointer;
  font-weight: bold;
}

#language-select:hover {
  background-color: #f0f8ff;
}

body.dark-mode #language-select {
  background-color: #222;
  color: #50b7f5;
  border-color: #50b7f5;
}

body.dark-mode #language-select:hover {
  background-color: #333;
}

.bot-button-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px; 
}

.invite-btn:hover {
  background-color: #005fa3;
  transform: scale(1.05);
}

/* Dark mode */
body.dark-mode .emoji-frame {
  background-color: #222;
  border-color: #666;
}

body.dark-mode .content-wrap {
  background-color: #222;
  border-color: #666;
}

body.dark-mode .invite-btn {
  background-color: #50b7f5;
  color: #1c1c1c;
}

body.dark-mode .invite-btn:hover {
  background-color: #3498db;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px;
}

.project-card {
  display: flex;
  align-items: center;
  background-color: #f0f0f0; /* Chiaro! */
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.project-icon {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  margin-right: 20px;
  border: 2px solid #ccc;
}

.project-info h2 {
  margin: 0;
  font-size: 1.5em;
  color: #333;
}

.project-info p {
  color: #555;
}

.project-link {
  display: inline-block;
  margin-top: 10px;
  color: #0077cc;
  text-decoration: none;
  font-weight: bold;
}

.project-link:hover {
  text-decoration: underline;
}

.project-link.disabled {
  color: #aaa;
  pointer-events: none;
}

.project-folder-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
}

.project-folder {
  display: flex;
  align-items: center;
  background-color: #eaeaea;
  border: 2px solid #ccc;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.project-folder:hover {
  background-color: #dcdcdc;
}

.folder-icon {
  width: 60px;
  height: 60px;
  margin-right: 15px;
}

.folder-info h2 {
  margin: 0;
  font-size: 1.3em;
  color: #333;
}

.folder-info p {
  margin: 5px 0 0;
  color: #555;
}

.project-header {
  text-align: center;
  padding: 20px;
}

.project-logo {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 10px;
}

.project-details {
  padding: 20px;
}

.project-details ul {
  list-style: none;
  padding: 0;
}

.project-details li {
  margin-bottom: 8px;
  font-size: 1.1em;
}

.project-status {
  padding: 20px;
  font-style: italic;
  color: #666;
}

.cyberbotty-header {
  text-align: center;
  padding: 30px;
}

.cyberbotty-icon {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.invite-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #00aaff;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.invite-btn:hover {
  background-color: #0088cc;
}

.cyberbotty-features {
  padding: 20px;
  background-color: #f9f9f9;
  border-top: 2px solid #ddd;
}

.cyberbotty-features ul {
  list-style: none;
  padding: 0;
}

.cyberbotty-features li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.cyberbotty-status {
  padding: 20px;
  font-style: italic;
  color: #666;
}