@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700;900&display=swap');

/* ===================== RESET & BASE ===================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy:   #0d122d;
  --dark:   #080e20;
  --darker: #050a1a;
  --accent: #0095eb;
  --accent-hover: #007dc5;
  --white:  #ffffff;
  --gray:   #a0aec0;
  --card-bg: rgba(255,255,255,0.04);
  --card-border: rgba(255,255,255,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Ubuntu', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ===================== TYPOGRAPHY ===================== */
.section-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto 50px;
}

.section-header { text-align: center; }

/* ===================== FADE-IN ANIMATION ===================== */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== NAV ===================== */
#nav-main {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: transparent !important;
  box-shadow: none !important;
  transition: background 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

#nav-main.scrolled {
  background: rgba(13, 18, 45, 0.95) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 14px 48px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6) !important;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 38px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

#nav-main.scrolled .logo-img {
  height: 32px;
}

.footer-logo .logo-img {
  height: 40px;
  margin-bottom: 16px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.25s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* Language Switcher */
.lang-selector-wrap {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.lang-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}

.lang-select:hover,
.lang-select:focus {
  border-color: var(--accent);
  background: rgba(0, 149, 235, 0.15);
}

.lang-select option {
  background: #0d122d;
  color: #ffffff;
  font-size: 0.9rem;
  padding: 8px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--darker);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.25s;
}
.nav-mobile a:hover { color: var(--accent); }

/* ===================== HERO ===================== */
#hero {
  position: relative;
  padding-top: 0;
  margin-top: 0;
  width: 100%;
  background: transparent;
  line-height: 0;
  overflow: hidden;
}

#hero img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-overlay-content {
  position: absolute;
  top: 105px;
  left: 6%;
  max-width: 580px;
  line-height: normal;
  z-index: 10;
  pointer-events: none;
  animation: heroFadeIn 1s ease-out forwards;
}

.hero-tag {
  display: inline-block;
  background: rgba(0, 149, 235, 0.25);
  border: 1px solid rgba(0, 149, 235, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #5ec4ff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 18px;
}

.hero-overlay-content h1 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.hero-overlay-content h1 span {
  color: var(--accent);
}

.hero-overlay-content p {
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  max-width: 500px;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-overlay-content {
    top: 75px;
    left: 5%;
    right: 5%;
    max-width: none;
  }
}

/* ===================== BRAVOBOX INTRO ===================== */
#bravobox-intro {
  background: linear-gradient(180deg, #25326f 0%, #1a2553 45%, #0d122d 100%);
  padding: 90px 20px;
  text-align: center;
  position: relative;
  margin-top: 0;
}

#bravobox-intro .intro-tagline {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 10px;
  margin-bottom: 24px;
  letter-spacing: 0.03em;
}

#bravobox-intro .intro-desc {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  text-decoration: none;
}
.btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,149,235,0.35);
}
.btn:active { transform: translateY(0); }

/* ===================== DISPOSITIVI ===================== */
#dispositivi {
  background: var(--dark);
  padding: 90px 20px;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1280px;
  margin: 0 auto;
}

.device-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 28px 22px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  cursor: default;
}

.device-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(0,149,235,0.15);
}

.device-card .emoji {
  font-size: 2.4rem;
  margin-bottom: 14px;
  line-height: 1;
}

.device-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.device-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.device-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.55;
}

/* ===================== PRODOTTI ===================== */
#prodotti {
  background: var(--navy);
  padding: 90px 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1100px;
  margin: 0 auto;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 36px 28px;
  text-align: center;
  position: relative;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,149,235,0.18);
}

.product-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 14px 36px rgba(0,149,235,0.2);
}

.product-bestseller {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.product-card .product-model {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.product-card h3 {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 6px;
}

.product-card .product-channels {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 20px;
  font-weight: 500;
}

.product-card .product-desc {
  font-size: 0.88rem;
  color: var(--gray);
  margin-bottom: 26px;
  line-height: 1.6;
}

.product-specs {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.product-specs li {
  font-size: 0.83rem;
  color: var(--gray);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.product-specs li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ===================== CONFRONTO ===================== */
#confronto {
  background: var(--dark);
  padding: 90px 20px;
}

.table-wrap {
  max-width: 960px;
  margin: 0 auto;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.5;
}

table thead {
  background: linear-gradient(90deg, #0d122d 0%, #152250 100%);
  border-bottom: 2px solid var(--accent);
}

table thead th {
  padding: 18px 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--white);
  font-size: 0.88rem;
  text-transform: uppercase;
}

table thead th:first-child { 
  text-align: left; 
}

table thead th:nth-child(2) {
  color: #5ec4ff;
}

table tbody tr:nth-child(odd)  { background: rgba(255,255,255,0.02); }
table tbody tr:nth-child(even) { background: rgba(255,255,255,0.04); }

table tbody tr:hover { background: rgba(0,149,235,0.08); }

table td {
  padding: 16px 20px;
  color: rgba(255,255,255,0.85);
  font-size: 0.88rem;
  text-align: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

table td:first-child {
  text-align: left;
  color: var(--white);
  font-weight: 600;
  font-size: 0.92rem;
}

.check-yes  { 
  color: #38ef7d; 
  font-weight: 600; 
  font-size: 0.88rem;
}

.check-no   { 
  color: #ff5e62; 
  font-weight: 600; 
  font-size: 0.88rem;
}

.check-warn { 
  color: #f7b731; 
  font-weight: 600; 
  font-size: 0.88rem;
}

/* ===================== APP MOBILE ===================== */
#app {
  background: var(--darker);
  padding: 90px 20px;
}

.app-card-wrap {
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(0,149,235,0.08) 100%);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.app-tagline {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.app-text h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 16px;
}

.app-text p {
  font-size: 0.95rem;
  color: var(--gray);
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.app-badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 24px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px;
  text-align: left;
}

.google-badge:hover {
  background: rgba(0, 149, 235, 0.2);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 149, 235, 0.25);
  color: var(--white);
}

.disabled-badge {
  opacity: 0.65;
  cursor: not-allowed;
  border-style: dashed;
}

.store-text {
  display: flex;
  flex-direction: column;
}

.store-sub {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.7);
}

.store-title {
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: var(--white);
}

.disabled-badge .store-title {
  color: #f7b731;
}

/* ===================== CONTATTI ===================== */
#contatti {
  background: var(--navy);
  padding: 90px 20px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.contact-info p {
  font-size: 0.92rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  transition: border-color 0.25s;
}
.contact-email:hover { border-color: var(--accent); }

.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 7px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'Ubuntu', sans-serif;
  font-size: 0.92rem;
  color: var(--white);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,0.3); }

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,149,235,0.15);
}

.contact-form textarea { min-height: 130px; }

.form-success {
  display: none;
  background: rgba(72,187,120,0.12);
  border: 1px solid rgba(72,187,120,0.4);
  border-radius: 8px;
  padding: 14px 18px;
  color: #68d391;
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: 14px;
  text-align: center;
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--darker);
  padding: 56px 40px 30px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.footer-brand .nav-logo {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--gray);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ===================== TELEGRAM FLOATING BUTTON ===================== */
.telegram-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #229ED9 0%, #1783b9 100%);
  color: var(--white);
  text-decoration: none;
  padding: 9px 18px 9px 11px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(34, 158, 217, 0.45), 0 2px 8px rgba(0,0,0,0.3);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.telegram-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px rgba(34, 158, 217, 0.65), 0 4px 12px rgba(0,0,0,0.4);
  color: var(--white);
}

.chat-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  flex-shrink: 0;
}

.chat-label {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1100px) {
  .devices-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid .product-card:last-child { grid-column: 1 / -1; max-width: 420px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .products-grid { grid-template-columns: 1fr; }
  .products-grid .product-card:last-child { grid-column: auto; max-width: 100%; }

  .contact-wrap { grid-template-columns: 1fr; gap: 36px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  footer { padding: 40px 24px 24px; }
}

/* ===================== GDPR COOKIE BANNER & MODAL ===================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 980px;
  margin: 0 auto;
  background: rgba(13, 18, 45, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 149, 235, 0.35);
  border-radius: 16px;
  padding: 22px 28px;
  z-index: 9999;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 20px rgba(0, 149, 235, 0.15);
  animation: slideUpCookie 0.4s ease-out;
}

@keyframes slideUpCookie {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.cookie-text p {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  margin: 0;
}

.cookie-text a {
  color: #5ec4ff;
  text-decoration: underline;
  margin-left: 4px;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie {
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-cookie-accept {
  background: #0095eb;
  color: #fff;
}
.btn-cookie-accept:hover {
  background: #0080cb;
  transform: translateY(-1px);
}

.btn-cookie-settings {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-cookie-settings:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-cookie-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-cookie-reject:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* MODALE PREFERENZE */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.25s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cookie-modal-card {
  background: #0d122d;
  border: 1px solid rgba(0, 149, 235, 0.3);
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.cookie-modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.cookie-modal-close:hover {
  color: #fff;
}

.cookie-modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
}

.cookie-option-info strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 4px;
}

.cookie-option-info p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
  margin: 0;
}

/* Switch Toggle UI */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 4px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #0095eb;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.cookie-modal-footer {
  padding: 16px 24px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .cookie-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
    padding: 18px 20px;
  }
  .cookie-content {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .cookie-actions {
    flex-direction: column;
    width: 100%;
  }
  .cookie-actions .btn-cookie {
    width: 100%;
    text-align: center;
  }
}

