/* RESET & BASE */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "montserrat", sans-serif;
    font-size: 16px;
    color: #000;
    background-color: #f8f7f7;
}
*, *::before, *::after {
    box-sizing: inherit;
}
h1, h2, h3, h4, h5, h6 {
    font-family: "stilson", serif;
    margin: 0;
    padding: 0;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* HEADER */
header {
    background-color: #f8f7f7;
    border-bottom: 1px solid #ccc;
}
header .container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}
/* Header fisso senza blur */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Tolto backdrop-filter e reso un semplice background semitrasparente */
    background-color: rgba(248,247,247,0.8);
    border-radius: 0;
    box-shadow: none;
    z-index: 999;
    padding: 0 20px;
}
.site-header.scrolled {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    border-radius: 9999px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* LOGO */
.logo img {
    height: 50px;
}

/* NAV PRINCIPALE */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    justify-content: center;
}
.main-nav a {
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
}
.visit-store-cta .btn {
    background-color: #d61116;
    color: #f8f7f7;
}
/* Hamburger mobile */
.hamburger {
    display: none;
}

/* HERO SLIDER (singola immagine di sfondo) */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: url('../images/hero1.avif') center/cover no-repeat;
}
.hero-slider::before {
    /* Overlay scuro leggero */
    content: "";
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}
.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    max-width: 600px;
    color: #fff;
    padding: 0 20px;
    z-index: 2;
}
.hero-content .hero-logo {
    max-width: none;
    margin: 0 auto 20px;
    filter: saturate(1.3) brightness(1.1);
    transition: filter 0.3s ease;
}
.hero-content .hero-logo:hover {
    filter: saturate(1.5) brightness(1.2);
}
.hero-content p {
    font-family: "montserrat", sans-serif;
    font-size: 1.4rem;
    margin-bottom: 30px;
    line-height: 1.4;
    text-shadow: 0 3px 6px rgba(0,0,0,0.6);
}

/* SEZIONE PARALLAX SEMPLIFICATA (tolto background-attachment: fixed) */
.parallax-section {
    background: url('../images/parallax-bg.avif') center/cover no-repeat;
    padding: 100px 0;
    text-align: center;
    color: #f8f7f7;
}
.parallax-section .parallax-content {
    background: rgba(0,0,0,0.4);
    display: inline-block;
    padding: 40px 60px;
    border-radius: 5px;
}

/* SEZIONI GENERICHE */
section {
    padding: 60px 0;
}
section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    position: relative;
    font-weight: 700;
}
section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: #d61116;
    margin: 10px auto 0;
}
section p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.6;
}

/* CHI SIAMO */
.chi-siamo .container {
    text-align: center;
}
.chi-siamo .chi-siamo-gallery {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 30px 0;
}
.chi-siamo .chi-siamo-gallery img {
    max-width: 500px;
    width: 100%;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: cover;
}
.chi-siamo .chi-siamo-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* COLLEZIONI */
.collezioni .prodotti-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-items: center;
}
.collezioni .prodotto {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 3px;
}
.collezioni .prodotto img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
    display: block;
    margin: 0 auto 15px;
}
.collezioni .prodotto h3 {
    margin: 15px 0;
    font-size: 1.2rem;
}
.collezioni .prodotto p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}
.collezioni .prodotto .btn-primary {
    background-color: #d61116;
    color: #f8f7f7;
    font-weight: 600;
}

/* SERVIZI */
.servizi .container {
    text-align: center;
}

.servizi .servizi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}
.servizi .servizio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f8f7f7;
    border-radius: 5px;
}
.servizi .servizio-item img {
    height: 50px;
    margin-bottom: 15px;
}
.servizi .servizio-item h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}
.servizi .servizio-item p {
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 200px;
}

/* BRAND PARTNER (marquee rallentato) */
.brand-partner {
    overflow: hidden;
    position: relative;
    text-align: center;
    padding: 60px 0;
}
.brand-partner h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: "stilson", serif;
}
.brand-logos-wrap {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.brand-logos {
    display: flex;
    gap: 40px;
    /* Velocità ridotta per meno lag */
    animation: scroll-logos 50s linear infinite;
    align-items: center;
}
.brand-logos img {
    height: 50px;
    flex-shrink: 0;
}
@keyframes scroll-logos {
    from { transform: translateX(0%); }
    to   { transform: translateX(-50%); }
}

/* GALLERY MOTO */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.gallery-grid img {
    width: 100%;
    display: block;
    background: #fff;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 5px;
}
.gallery-preview .container {
    text-align: center;
}

/* RECENSIONI */
.recensioni .recensioni-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}
.recensioni blockquote {
    background-color: #fff;
    padding: 20px;
    border-left: 4px solid #d61116;
    max-width: 600px;
    font-style: italic;
}

/* CONTATTI */
.contatti .mappa iframe {
    border: none;
    margin: 30px 0;
}
.contatti .container {
    text-align: center;
}

/* FOOTER */
footer {
    background-color: #ba1818;
    color: #f8f7f7;
    padding: 20px 0;
}
footer .footer-links {
    text-align: center;
    margin-bottom: 20px; /* un po’ di spazio sotto il menu */
}

footer .footer-links ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0; /* <--- Aggiungi questa riga */
    justify-content: center;
}

footer .footer-links a {
    color: #f8f7f7;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}
footer .social {
    /* layout in flex per centrare orizzontalmente */
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 20px; /* spazio orizzontale fra i loghi */
    margin: 20px 0;
}

footer .social a img {
    width: 40px; 
    height: 40px; 
    /* assicura che mantengano il giusto rapporto d’aspetto */
    object-fit: contain; 
}

footer .legal {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 20px;
}
footer .legal a {
    color: #f8f7f7;
    text-decoration: underline;
}

/* BOTTONI */
.btn,
.btn-primary {
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 9999px;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}
.btn {
    background-color: #000;
    color: #f8f7f7;
}
.btn-primary {
    background-color: #d61116;
    color: #f8f7f7;
}
.btn:hover,
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}
.btn:hover {
    background-color: #333;
}
.btn-primary:hover {
    background-color: #ba1818;
}

/* FEATURED BOXES */
.featured-boxes {
    padding: 60px 0;
    background-color: #f8f7f7;
  	margin-top:80px;
}
.box-wrap {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}
.box {
    position: relative;
    display: block;
    flex: 1 1 300px;
    aspect-ratio: 1;
    text-decoration: none;
    overflow: hidden;
    border-radius: 5px;
}
.box::before {
    content: "";
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
    z-index: 0;
}
.box::after {
    content: "";
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: rgba(255,255,255,0);
    transition: background 0.3s ease;
    z-index: 1;
}
.box .box-content {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    color: #fff;
    transition: transform 0.3s ease;
}
.box .box-content h3 {
    font-family: "stilson", serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 5px;
}
.box .box-content p {
    font-family: "montserrat", sans-serif;
    font-size: 1rem;
}
.box:hover::before {
    transform: rotate(1deg) scale(1.05);
}
.box:hover::after {
    background: rgba(255,255,255,0.2);
}
.box:hover .box-content {
    transform: scale(1.15);
}
/* Immagini box in background */
.box-1::before { background-image: url('../images/evidenza_1.avif'); }
.box-2::before { background-image: url('../images/evidenza_2.avif'); }
.box-3::before { background-image: url('../images/evidenza_3.avif'); }

/* RESPONSIVE NAV / GRID */
@media (min-width: 769px) {
    .main-nav {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background: none;
        border-radius: 0;
        padding: 0;
        display: flex !important;
    }
    .main-nav ul {
        flex-direction: row;
        gap: 20px;
    }
    .main-nav li {
        display: inline-block;
    }
    .visit-store-cta {
        display: block;
    }
    .hamburger {
        display: none;
    }
}
@media (max-width: 992px) {
    .collezioni .prodotti-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .visit-store-cta {
        display: none;
    }
    .hamburger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }
    .hamburger span {
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: #000;
        left: 0;
        transition: all 0.3s ease;
    }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 8px; }
    .hamburger span:nth-child(3) { top: 16px; }
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 8px;
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 8px;
    }
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background-color: rgba(248,247,247,0.9);
        border-radius: 20px;
        padding: 20px;
        width: 80%;
    }
    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .main-nav.active {
        display: block;
    }
    .hero-slider {
        height: 60vh;
    }
    .hero-content .hero-logo {
        max-width: none;
        height: 100px;
    }
    .btn, .btn-primary {
        font-size: 0.8rem;
        padding: 10px 20px;
    }
    .box {
        flex: 1 1 100%;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .brand-logos img {
        height: 40px;
    }
    .servizi .servizi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .chi-siamo .chi-siamo-gallery {
        flex-direction: column;
    }
}
@media (max-width: 576px) {
    .servizi .servizi-grid {
        grid-template-columns: 1fr;
    }
    .collezioni .prodotti-grid {
        grid-template-columns: 1fr;
    }
}



