@import url('https://fonts.googleapis.com/css2?family=Pirata+One&family=Poppins:wght@300;500&display=swap');

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

/* BODY GLOBALE */
body {
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  background: radial-gradient(circle at center, #0b0d1a 0%, #000000 90%);
  text-align: center;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* 🌌 Sfondo stellato dinamico */
.stars,
.twinkling {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  pointer-events: none;
}



@keyframes moveStars {
  from { background-position: 0 0; }
  to { background-position: -10000px 5000px; }
}

@keyframes moveTwinkling {
  from { background-position: 0 0; }
  to { background-position: 10000px -5000px; }
}

/* ❄️ Effetto neve */
.snow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}
.snow-container::before,
.snow-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 1.5px, transparent 1.5px) 0 0 / 50px 50px,
              radial-gradient(circle, rgba(255, 255, 255, 0.4) 1px, transparent 1px) 0 0 / 30px 30px;
  animation: snow 20s linear infinite;
  opacity: 0.6;
}
.snow-container::after {
  animation-delay: 10s;
  transform: scale(1.3);
}
@keyframes snow {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* CONTAINER PRINCIPALE */
.container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  width: 100%;
  z-index: 5;
  padding: 20px;
}

/* HEADER */
.logo {
  max-width: 160px;
  margin-top: 10px;
  animation: pulse 2.5s infinite;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.9; }
}

/* PROFILO */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.profile-image {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background-image: url('img_amore.jpg');
  background-size: cover;
  background-position: center;
  border: 2px solid #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  transition: transform 0.3s ease;
}
.profile-image:hover { transform: scale(1.05); }

.ceo {
  font-family: 'Pirata One', cursive;
  font-size: 1.2rem;
  color: #ffd700;
  letter-spacing: 1px;
}

/* TITOLO */
h1 {
  font-family: 'Pirata One', cursive;
  font-size: 3.5rem;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
  margin: 20px 0 10px;
}

/* SOTTOTITOLO */
.subtitle {
  font-size: 1.2rem;
  color: #ffffffcc;
  margin-bottom: 30px;
  font-weight: 300;
  line-height: 1.5;
}

/* ANNUNCIO */
.announcement {
  font-size: 1.3rem;
  text-decoration: none;
  color: #fff;
  margin: 10px auto;
  display: inline-block;
  line-height: 1.6;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease;
}
.announcement:hover {
  transform: scale(1.05);
  color: #ffd700;
}

/* APP STORE */
.app-store-link {
  margin: 15px 0;
}
.app-store-icon {
  width: 140px;
  transition: transform 0.3s ease;
}
.app-store-icon:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

/* 🌍 SEZIONE ABOUT */
.about {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 25px 20px;
  max-width: 750px;
  margin: 30px auto;
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.08);
  backdrop-filter: blur(5px);
}
.about h2 {
  font-family: 'Pirata One', cursive;
  color: #ffd700;
  font-size: 1.8rem;
  margin-bottom: 15px;
}
.about p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #ffffffcc;
}

/* SOCIAL ICONS */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0 10px;
}
.social-icon {
  font-size: 1.6rem;
  color: #ffffffcc;
  transition: transform 0.3s ease, color 0.3s ease;
}
.social-icon:hover {
  transform: scale(1.2);
  color: #ffd700;
}

/* PRIVACY / TERMINI */
.privacy-policy {
  color: #ffd700;
  font-size: 1rem;
  text-decoration: none;
  margin-top: 5px;
  display: block;
}
.privacy-policy:hover { color: #ffcc33; }

/* FOOTER */
footer {
  font-size: 0.9rem;
  color: #ffffffaa;
  margin-top: 20px;
}
footer .tagline {
  color: #ffd700;
  font-family: 'Pirata One', cursive;
  font-size: 1rem;
  margin-top: 5px;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 9999;
  font-family: 'Poppins', sans-serif;
  color: #fff;
}

.cookie-bar {
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  flex-wrap: wrap;
}
.cookie-bar p {
  margin: 0;
  font-size: 0.9rem;
  flex: 1 1 auto;
}
.bar-buttons {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  margin-top: 10px;
}

.cookie-btn {
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 4px;
  font-family: 'Pirata One', cursive;
  transition: background-color 0.3s ease;
}
.primary-btn {
  background: #ffd700;
  color: #333;
}
.primary-btn:hover { background: #ffcc33; }
.secondary-btn {
  background: #555;
  color: #fff;
}
.secondary-btn:hover { background: #444; }

/* OPZIONI COOKIE */
.options-panel {
  background: #222;
  color: #fff;
  position: fixed;
  left: 0;
  bottom: -100%;
  width: 100%;
  max-height: 70%;
  overflow-y: auto;
  transition: bottom 0.5s ease;
  padding: 20px;
  border-top: 2px solid #ffd700;
  border-radius: 10px 10px 0 0;
}
.options-panel.visible { bottom: 0; }

.options-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.options-header h2 {
  font-size: 1.3rem;
  color: #ffd700;
}
.close-panel-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #ffd700;
  cursor: pointer;
}

.cookie-category {
  background: #333;
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 15px;
}
.category-label {
  font-size: 1rem;
  color: #ffd700;
  margin-bottom: 5px;
}
.category-desc {
  font-size: 0.9rem;
  color: #ddd;
  margin-bottom: 10px;
}

/* Toggle */
.toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 50px;
  height: 25px;
}
.toggle-input { display: none; }
.toggle-slider {
  position: relative;
  background: #ccc;
  border-radius: 25px;
  width: 100%;
  height: 100%;
  cursor: pointer;
  transition: background 0.3s ease;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 19px;
  height: 19px;
  background: #333;
  border-radius: 50%;
  transition: transform 0.3s ease;
}
.toggle-input:checked + .toggle-slider { background: #00bfff; }
.toggle-input:checked + .toggle-slider:before { transform: translateX(25px); }

.cookie-buttons {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.cookie-link-info {
  text-align: right;
  font-size: 0.8rem;
  margin-top: 10px;
}
.cookie-link-info a {
  color: #ffd700;
  text-decoration: underline;
}
.cookie-link-info a:hover { color: #ffcc33; }
