/* CSS Ottimizzato per Core Web Vitals */
:root {
    --primary: #B51A84;
    --secondary: #00AEEF;
    --accent: #CF9A00;
    --dark: #1f1f1f;
    --light: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navbar */
header {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-nav {
    background: var(--secondary);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
}

.cta-nav:hover {
    background: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('[https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=1920&q=80](https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=1920&q=80)') center/cover;
    padding: 120px 5%;
    text-align: center;
    color: white;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--secondary);
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    font-weight: 300;
}

.btn-main {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s;
}

.btn-main:hover {
    transform: translateY(-3px);
    background: var(--primary);
}

/* Struttura a Griglia per Prodotti */
.section-padding {
    padding: 80px 5%;
    max-width: 1200px;
    margin: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
    text-align: center;
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary);
}

.card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.card-content {
    padding: 25px;
}

.card-content h3 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.card-content p {
    color: #666;
    font-size: 0.95rem;
}

/* Storytelling & Community */
.community {
    background: var(--primary);
    color: white;
    padding: 80px 5%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

.community-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.community-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent);
}

.community-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
}

.whatsapp-btn:hover {
    background: #1ebd5a;
    transform: scale(1.05);
}

/* FAQ Section per GEO (SGE) */
.faq-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.faq-item h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-icon {
    font-size: 1.4rem;
    color: var(--primary);
    flex-shrink: 0;
    vertical-align: middle;
}

.faq-item p {
    color: #555;
}

/* Contatti e Mappa */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.contact-info {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
}

.contact-info h3 {
    color: var(--secondary);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary);
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
}

.social-footer {
    margin: 20px 0;
}

.social-footer a {
    color: white;
    font-size: 2rem;
    margin: 0 10px;
    transition: 0.3s;
    display: inline-flex;
}

.social-footer a svg {
    width: 2rem;
    height: 2rem;
    fill: white;
    transition: fill 0.3s;
}

.social-footer a:hover svg {
    fill: var(--secondary);
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
}