/* -----------------------------------
   IMPORT FONTS
----------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Lato:wght@300;400;700&display=swap');

/* -----------------------------------
   BASE
----------------------------------- */
* {
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  line-height: 1.8;
  background: #061013;
  color: #d8d8d8;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 4px;
  color: #fff;
}

h1 { font-size: 48px; margin: 0; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }

/* -----------------------------------
   HERO
----------------------------------- */
.hero {
  min-height: 90vh;
  max-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0 20px 60px;
  text-align: center;
  background-image: url('/img/hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6,16,19,0.1) 0%, rgba(6,16,19,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  width: 100%;
}

.hero-content h1 {
  font-size: 45px;
  letter-spacing: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.7);
}

.tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  letter-spacing: 8px;
  margin: 0 0 32px;
  color: #d8d8d8;
  text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}

/* -----------------------------------
   BUTTONS
----------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  margin: 8px;
  border-radius: 0;
  text-decoration: none;
  color: #f1f1f1;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 14px;
  transition: background 0.2s, color 0.2s;
  border: 2px solid transparent;
  border-radius: 55px;
}

.primary {
  background-color: #061013;
  border-color: #d8d8d8;
  color: #d8d8d8;
}

.primary:hover {
  background-color: #d8d8d8;
  color: #061013;
}

.secondary {
  background-color: #333;
  color: #f1f1f1;
  border-color: #333;
}

.secondary:hover {
  background-color: #fff;
  color: #000;
}

.small {
  font-size: 13px;
  padding: 8px 14px;
}


/* -----------------------------------
   CTA BUTTONS (hero)
----------------------------------- */
.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.cta-buttons .btn {
  border-radius: 50px;
}

/* -----------------------------------
   BLOCKS
----------------------------------- */
.block {
  padding: 60px 20px;
  text-align: center;
}

.block.alt {
  background: #d8d8d8;
  color: #061013;
}

.block.alt h1,
.block.alt h2,
.block.alt h3,
.block.alt h4,
.block.alt h5 {
  color: #061013;
}

.block.alt p {
  color: #333;
}

.block.ice {
  background: #ecf5f7;
  color: #061013;
}

.block.ice h1,
.block.ice h2,
.block.ice h3 {
  color: #061013;
}

.block.ice p {
  color: #061013;
}

.block.sky {
  background: #cbf3ff;
  color: #061013;
}

.block.sky h1,
.block.sky h2,
.block.sky h3 {
  color: #061013;
}

/* -----------------------------------
   PRODUCT GRID
----------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 40px auto;
}

.product-card {
  background: #0e1f24;
  border: 1px solid #1e3a42;
  padding: 24px;
  border-radius: 4px;
  text-align: center;
  transition: border-color 0.2s;
}

.product-card:hover {
  border-color: #d8d8d8;
}

.cover {
  width: 200px;
  margin: 20px auto;
  display: block;
  border-radius: 4px;
}

/* -----------------------------------
   SOCIAL + FOOTER
----------------------------------- */
.social {
  text-align: center;
  padding: 40px 0;
  background: #061013;
}

.social a {
  margin: 0 12px;
  color: #d8d8d8;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 14px;
  transition: color 0.2s;
}

.social a:hover {
  color: #fff;
}

footer {
  text-align: center;
  padding: 32px;
  background: #061013;
  color: #f5f5f5;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  border-top: 1px solid #1e3a42;
}

footer a {
  color: #f5f5f5;
  text-decoration: none;
}

footer a:hover {
  color: #777;
}

/* -----------------------------------
   CART PAGE
----------------------------------- */
.cart-item {
  text-align: left;
  margin: 20px auto;
  max-width: 400px;
}

.qty-btn {
  padding: 4px 10px;
  margin: 0 5px;
  background: #1e3a42;
  color: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

.remove-btn {
  background: #333;
  color: #fff;
  padding: 6px 12px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
}

.remove-btn:hover {
  background: #fff;
  color: #061013;
}

#order-summary {
  max-width: 400px;
  margin: 20px auto;
  text-align: left;
}

/* -----------------------------------
   NAVBAR
----------------------------------- */
.navbar {
  width: 100%;
  background: #061013;
  padding: 1rem 1rem 1rem 2rem;
  border-bottom: 1px solid #1e3a42;
  position: sticky;
  top: 0;
  z-index: 999;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  letter-spacing: 4px;
  opacity: 0.95;
}

.nav-container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 8px;
}

.nav-logo {
  display: flex;
  align-items: center;
  padding: 6px 0;
}

.nav-logo-img {
  height: 34px;
  width: auto;
  pointer-events: none;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: #d5d5d5;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 3px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.cart-icon {
  text-decoration: none;
  color: #d5d5d5;
  transition: color 0.2s;
  position: relative;
  display: flex;
  align-items: center;
}

#cart-count {
  background: #333;
  color: #fff;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 0.75rem;
  margin-left: 5px;
}

.cart-icon:hover {
  color: #fff;
}


/* -----------------------------------
   HAMBURGER
----------------------------------- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: #d5d5d5;
  border-radius: 2px;
  transition: 0.3s;
}
  /* Hamburger → X quando aperto */
  .hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }



/* -----------------------------------
   MOBILE NAV
----------------------------------- */
@media (max-width: 768px) {

  /* ── H1 MOBILE ── */
  h1 {
    font-size: 28px !important;
  }

  h2 {
    font-size: 22px !important;
  }

  .hero-content h1 {
    font-size: 26px !important;
    letter-spacing: 8px !important;
  }


  .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  /* Il logo rimane a sinistra */
  .nav-logo {
    flex: 1;
  }

  /* Gruppo destra: carrello + hamburger */
  .nav-right-mobile {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  /* Il carrello è SEMPRE visibile su mobile */
  .cart-icon {
  text-decoration: none;
  color: #d5d5d5;
  transition: color 0.2s;
    display: flex !important;
    align-items: center;
    color: #d8d8d8;
    font-size: 20px;
    padding: 6px 8px;
    position: relative;
    text-decoration: none;
  }

  /* Hamburger visibile */
  .hamburger {
    display: flex;
  }

  /* I link del menu si nascondono di default */
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #061013;
    border-bottom: 1px solid #1e3a42;
    z-index: 999;
    /* Animazione slide-down */
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
  }

  /* Quando aperto */
  .nav-links.open {
    max-height: 400px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  /* Nasconde il carrello dal menu a tendina (è già in alto) */
  .nav-links .cart-icon {
    display: none !important;
  }

  .nav-links a {
    padding: 16px 24px;
    border-bottom: 1px solid #1e3a42;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: #c8c8c8;
    transition: background 0.15s, color 0.15s;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a:hover,
  .nav-links a:active {
    background: #0e1f24;
    color: #fff;
  }

  /* ── HERO MOBILE ── */
  .hero {
    min-height: 100svh;
    max-height: none;
    padding: 0 16px 40px;
    align-items: center;
    justify-content: center;	
    background-image: url('/img/heromobile.jpg');
  }

  .hero::after {
    background: linear-gradient(to bottom, rgba(6,16,19,0.35) 0%, rgba(6,16,19,0.85) 100%);
  }

  .hero-content {
    padding-top: 120px; /* compensa navbar sticky */
  }

  .hero-content h1 {
    font-size: 28px;
    letter-spacing: 8px;
  }

  .tagline {
    font-size: 13px;
    letter-spacing: 5px;
    margin-bottom: 24px;
  }

  .cta-buttons {
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 16px !important;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 11px 16px;
    font-size: 13px;
  }

}

/* -----------------------------------
   ANIMAZIONI CARRELLO
----------------------------------- */
.cart-bounce {
  animation: cartBounce 0.4s ease;
}

@keyframes cartBounce {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.25); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.cart-badge-flash {
  animation: badgeFlash 0.4s ease;
}

@keyframes badgeFlash {
  0%   { background: #333; }
  50%  { background: #777; }
  100% { background: #333; }
}
