body {
  /* sposta il contenuto sotto la navbar fissa di 80px */
  padding-top: 80px;
}

/* 1) Importa Lato invece di Open Sans */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

/* Base styles */
body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
}

/* Custom variables */
:root {
    --primary: #4361ee;
    --accent: #7209b7;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    --dark: #343a40;
    --light: #f8f9fa;
}

/* Gradient text */
.text-gradient {
    background: linear-gradient(45deg, #FFD700, #FFA500, #FF6B35);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    filter: contrast(1.2) brightness(1.1);
}

/* Floating Action Button Styles */
.fab-group {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.fab-main {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    transform: scale(1.1);
}

.fab-main:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.fab-main.active {
    transform: scale(1.1) rotate(45deg);
}

.fab-option {
    background: white;
    color: var(--primary);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.fab-options.show .fab-option {
    opacity: 1;
    transform: scale(1);
}

.fab-option:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.fab-option:nth-child(1) { transition-delay: 0.1s; }
.fab-option:nth-child(2) { transition-delay: 0.2s; }
.fab-option:nth-child(3) { transition-delay: 0.3s; }

/* Footer Styles */
footer {
    background: url('attached_assets/marsbgfooter.png') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
}

.footer-section {
    position: relative;
    z-index: 2;
}

.footer-links li {
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary) !important;
    transform: translateX(5px);
}

.newsletter-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 25px 0 0 25px;
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
    color: white;
}

.newsletter-form .btn {
    border-radius: 0 25px 25px 0;
    min-width: 50px;
}

.contact-info i {
    color: var(--primary);
    width: 16px;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.hover-primary:hover {
    color: var(--primary) !important;
}

/* Payment methods hover effect */
.payment-methods i:hover {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

/* Newsletter success animation */
@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.newsletter-form .fa-check {
    animation: checkmark 0.5s ease-out;
    color: #28a745;
}


/* Hero section */
.hero-colorful {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-colorful::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="rgba(255,255,255,0.1)"/><stop offset="100%" stop-color="rgba(255,255,255,0)"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

/* Hero Logo Styles */
.hero-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.logo-glow-wrapper {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    padding: 40px;
    box-shadow: 
        0 0 60px rgba(255, 255, 255, 0.3),
        0 0 120px rgba(255, 215, 0, 0.2),
        inset 0 0 60px rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    }
    25% {
        transform: translateY(-5px) rotate(2deg);
    }
    50% {
        transform: translateY(0px) rotate(0deg);
        filter: drop-shadow(0 0 25px rgba(255, 215, 0, 0.6));
    }
    75% {
        transform: translateY(5px) rotate(-2deg);
    }
}

.space-banner {
    position: relative;
    overflow: hidden;
    color: white;
    padding: 6rem 0;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.space-banner > * {
    position: relative;
    z-index: 2;
}

.logo-orbits {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    z-index: 2;
}

.orbit {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: rotateOrbit 20s linear infinite;
}

.orbit-1 {
    width: 300px;
    height: 300px;
    margin: 100px;
    animation-duration: 25s;
}

.orbit-2 {
    width: 400px;
    height: 400px;
    margin: 50px;
    animation-duration: 35s;
}

.orbit-3 {
    width: 500px;
    height: 500px;
    margin: 0;
    animation-duration: 45s;
}

@keyframes rotateOrbit {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.orbit::before,
.orbit::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 10px white;
}

.orbit-1::before {
    width: 10px;
    height: 10px;
    top: -5px;
    left: 50%;
    margin-left: -5px;
    background: #FFD700;
    animation: planetOrbit1 25s linear infinite;
}
.orbit-1::after {
    width: 6px;
    height: 6px;
    bottom: -3px;
    left: 50%;
    margin-left: -3px;
    background: #E5E5E5;
    animation: planetOrbit1 25s linear infinite reverse;
}

.orbit-2::before {
    width: 12px;
    height: 12px;
    top: 50%;
    margin-top: -6px;
    right: -6px;
    background: #FF6B35;
    animation: planetOrbit2 35s linear infinite;
}

.orbit-2::after {
    width: 8px;
    height: 8px;
    top: 50%;
    margin-top: -4px;
    left: -4px;
    background: #ADD8E6;
    animation: planetOrbit2 35s linear infinite reverse;
}

.orbit-3::before {
    width: 15px;
    height: 15px;
    bottom: -7.5px;
    left: 50%;
    margin-left: -7.5px;
    background: #B57EDC;
    animation: planetOrbit3 45s linear infinite;
}
.orbit-3::after {
    width: 10px;
    height: 10px;
    top: -5px;
    left: 50%;
    margin-left: -5px;
    background: #90EE90;
    animation: planetOrbit3 45s linear infinite reverse;
}
@keyframes planetOrbit1 { from { transform: rotate(0deg) translateX(150px) rotate(0deg); } to { transform: rotate(360deg) translateX(150px) rotate(-360deg); } }
@keyframes planetOrbit2 { from { transform: rotate(0deg) translateX(200px) rotate(0deg); } to { transform: rotate(360deg) translateX(200px) rotate(-360deg); } }
@keyframes planetOrbit3 { from { transform: rotate(0deg) translateX(250px) rotate(0deg); } to { transform: rotate(360deg) translateX(250px) rotate(-360deg); } }


.btn-accent {
    background-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    background-color: #5a078f;
    color: white;
}

.btn-rounded {
    border-radius: 50px;
    padding: 10px 25px;
}


.btn-primary.btn-rounded:hover {
    background-color: #3a53c4;
}

.btn-outline-primary.btn-rounded:hover {
    background-color: var(--primary);
    color: white;
}


.category-card-colorful {
    border: none;
    transition: all 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}
.category-card-colorful:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

.category-img { height: 140px; overflow: hidden; }
.category-content { padding: 15px; }


.product-card-modern {
    background-color:white;
    border:1px solid #e5e7eb;
    border-radius:8px;
    overflow:hidden;
    transition: all 0.3s ease;
    display:flex;
    flex-direction:column;
}
.product-card-modern:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); transform: translateY(-3px); }

.product-img-container { position: relative; height: 180px; overflow: hidden; }
.product-img-container img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-img-placeholder { width: 100%; height: 180px; background: linear-gradient(45deg,#f3f4f6,#e5e7eb); display:flex;align-items:center;justify-content:center;color:#6b7280; }

.availability-badge { position:absolute; top:10px; right:10px; padding:5px 10px; font-size:12px; font-weight:600; border-radius:30px; }
.availability-badge.available { background-color: #10b981; color:white; }
.availability-badge.unavailable { background-color: #ef4444; color:white; }
.availability-badge.limited { background-color:#f59e0b; color:white; }

.product-details { padding:15px; display:flex; flex-direction:column; height:calc(100% - 180px); }
.product-title { font-size:18px; font-weight:600; margin-bottom:5px; color:#1f2937; }
.product-description { font-size:14px; color:#6b7280; margin-bottom:10px; flex-grow:1; }
.product-category { margin-bottom:15px; }
.category-tag { display:inline-block; padding:4px 12px; background-color:#e5e7eb; color:#374151; border-radius:30px; font-size:12px; font-weight:500; }
.product-actions { display:flex; align-items:center; justify-content:space-between; margin-top:auto; }
.product-price { font-size:20px; font-weight:700; color:#1f2937; }
.reserve-button, .login-button, .add-to-cart-btn { display:inline-block; padding:8px 16px; border-radius:30px; font-size:14px; font-weight:600; text-decoration:none; transition:all 0.3s ease; border:none; cursor:pointer; }
.reserve-button { background-color:#4f46e5; color:white; }
.add-to-cart-btn { background-color:#10b981; color:white; }
.login-button { background-color:#e5e7eb; color:#374151; }
.reserve-button:hover, .add-to-cart-btn:hover { background-color:#4338ca; color:white; }
.login-button:hover { background-color:#d1d5db; }


.shadow-3d { box-shadow:0 10px 30px rgba(0,0,0,0.2); }

@keyframes fadeUpIn { from {opacity:0; transform:translateY(20px);} to {opacity:1;transform:translateY(0);} }
.animate-fadeUpIn { animation:fadeUpIn 0.6s ease forwards; }

@keyframes typewriter { from {width:0;} to {width:100%;} }
@keyframes blinkCursor { from,to {border-color:transparent;} 50% {border-color:white;} }
.typewriter-text { overflow:hidden; border-right:2px solid white; white-space:nowrap; animation:typewriter 3s steps(40,end), blinkCursor 0.75s step-end infinite; }

@keyframes bounceIn { 0% {opacity:0;transform:scale(0.3) rotate(-10deg);}50%{opacity:1;transform:scale(1.05) rotate(2deg);}70%{transform:scale(0.9) rotate(-1deg);}100%{opacity:1;transform:scale(1) rotate(0deg);} }
.animate-bounceIn { animation:bounceIn 1s ease-out; }

@keyframes pulse-glow { 0%,100%{box-shadow:0 0 20px rgba(255,255,255,0.3);transform:scale(1);}50%{box-shadow:0 0 30px rgba(255,255,255,0.6);transform:scale(1.02);} }
.pulse-glow { animation:pulse-glow 2s ease-in-out infinite; }

@keyframes slideInLeft { from{opacity:0;transform:translateX(-50px);} to{opacity:1;transform:translateX(0);} }
.animate-slideInLeft { animation:slideInLeft 0.8s ease-out; }

@keyframes slideInRight { from{opacity:0;transform:translateX(50px);} to{opacity:1;transform:translateX(0);} }
.animate-slideInRight { animation:slideInRight 0.8s ease-out; }

@keyframes float { 0%,100%{transform:translateY(0px);}50%{transform:translateY(-10px);} }
.animate-float { animation:float 3s ease-in-out infinite; }



.navbar {
  transition: all 0.3s;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.navbar .container-fluid {
  max-width: 1400px;
  margin: 0 auto;
  padding-left: 15px;
  padding-right: 15px;
}
.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 1.1rem;
    color: #343a40;
    position: relative;
    transition: color 0.3s ease;
}
.navbar-nav .nav-link:hover {
    color: var(--primary);
}


.navbar-nav .btn {
  border-radius: 50px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar-nav .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.navbar-nav .btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}
.navbar-nav .btn-outline-primary:hover {
  background-color: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(67, 97, 238, 0.4);
}


.navbar-nav .btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.navbar-nav .btn-primary:hover {
  background-color: #3a53c4;
  border-color: #3a53c4;
}

.navbar .container {
  padding-left: 15px;
  padding-right: 15px;
  width: 100%;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.8rem;
  color: #343a40;
  transition: all 0.3s ease;
}
.navbar-brand img {
  height: 45px;
  transition: all 0.3s ease;
}
@media (max-width: 991px) {
  .navbar-brand img {
    height: 35px;
  }
}

.navbar-collapse {
  transition: height 0.3s ease-in-out;
}
.navbar-nav {
  gap: 1.5rem;
}
.navbar-nav .nav-item {
  display: flex;
  align-items: center;
}
.navbar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}
.navbar .input-group,
.navbar .d-none.d-lg-flex {
  margin-left: 1.5rem;
}

.navbar .d-none.d-lg-flex {
  gap: 0.5rem;
}
.navbar .d-none.d-lg-flex .nav-link {
  font-weight: 500;
  color: #495057;
  padding: 8px 15px;
  border-radius: 50px;
  transition: background-color 0.3s, color 0.3s;
}

.navbar .d-none.d-lg-flex .nav-link:hover {
  background-color: #f8f9fa;
  color: var(--primary);
}


@media (max-width: 991px) {
  .navbar-collapse {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0,0,0,0.1);
  }
}

html, body {
    overflow-x: hidden;
}

.navbar .container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
}
.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.page-content {
  padding-top: 80px; /* Altezza della navbar */
}

.btn-hero-explore {
    padding: 12px 25px;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #ff9a44, #ff6b00);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
    transition: all 0.3s ease;
}

.btn-hero-explore:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.6);
}

body {
    padding-top: 70px; /* Aggiusta questo valore se l'altezza della navbar cambia */
}

.admin-dashboard-container {
    padding-top: 2rem;
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Glassmorphism navbar più marcato */
.glass-navbar {
  background: linear-gradient(120deg, rgba(120, 63, 255, 0.18) 0%, rgba(63, 94, 251, 0.12) 100%), rgba(255,255,255,0.18) !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  border-bottom: 2px solid rgba(120,63,255,0.18);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: background 0.3s, box-shadow 0.3s;
}

/* Drop shadow alle icone della navbar */
.navbar .fa, .navbar .fas, .navbar .fab, .navbar .fa-solid, .navbar .fa-regular, .navbar .fa-brands {
  filter: drop-shadow(0 2px 6px rgba(120,63,255,0.25)) drop-shadow(0 1px 2px rgba(0,0,0,0.12));
  color: #6c47ff;
  transition: filter 0.2s, color 0.2s;
}

/* Decorazioni SVG di profondità (esempio: bolle) */
.glass-decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.25;
  filter: blur(2px) saturate(120%);
}

/* Esempio di bolla decorativa */
.glass-bubble {
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at 40% 60%, #a084ff 0%, #7f53ff 80%, transparent 100%);
  border-radius: 50%;
  position: absolute;
  left: 10vw;
  top: 10px;
  opacity: 0.18;
  z-index: 0;
  filter: blur(4px);
}

/* Glassmorphism per card categorie/prodotti */
.category-card, .product-card, .glass-card {
  background: linear-gradient(120deg, rgba(120, 63, 255, 0.10) 0%, rgba(63, 94, 251, 0.08) 100%), rgba(255,255,255,0.55);
  box-shadow: 0 6px 24px 0 rgba(120,63,255,0.10);
  border: 1.5px solid rgba(120,63,255,0.13);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  border-radius: 1.2rem;
  transition: background 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

/* Bolle decorative per aree bianche */
.glass-bubble-1 {
  width: 140px;
  height: 140px;
  background: radial-gradient(circle at 60% 40%, #a084ff 0%, #7f53ff 80%, transparent 100%);
  border-radius: 50%;
  position: absolute;
  left: 5vw;
  top: 60px;
  opacity: 0.18;
  z-index: 0;
  filter: blur(6px);
}
.glass-bubble-2 {
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at 70% 30%, #ffb6ff 0%, #a084ff 80%, transparent 100%);
  border-radius: 50%;
  position: absolute;
  right: 8vw;
  bottom: 80px;
  opacity: 0.15;
  z-index: 0;
  filter: blur(4px);
}

/* Elementi grafici spaziali per la navbar */
.navbar-space-decor {
  position: absolute;
  z-index: 0 !important;
}
.planet-decor {
  width: 20px; height: 20px;
  left: 18px; top: 6px;
}
.star-decor {
  width: 8px; height: 8px;
  left: 48px; top: 18px;
}
.comet-decor {
  width: 28px; height: 4px;
  left: 60px; top: 12px;
}

/* Video background login/registrazione */
.bg-video {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  object-fit: cover;
  z-index: 0;
}
.bg-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: linear-gradient(120deg, rgba(120,63,255,0.18) 0%, rgba(255,179,71,0.12) 100%);
  z-index: 1;
}

/* Card login/registrazione glassmorphism */
.login-glass-card, .register-glass-card {
  background: rgba(255,255,255,0.22);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  border-radius: 2rem;
  border: 2px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  z-index: 2;
}

/* Colori arancio-giallastro per testi e bottoni */
.text-accent {
  color: #ffb347 !important;
}
.btn-accent {
  background: linear-gradient(90deg, #ffb347 0%, #ff6b00 100%);
  color: #fff !important;
  border: none;
}
.btn-accent:hover {
  background: linear-gradient(90deg, #ff6b00 0%, #ffb347 100%);
  color: #fff !important;
}

/* Navbar compatta e centrata per login/registrazione */
.login-navbar, .register-navbar {
  min-height: 64px !important;
  height: 64px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  display: flex;
  align-items: center;
  position: relative;
}
.login-navbar .container, .register-navbar .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 80px !important;
  padding-right: 32px;
  height: 64px;
}
.navbar-space-decor {
  z-index: 2;
}
.planet-decor {
  width: 28px; height: 28px;
  left: 18px; top: 10px;
}
.star-decor {
  width: 12px; height: 12px;
  left: 70px; top: 22px;
}
.comet-decor {
  width: 40px; height: 6px;
  left: 110px; top: 16px;
}
.login-navbar .navbar-brand img, .register-navbar .navbar-brand img {
  height: 32px !important;
  margin-left: 0;
  margin-right: 0;
  display: block;
}





