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

:root {
    --turquoise: #7FCDCD;
    --sea-light: #A8E0E0;
    --sea-dark: #5FA9A9;
    --nero: #2C3E50;
    --rosso: #E74C3C;
    --crema: #FFF8F0;
    --grigio: #7F8C8D;
    --bianco: #FFFFFF;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--nero);
    background: var(--bianco);
    line-height: 1.4;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    font-family: 'Inter', sans-serif;
}

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

/* Hero */
.hero {
    height: 75vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
}

.hero-image-left,
.hero-image-center,
.hero-image-right {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.hero-image-left img,
.hero-image-center img,
.hero-image-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    filter: sepia(0.3) contrast(0.95) brightness(0.95) saturate(0.8) hue-rotate(-5deg);
    transition: var(--transition);
}

.hero-image-left:hover img,
.hero-image-center:hover img,
.hero-image-right:hover img {
    transform: scale(1.02);
    filter: sepia(0.25) contrast(1) brightness(0.98) saturate(0.85) hue-rotate(-5deg);
}

/* Title Section */
.title-section {
    background: #000000;
    padding: 60px 0;
    text-align: center;
}

.main-title {
    font-family: 'Londrina Shadow', cursive;
    font-size: 4rem;
    color: #ffffff;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.02em;
}

/* Products Section */
.products-section {
    background: #1a1a1a;
    background-image: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.02) 35px,
            rgba(255, 255, 255, 0.02) 36px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.02) 35px,
            rgba(255, 255, 255, 0.02) 36px
        );
    padding: 80px 0;
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.4) 100%);
    pointer-events: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.product-polaroid {
    background: transparent;
    padding: 0;
    transform: rotate(var(--rotation, 0deg));
    transition: transform 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.product-polaroid:nth-child(odd) {
    --rotation: -1.5deg;
}

.product-polaroid:nth-child(even) {
    --rotation: 1deg;
}

.product-polaroid:nth-child(3n) {
    --rotation: -0.5deg;
}

.product-polaroid:nth-child(5n) {
    --rotation: 2deg;
}

.product-polaroid:hover {
    transform: rotate(0deg) scale(1.05);
    z-index: 10;
}

.polaroid-wine-image {
    width: 100%;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    filter: saturate(1.3) contrast(1.1) brightness(0.9) sepia(0.2) hue-rotate(-10deg);
}

/* Wine region backgrounds */
.product-polaroid:nth-child(1) .polaroid-wine-image { background-image: url('assets/barolo.jpg'); background-size: cover; background-position: center; } /* Barolo - Piedmont hills */
.product-polaroid:nth-child(2) .polaroid-wine-image { background-image: url('assets/chianti.jpg'); background-size: cover; background-position: center; } /* Chianti - Tuscan countryside */
.product-polaroid:nth-child(3) .polaroid-wine-image { background-image: url('assets/amarone.jpg'); background-size: cover; background-position: center; } /* Amarone - Veneto valleys */
.product-polaroid:nth-child(4) .polaroid-wine-image { background-image: url('assets/brunello.jpg'); background-size: cover; background-position: center; } /* Brunello - Montalcino */
.product-polaroid:nth-child(5) .polaroid-wine-image { background-image: url('assets/prosecco.jpg'); background-size: cover; background-position: center; } /* Prosecco - Veneto hills */
.product-polaroid:nth-child(6) .polaroid-wine-image { background-image: url('assets/barbaresco.jpg'); background-size: cover; background-position: center; } /* Barbaresco - Piedmont */
.product-polaroid:nth-child(7) .polaroid-wine-image { background-image: url('assets/amarone.jpg'); background-size: cover; background-position: center; } /* Valpolicella - Veneto */
.product-polaroid:nth-child(8) .polaroid-wine-image { background-image: url('assets/tuscany.jpg'); background-size: cover; background-position: center; } /* Montepulciano - Abruzzo */
.product-polaroid:nth-child(9) .polaroid-wine-image { background-image: url('assets/sicily.jpg'); background-size: cover; background-position: center; } /* Nero d'Avola - Sicily */
.product-polaroid:nth-child(10) .polaroid-wine-image { background-image: url('assets/sicily.jpg'); background-size: cover; background-position: center; } /* Primitivo - Puglia */
.product-polaroid:nth-child(11) .polaroid-wine-image { background-image: url('assets/tuscany.jpg'); background-size: cover; background-position: center; } /* Vermentino - Sardinia coast */
.product-polaroid:nth-child(12) .polaroid-wine-image { background-image: url('assets/tuscany.jpg'); background-size: cover; background-position: center; } /* Falanghina - Campania */

.polaroid-wine-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at center, transparent 40%, rgba(0,0,0,0.3) 100%),
        linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.wine-label {
    font-family: 'Patrick Hand', cursive;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 400;
    margin-bottom: 4px;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transform: rotate(-1deg);
}

.wine-price {
    font-family: 'Patrick Hand', cursive;
    font-size: 1rem;
    color: #fff;
    font-weight: 400;
    margin-bottom: 6px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    transform: rotate(0.5deg);
}

.add-to-cart-btn {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: none;
    padding: 4px 12px;
    font-size: 0.7rem;
    font-family: 'Patrick Hand', cursive;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: rotate(-0.5deg);
}

.add-to-cart-btn:hover {
    background: rgba(0, 0, 0, 1);
    transform: translateY(-1px);
}

/* Navigation */
.navbar {
    position: relative;
    width: 100%;
    height: 25vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 40px;
    width: 100%;
    height: 100%;
}

.nav-brand {
    text-align: center;
    flex: 1;
}

.nav-brand h1 {
    font-family: 'Londrina Shadow', cursive;
    font-size: 2.5rem;
    font-weight: 400;
    color: var(--bianco);
    margin-bottom: 0;
    letter-spacing: 0.02em;
    text-transform: none;
    line-height: 0.9;
}

.nav-brand .tagline {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 400;
    margin-top: 0.2rem;
}

.nav-menu {
    position: absolute;
    right: 20px;
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-size: 0.8rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-menu a:hover {
    color: var(--bianco);
}

.cart-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--bianco);
    background: transparent;
    transition: var(--transition);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.cart-btn:hover {
    background: var(--bianco);
    color: var(--nero) !important;
}

/* Responsive */
@media (max-width: 968px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .main-title {
        font-size: 3rem;
    }
    
    .navbar {
        height: 20vh;
    }
    
    .navbar .container {
        padding: 1.5rem 20px;
    }
    
    .nav-brand h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        right: 10px;
    }
    
    .wine-label {
        font-size: 0.75rem;
    }
    
    .wine-price {
        font-size: 0.8rem;
    }
    
    .add-to-cart-btn {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .navbar {
        height: 15vh;
    }
    
    .navbar .container {
        padding: 1rem 15px;
    }
    
    .nav-brand h1 {
        font-size: 1.8rem;
    }
    
    .nav-brand .tagline {
        font-size: 0.6rem;
    }
    
    .hero {
        height: 50vh;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
    }
    
    .wine-label {
        font-size: 0.7rem;
    }
    
    .wine-price {
        font-size: 0.75rem;
    }
    
    .add-to-cart-btn {
        font-size: 0.6rem;
        padding: 2px 6px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .wine-label {
        font-size: 0.65rem;
    }
    
    .wine-price {
        font-size: 0.7rem;
    }
    
    .add-to-cart-btn {
        font-size: 0.55rem;
        padding: 2px 4px;
    }
}