/* === RESET === */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body, html {
font-family: 'Helvetica-Narrow', sans-serif;
background-color: black;
color: white;
scroll-behavior: smooth;
}

/* === HEADER === */
header {
position: fixed;
top: 0;
left: 0;
width: 100%;
background: linear-gradient(90deg, black 70%, #1a1a1a);
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px 40px;
z-index: 10;
border-bottom: 1px solid rgba(255, 74, 74, 0.2);
box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

/* Logo con leggero bagliore natalizio */
.logo {
display: inline-block; /* fondamentale: limita il raggio cliccabile solo al testo */
padding: 0; /* rimuove eventuali padding extra */
line-height: 1.1; /* regola lo spazio verticale tra righe se il logo è su due righe */
text-decoration: none;
font-size: 1.8rem;
color: #ff4a4a;
font-weight: bold;
font-family: 'Russo One', sans-serif;
text-shadow: 0 0 8px rgba(255, 50, 50, 0.4);
}


.logo:hover {
text-shadow: 0 0 12px rgba(255, 60, 60, 0.7), 0 0 20px rgba(255, 200, 150, 0.4);
transform: scale(1.05);
}

/* === NAVIGATION === */
nav {
display: flex;
align-items: center;
position: relative;
gap: 25px;
}

nav a {
margin-left: 30px;
color: white;
text-decoration: none;
font-size: 1rem;
transition: color 0.3s, text-shadow 0.3s;
}

nav a:hover {
color: #ff4a4a;
text-shadow: 0 0 8px rgba(255, 74, 74, 0.5), 0 0 12px rgba(0, 255, 100, 0.3);
}

/* === CART ICON === */
.cart-icon i {
color: #ff4a4a;
font-size: 1.2rem;
transition: color 0.3s ease, text-shadow 0.3s;
}

.cart-icon i:hover {
color: #ff0000e6;
text-shadow: 0 0 6px rgba(255, 255, 255, 0.3);
cursor: pointer;
}

/* === PROFILE ICON === */
.profile-icon {
position: relative;
}

.profile-icon img {
width: 32px;
height: 32px;
border-radius: 50%;
object-fit: cover;
margin-left: 20px;
border: 2px solid #ff4a4a;
box-shadow: 0 0 6px rgba(255, 74, 74, 0.4);
transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
cursor: pointer;
}

.profile-icon img:hover {
transform: scale(1.1);
border-color: #cc6300;
box-shadow: 0 0 10px rgba(255, 0, 0, 0.769), 0 0 15px rgba(255, 255, 255, 0.2);
}

/* === HAMBURGER MENU === */
.hamburger {
display: none;
font-size: 1.8rem;
color: white;
cursor: pointer;
transition: color 0.3s, transform 0.3s, text-shadow 0.3s;
}

/*.hamburger:hover {
color: #ff4a4a;
transform: rotate(10deg);
text-shadow: 0 0 8px rgba(255, 0, 0, 0.4);
} */

/* === RESPONSIVE MENU === */
@media (max-width: 768px) {

header {
padding: 10px 20px; /* molto più piccolo */
}

.logo {
font-size: 1.4rem; /* opzionale: riduce il testo su mobile */
}

nav {
display: none;
flex-direction: column;
align-items: flex-start;
background: rgba(0, 0, 0, 0.98);
border-top: 1px solid rgba(255, 74, 74, 0.3);
width: 100%;
padding: 10px 20px;
position: absolute;
top: 70px;
left: 0;
z-index: 999;
box-shadow: 0 0 15px rgba(255, 0, 0, 0.15);
}

nav a {
margin: 8px 0;
font-size: 1.1rem;
}

.hamburger {
display: block;
}

nav.active {
display: flex;
animation: fadeDown 0.4s ease;
}

nav.active .profile-icon img {
margin-left: 0; /* o un valore minore, es. 5px */
}
}

/* Animazione dolce per apertura menu */
@keyframes fadeDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}

/* =======================
   FULL PAGE LOADER
======================= */

#site-loader {
  position: fixed;
  inset: 0;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.6s ease;
}

.loader-content {
  text-align: center;
  color: white;
}

.loader-logo {
  font-family: 'Russo One', sans-serif;
  font-size: 2.4rem;
  color: #ff4a4a;
  margin-bottom: 20px;
  letter-spacing: 2px;
  animation: logoPulse 1.6s ease-in-out infinite;
  text-shadow:
    -1px -1px 0 black,
     1px -1px 0 black,
    -1px  1px 0 black,
     1px  1px 0 black;
}

@keyframes logoPulse {
  0% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.6; }
}

.loader-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255,255,255,0.2);
  border-top: 4px solid #ff4a4a;
  border-radius: 50%;
  margin: 0 auto 15px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loader-text {
  font-size: 0.9rem;
  opacity: 0.7;
}