/* ----- RESET & BASE STYLES ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: clip;
}

body {
    overflow: visible !important;
    font-family: 'Outfit', sans-serif;
    color: #333;
    background-color: #fdfafb;
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('pink_marble.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    pointer-events: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ----- TYPOGRAPHY ----- */
h1,
h2,
h3 {
    font-weight: 500;
    color: #222;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #c79695;
    /* Rose gold accent */
    border-radius: 2px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ----- NAVIGATION BAR ----- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: all 0.4s ease;
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

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

.logo img {
    height: 50px;
    /* Adjust based on logo proportions */
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Hamburger Menu Icon */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    /* Ensure it's above the menu */
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    /* Dark text since navbar is over marble */
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Change link color when navbar gets background */
#navbar.scrolled .nav-link {
    color: #333;
}

.nav-link:hover {
    color: #c79695;
    /* Rose gold accent on hover */
}

.btn-contattami {
    background-color: rgba(199, 150, 149, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    border: 1px solid #c79695;
}

#navbar.scrolled .btn-contattami {
    background-color: #c79695;
    color: #fff;
}

/* ----- HERO SECTION ----- */
.hero-section {
    width: 100%;
    margin-top: 80px;
    /* Offset for fixed navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.banner-link {
    width: 100%;
    display: block;
    transition: opacity 0.3s ease;
}

.banner-link:hover {
    opacity: 0.95;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 30px 30px;
    /* Soft feminine rounded corners */
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background-color: #fff;
    color: #c79695;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ----- CHI SONO SECTION ----- */
.about-section {
    padding: 6rem 0;
    background-color: rgba(255, 255, 255, 0.85);
    /* Semi-transparent to show marble */
    /* backdrop-filter: blur(8px); rimosso per fix scroll Chrome */
    margin: 4rem 2rem;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(199, 150, 149, 0.15);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 1.5rem;
}

/* ----- I MIEI LAVORI (GALLERY) SECTION ----- */
.gallery-section {
    padding: 6rem 0;
    background-color: rgba(255, 255, 255, 0.85);
    /* backdrop-filter: blur(8px); rimosso per fix scroll Chrome */
    margin: 4rem 2rem;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(199, 150, 149, 0.15);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-img {
    width: 100%;
    cursor: pointer;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
}

/* ----- LISTINO PREZZI SECTION ----- */
.price-section {
    padding: 6rem 0;
    background-color: rgba(255, 255, 255, 0.85);
    /* backdrop-filter: blur(8px); rimosso per fix scroll Chrome */
    margin: 4rem 2rem;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(199, 150, 149, 0.15);
}

.price-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease;
}

.price-image-container:hover {
    transform: translateY(-5px);
}

.price-img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.whatsapp-fixed {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.gallery-img {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}



/* ----- CONTATTAMI SECTION ----- */
.contact-section {
    padding: 6rem 0;
    background-color: rgba(255, 255, 255, 0.85);
    /* backdrop-filter: blur(8px); rimosso per fix scroll Chrome */
    margin: 4rem 2rem;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(199, 150, 149, 0.15);
    text-align: center;
}

body {
    -webkit-tap-highlight-color: transparent;
}

img {
    user-select: none;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
}

.contact-content p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2.5rem;
}

.contact-buttons {
    margin-bottom: 3rem;
}

.contact-info-box {
    margin-top: 2rem;
    padding: 2rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(199, 150, 149, 0.1);
    border: 1px solid rgba(199, 150, 149, 0.3);
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info-box h3 {
    color: #c79695;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    margin-top: 1.5rem;
}

.contact-info-box h3:first-child {
    margin-top: 0;
}

.contact-info-box p {
    color: #555;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    color: #555;
}

.hours-list li {
    margin-bottom: 0.5rem;
}

.closed-text {
    color: #c79695;
    font-weight: 500;
}

.map-link {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.map-link:hover {
    color: #c79695;
}

.map-container {
    margin-top: 1.5rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(199, 150, 149, 0.12);
}

.map-container iframe {
    display: block;
    width: 100%;
}

.solid-btn {
    background-color: #c79695;
    color: #fff;
    border-color: #c79695;
    margin: 0 10px;
}

.solid-btn:hover {
    background-color: #b08080;
    color: #fff;
}

.outline-btn {
    color: #c79695;
    border-color: #c79695;
    margin: 0 10px;
}

.outline-btn:hover {
    background-color: #c79695;
    color: #fff;
}

/* ----- RECENSIONI SECTION ----- */
.reviews-section {
    padding: 6rem 0;
    background-color: rgba(255, 255, 255, 0.85);
    /* backdrop-filter: blur(8px); rimosso per fix scroll Chrome */
    margin: 4rem 2rem;
    border-radius: 30px;
    box-shadow: 0 15px 35px rgba(199, 150, 149, 0.15);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.review-card {
    background: #fff;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(199, 150, 149, 0.1);
    text-align: center;
    border: 1px solid rgba(199, 150, 149, 0.3);
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 1rem;
}

.review-card h4 {
    color: #c79695;
    font-weight: 600;
}

/* ----- FOOTER ----- */
footer {
    background-color: #222;
    color: #999;
    padding: 4rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-content h3 {
    color: #c79695;
    margin-bottom: 1rem;
}

.social-link {
    display: inline-block;
    margin-right: 15px;
    color: #999;
    transition: color 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    color: #fff;
}

.footer-hours-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    color: #999;
}

.footer-hours-list li {
    margin-bottom: 0.3rem;
}

.footer-hours-list strong {
    color: #bbb;
    font-weight: 400;
}

.footer-info p {
    margin-bottom: 0.5rem;
}

.copyright {
    border-top: 1px solid #444;
    padding-top: 2rem;
    font-size: 0.9rem;
}

/* ----- ANIMATIONS ----- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* ----- RESPONSIVE DESIGN ----- */
@media (max-width: 768px) {
    #navbar {
        background: rgba(255, 255, 255, 0.95);
        /* Ensure solid background on mobile */
        padding: 1rem 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-links {
        position: absolute;
        top: 100%;
        /* Just below the navbar */
        left: -100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.4s ease;
        padding: 2rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        gap: 2rem;
    }

    .nav-links.active {
        left: 0;
    }

    .hero-section {
        margin-top: 70px;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-section,
    .price-section,
    .contact-section,
    .gallery-section,
    .reviews-section {
        padding: 3rem 0;
        margin: 1.5rem 1rem;
        border-radius: 20px;
    }

    .footer-content {
        text-align: center;
        flex-direction: column;
    }

    .solid-btn,
    .outline-btn {
        display: block;
        margin: 10px auto;
        width: 100%;
    }

    .btn-contattami {
        display: inline-block;
        width: auto;
    }

    .whatsapp-fixed {
        position: fixed;
        right: 20px;
        bottom: 20px;
        background: #25D366;
        color: #fff;
        padding: 14px 22px;
        border-radius: 30px;
        font-weight: 600;
        z-index: 999;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
}

.footer-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    height: 55px;
    width: auto;
}

.footer-brand p {
    color: #fff;
    font-size: 1.2rem;
    letter-spacing: 2px;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #999;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #c79695;
}

.footer-mini-info p {
    margin-bottom: 0.3rem;
    color: #aaa;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 2rem 0;
}

@media (max-width: 768px) {
    .footer-modern {
        flex-direction: column;
    }

    .footer-brand {
        flex-direction: column;
    }
}

.whatsapp-fixed {
    display: none;
}

@media (max-width: 768px) {
    .whatsapp-fixed {
        display: block;
        position: fixed;
        right: 20px;
        bottom: 20px;
        background: #25D366;
        color: #fff;
        padding: 14px 22px;
        border-radius: 30px;
        font-weight: 600;
        z-index: 9999;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
}

.about-section,
.gallery-section,
.price-section,
.contact-section,
.reviews-section {
    box-shadow:
        0 10px 30px rgba(199, 150, 149, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.03);
}

footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f7efef;
}

::-webkit-scrollbar-thumb {
    background: #c79695;
    border-radius: 20px;
}

.hero-banner-img {
    animation: heroFade 1.2s ease;
}

@keyframes heroFade {
    from {
        opacity: 0;
        transform: scale(1.03);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #c79695;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}