/* ══════════════════════════════════════════════
   PVR Italia — Modern Styles
   ══════════════════════════════════════════════ */

/* ── Base ─ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  overflow-x: hidden;
}

/* ── Selection ─ */
::selection {
  background: rgba(245, 158, 11, 0.3);
  color: #fff;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0b1120;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* ── Glassmorphism Utilities ── */
.glass {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Gradient Border ── */
.gradient-border {
  position: relative;
  background: linear-gradient(to bottom, #1e293b, #0f172a);
  border-radius: 1rem;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(245, 158, 11, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ── Focus Visible ── */
:focus-visible {
  outline: 2px solid rgba(245, 158, 11, 0.5);
  outline-offset: 2px;
}

/* ── Navbar Scroll ── */
.navbar-scrolled {
  background: rgba(11, 17, 32, 0.95) !important;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ── Form Autofill Dark ── */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
select:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #0b1120 inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* ── Input Error State ── */
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* ── Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ── WhatsApp Button Pulse ── */
@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(16, 185, 129, 0);
  }
}

.whatsapp-pulse {
  animation: whatsapp-pulse 2s infinite;
}

/* ── Responsive Typography ── */
@media (max-width: 640px) {
  h1 {
    font-size: 2.5rem !important;
  }
}

/* ── Home Hero: Sport & Gaming themed backdrop ── */
.sport-gaming-hero {
  background-color: #f3f4f6;
}

.sport-gaming-pattern {
  background-image:
    /* dado */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><rect x='28' y='28' width='64' height='64' rx='10' fill='none' stroke='rgba(245,158,11,0.16)' stroke-width='3'/><circle cx='46' cy='46' r='4' fill='rgba(245,158,11,0.16)'/><circle cx='74' cy='46' r='4' fill='rgba(245,158,11,0.16)'/><circle cx='46' cy='74' r='4' fill='rgba(245,158,11,0.16)'/><circle cx='74' cy='74' r='4' fill='rgba(245,158,11,0.16)'/><circle cx='60' cy='60' r='4' fill='rgba(245,158,11,0.16)'/></svg>"),
    /* pallone */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><circle cx='40' cy='120' r='26' fill='none' stroke='rgba(239,68,68,0.14)' stroke-width='3'/><path d='M40 96 L52 106 L48 122 L32 122 L28 106 Z' fill='none' stroke='rgba(239,68,68,0.14)' stroke-width='2'/></svg>"),
    /* carta da gioco */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><rect x='95' y='15' width='30' height='42' rx='4' fill='none' stroke='rgba(148,163,184,0.16)' stroke-width='2' transform='rotate(-12 110 36)'/><path d='M107 30 l3 6 l6 1 l-4.5 4.5 l1 6.5 l-5.5 -3 l-5.5 3 l1 -6.5 L98 37 l6 -1 Z' fill='rgba(148,163,184,0.16)' transform='rotate(-12 110 36)'/></svg>"),
    /* joystick */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><g fill='none' stroke='rgba(59,130,246,0.14)' stroke-width='3'><rect x='20' y='120' width='60' height='24' rx='12'/><circle cx='34' cy='132' r='5'/><circle cx='50' cy='132' r='5'/><circle cx='68' cy='127' r='4'/><circle cx='68' cy='139' r='4'/></g></svg>"),
    /* coppa */
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='150' height='150'><g fill='none' stroke='rgba(245,158,11,0.13)' stroke-width='2.5'><path d='M110 20 h30 v14 c0 12 -10 20 -20 22'/><path d='M110 20 h-30 v14 c0 12 10 20 20 22'/><rect x='95' y='20' width='30' height='36' rx='4'/><rect x='103' y='56' width='14' height='14'/><rect x='94' y='70' width='32' height='8' rx='2'/></g></svg>");
  background-repeat: repeat;
  background-position: 0 0, 60px 40px, 30px 90px, 90px 10px, 10px 130px;
  background-size: 300px 300px, 380px 380px, 340px 340px, 420px 420px, 360px 360px;
  opacity: 0.9;
}

/* ── Vertical Tabs (PVR / Web Affiliate / Promo) ── */
.tab-btn {
  transition: background-color 0.25s ease, color 0.25s ease;
}

[data-vertical] {
  animation: vertical-fade 0.4s ease both;
}

@keyframes vertical-fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Cookie Banner ── */
#cookie-banner {
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

#cookie-banner.cookie-banner-visible {
  transform: translateY(0);
}

/* ── Print Styles ── */
@media print {
  body {
    background: #fff;
    color: #000;
  }
  nav, footer, #whatsapp-btn {
    display: none;
  }
}