/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Development Top Bar */
.dev-bar {
    background: linear-gradient(135deg, #1a1a1a, #333);
    color: #fff;
    padding: 0.5rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    border-bottom: 2px solid #FF6B35;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    height: auto;
    min-height: 40px;
    box-sizing: border-box;
}

/* Nascondi completamente la dev-bar quando non visibile */
.dev-bar[style*="display: none"],
.dev-bar.hidden {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    top: -100px !important;
}

/* Quando il countdown top bar è presente, sposta la dev bar sotto */
.side-countdown.active ~ .dev-bar,
body:has(.side-countdown.active) .dev-bar {
    top: 40px;
}

.dev-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.dev-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
}

.dev-toggle input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Side Countdown (Top Bar durante Black Friday) */
.side-countdown {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    display: none; /* Nascosto di default */
    height: 0;
    padding: 0;
    margin: 0;
    border: none;
}

/* Mostra il countdown solo quando ha la classe active */
.side-countdown.active {
    display: block;
    height: auto;
    padding: 0.5rem 1rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.side-countdown-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    color: #fff;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.side-countdown-title {
    font-size: 0.9rem;
    font-weight: 700;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.side-countdown-title span {
    font-size: 1rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
    font-weight: 800;
}

.side-countdown-timer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.side-countdown-item {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    min-width: 50px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.side-countdown-number {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.side-countdown-label {
    display: block;
    font-size: 0.6rem;
    margin-top: 0.1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.side-countdown-sep {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .side-countdown.active {
        padding: 0.4rem 0.5rem;
    }
    
    .side-countdown-content {
        gap: 0.4rem;
    }
    
    .side-countdown-title {
        font-size: 0.7rem;
    }
    
    .side-countdown-title span {
        font-size: 0.8rem;
    }
    
    .side-countdown-number {
        font-size: 0.9rem;
    }
    
    .side-countdown-item {
        padding: 0.25rem 0.35rem;
        min-width: 35px;
    }
    
    .side-countdown-label {
        font-size: 0.5rem;
    }
    
    .side-countdown-sep {
        font-size: 0.75rem;
    }
}

:root {
    /* VibraSonic Colors (natural/earthy tones) */
    --primary-color: #8B7355;
    --secondary-color: #A68B5B;
    --accent-color: #D4A574;
    --text-dark: #2C2416;
    --text-light: #6B5D4F;
    --bg-light: #F5F3F0;
    --bg-white: #FFFFFF;
    
    /* Black Friday Colors */
    --bf-black: #1a1a1a;
    --bf-orange: #FF6B35;
    --bf-red: #C41E3A;
    --bf-dark-red: #8B1538;
    --bf-gold: #FFD700;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    
    /* Typography */
    --font-primary: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--bf-black) 0%, var(--bf-dark-red) 100%);
    padding: var(--spacing-md) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: top 0.3s ease;
}

/* Quando la dev bar è visibile (non ha display:none e non ha classe hidden) e countdown non attivo */
.dev-bar:not([style*="display: none"]):not(.hidden) ~ .header,
body:has(.dev-bar:not([style*="display: none"]):not(.hidden)):not(:has(.side-countdown.active)) .header {
    top: 40px !important;
}

/* Assicurati che non ci sia spazio vuoto tra dev-bar e header quando dev-bar è visibile */
body:has(.dev-bar:not([style*="display: none"]):not(.hidden)):not(:has(.side-countdown.active)) {
    padding-top: 0 !important;
}

body:has(.dev-bar:not([style*="display: none"]):not(.hidden)):not(:has(.side-countdown.active)) .header {
    margin-top: 0 !important;
}

/* Quando il countdown top bar è presente e attivo, aggiungi margine all'header */
.side-countdown.active ~ .header,
body:has(.side-countdown.active):not(:has(.dev-bar:not([style*="display: none"]):not(.hidden))) .header {
    top: 50px !important;
}

/* Se sia dev-bar visibile che side-countdown sono presenti */
body:has(.dev-bar:not([style*="display: none"]):not(.hidden)):has(.side-countdown.active) .header,
.dev-bar:not([style*="display: none"]):not(.hidden) ~ .side-countdown.active ~ .header {
    top: 90px !important;
}

/* Quando la dev bar è nascosta, il countdown si attacca direttamente in alto */
body:has(.dev-bar.hidden):has(.side-countdown.active) .header,
body:has(.dev-bar[style*="display: none"]):has(.side-countdown.active) .header {
    top: 50px !important;
}

/* Quando non c'è né dev-bar visibile né countdown attivo, l'header è attaccato in alto */
body:not(:has(.dev-bar:not([style*="display: none"]):not(.hidden))):not(:has(.side-countdown.active)) .header {
    top: 0 !important;
}

/* Regola già definita sopra */

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.logo a {
    text-decoration: none;
    color: var(--bg-white);
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: 2px;
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
}

.header-badge {
    background: linear-gradient(45deg, var(--bf-orange), var(--bf-gold));
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.header-badge-link {
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.header-badge-link:hover {
    transform: scale(1.05);
}

.header-badge span {
    color: var(--bf-black);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
    display: block;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Hero Section */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--bf-black) 0%, var(--bf-dark-red) 50%, var(--bf-black) 100%);
    padding: var(--spacing-xl) 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--bf-orange);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--bf-gold);
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--bf-red);
    bottom: 10%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--bg-white);
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.title-line-1 {
    display: block;
    background: linear-gradient(45deg, var(--bf-orange), var(--bf-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s infinite;
}

.title-line-2 {
    display: block;
    color: var(--bg-white);
    font-size: 0.6em;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.3); }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 300;
    opacity: 0.95;
}

.countdown-start-info {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    color: var(--bf-gold);
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    letter-spacing: 0.5px;
}

.countdown-intro {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
    opacity: 0.95;
}

.countdown-intro #countdown-text {
    color: var(--bf-gold);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    margin: var(--spacing-md) 0;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: var(--spacing-md);
    border-radius: 15px;
    min-width: 100px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bf-gold);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.countdown-separator {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bf-orange);
}

/* Countdown verde quando le offerte sono attive */
.countdown-active .countdown-item {
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid rgba(34, 197, 94, 0.5);
}

.countdown-active .countdown-number {
    color: #22c55e;
    text-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
}

.countdown-active .countdown-separator {
    color: #22c55e;
}

.countdown-active .countdown-label {
    color: rgba(34, 197, 94, 0.9);
}

.countdown-description {
    font-size: 1.2rem;
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    color: var(--bf-gold);
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
    letter-spacing: 1px;
}

.hero-badge {
    margin-top: var(--spacing-md);
}

.hero-badge-link {
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-badge-link:hover {
    transform: scale(1.1);
}

.hero-badge span {
    background: linear-gradient(45deg, var(--bf-orange), var(--bf-red));
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.5);
    animation: bounce 2s infinite;
    color: var(--bg-white);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Products Section */
.products-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
    color: var(--bf-black);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

/* Category Links */
.category-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: var(--spacing-xl);
    padding: 0 1rem;
}

.category-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--bf-red), var(--bf-dark-red));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    min-width: 180px;
}

.category-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, var(--bf-dark-red), var(--bf-red));
    border-color: var(--bf-gold);
}

.category-link:active {
    transform: translateY(-1px);
}

/* Corsi Category Link - Green Theme */
.category-link-corsi {
    background: linear-gradient(135deg, #4CAF50, #2d8659) !important;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3) !important;
}

.category-link-corsi:hover {
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.5) !important;
    background: linear-gradient(135deg, #2d8659, #4CAF50) !important;
    border-color: #66BB6A !important;
}

@media (max-width: 768px) {
    .category-links {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .category-link {
        width: 100%;
        max-width: 300px;
        font-size: 0.95rem;
        padding: 0.7rem 1.2rem;
    }
}

.category-section {
    margin-bottom: var(--spacing-xl);
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    padding-left: var(--spacing-sm);
    border-left: 5px solid var(--bf-orange);
}

/* Corsi Category - Green Theme */
.category-title-corsi {
    color: #2d8659;
    border-left: 5px solid #4CAF50;
}

.category-section-corsi {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.05), rgba(45, 134, 89, 0.05));
    padding: var(--spacing-md);
    border-radius: 15px;
    border: 2px solid rgba(76, 175, 80, 0.2);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

/* Product Card */
.product-card {
    background: var(--bg-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--bg-white);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-weight: 800;
    font-size: 1rem;
    z-index: 10;
    animation: pulse 2s infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

/* Badge SUPER OFFERTA (sconto > 300€) */
.product-badge-super {
    background: linear-gradient(45deg, #FF6B35, #C41E3A, #FFD700);
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.8);
    border: 2px solid var(--bf-gold);
}

/* Badge OFFERTA normale (sconto <= 300€) */
.product-badge-normal {
    background: linear-gradient(45deg, var(--bf-orange), var(--bf-red));
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.6);
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: var(--bg-light);
}

.product-discount-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: linear-gradient(45deg, var(--bf-orange), var(--bf-red));
    color: var(--bg-white);
    padding: 0.6rem 1rem;
    border-radius: 25px;
    font-weight: 800;
    font-size: 0.95rem;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.6);
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.product-image-hover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-image-hover:hover .product-image {
    opacity: 0;
}

.product-image-hover:hover .product-image-hover-img {
    opacity: 1;
}

.product-card:hover .product-image:not(.product-image-hover-img) {
    transform: scale(1.1);
}

.product-card:hover .product-image-hover-img {
    transform: scale(1.1);
}

.product-info {
    padding: var(--spacing-md);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
    line-height: 1.3;
}

.product-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    flex-grow: 1;
    line-height: 1.5;
}

.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    flex-wrap: wrap;
}

.product-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--bf-red);
}

.product-price-original {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: line-through;
    opacity: 0.7;
}

.product-discount {
    background: var(--bf-orange);
    color: var(--bg-white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 700;
}

.product-link-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.product-link {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--bf-black), var(--bf-dark-red));
    color: var(--bg-white);
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    flex: 1;
}

.product-link:hover {
    background: linear-gradient(135deg, var(--bf-dark-red), var(--bf-black));
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.4);
}

.product-info-icon {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
    flex-shrink: 0;
}

.product-info-icon:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.5);
}

.product-info-icon:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .product-link-wrapper {
        gap: 0.3rem;
    }
    
    .product-info-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

.product-link-disabled {
    background: linear-gradient(135deg, #666, #555) !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none;
}

.product-link-disabled:hover {
    background: linear-gradient(135deg, #666, #555) !important;
    transform: none !important;
    box-shadow: none !important;
}

.product-note {
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: var(--spacing-xs);
    padding-top: var(--spacing-xs);
    border-top: 1px solid var(--bg-light);
}

.product-note-blink {
    animation: blink 1.5s infinite;
    font-weight: 700;
    color: var(--bf-red);
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.1), rgba(196, 30, 58, 0.1));
    padding: 0.5rem;
    border-radius: 8px;
    border: 2px solid var(--bf-orange);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--bf-black), var(--bf-dark-red));
    padding: var(--spacing-xl) 0;
    text-align: center;
    color: var(--bg-white);
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--bf-orange), var(--bf-gold));
    color: var(--bf-black);
    padding: 1.2rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 25px rgba(255, 107, 53, 0.4);
}

.cta-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(255, 107, 53, 0.6);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--bg-white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-color);
}

.footer-section p {
    margin-bottom: var(--spacing-xs);
    line-height: 1.8;
    opacity: 0.9;
}

.footer-section a {
    color: var(--bg-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.social-link {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: var(--spacing-xs);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .countdown-start-info {
        font-size: 1rem;
    }
    
    .countdown-intro {
        font-size: 1.1rem;
    }
    
    .countdown-description {
        font-size: 1rem;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: var(--spacing-sm);
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .logo-img {
        max-height: 50px;
    }
    
    .header-badge span {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .countdown-start-info {
        font-size: 0.9rem;
    }
    
    .countdown-intro {
        font-size: 1rem;
    }
    
    .countdown-description {
        font-size: 0.9rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 0.75rem;
    }
    
    .countdown-number {
        font-size: 1.5rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* Loading Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.6s ease-out;
}

/* Modal per Corsi */
.corsi-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    align-items: center;
    justify-content: center;
}

.corsi-modal.active {
    display: flex;
}

.corsi-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.corsi-modal-content {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #FF6B35;
    animation: modalFadeIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.corsi-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.corsi-modal-close:hover {
    background: rgba(255, 107, 53, 0.2);
    transform: rotate(90deg);
}

.corsi-modal-body {
    text-align: center;
    color: #fff;
}

.corsi-modal-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #FF6B35;
    text-shadow: 0 2px 10px rgba(255, 107, 53, 0.3);
}

.corsi-modal-text {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.corsi-modal-code-box {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
    border: 2px solid rgba(255, 107, 53, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.corsi-modal-code-label {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.corsi-modal-code {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FF6B35;
    background: rgba(255, 107, 53, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    display: inline-block;
    margin: 0.8rem 0;
    letter-spacing: 0.2rem;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    border: 2px solid rgba(255, 107, 53, 0.3);
}

.corsi-modal-code-subtitle {
    font-size: 1rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.corsi-modal-button {
    background: linear-gradient(135deg, #FF6B35, #E85A2A);
    color: #fff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1.5rem 0 0.8rem;
    width: 100%;
    max-width: 100%;
}

.corsi-modal-thanks {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0.5rem 0 0;
    color: #22c55e;
}

.corsi-modal-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(255, 107, 53, 0.6);
    background: linear-gradient(135deg, #E85A2A, #FF6B35);
}

.corsi-modal-button:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .corsi-modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .corsi-modal-title {
        font-size: 2rem;
    }

    .corsi-modal-text {
        font-size: 1.1rem;
    }

    .corsi-modal-code {
        font-size: 2rem;
        padding: 0.8rem 1.5rem;
    }

    .corsi-modal-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* Modal per Prodotti Non Ancora Disponibili */
.early-access-modal {
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.early-access-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.early-access-modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    margin: auto;
    padding: 2rem;
    border: 2px solid #22c55e;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
    z-index: 10002;
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s ease;
}

.early-access-modal.active .early-access-modal-content {
    transform: scale(1) translateY(0);
}

.early-access-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.early-access-modal-close:hover {
    background: rgba(34, 197, 94, 0.2);
    transform: rotate(90deg);
}

.early-access-modal-body {
    text-align: center;
    color: #fff;
}

.early-access-modal-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #22c55e;
    text-shadow: 0 2px 10px rgba(34, 197, 94, 0.3);
}

.early-access-modal-text {
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.early-access-modal-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffd700;
}

.early-access-modal-whatsapp-box {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(34, 197, 94, 0.05));
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.early-access-modal-whatsapp-label {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.early-access-whatsapp-button {
    display: inline-block;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    text-decoration: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0.5rem 0;
}

.early-access-whatsapp-button:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.early-access-modal-note {
    font-size: 0.9rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

@media (max-width: 768px) {
    .early-access-modal-content {
        padding: 1.5rem;
    }
    
    .early-access-modal-title {
        font-size: 1.5rem;
    }
    
    .early-access-modal-text {
        font-size: 1rem;
    }
    
    .early-access-modal-question {
        font-size: 1rem;
    }
    
    .early-access-whatsapp-button {
        font-size: 1rem;
        padding: 0.8rem 2rem;
    }
}

