/* =========================
  Variabili
========================= */
:root {
  --bg: #0b0f17;
  --bg-soft: #0f1420;
  --panel: rgba(18, 23, 35, 0.75);
  --panel-strong: rgba(18, 23, 35, 0.92);
  --text: #E8EFF8;
  --muted: #b9a8d9;
  --brand: #a855f7;
  --brand-2: #c084fc;
  --accent: #5df0bc;
  --danger: #ff5757;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius: 16px;
  --border: rgba(255,255,255,0.1);
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --panel: rgba(255, 255, 255, 0.85);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --text: #2d3436;
  --muted: #636e72;
  --brand: #9333ea;
  --brand-2: #c084fc;
  --accent: #00b894;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --border: rgba(0,0,0,0.05);
}

/* =========================
  Stili Base
========================= */
* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: #a855f7 #282828;
}
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  padding-top: 70px;
}
a { color: inherit; text-decoration: none; }
.container {
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
}

/* =========================
  Navbar
========================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99999;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel) 100%);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-links {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: space-between;
  position: relative;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-links a {
  padding: 8px 12px;
  opacity: .85;
  font-weight: 400;
  transition: background-color .2s, border-radius .2s, opacity .2s;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  white-space: nowrap;
}
.nav-left > a:hover,
.dropdown > a:hover {
  opacity: 1;
  background-color: rgb(7, 9, 15);
  border-radius: 6px;
}
.nav .active { color: #c084fc; opacity: 1; }
.mobile-menu-btn { display: none; }

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  padding: 0 18px 0 0 !important;
  margin-right: 6px;
}
.nav-logo img { height: 48px; width: auto; display: block; }
.nav-logo-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .3px;
}
.nav-logo-text span { color: var(--brand); }

/* Bottone Negozio evidenziato, in stile "Negozio" dell'immagine di riferimento */
.nav-store-btn {
  background: var(--brand) !important;
  color: #fff !important;
  border-radius: 8px !important;
  opacity: 1 !important;
  font-weight: 600 !important;
}
.nav-store-btn:hover {
  background: var(--brand-2) !important;
  border-radius: 8px !important;
}

/* Gruppo a destra: tema, accesso, versione */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: background-color .2s, transform .2s;
  text-decoration: none;
}
.nav-icon-btn:hover { background: rgba(255,255,255,.08); }

/* Bottone Accedi */
.nav-login {
  width: auto;
  height: auto;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.nav-login i { font-size: 15px; }
.nav-login:hover { background: var(--brand-2); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-content {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background-color: rgba(22, 30, 53, 0.95);
  min-width: 240px;
  padding: 12px 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(15px);
  z-index: 1000;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transition: opacity .2s, transform .2s;
  display: block;
  pointer-events: none;
}
.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
.dropdown-content::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 10px;
  background: transparent;
}
.dropdown-item {
  text-align: center;
  padding: 10px 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background-color .2s;
}
.dropdown-item i { margin-right: 12px; text-align: center; }
.dropdown-divider {
  height: 1px;
  background-color: var(--border);
  margin: 8px 0;
}
#themeToggle {
  margin-left: auto;
  font-size: 20px;
  transition: all 0.3s;
  transform-origin: center;
  border: none;
  background-color: transparent;
}
#themeToggle:hover { transform: scale(1.1); }
#themeToggle:active { transform: scale(0.95); }
#themeToggle i { transition: color 0.3s; }
[data-theme="light"] #themeToggle i { animation: pulseMoon 0.5s; }
:not([data-theme="light"]) #themeToggle i { animation: rotateSun 0.4s; }

/* =========================
  Sezione Hero
========================= */
.hero {
  position: relative;
  padding: 48px 0 24px;
}
.hero-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.06);
}
.hero-wrap::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-image: url('img/bg.png');
  background-size: cover;
  background-position: center;
  filter: blur(8px) brightness(0.8);
  z-index: 0;
}
.hero-content {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
  padding: 32px;
  text-align: center;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 25px;
  border-radius: 999px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  margin: 0 12px;
  color: white;
}
.hero img { width: min(250px, 60vw); }
.hero-blur {
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 300px at 50% 100%, rgba(168, 85, 247, 0.28), transparent 60%);
  pointer-events: none;
}

/* =========================
  Bottoni
========================= */
.pill {
  color: white;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--panel-strong);
  font-size: 13px;
}
.cta {
  z-index: 10;
  padding: 16px 35px;
  font-size: 22px;
  font-weight: 600;
  border-radius: 5px;
  background: transparent;
  border: 1px solid white;
  color: #ffffff;
  cursor: pointer;
  transition: all .2s;
  margin: 0 40px;
}
.cta:hover {
  background-color: white;
  color: black;
  box-shadow: 0 12px 24px rgba(0,0,0,.35);
}

/* =========================
  Content Section
========================= */
.section {
  padding: 28px 0 80px;
  background: transparent;
}
.cols {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
}
.card {
  background: var(--panel-strong);
  border: 1px solid rgba(88, 88, 88, 0.06);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 26px;
  height: 275px;
}

/* =========================
  Modalita
========================= */
.modalita-section {
  padding: 28px 0 0;
  background: transparent;
  text-align: center;
}
.modalita-section h1{
  font-size: 40px;
}

.modalita {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
.modalita img {
  max-width: 45%;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(88, 88, 88, 0.06);
}

/* =========================
  Titoli
========================= */
.title-xl {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: .3px;
}
.title-xxl {
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 10px;
  font-weight: 900;
  letter-spacing: .3px;
}
.title-l {
  color: var(--brand);
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: -3px;
  font-weight: 350;
  letter-spacing: .3px;
}
.title-xl span { color: var(--brand); }
.lead {
  color: rgb(230, 214, 255);
  font-size: 17px;
  line-height: 1.7;
}

/* =========================
  Carousel
========================= */
.subtitle {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.divider {
  height: 3px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  width: 80%;
  margin: 0 auto 2.5rem;
}
.carousel-container {
  position: relative;
  width: 70%;          /* leggermente più piccolo */
  max-width: 700px;    /* ridotto da 900px */
  height: 320px;       /* ridotto da 400px */
  overflow: hidden;
  border-radius: 12px; /* leggermente più piccolo */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  margin: 2rem auto;
  user-select: none;
}

.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  height: 100%;       /* prende tutta l’altezza del container */
  width: 100%;
}

.carousel-item {
  border-radius: 8px;  /* leggermente più piccolo */
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;    /* riempie tutto il div */
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.carousel-item h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.carousel-item p {
  font-size: 1.2rem;
  max-width: 600px;
  line-height: 1.6;
}
.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.feature {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-weight: 500;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.indicators {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

/* =========================
  Forms
========================= */
.input {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: 10px;
  height: 50px;
  cursor: text;
}
.input input { all: unset; flex: 1; }
.copy {
  background: var(--panel);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 7px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: var(--muted);
  user-select: all;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color .2s;
}
.copy:hover { color: white; }

/* =========================
  Sezione HOW
========================= */
.how { position: relative; }
.how .badge {
  position: absolute;
  left: 18px;
  top: -12px;
  background: linear-gradient(135deg,#a855f7,#c084fc);
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}
.how .form {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.how img { width: 50%; }

/* =========================
  Sezione Team
========================= */
.team-container {
  position: relative;
  margin-top: 40px;
  width: 100%;
}
.team-slider {
  display: flex;
  overflow: hidden;
  scroll-behavior: smooth;
  border-radius: var(--radius);
  background: var(--panel-strong);
  padding: 30px;
  box-shadow: var(--shadow);
  min-height: 400px;
  position: relative;
  height: 450px;
}
.team-member {
  flex: 0 0 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s;
  position: absolute;
  width: calc(100% - 60px);
  height: calc(100% - 60px);
  top: 30px;
  left: 30px;
}
.team-member.active { opacity: 1; }
.member-image {
  width: 150px;
  height: 150px;
  border-radius: 25px;
  object-fit: cover;
  border: none;
  box-shadow: 0 8px 16px rgba(71, 71, 71, 0.2);
  margin-bottom: -10px;
}
.member-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 0px;
  color: var(--brand);
}
.member-role {
  font-size: 16px;
  color: white;
  padding: 7px 20px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 8px;
  background-color: #9333ea;
}
.member-bio {
  margin-top: 5px;
  line-height: 1.6;
  max-width: 600px;
  color: var(--text);
}
.team-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}
.nav-arrow {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s;
}
.nav-arrow:hover {
  background: var(--brand);
  color: var(--bg);
}
.team-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}



.indicator, .indicator-mode{
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s;
}
.indicator:hover, .indicator-mode:hover { background: rgba(255, 255, 255, 0.5); }
.indicator.active, .indicator-mode.active{
  background: var(--brand);
  transform: scale(1.2);
  border-radius: 12px;
}
.staff {
  margin-bottom: 40px;
  position: relative;
  display: inline-block;
}

.staff-section h1{
  font-size: 40px;
}

/* =========================
  Footer
========================= */
footer {
  background: var(--panel-strong);
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
  color: var(--muted);
}
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-section h3 {
  color: var(--brand);
  margin-bottom: 15px;
  font-size: 18px;
}
.footer-section p {
  line-height: 1.6;
  margin-bottom: 15px;
}
.store-btn {
  display: inline-block;
  background: var(--brand);
  color: var(--bg);
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s;
  width: 350px;
  text-align: center;
}
.store-btn:hover { background: var(--brand-2); }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
}
.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 15px;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  color: var(--text);
  transition: all 0.3s;
}
.social-icons a:hover {
  background: var(--brand);
  color: var(--bg);
}
.credits {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.7;
  position: relative;       /* necessario per posizionare ::after */
  display: inline-block;    /* permette la trasformazione */
  cursor: pointer;
}

.credits::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;              /* spessore della linea */
  background-color: currentColor; /* usa lo stesso colore del testo */
  transform: scaleX(0);      /* parte nascosta */
  transform-origin: bottom right; /* punto di partenza dell’animazione */
  transition: transform 0.3s ease;
}

.credits:hover::after {
  transform: scaleX(1);      /* linea piena al passaggio del mouse */
  transform-origin: bottom left; /* animazione da sinistra a destra */
}


/* =========================
  Regolamento
========================= */

.rules{
  font-size: 17px;
  padding: 32px 32px 20px;
  border-radius: 28px;
  box-shadow: 10px 15px 15px rgba(0, 0, 0, 0.5);
  background-color: var(--panel-strong);
}
.rules .title-xxl{
  text-align: center;
}

.last-update{
  font-style: italic;
  color: #e4e4e4c4;
  text-align: right;
  margin-left: 145px;
}

.separator-rules{
  margin-top: 32px;
  margin-bottom: 32px;
  width: 25%;
  border: 1px solid var(--brand);
}

.rules-number{
  margin-left: 20px;
}

.rules-priority{
  font-size: 18px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--brand);
}

.rules-staff{
  margin-top: 65px;
}

.rules-desc{
  text-align: justify;
  font-size: 15px;
  margin: 24px 250px 24px 250px;
}

.topic{
  color: var(--brand);
}

.rules-staff-text{
  border-radius: 6px;
  box-shadow: 4px 5px 5px rgba(0, 0, 0, 0.5);
  background-color: var(--danger);
  margin-left: 8px;
  padding-top: 4px;
  padding-bottom: 4px;
  padding-left: 8px;
  padding-right: 8px;
  text-shadow: 4px 5px 5px rgba(0, 0, 0, 0.5);
}

.rules-staff .fa-solid{
  border-radius: 6px;
  box-shadow: 4px 5px 5px rgba(0, 0, 0, 0.5);
  background-color: var(--danger);
  padding: 6px;
  transition: all 1s;
}

/* =========================
  Utili
========================= */
.center {
  text-align: center;
  grid-column: 1 / -1;
  width: 100%;
  margin: 0 auto;
}
.mt-2 { margin-top: 12px; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 26px; }

/* =========================
  Notifica Copia
========================= */
.copy-notification {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--panel-strong);
  color: var(--brand);
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  z-index: 99998;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  border: 1px solid rgba(168, 85, 247, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}
.copy-notification::before {
  content: "✓";
  font-weight: bold;
}
.copy-notification.show {
  opacity: 1;
  transform: translateX(0);
}

/* =========================
  Scrollbar
========================= */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track {
  background: #3b0f66;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #a855f7;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: #c084fc; }

/* =========================
  Tema Chiaro
========================= */
[data-theme="light"] .nav {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel) 100%);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .nav-links a:hover {
  background-color: rgba(147, 51, 234, 0.1);
}
[data-theme="light"] .lead { color: #2d3436; }
[data-theme="light"] .member-role { background-color: #9333ea; }
[data-theme="light"] .hero-badge { color: white; }
[data-theme="light"] .card { border: 1px solid var(--border); }
[data-theme="light"] .copy {
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.2);
}
[data-theme="light"] footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
[data-theme="light"] ::-webkit-scrollbar-track { background: #ecd9fb; }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: #9333ea; }
[data-theme="light"] ::-webkit-scrollbar-thumb:hover { background: #c084fc; }
[data-theme="light"] .dropdown-content {
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
}

[data-theme="light"] .social-icons a:hover {
  background: var(--brand);
  color: var(--bg);
}

[data-theme="light"] .dropdown-item:hover {
  background-color: rgba(147, 51, 234, 0.1);
}

[data-theme="light"] .carousel-container {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .copy:hover { color: var(--brand); }

[data-theme="light"] .feature {
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.2);
}

[data-theme="light"] .input {
  background: rgba(147, 51, 234, 0.1);
  border: 1px solid rgba(147, 51, 234, 0.2);
}

[data-theme="light"] .rules {
  background-color: var(--panel-strong);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .hero-blur {
  background: radial-gradient(1200px 300px at 50% 100%, rgba(147, 51, 234, 0.2), transparent 60%);
}

[data-theme="light"] .team-slider {
  background: var(--panel-strong);
  border: 1px solid var(--border);
}

[data-theme="light"] .nav-arrow {
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

[data-theme="light"] .nav-arrow:hover {
  background: var(--brand);
  border: 1px solid var(--border);
}

[data-theme="light"] .indicator.active, [data-theme="light"] .indicator-mode.active{
  background: var(--brand);
  transform: scale(1.2);
  border-radius: 12px;
}

[data-theme="light"] .indicator,
[data-theme="light"] .indicator-mode {
  background: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .indicator:hover,
[data-theme="light"] .indicator-mode:hover {
  background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .social-icons a {
  background: rgba(147, 51, 234, 0.1);
}

[data-theme="light"] .last-update {
  color: rgba(45, 52, 54, 0.7);
}

[data-theme="light"] .rules-staff-text,
[data-theme="light"] .rules-staff .fa-solid {
  background-color: #ff5757;
  color: white;
}

/* =========================
  Animazioni
========================= */
@keyframes rotateSun {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes pulseMoon {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* =========================
  Responsive
========================= */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .cols { grid-template-columns: 1fr; gap: 20px; }
  .hero-content { min-height: 360px; padding: 20px; }
  .hero-badge { font-size: 14px; padding: 6px 20px; }
  .cta { padding: 14px 30px; font-size: 18px; margin: 0 20px; }
  .title-xl { font-size: 28px; }
  .card { height: auto; min-height: 200px; }
}
@media (max-width: 768px) {
  body { padding-top: 60px; }
  .nav-row { padding: 15px 0; }
  .container { width: calc(100% - 24px); }
  .hero-wrap { border-radius: 16px; }
  .hero img { width: min(200px, 70vw); }
  .footer-content { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-links { align-items: center; }
  .store-btn { width: 100%; max-width: 300px; }
  .team-slider { padding: 20px; height: auto; min-height: 500px; }
  .team-member {
    padding: 15px;
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    top: 20px;
    left: 20px;
  }
  .member-image { width: 120px; height: 120px; }
  .member-role { font-size: 14px; padding: 5px 15px; }
  .member-bio { font-size: 15px; }
}
@media (max-width: 480px) {
  .hero-badge { font-size: 12px; padding: 6px 15px; margin: 0 8px; }
  .cta { padding: 12px 25px; font-size: 16px; margin: 0 15px; }
  .title-xl { font-size: 24px; }
  .lead { font-size: 15px; }
  .copy { font-size: 10px; }
  .social-icons a { width: 35px; height: 35px; }
  .footer-section h3 { font-size: 16px; }
  .copy-notification { padding: 10px 15px; font-size: 14px; bottom: 15px; right: 15px; }
}

/* =========================
  Altro
========================= */
@media (hover: none) {
  .nav-links a:hover,
  .cta:hover,
  .copy:hover,
  .nav-arrow:hover,
  .indicator:hover,
  .store-btn:hover,
  .social-icons a:hover {
    transform: none;
    transition: none;
  }
  .nav-links a:active,
  .cta:active,
  .copy:active,
  .nav-arrow:active,
  .indicator:active,
  .store-btn:active,
  .social-icons a:active {
    opacity: 0.7;
  }
}

/* Aggiungi queste regole alla sezione responsive */
@media (max-width: 980px) {
  .carousel-container {
    width: 90%;
    height: 280px;
  }
  
  .carousel-item h3 {
    font-size: 1.6rem;
  }
  
  .carousel-item p {
    font-size: 1rem;
    padding: 0 20px;
  }
  
  .features {
    gap: 1rem;
  }
  
  .feature {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  /* Navbar mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--panel-strong);
    padding: 20px;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--text);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
  }
  
  .dropdown-content {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
    margin-top: 10px;
    display: none;
  }
  
  .dropdown.active .dropdown-content {
    display: block;
  }
}

@media (max-width: 768px) {
  .carousel-container {
    width: 95%;
    height: 250px;
  }
  
  .carousel-item h3 {
    font-size: 1.4rem;
  }
  
  .features {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
}

@media (max-width: 480px) {
  .carousel-container {
    height: 220px;
  }
  
  .carousel-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .carousel-item p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
  
  .feature {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

/* Modifica gli stili della navbar mobile */
@media (max-width: 980px) {
    .nav-row {
        justify-content: space-between;
        padding: 15px 20px;
    }

    .nav-logo { padding: 0 !important; margin: 0; }

    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: var(--text);
        font-size: 24px;
        cursor: pointer;
        z-index: 1000;
        margin-right: 10px;
    }

    .nav-left,
    .nav-right {
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 12px;
    }

    .nav-right {
        margin-left: 0;
        margin-top: 10px;
        padding-top: 15px;
        border-top: 1px solid var(--border);
    }

    .nav-logo img { height: 40px; }
    .nav-store-btn { width: 90%; justify-content: center; }
    .nav-login { width: 90%; justify-content: center; }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        height: calc(100vh - 70px);
        background: var(--panel-strong);
        padding: 20px;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        z-index: 999;
        overflow-y: auto;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 90%;
        text-align: left;
        padding: 15px;
        border-radius: 8px;
        border: 1px solid var(--border);
        background: var(--bg-soft);
        margin: 5px 0;
        font-size: 16px;
    }

    .nav-links a i {
        margin-right: 10px;
        width: 20px;
        text-align: center;
    }

    .dropdown {
        width: 90%;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg);
        padding: 10px;
        margin-top: 5px;
        border-radius: 8px;
    }

    .dropdown-item {
        padding: 12px;
        border-radius: 6px;
        margin: 5px 0;
        background: var(--bg-soft);
    }

    #themeToggle {
        margin: 20px auto 0;
        padding: 10px 20px;
        background: var(--bg-soft);
        border: 1px solid var(--border);
    }

    /* Animazione del menu */
    .nav-links {
        transition: all 0.3s ease-in-out;
        transform: translateY(-100%);
    }

    .nav-links.active {
        transform: translateY(0);
    }
}