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

:root {
    --primary: #000000;
    --primary-lighter: #555555;
    --secondary: #bbb6b6;
    --accent: #faf6f1;
    --dark: #3d3d3d;
    --light: #f5f3f0;
    --border: #e8ddd5;
    --text: #2d2d2d;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text);
    background-color: var(--accent);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

/* Header & Navigation */
header {
    background-color: white;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Merriweather', serif;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.logo-icon img {
    width: 24px;
    height: 24px;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    color: var(--text);
}

.hamburger {
    display: flex;
    flex-direction: column;
    width: 24px;
    height: 20px;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background-color: var(--light);
    padding: 4rem 1.5rem;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-content .highlight {
    color: var(--primary);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-lighter);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(200, 90, 58, 0.2);
}

.btn-secondary {
    background-color: white;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background-color: var(--primary);
    color: white;
}

.hero-image {
    border-radius: 1rem;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.hero-image img, .chi-siamo-image img {
    max-width: 100%;
    border-radius: 1rem;
}

/* Divider */
.divider {
    width: 100%;
    height: 80px;
    background: var(--secondary);
    opacity: 0.1;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Sections */
section {
    padding: 5rem 1.5rem;
}

section h2 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 1rem;
}

section > .container > p:first-of-type {
    text-align: center;
    color: var(--text);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Chi Siamo Section */
#chi-siamo {
    background-color: white;
}

/* Carousel Section */
#carousel {
    background-color: white;
}

.carousel-wrapper {
    margin-top: 3rem;
}

.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-track-container {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: scale-down;
    display: block;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: white;
    padding: 2rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.carousel-slide:hover .carousel-caption {
    transform: translateY(0);
}

.carousel-caption h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.carousel-caption p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    margin: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 3rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

/* Chi Siamo Section */

.chi-siamo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.chi-siamo-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text);
}

.chi-siamo-image {
    border-radius: 1rem;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* Marche Section */
#marche {
    background-color: var(--light);
}

.marche-category {
    margin-bottom: 3rem;
}

.marche-category h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.brand-card {
    background-color: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.brand-card:hover, .product-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.brand-card img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.brand-card-text {
    text-align: center;
}

.brand-card-text .brand-name {
    font-weight: 600;
    color: var(--text);
}

.brand-card-text .brand-category {
    font-size: 0.875rem;
    color: var(--text);
    opacity: 0.7;
}

/* Prodotti Section */
#prodotti {
    background-color: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background-color: var(--light);
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.product-card p {
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Servizi Section */
#servizi {
    background-color: var(--light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background-color: white;
    border-radius: 0.5rem;
    padding: 2rem;
    border: 1px solid var(--border);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.service-card ul {
    list-style: none;
    margin-left: 0;
}

.service-card li {
    padding: 0.5rem 0;
    color: var(--text);
}

.service-card li:before {
    content: "✓ ";
    color: var(--primary);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Test Section */
#test {
    background-color: white;
}

.test-content {
    max-width: 700px;
    margin: 3rem auto;
    text-align: center;
}

.test-content li {
    list-style-type: none;
}

.test-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text);
}

.test-download {
    display: inline-block;
    margin-top: 2rem;
}

/* Contatti Section */
#contatti {
    background: linear-gradient(135deg, var(--dark) 0%, #4a4a4a 100%);
    color: white;
}

#contatti h2 {
    color: white;
}

.contatti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contatti-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contatti-card h3 {
    color: white;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contatti-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
}

.contatti-card a {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a img, .contatti-card a img {
    height: 24px;
}

.social-links a:hover {
    background-color: var(--primary);
    color: white;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 0.5rem 0;
    opacity: 0.8;
}

footer a {
    color: var(--accent);
    margin: 0 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1rem 0;
    }

    .header-container {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-icon {
        width: 35px;
        height: 35px;
    }

    .logo-icon img {
        width: 20px;
        height: 20px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        gap: 0;
        padding: 80px 0 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav a {
        padding: 1rem 2rem;
        border-bottom: 1px solid var(--border);
        width: 100%;
        text-align: left;
    }

    nav a:hover {
        background-color: var(--light);
    }

    /* Overlay per chiudere il menu */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .chi-siamo-content {
        grid-template-columns: 1fr;
    }

    .brands-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    section {
        padding: 3rem 1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Carousel responsive */
    .carousel-slide img {
        height: 350px;
    }

    .carousel-btn {
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }

    .carousel-btn-prev {
        left: 0.5rem;
    }

    .carousel-btn-next {
        right: 0.5rem;
    }

    .carousel-caption {
        padding: 1.5rem;
    }

    .carousel-caption h3 {
        font-size: 1.25rem;
    }

    .carousel-caption p {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .logo span {
        font-size: 1rem;
    }

    .logo-icon {
        width: 30px;
        height: 30px;
    }

    .logo-icon img {
        width: 18px;
        height: 18px;
    }

    nav {
        width: 80%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    nav {
        gap: 0.5rem;
        font-size: 0.9rem;
    }

    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .brand-card {
        min-height: 100px;
        padding: 1rem;
    }

    .brand-card img {
        max-height: 60px;
    }

    /* Carousel responsive */
    .carousel-slide img {
        height: 250px;
    }

    .carousel-btn {
        font-size: 1.5rem;
        padding: 0.25rem 0.75rem;
    }

    .carousel-caption {
        padding: 1rem;
    }

    .carousel-caption h3 {
        font-size: 1.1rem;
    }

    .carousel-caption p {
        font-size: 0.8rem;
    }
}

