/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variabili colori */
:root {
    --primary-color: #333;
    --secondary-color: #666;
    --accent-color: #d4af37;
    --background-color: #a2b9af;
    --text-color: #333;
    --price-color: #d4af37;
    --description-color: #666;
    --link-color: #2b2e32;
    --footer-bottom: #ff966d;
    ;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* Header e Navigation */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    background-color: var(--background-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--link-color);

}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 60px;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 2rem;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.cta-button:hover {
    background-color: #b39030;
}

/* Featured Products */
.featured-products {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.featured-products h2 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s ease;
    border: 1px solid transparent;
    border-radius: 8px;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.product-card h3 {
    font-family: 'Playfair Display', serif;
    margin: 0.5rem 0;
    font-size: 1.3rem;
}

.product-card .price {
    color: var(--price-color);
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0.5rem 0;
}

.product-card .description {
    color: var(--description-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.shop-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 1rem;
    border-radius: 4px;
    font-weight: 500;
}

.shop-button:hover {
    background-color: var(--accent-color);
}

/* Newsletter */
.newsletter {
    background-color: #f9f9f9;
    padding: 5rem 2rem;
    text-align: center;
}

.newsletter-content {
    
    margin: 0 auto;
}

.newsletter h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.newsletter-form input {
    padding: 0.8rem;
    width: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.newsletter-form button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 4px;
    font-weight: 500;
}

.newsletter-form button:hover {
    background-color: #b39030;
}

/* Footer */
.footer {
    background-color: var(--background-color);
    color: var(--text-color);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--link-color);
}

.footer-section address {
    font-style: normal;
}

.footer-section address p {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: inline-block;
    margin: 0 0.5rem;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0.8;
}

.social-link:hover {
    opacity: 1;
    transform: scale(1.1);
    -webkit-transform: scale(1.1);
    -moz-transform: scale(1.1);
    -ms-transform: scale(1.1);
    -o-transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Focus styles for accessibility */
.nav-links a:focus,
.cta-button:focus,
.shop-button:focus,
.newsletter-form input:focus,
.newsletter-form button:focus,
.social-link:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.credits_link {
    color: #38B5E6 !important;
    font-weight: 700;
    font-family: sans-serif;
}

.credits_link:hover {
    color: #fff !important;
}

.credits_link:before {
    content: "";
    vertical-align: middle;
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 5px;
    margin-left: 5px;
    background-image: url(https://www.clion.it/favicon-96x96.png);
    background-repeat: no-repeat;
    -webkit-background-size: contain;
    background-size: contain;
    background-position: center center;

    transition: all 450ms ease;
}

.credits_link:hover:before {
    transform: rotateZ(360deg) rotateY(360deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
    }

    .product-card img {
        height: 300px;
    }
}

/* Print styles */
@media print {

    .header,
    .cta-button,
    .shop-button,
    .newsletter,
    .footer {
        display: none;
    }

    .hero {
        height: auto;
        margin-top: 0;
        background-image: none;
        color: black;
    }

    .product-card {
        break-inside: avoid;
    }
}

/* Nuovi Arrivi Section */
.nuovi-arrivi-section {
    padding: 5rem 2rem;
    background: #fff;
    max-width: 1200px;
    margin: 0 auto;
}

.nuovi-arrivi-container {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.nuovi-arrivi-img {
    flex: 1 1 350px;
    display: flex;
    justify-content: center;
}

.nuovi-arrivi-img img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nuovi-arrivi-content {
    flex: 2 1 400px;
}

.nuovi-arrivi-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.nuovi-arrivi-content h3 {
    font-size: 1.3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
}

.nuovi-arrivi-description {
    font-size: 1.1rem;
    color: var(--text-color);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .nuovi-arrivi-container {
        flex-direction: column;
        gap: 2rem;
    }

    .nuovi-arrivi-img img {
        max-width: 100%;
    }

    .nuovi-arrivi-content h2 {
        font-size: 2rem;
    }
}