/* 🔧 Reset e impostazioni generali */
* {
  box-sizing: border-box;
}
body {
  background-color: #fff5f5;
  font-family: Arial, sans-serif;
  color: #dc2624;
  text-align: center;
  margin: 0;
}

.user-info {
  padding-bottom: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.user-email {
  color: white;
  font-weight: bold;
  font-size: 14px;
  margin: 0;
}

.link-item {
  display: block;
  margin-bottom: 8px;
}

.hamburger {
  font-size: 24px;
  cursor: pointer;
  background-color: #dc2624;
  color: white;
  border-radius: 6px;
}

@media (max-width: 600px) {
  .sidebar {
    width: 70%;
    border-radius: 5px;
    max-height: 600px;
    overflow-y: auto;

  }
}

.sidebar.slide-in {
  position: fixed;
  top: 0;
  left: -600px;
  transition: left 0.3s ease;
  z-index: 999;
  border-radius: 5px;
  /* Rimosso l'altezza fissa */
  min-height: 100vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Aggiunto per lo scorrimento su dispositivi touch */


}


.sidebar.slide-in.active {
  left: 0;
}

/* ✅ Annunci pubblicitari */
.ad-container {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex; /* ⚡ Abilita Flexbox per centrare */
    justify-content: center; /* ⚡ Centra l'elemento figlio (l'iframe) */
    text-align: initial; /* Rimuovi l'allineamento testo, gestito da Flexbox */
}

@media (max-width: 768px) {
    .ad-container iframe {
        transform: scale(calc(100vw / 728));
        transform-origin: center; /* Centra la scalatura */
    }
}

/* 🔴 Header ciliegia a 3 colonne */
.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background-color: #dc2624;
  padding: 12px 28px;
  border-radius: 0 0 20px 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(177, 14, 14, 0.6);}

/* 🔵 Logo a sinistra */
.nav-left {
  flex: 0 0 auto;
}

.nav-left .logo {
  display: inline-block;
  width: 120px;
  height: auto;
  margin-left: 20px;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.6));

}

.nav-left .logo:hover{
  transform: scale(1.08);
}

/* 🔴 Titolo al centro */
.nav-center {
  flex: 1 1 auto;
  text-align: left;
}
.nav-center .site-title {
  font-size: 30px;
  color: white;
  margin-left: 8px;
  margin-bottom: 53px;
  margin-top: 1px;
}

/* ⚪ Link utente a destra */
.nav-right {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-right a {
  display: inline-block;
  color: white;
  text-decoration: none;
  font-weight: bold;
  padding: 6px 10px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease-out, text-shadow 0.2s ease-out;

}

.nav-right a:hover {
  background-color: #dc2624;
  border-radius: 6px;
  transform: scale(1.2);
  text-shadow: 1px 1px 2px rgb(122, 39, 39);

}

/* Icon Home */
.home-icon {
  display: inline-block;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.6));
}

.home-icon:hover {
  transform: scale(1.2);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Icon Hamburger in topbar */
.hamburger-top {
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.6));
  display: inline-block;
  transition: transform 0.2s ease-out, text-shadow 0.2s ease-out;
  margin-left: 1px;
  margin-right: 10px;
}

.hamburger-top:hover {
  background-color: #dc2624;
  border-radius: 6px;
  transform: scale(1.2);
  }

.download-banner:hover {
  transform: scale(1.05);
}


/* ✅ Input principale */
.link-input {
  width: 100%;
  max-width: 400px;
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  margin: 8px auto;
  display: block;
}

/* ✅ Form per accorciare */
.shorten-form {
  display: flex;
  justify-content: center;
  margin: 20px auto;
}

.input-wrapper {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  border-radius: 50px;
  background-color: white;
  box-shadow: 0 0 0 1px #ccc;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.input-wrapper input {
  flex: 1;
  border: none;
  padding: 14px 60px 14px 20px;
  border-radius: 50px;
  font-size: 16px;
  outline: none;
  background: transparent;
}

.input-wrapper button {
  background-color: #dc2624;
  color: white;
  padding: 0 25px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 0 50px 50px 0;
  transition: background-color 0.3s ease;
}
.input-wrapper button:hover {
  background-color: #a81c1a;
}

.short-result {
  margin-top: 20px;
  font-size: 18px;
}

.copy-button {
  background-color: #dc2624;
  color: white;
  border: none;
  padding: 8px 12px;
  margin-left: 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

/* 🎯 Bottoni ciliegia */
.short-btn,
.short-button {
  padding: 10px 24px;
  font-size: 16px;
  background-color: #dc2624;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  display: block;
  margin: 16px auto;
  transition: background-color 0.3s ease;
}
.short-btn:hover,
.short-button:hover {
  background-color: #a81c1a;
}

/* 📦 Form a pillola */
.pill-form {
  max-width: 500px;      /* Limita la larghezza */
  margin: 60px auto;     /* Centra orizzontalmente */
  padding: 0 20px; 
  margin-top: 4px;      /* Spazio ai lati su schermi piccoli */
}

.pill-bar {
  display: flex;
  flex-direction: column;
  background-color: #f2f2f2;
  border-radius: 50px;
  padding: 20px 24px;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  gap: 10px;
}
.pill-bar input {
  width: 100%;
  border: 2px solid #dc2624;
  padding: 14px 20px;
  font-size: 16px;
  background: transparent;
  outline: none;
  border-radius: 30px;
  color: #a00000;
}
.pill-bar input::placeholder {
  font-size: 15px;
  color: #a00000;
}
.pill-bar button {
  background-color: #dc2624;
  color: white;
  border: none;
  padding: 14px 24px;
  font-size: 17px;
  cursor: pointer;
  border-radius: 30px;
  transition: background-color 0.3s ease;
}
.pill-bar button:hover {
  background-color: #a81c1a;
}


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

.popup-content {
  background: #fff;
  padding: 25px 20px;
  border-radius: 15px; /* più arrotondato */
  width: 320px;
  text-align: center;
  position: relative;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.popup-content h3 {
  margin-bottom: 15px;
  color: #dc2624;
  font-size: 1.2em;
}

.popup-content input[type="email"] {
  width: 90%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 25px; /* stile pill */
  font-size: 1em;
  outline: none;
}

.popup-content button[type="submit"] {
  background-color: #dc2624;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 20px;
  cursor: pointer;
}


/* Pulsanti Download in stile pill download */
.download-btn {
  background-color: #dc2624;
  color: white;
  border: none;
  padding: 14px 24px;
  font-size: 17px;
  cursor: pointer;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.download-btn:hover {
  background-color: #a81c1a;
}


/* 🧾 Dashboard layout */
.dashboard-container {
  display: flex;
  max-width: 1000px;
  margin: 40px auto;
  align-items: flex-start; /* ✅ Aggiungi questa linea */
}
.sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* spinge “Contact Us” in basso */
  height: 100vh;
  padding: 30px 20px;
  background-color: #dc2624; /* rosso scuro */ 
}

.sidebar a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.sidebar a:hover {
  color: #ffcccb; /* rosso chiaro al passaggio */
}

.link-list li {
  padding: 10px;
  border-bottom: 1px solid #ffffff33;
  cursor: pointer;
  color: white;
  transition: background-color 0.2s ease;
}
.link-list li:hover {
  background-color: #ffe5e5;
}
.editor-panel {
    flex-grow: 1;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra il contenuto del pannello */
    margin: 0;
}

.editor-panel form {
  width: 100%;
  max-width: 400px; /* ✅ Aggiungi questa linea */
}

/* 🧼 Banner */
.banner {
  margin: 20px 0;
  background-color: #ffe5e5;
  padding: 10px;
}

/* 🍪 Cookie */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: #dc2624;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cookie-banner button {
  background-color: white;
  color: #dc2624;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.nav-center a {
  text-decoration: none;
  color: inherit;
}
.nav-center a:visited {
  color: inherit;
}

.sidebar ul li {
  margin-bottom: 12px;
  font-size: 16px;
}
.sidebar ul li a {
  color: white;
  text-decoration: none;
}

  @media screen and (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 1.5rem;
  }

  .editor-panel {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }

}

  .sidebar a {
    font-size: 16px;
    margin: 10px 0;
  }

  .sidebar .bottom-link {
    margin-top: auto;
  }

  .pill-bar input[type="url"],
  .pill-bar input[type="text"],
  .pill-bar button {
    font-size: 15px;
    padding: 8px 10px;
    width: 100%;
    margin-top: 0.5rem;
    box-sizing: border-box;
  }

  .button-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

/* 📱 Responsive mobile */
@media (max-width: 768px) {
  .top-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 16px;
  }
  .nav-left .logo {
    width: 120px;
    text-align: center;
  }
  .nav-center .site-title {
    font-size: 10px;
    text-align: center;
  }
  .nav-right {
    justify-content: space-evenly;
    font-size: 13px;
    gap: 10px;
  }
}

button,
input[type="submit"] {
  padding: 10px 24px;
  font-size: 16px;
  background-color: #dc2624;
  color: white;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
  background-color: #a81c1a;
}

/* Rimuove sottolineature da tutti i link */
a {
  text-decoration: none;
  border-bottom: none;
}

/* Rimuove sottolineature anche da <strong>, <em>, <p> se presenti */
strong, em, p {
  text-decoration: none;
}

/* Se usi classi specifiche per i link, puoi aggiungere anche queste */
a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
  border-bottom: none;
}

.short-btn.qr {
  margin-top: 5px;
  padding: 6px 14px;
  font-size: 14px;
  border-radius: 30px;
  display: inline-block;
  margin: 8px auto;
  max-width: 140px; /* Limita larghezza */
  white-space: nowrap; /* Evita che vada a capo */
}




