* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0f1629;
    --primary-dark: #0c1220;
    --secondary-color: #1e3a8a;
    --accent-color: #1d4ed8;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --dark-color: #030712;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #030712;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(15 22 41 / 0.15);
    --shadow-md: 0 4px 6px -1px rgb(15 22 41 / 0.2), 0 2px 4px -2px rgb(15 22 41 / 0.15);
    --shadow-lg: 0 10px 15px -3px rgb(15 22 41 / 0.2), 0 4px 6px -4px rgb(15 22 41 / 0.15);
    --shadow-xl: 0 20px 25px -5px rgb(15 22 41 / 0.25), 0 8px 10px -6px rgb(15 22 41 / 0.2);
    --gradient-primary: linear-gradient(135deg, #0f1629 0%, #0c1220 100%);
    --gradient-secondary: linear-gradient(135deg, #1e3a8a 0%, #0f1629 100%);
    --gradient-accent: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    padding-bottom: 50px; /* Space for affiliate banner at bottom */
}

/* Amazon Affiliate Banner */
.affiliate-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    color: white;
    z-index: 9999;
    padding: 8px 0;
    font-size: 12px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.affiliate-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.affiliate-content i {
    font-size: 14px;
    opacity: 0.9;
    flex-shrink: 0;
}

.affiliate-content span {
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0; /* Position at top since affiliate banner is now at bottom */
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    position: relative;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-brand:hover {
    transform: scale(1.05);
}

.brand-icon {
    font-size: 1.8rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 10px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #030712 0%, #0c1220 15%, #0f1629 30%, #1e3a8a 65%, #1d4ed8 85%, #3b82f6 100%);
    padding: 100px 0 40px; /* Aumentato padding-top per compensare navbar */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-10px) translateX(5px); }
    66% { transform: translateY(5px) translateX(-5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
    z-index: 2;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-title-main {
    display: block;
    color: white;
    animation: slideInLeft 1s ease-out;
}

.hero-title-accent {
    display: block;
    background: linear-gradient(45deg, #60a5fa, #bfdbfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInRight 1s ease-out 0.2s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 24px;
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.4s both;
    max-width: 550px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

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

/* Filter Count */
.filter-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 6px;
    min-width: 20px;
    text-align: center;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.3);
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, #f59e0b, #f97316);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.5);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Hero Features */
.hero-features {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 500;
}

.feature-item i {
    color: #60a5fa;
    font-size: 1.1rem;
}

/* Hero Visual Section */
.hero-visual {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hero-main-image {
    position: relative;
    height: 220px;
    animation: fadeIn 1s ease-out 0.8s both;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Latest Products Preview */
.latest-products-preview {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
    max-width: 500px; /* Limita la larghezza per forzare lo scroll */
    overflow: hidden; /* Nasconde il contenuto che esce */
}

.preview-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-title i {
    color: #f59e0b;
    animation: pulse 2s infinite;
}

.hero-products-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    padding-bottom: 5px;
}

.hero-products-grid::-webkit-scrollbar {
    height: 4px;
}

.hero-products-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.hero-products-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.hero-products-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}


.hero-product-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
    flex: 0 0 220px;
    width: 220px;
}

.hero-product-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.hero-product-header {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.hero-product-image {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
    background: #f8f9fa;
    padding: 6px;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

.hero-product-card:hover .hero-product-image {
    transform: scale(1.05);
}

.hero-product-info {
    flex: 1;
    min-width: 0;
}

.hero-product-title {
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.hero-product-category {
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-product-prices {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-product-current-price {
    color: #10b981;
    font-size: 1rem;
    font-weight: 700;
}

.hero-product-original-price {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-decoration: line-through;
}

.hero-product-discount {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    min-width: 45px;
}

.hero-product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}

.hero-product-stars {
    color: #fbbf24;
    font-size: 0.8rem;
}

.hero-product-reviews {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

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

.floating-card {
    position: absolute;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    animation: floatCard 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
}

.card-1 {
    top: 20%;
    left: 10%;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 20%;
    background: linear-gradient(45deg, #10b981, #059669);
    color: white;
    animation-delay: 1s;
}

.card-3 {
    bottom: 20%;
    left: 30%;
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Search Section */
.search-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.search-box {
    display: flex;
    margin-bottom: 30px;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.search-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 20px 25px;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
}

.search-btn {
    background: var(--gradient-primary);
    border: none;
    padding: 20px 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid var(--accent-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--accent-color);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Deals Section */
.deals-section {
    padding: 100px 0 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-accent {
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    padding: 15px;
    box-sizing: border-box;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
    padding: 10px;
}

.discount-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(45deg, #ef4444, #f87171);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    z-index: 2;
}

.coupon-badge {
    position: absolute;
    top: 55px;
    left: 15px;
    background: linear-gradient(45deg, #10b981, #34d399);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    animation: pulse-coupon 2s infinite;
}

.coupon-badge i {
    font-size: 0.9rem;
}

@keyframes pulse-coupon {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    }
    50% {
        box-shadow: 0 4px 16px rgba(16, 185, 129, 0.5);
    }
}

.share-buttons {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.share-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    backdrop-filter: blur(10px);
}

.share-btn:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.share-btn.facebook:hover {
    background: #1877f2;
    color: white;
}

.share-btn.whatsapp:hover {
    background: #25d366;
    color: white;
}

.share-btn.copy:hover {
    background: var(--primary-color);
    color: white;
}

.product-info {
    padding: 25px 25px 20px 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    height: 20px;
    display: flex;
    align-items: center;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.4;
    height: 72px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.95rem;
    height: 66px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    height: 28px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #fbbf24;
    font-size: 0.9rem;
}

.rating-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    margin-top: auto;
    height: 40px;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-original {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.buy-btn {
    width: calc(100% - 40px);
    background: linear-gradient(45deg, #f59e0b, #d97706);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
    margin: 15px 20px 20px 20px;
    flex-shrink: 0;
}

.buy-btn:hover {
    background: linear-gradient(45deg, #d97706, #b45309);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Stats Section */
.stats-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #030712 0%, #0c1220 15%, #0f1629 30%, #1e3a8a 65%, #1d4ed8 85%, #3b82f6 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item {
    padding: 30px 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Load More */
.load-more-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 60px 0;
    width: 100%;
}

.load-more-btn {
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color));
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: var(--shadow-md);
    margin: 0 auto;
}

.load-more-btn:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.social-link i {
    font-size: 18px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* BOUNTY SECTION */
.bounty-section {
    padding: 20px 0 80px 0;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.bounty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.bounty-card {
    position: relative;
    border-radius: 20px;
    padding: 30px;
    background: white;
    border: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    display: block;
}

.bounty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--gradient-from), var(--gradient-to));
    transition: height 0.4s ease;
}

.bounty-card:hover::before {
    height: 100%;
    opacity: 0.05;
}

.bounty-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--gradient-from);
}

.bounty-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.bounty-icon {
    font-size: 3rem;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.bounty-trial {
    background: linear-gradient(135deg, var(--gradient-from), var(--gradient-to));
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.bounty-content {
    margin-bottom: 24px;
}

.bounty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--gradient-from), var(--gradient-to));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bounty-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.bounty-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.bounty-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.bounty-benefits li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-from), var(--gradient-to));
    color: white;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.bounty-cta {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--gradient-from), var(--gradient-to));
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.bounty-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.bounty-cta i {
    transition: transform 0.3s ease;
}

.bounty-cta:hover i {
    transform: translateX(4px);
}

.bounty-loading {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
}

/* BLOG SECTION */
.blog-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.article-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    padding: 15px;
    box-sizing: border-box;
}

.article-card:hover .article-image img {
    transform: scale(1.08);
    padding: 10px;
}

.article-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.article-content {
    padding: 25px;
}

.article-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-cta {
    text-align: center;
}

.blog-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.blog-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.blog-more-btn i {
    transition: transform 0.3s ease;
}

.blog-more-btn:hover i {
    transform: translateX(5px);
}

/* No articles state */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.no-articles i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.no-articles h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

/* Medium screens (tablets, small laptops) */
/* Media Query per tablet e schermi medi */
@media (max-width: 1024px) {
    .hero {
        min-height: 70vh;
        padding: 90px 0 30px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        max-width: 800px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 6vw, 4.5rem);
    }

    .hero-subtitle {
        font-size: 1.05rem;
        max-width: 600px;
        margin: 0 auto 24px;
    }

    .hero-main-image {
        height: 180px;
    }

    .hero-visual {
        gap: 25px;
    }

    .latest-products-preview {
        padding: 18px;
        max-width: 600px;
        margin: 0 auto;
    }

    .preview-title {
        font-size: 1.05rem;
        margin-bottom: 14px;
    }

    .hero-product-image {
        width: 50px;
        height: 50px;
        padding: 6px;
    }

    .hero-product-title {
        font-size: 0.8rem;
    }

    .hero-features {
        justify-content: center;
        gap: 24px;
    }

    /* Hide floating cards on tablets for better performance */
    .floating-card {
        display: none;
    }

    /* Hide hero visual section on tablets for cleaner layout */
    .hero-visual {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        max-width: 600px;
    }
}

/* Media Query aggiuntiva per schermi tra 901px e 1024px */
@media (max-width: 1024px) and (min-width: 901px) {
    .hero-content {
        gap: 50px;
    }

    .hero-title {
        font-size: clamp(3rem, 5.5vw, 4.8rem);
    }

    /* Logo optimization for larger tablets - scritta ridotta */
    .brand-logo {
        width: 50px;
        height: 50px;
    }

    .brand-text-img {
        height: 18px;
    }
}

/* Media Query per schermi tra 600px e 768px */
@media (max-width: 768px) and (min-width: 601px) {
    .hero-title {
        font-size: clamp(2.2rem, 6.5vw, 3.8rem);
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-main-image {
        height: 160px;
    }

    .hero-features {
        gap: 18px;
    }
}

/* Media Query per schermi tra 481px e 600px */
@media (max-width: 600px) and (min-width: 481px) {
    .hero {
        padding: 85px 0 25px;
    }

    .hero-title {
        font-size: clamp(2rem, 6.8vw, 3.2rem);
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-main-image {
        height: 130px;
    }

    /* Logo optimization for mobile landscape - scritta mini */
    .brand-logo {
        width: 35px;
        height: 35px;
    }

    .brand-text-img {
        height: 12px;
    }

    .nav-brand {
        gap: 4px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 15px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 30px 0;
        height: calc(100vh - 70px);
        overflow-y: auto;
        z-index: 999;
    }

    /* Hide hero visual section on mobile */
    .hero-visual {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr !important;
        justify-items: center;
        text-align: center;
    }

    /* Logo mobile optimizations - dimensioni equilibrate */
    .brand-logo {
        width: 42px !important;
        height: 42px !important;
    }

    .brand-text-img {
        height: 16px !important;
    }

    .nav-brand {
        gap: 5px !important;
        font-size: 0.9rem !important;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(15, 22, 41, 0.1);
        margin: 0 20px;
    }

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

    .nav-toggle {
        display: flex;
        padding: 10px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-toggle:hover {
        background: rgba(15, 22, 41, 0.05);
    }

    .bar {
        border-radius: 2px;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        min-height: 70vh;
        padding: 90px 0 30px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding: 0 15px;
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(2rem, 7vw, 3.5rem);
        line-height: 1.1;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 20px;
        max-width: 100%;
        padding: 0 20px;
        line-height: 1.5;
        word-wrap: break-word;
        hyphens: auto;
    }

    .hero-features {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
        align-items: center;
    }

    .feature-item {
        font-size: 0.8rem;
    }

    .hero-visual {
        gap: 15px;
    }

    .hero-main-image {
        height: 140px;
    }

    .cta-button {
        padding: 14px 28px;
        font-size: 1rem;
        max-width: 280px;
        margin: 0 auto;
    }

    .latest-products-preview {
        padding: 16px;
    }

    .preview-title {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .hero-product-card {
        padding: 10px;
    }

    .hero-product-header {
        margin-bottom: 8px;
    }

    .hero-product-image {
        width: 55px;
        height: 55px;
        padding: 6px;
    }

    /* Hide floating cards on mobile for better performance */
    .floating-card {
        display: none;
    }

    .product-image {
        height: 220px;
    }

    .product-image img {
        padding: 12px;
    }

    .product-card:hover .product-image img {
        padding: 8px;
    }

    .hero-product-title {
        font-size: 0.85rem;
    }

    .hero-product-current-price {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .product-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .product-info {
        padding: 20px;
    }

    .product-title {
        font-size: 1.2rem;
        line-height: 1.3;
    }

    .product-description {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .buy-btn {
        padding: 12px;
        font-size: 0.95rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand .brand {
        justify-content: center;
    }

    .footer-logo-combined {
        margin: 0 auto;
        display: block;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column h4 {
        margin-bottom: 15px;
        font-size: 1rem;
    }

    .footer-column a {
        margin-bottom: 8px;
        font-size: 0.95rem;
    }

    .footer-bottom {
        text-align: center;
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .footer-bottom p {
        margin-bottom: 8px;
    }

    /* Search section mobile improvements */
    .search-section {
        padding: 60px 0;
    }

    .search-box {
        margin-bottom: 25px;
    }

    .search-box input {
        padding: 16px 20px;
        font-size: 1rem;
    }

    .search-btn {
        padding: 16px 20px;
    }

    .search-filters {
        gap: 10px;
        padding: 0 10px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
        border-width: 1px;
        min-width: 80px;
    }

    .filter-count {
        font-size: 0.7rem;
        padding: 1px 4px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .article-card {
        margin: 0 10px;
    }

    .article-image {
        height: 180px;
    }

    .article-image img {
        padding: 12px;
    }

    .article-card:hover .article-image img {
        padding: 8px;
    }

    .blog-section {
        padding: 60px 0;
    }
}

/* Additional tablet breakpoint */
@media (max-width: 900px) and (min-width: 769px) {
    .hero-content {
        max-width: 700px;
        gap: 35px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .search-container {
        max-width: 600px;
    }

    /* Logo optimizations for tablet - scritta ridotta */
    .brand-logo {
        width: 45px;
        height: 45px;
    }

    .brand-text-img {
        height: 16px;
    }
}

/* Mobile landscape breakpoint */
@media (max-width: 900px) and (min-width: 481px) and (orientation: landscape) {
    .hero {
        min-height: 85vh;
        padding: 80px 0 25px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 5vw, 3.2rem);
    }

    .hero-features {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
    }

    .nav-menu {
        height: calc(100vh - 70px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .hero {
        min-height: 60vh;
        padding: 85px 0 20px;
    }

    .hero-content {
        gap: 25px;
        padding: 0 15px;
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        line-height: 1.05;
        margin-bottom: 12px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 18px;
        padding: 0 15px;
        line-height: 1.6;
        word-wrap: break-word;
        hyphens: auto;
        text-align: center;
    }

    .hero-features {
        gap: 10px;
        margin-bottom: 20px;
    }

    .feature-item {
        font-size: 0.75rem;
    }

    .cta-button {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-main-image {
        height: 120px;
    }

    .latest-products-preview {
        padding: 12px;
        max-width: 100%;
    }

    .hero-product-card {
        flex: 0 0 180px;
        width: 180px;
    }

    /* Mobile affiliate banner adjustments */
    .affiliate-banner {
        padding: 8px 0;
        font-size: 11px;
    }

    .affiliate-content {
        padding: 0 12px;
        gap: 6px;
    }

    .affiliate-content i {
        font-size: 12px;
    }

    /* Brand logo mobile adjustments - dimensioni corrette */
    .brand-logo {
        width: 38px !important;
        height: 38px !important;
    }

    .brand-text-img {
        height: 14px !important;
    }

    .nav-brand {
        gap: 4px !important;
    }

    /* Mobile navbar improvements */
    .nav-container {
        padding: 0 12px;
    }

    .nav-menu {
        padding: 25px 0;
    }

    .nav-link {
        padding: 12px 0;
        font-size: 1rem;
    }

    /* Touch improvements */
    .buy-btn, .cta-button, .filter-btn, .search-btn {
        min-height: 44px;
        touch-action: manipulation;
    }

    .product-card {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    .hero-product-card {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    }

    /* Footer improvements - logo centrato */
    .footer-logo-combined {
        height: 140px;
        margin: 0 auto;
        display: block;
    }

    .footer-brand {
        text-align: center !important;
    }

    .footer-brand .brand {
        justify-content: center !important;
        margin: 0 auto;
    }

    /* Section padding adjustments */
    .deals-section, .blog-section, .stats-section {
        padding: 60px 0;
    }

    .bounty-section {
        padding: 15px 0 60px 0;
    }

    /* Bounty responsive */
    .bounty-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .bounty-card {
        padding: 24px;
    }

    .bounty-icon {
        font-size: 2.5rem;
    }

    .bounty-title {
        font-size: 1.3rem;
    }

    .bounty-description {
        font-size: 0.9rem;
    }

    .bounty-benefits li {
        font-size: 0.85rem;
    }

    .bounty-cta {
        font-size: 0.95rem;
        padding: 12px 20px;
    }
}

/* Media Query per schermi molto piccoli */
@media (max-width: 350px) {
    .hero {
        min-height: 55vh;
        padding: 80px 0 15px;
    }

    .hero-content {
        gap: 15px;
        padding: 0 8px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 5.5vw, 2.2rem);
        margin-bottom: 10px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 16px;
        padding: 0 12px;
        line-height: 1.5;
        word-wrap: break-word;
        hyphens: auto;
        text-align: center;
    }

    .hero-features {
        gap: 8px;
        margin-bottom: 16px;
    }

    .feature-item {
        font-size: 0.7rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-main-image {
        height: 100px;
    }

    .latest-products-preview {
        padding: 10px;
    }

    .preview-title {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .hero-product-card {
        flex: 0 0 160px;
        width: 160px;
        padding: 8px;
    }

    .hero-product-image {
        width: 40px;
        height: 40px;
        padding: 4px;
    }

    .hero-product-title {
        font-size: 0.7rem;
    }

    .hero-product-current-price {
        font-size: 0.8rem;
    }

    .product-card {
        margin: 0 10px;
    }

    /* Mobile affiliate banner adjustments */
    .affiliate-banner {
        padding: 6px 0;
        font-size: 10px;
    }

    .affiliate-content {
        padding: 0 10px;
        gap: 6px;
    }

    .affiliate-content span {
        font-size: 0.85em;
        line-height: 1.1;
    }

    /* Ensure hero content is properly spaced */
    .hero {
        min-height: 60vh;
        padding: 90px 0 30px;
    }

    .hero-content {
        max-width: 95%;
        padding: 0 10px;
    }

    .hero-title {
        line-height: 1.1;
        margin-bottom: 15px;
    }

    /* Brand logo mobile adjustments for very small screens - piccolo ma leggibile */
    .brand-logo {
        width: 32px !important;
        height: 32px !important;
    }

    .brand-text-img {
        height: 12px !important;
    }

    .nav-brand {
        gap: 3px !important;
    }

    .nav-brand {
        gap: 6px;
    }

    .nav-container {
        padding: 0 8px;
    }

    /* Ultra-small screen optimizations */
    .container {
        padding: 0 8px;
    }

    /* Footer logo centrato per schermi piccoli */
    .footer-logo-combined {
        height: 120px !important;
        margin: 0 auto !important;
        display: block !important;
    }

    .footer-brand {
        text-align: center !important;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .search-box input {
        padding: 14px 16px;
        font-size: 0.95rem;
    }

    .search-btn {
        padding: 14px 16px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .product-info {
        padding: 16px;
    }

    .product-title {
        font-size: 1.1rem;
    }

    .product-description {
        font-size: 0.85rem;
    }

    .buy-btn {
        padding: 10px;
        font-size: 0.9rem;
    }

    /* Modal responsive adjustments */
    .modal {
        width: 98%;
        max-height: 90vh;
        margin: 10px;
    }

    .modal-header {
        padding: 20px 20px 15px;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }

    .modal-content {
        padding: 15px 20px 20px;
        font-size: 0.95rem;
    }

    .modal-content h4 {
        font-size: 1.1rem;
    }

    /* Better touch scrolling on mobile */
    .modal-content {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* Smaller custom scrollbar on mobile */
    .modal-content::-webkit-scrollbar {
        width: 3px;
    }
}

/* Ultra small screens (< 320px) */
@media (max-width: 320px) {
    .brand-logo {
        width: 28px !important;
        height: 28px !important;
    }

    .brand-text-img {
        height: 10px !important;
    }

    .nav-brand {
        gap: 3px !important;
    }

    .nav-container {
        padding: 0 6px;
    }

    .nav-toggle {
        padding: 8px;
    }

    .bar {
        width: 20px;
        height: 2px;
    }
}

/* LOGO MOBILE EQUILIBRATO - PRIORITÀ MASSIMA */
@media screen and (max-width: 768px) {
    .nav-brand .brand-logo {
        width: 45px !important;
        height: 45px !important;
        max-width: 45px !important;
        max-height: 45px !important;
    }

    .nav-brand .brand-text-img {
        height: 18px !important;
        max-height: 18px !important;
    }

    .nav-brand {
        gap: 5px !important;
        font-size: 0.9rem !important;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: white;
    border-radius: 20px;
    max-width: 900px;
    width: 95%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    overflow: hidden;
}


.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background: white;
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--bg-secondary);
    color: var(--danger-color);
    transform: scale(1.1);
}

.modal-content {
    padding: 20px 30px 30px;
    line-height: 1.7;
    color: var(--text-primary);
    overflow-y: auto;
    flex: 1;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbar for Modal Content */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
    margin: 10px 0;
}

.modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    transition: all 0.3s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), #3b37c8);
}

/* Firefox Scrollbar for Modal Content */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-secondary);
}

.modal-content h4 {
    color: var(--primary-color);
    margin: 20px 0 10px;
    font-weight: 600;
}

.modal-content p {
    margin-bottom: 15px;
}

.modal-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.modal-content li {
    margin-bottom: 8px;
}

.modal-content .highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    border-left: 4px solid var(--primary-color);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Logo Styles */
.brand-logo {
    width: 81px;
    height: 81px;
    object-fit: contain;
    margin-right: 5px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    max-width: none;
}

.brand-text-img {
    height: 37px;
    object-fit: contain;
    transition: all 0.3s ease;
    flex-shrink: 0;
    max-height: 37px;
}

.nav-brand {
    flex-shrink: 0;
    min-width: fit-content;
}

.footer-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    margin-right: 5px;
}

.footer-logo-combined {
    height: 181px;
    object-fit: contain;
    max-width: 100%;
}

/* Panda Theme Colors */
:root {
    --panda-orange: #ff8c00;
    --panda-dark: #2c3e50;
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--panda-orange) 0%, #ff6b35 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Tooltip styles for truncated text */
.truncated-text {
    cursor: help;
    position: relative;
}

.truncated-text:hover {
    color: var(--primary-color);
}

/* Tooltip container styles */
#customTooltip {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    color: white;
    padding: 20px 30px;
    border-radius: 12px;
    font-size: 1rem;
    z-index: 999999;
    min-width: 450px;
    max-width: 650px;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #333;
    line-height: 1.6;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
}

#customTooltip.show {
    opacity: 1;
    visibility: visible;
}

#tooltipOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-out;
    pointer-events: none;
}

#tooltipOverlay.show {
    opacity: 1;
    visibility: visible;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

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

/* Mobile adjustments for tooltips */
@media (max-width: 768px) {
    #customTooltip {
        min-width: 300px;
        max-width: 90vw;
        font-size: 0.85rem;
        padding: 14px 20px;
    }
}

@media (max-width: 480px) {
    #customTooltip {
        min-width: 280px;
        max-width: 85vw;
        font-size: 0.8rem;
        padding: 12px 16px;
    }
}