/* CSS Variables per i colori rustici/tradizionali */
:root {
    --bg-color: #fdfaf6; /* Beige chiaro per sfondo */
    --text-color: #3e2723; /* Marrone scuro per testo */
    --accent-color: #8d6e63; /* Marrone medio */
    --accent-gold: #cba135; /* Oro antico */
    --header-bg: rgba(62, 39, 35, 0.95); /* Sfondo navbar marrone scuro semitrasparente */
    --white: #ffffff;
    --font-heading: 'Cinzel', serif;
    --font-body: 'Lora', serif;
}

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
}

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

/* Tipografia */
.accent-color { color: var(--accent-color); }
.accent-gold { color: var(--accent-gold); }

/* Layout Globale */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.2;
}

.max-width-p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* Header / Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: transparent;
    color: var(--white);
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

#navbar.scrolled {
    background-color: var(--header-bg);
    padding: 10px 5%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.logo-text {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.desktop-nav a {
    margin-left: 30px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.desktop-nav a:hover {
    color: var(--accent-gold);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--header-bg);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
}

.mobile-nav-overlay.active {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.mobile-nav a {
    font-size: 2rem;
    margin: 15px 0;
    color: var(--white);
    font-family: var(--font-heading);
}

.mobile-nav a:hover {
    color: var(--accent-gold);
}

/* Hero Section */
.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.stamp {
    width: 80px;
    height: 80px;
    background-color: #8b0000; /* Rosso sigillo ceralacca */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.stamp-initials {
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    color: var(--accent-gold);
    font-weight: bold;
    font-style: italic;
}

.main-title {
    font-size: 5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.sub-title {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 20px;
    font-style: italic;
}

.tagline {
    font-size: 1.2rem;
    letter-spacing: 2px;
    border-top: 1px solid var(--accent-gold);
    border-bottom: 1px solid var(--accent-gold);
    padding: 10px 0;
    display: inline-block;
}

/* Banner Section */
.banner-section {
    background-color: var(--text-color);
    color: var(--white);
    padding: 50px 0;
}

.banner-section h2 {
    font-size: 2rem;
    letter-spacing: 2px;
    color: var(--accent-gold);
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.alternate-bg {
    background-color: #f5efe6;
    border-top: 1px solid #e0d5c1;
    border-bottom: 1px solid #e0d5c1;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.split-layout.reverse {
    flex-direction: row-reverse;
}

.image-box, .text-box {
    flex: 1;
}

.image-box img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(62, 39, 35, 0.2);
    border: 4px solid var(--white);
}

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

/* Parallax Section */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 120px 0;
    color: var(--white);
}

.parallax-title {
    font-size: 3rem;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.glass-panel p {
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: #d7ccc8;
    padding: 60px 0 20px 0;
    border-top: 5px solid var(--accent-gold);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h4 {
    color: var(--accent-gold);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-brand p {
    font-style: italic;
}

.footer-contact ul {
    list-style: none;
}

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

.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
}

/* Animazioni (Fade in up) */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries per Responsività */
@media (max-width: 900px) {
    .split-layout, .split-layout.reverse {
        flex-direction: column;
        text-align: center;
    }
    
    .main-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-title {
        font-size: 2.8rem;
    }
    
    .sub-title {
        font-size: 1.5rem;
    }
    
    .section-title, .parallax-title {
        font-size: 2rem;
    }
}
