/* --- RESET E BASI --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    --color-stone-200: #e7e5e4;
    --color-stone-300: #d6d3d1;
    --color-stone-400: #a8a29e;
    --color-stone-500: #78716c;
    --color-stone-600: #57534e;
    --color-stone-800: #292524;
    --color-stone-900: #1c1917;
    --color-stone-950: #0c0a09;
    --font-sans: 'Lato', sans-serif;
    --font-serif: 'Playfair Display', 'Times New Roman', serif;
}

body {
    font-family: var(--font-sans);
    color: var(--color-stone-800);
    background-color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    background-color: var(--color-stone-200);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- UTILITY CLASSES --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

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

.font-serif {
    font-family: var(--font-serif);
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.items-center {
    align-items: center;
}

.grid {
    display: grid;
}

.bg-dark {
    background-color: var(--color-stone-900);
    color: white;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Per le pagine di policy che non hanno l'hero */
body:not(.on-hero) .navbar {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--color-stone-900);
    z-index: 1001; 
    position: relative;
}

.logo-text {
    color: var(--color-stone-900);
}

.logo span {
    color: var(--color-stone-400);
}

/* Gestione Logo su Hero (Sfondo Scuro) */
.on-hero .logo-text {
    color: white;
} 
.on-hero .logo span {
    color: var(--color-stone-300);
}

.navbar.scrolled .logo-text,
body:not(.on-hero) .logo-text {
    color: var(--color-stone-900) !important;
}
.navbar.scrolled .logo span,
body:not(.on-hero) .logo span {
    color: var(--color-stone-600) !important;
}

.nav-links {
    display: none;
}

/* Stile Link Generici */
.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-left: 30px;
    color: var(--color-stone-800); 
    text-transform: uppercase;
}

.on-hero .nav-links a {
    color: white;
}

.navbar.scrolled .nav-links a {
    color: var(--color-stone-800);
}

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

/* BOTTONE CTA */
.navbar .nav-links .btn-cta {
    background-color: #1c1917 !important;
    color: #ffffff !important;
    border: 2px solid #1c1917 !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-left: 25px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.on-hero .navbar .nav-links .btn-cta {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
}

.navbar .nav-links .btn-cta:hover {
    transform: scale(1.05);
}

.on-hero .navbar .nav-links .btn-cta:hover {
    background-color: #f0f0f0 !important;
    color: #000000 !important;
}

.navbar.scrolled .nav-links .btn-cta {
    background-color: #1c1917 !important;
    border-color: #1c1917 !important;
    color: #ffffff !important;
}

.navbar.scrolled .nav-links .btn-cta:hover {
    background-color: #44403c !important;
    border-color: #44403c !important;
    color: #ffffff !important;
}

.menu-toggle {
    display: block;
    color: var(--color-stone-900);
    cursor: pointer;
    z-index: 1001;
    position: relative;
}

.on-hero .menu-toggle {
    color: white;
}

.navbar.scrolled .menu-toggle {
    color: var(--color-stone-900);
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-color: #1c1917; 
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background-color: #1c1917;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out; 
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: var(--color-stone-200);
    margin-bottom: 20px;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--color-stone-100);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

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

.btn-outline {
    border: 1px solid white;
    color: white;
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
}

/* --- ABOUT SECTION --- */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.about-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background-color: var(--color-stone-300);
}

.about-text .tag {
    background-color: var(--color-stone-200);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.about-text h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-stone-900);
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: var(--color-stone-600);
}

.check-icon {
    width: 24px;
    height: 24px;
    background-color: var(--color-stone-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 12px;
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: #ffffff;
    border: 1px solid #f1f1f1;
    padding: 50px 40px;
    border-radius: 20px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-number {
    width: 60px;
    height: 60px;
    background-color: #f5f5f5; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #1c1917;
}

.service-card h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #1c1917;
}

.service-card p {
    color: #78716c;
    font-size: 1rem;
    line-height: 1.7;
}

.service-price {
    margin-top: 25px;
    font-weight: 700;
    color: #57534e;
    font-size: 0.9rem;
}

/* --- PORTFOLIO (FACEBOOK WIDGET) --- */
#fb-widget-wrapper {
    background: white; 
    padding: 10px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    margin: 30px auto 0;
    width: 100%;
    max-width: 540px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    box-sizing: border-box;
}

/* Forza l'iframe di Facebook ad adattarsi allo schermo mobile */
.fb-page, 
.fb-page span, 
.fb-page iframe {
    max-width: 100% !important;
}

/* --- SEZIONE CONTATTI --- */
#contact {
    scroll-margin-top: 100px;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: var(--color-stone-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.form-box {
    background-color: #f9f9f8;
    padding: 40px;
    border-radius: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--color-stone-200);
    border-radius: 8px;
    font-family: inherit;
    outline: none;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--color-stone-500);
}

.btn-submit {
    width: 100%;
    background-color: var(--color-stone-900);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--color-stone-950);
    color: var(--color-stone-400);
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: white;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-stone-900);
    color: white;
    padding: 20px;
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.4s ease-out;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-text {
    font-size: 0.9rem;
    max-width: 800px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-cookie {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-accept {
    background-color: white;
    color: black;
}

.btn-reject {
    background-color: transparent;
    border: 1px solid white;
    color: white;
}

.btn-reject:hover {
    background-color: rgba(255,255,255,0.1);
}

/* --- MOBILE MENU --- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: white;
    padding: 80px 20px;
    z-index: 999;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    overflow-y: auto;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    color: var(--color-stone-900);
    font-weight: 600;
    font-size: 1.5rem;
}

/* --- HEADER PAGINA TESTUALE (Cookie/Privacy) --- */
.page-header { background-color: var(--color-stone-900); color: white; padding: 150px 0 80px; text-align: center; }
.page-header h1 { font-family: var(--font-serif); font-size: 3rem; margin-bottom: 10px; }

/* --- CONTENUTO POLICY --- */
.policy-content { max-width: 800px; margin: 0 auto; padding: 80px 20px; }
.policy-content h2 { font-family: var(--font-serif); font-size: 1.8rem; margin: 40px 0 20px; color: var(--color-stone-900); }
.policy-content p { margin-bottom: 20px; font-size: 1.05rem; line-height: 1.8; color: var(--color-stone-600); }
.policy-content ul { margin-bottom: 20px; padding-left: 20px; color: var(--color-stone-600); list-style-type: disc; }
.policy-content li { margin-bottom: 10px; font-size: 1.05rem; line-height: 1.8; }
.update-date { font-weight: 700; color: var(--color-stone-500); margin-bottom: 40px; display: block; }

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (min-width: 768px) {
    .nav-links { display: flex; align-items: center; }
    .menu-toggle { display: none; }
    
    .hero-content h1 { font-size: 4.5rem; }
    .hero-buttons { flex-direction: row; justify-content: center; }
    
    .about-content { flex-direction: row; align-items: center; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    
    #fb-widget-wrapper {
        padding: 20px; 
    }

    .contact-grid { grid-template-columns: 1fr 1fr; }
    
    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 992px) {
    .contact-grid {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: flex-start;
        gap: 60px;
    }

    .contact-text-side {
        flex: 0 0 40%;
    }

    .form-box {
        flex: 0 0 55%;
        margin-top: 0 !important;
    }
}

/* Cambia colore al bottone Load More per renderlo elegante */
[class*="elfsight-app"] [class*="Button__Container"] {
    background-color: var(--color-stone-900) !important;
    border-radius: 50px !important;
    transition: background 0.3s ease !important;
}

[class*="elfsight-app"] [class*="Button__Container"]:hover {
    background-color: var(--color-stone-600) !important;
}

/* Nasconde la pubblicità e il logo dal widget Elfsight */
[class^="eapps-link"], 
.elfsight-app-34af5a1d-c236-4646-b932-d71a7792a978 a[href*="elfsight.com"] {
    display: none !important;
}

/* ELIMINAZIONE FORZATA BADGE ELFSIGHT */
a[href*="elfsight"], 
a[href*="utm_source=websites"], 
[class*="eapps-link"],
[class*="WidgetBackground__Container"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    z-index: -9999 !important;
}

/* Nasconde l'intestazione "Follow us on Instagram" del widget Elfsight */
[class*="eapps-instagram-feed-header"],
[class*="Header__Container"],
[class*="eapps-instagram-feed-title"] {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
}