:root {
    --primary-color: #5FB7BB;
    --primary-dark: #4ca0a4;
    --accent-color: #FFD166;
    --text-dark: #2D3436;
    --text-light: #636E72;
    --white: #ffffff;
    --bg-light: #F9FAFB;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 15px 35px rgba(95, 183, 187, 0.2);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(95, 183, 187, 0.4);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(95, 183, 187, 0.6);
}

.btn-secondary {
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-mini {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-mini:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-white {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.full-width {
    width: 100%;
}

/* Topbar Countdown */
.topbar-countdown {
    background: linear-gradient(90deg, var(--text-dark), #1a1f20);
    color: var(--white);
    padding: 10px 0;
    text-align: center;
    position: relative;
    z-index: 1100;
}

.countdown-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.countdown-label {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.countdown-timer {
    display: flex;
    gap: 10px;
    align-items: center;
    font-family: var(--font-heading);
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.time-block span {
    font-size: 1.1rem;
    font-weight: 700;
}

.time-block small {
    font-size: 0.6rem;
    text-transform: uppercase;
    opacity: 0.7;
    font-weight: 500;
}

.separator {
    font-weight: 700;
    color: var(--primary-color);
    margin-top: -8px;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.modal-header p {
    color: var(--text-light);
    margin-bottom: 25px;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.modal-form input {
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 2px solid #eee;
    font-family: var(--font-body);
    font-size: 1rem;
}

.modal-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.mute {
    color: #aaa;
    font-style: italic;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }

/* Navbar */
.navbar {
    padding: 20px 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -1px;
    z-index: 1001;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.nav-toggle-label span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.hero-text .highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero-text .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: rgba(95, 183, 187, 0.2);
    z-index: -1;
    border-radius: 4px;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 90%;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    z-index: 2;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    transform: rotate(-3deg);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: rotate(0deg) scale(1.02);
}

/* Floating Shapes */
.floating-shape {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -50px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    bottom: -30px;
    left: -30px;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Marquee Section */
.marquee-container {
    background-color: var(--text-dark);
    color: var(--white);
    padding: 15px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    transform: rotate(-1deg) scale(1.02);
    margin: 40px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.marquee-content span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Products Section */
.products-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.products-grid.drop-grid {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 1024px) {
    .products-grid.drop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid.drop-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.product-image {
    position: relative;
    height: 300px;
    background-color: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image img {
    max-width: 80%;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-info {
    padding: 24px;
    text-align: center;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.product-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* Promo Section */
.promo-section {
    padding: 100px 0;
}

.promo-container {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-lg);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--white);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(95, 183, 187, 0.3);
}

.promo-content {
    flex: 1;
    z-index: 2;
    max-width: 500px;
}

.promo-badge {
    display: inline-block;
    background-color: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.4);
}

.promo-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.promo-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.promo-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.promo-visual img {
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transform: rotate(5deg);
}

.circle-graphic {
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

/* Newsletter Section */
.newsletter-section {
    padding: 100px 0;
    text-align: center;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.newsletter-content p {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border-radius: 50px;
    border: 2px solid #eee;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(95, 183, 187, 0.1);
}

.small-text {
    font-size: 0.85rem;
    color: #999;
}

/* Footer */
.main-footer {
    background-color: var(--white);
    padding-top: 80px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: var(--text-dark);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 20px;
    display: inline-block;
}

.footer-brand p {
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 300px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-light);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 24px 0;
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    background-color: #fafafa;
}

/* Media Queries */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .countdown-content {
        flex-direction: column;
        gap: 5px;
    }

    .countdown-timer {
        gap: 15px;
    }

    .nav-toggle-label {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 120px; /* Adjusted for topbar */
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 40px 20px;
        gap: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
    }

    /* Show menu when checkbox is checked */
    #nav-toggle:checked ~ .nav-links {
        transform: translateY(0);
    }
    
    /* Hamburger animation */
    #nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    #nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    
    #nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav-btn {
        display: none; /* Hide cart button on mobile header, maybe move inside menu if needed */
    }

    /* Add Cart button inside mobile menu */
    .nav-links::after {
        content: 'Carrello (0)';
        display: block;
        color: var(--primary-color);
        font-weight: 600;
        padding: 10px 20px;
        border: 2px solid var(--primary-color);
        border-radius: 50px;
        margin-top: 10px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding-top: 20px;
    }

    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-text p {
        margin: 0 auto 30px;
    }

    .hero-image {
        margin-top: 40px;
    }

    .promo-container {
        flex-direction: column;
        padding: 40px;
        text-align: center;
    }

    .promo-visual {
        margin-top: 50px;
    }
    
    .promo-content h2 {
        font-size: 2.2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .btn-primary {
        width: 90%;
        margin: 0 auto;
        text-align: center;
        display: block;
    }
}

@media (max-width: 600px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        margin: 0 auto 24px;
    }

    .social-links {
        justify-content: center;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
}
