/* 
    La Pacchianella - Professional Stylesheet
    Author: Luigi Copertino
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,700;1,700&display=swap');

:root {
    --primary: #960018; 
    --accent: #D4AF37;  
    --light: #F9F5F0;     
    --dark: #121212;      
    --footer-bg: #1a1a1a;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
}

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

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: var(--font-sans);
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--light);
    font-size: 1.05rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.3; }
em { font-style: italic; color: var(--accent); }

/* --- Navigation --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 5%;
    background: var(--primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 3px solid var(--accent);
}

.logo-container .logo-title { font-size: 1.3rem; font-weight: 700; line-height: 1; display: block; }
.logo-container .logo-sub { font-size: 0.6rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }

.nav-links { display: flex; list-style: none; gap: 1.5rem; }
.nav-links a { text-decoration: none; color: white; font-size: 0.8rem; text-transform: uppercase; font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 5px; }
.hamburger span { width: 25px; height: 3px; background: white; transition: 0.3s; }

/* --- Hero --- */
.hero {
    min-height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 4rem 5%;
}

.hero h1 { font-size: clamp(1.8rem, 8vw, 4.2rem); margin-bottom: 1rem; width: 100%; }
.hero h2 { font-size: clamp(1.2rem, 4vw, 1.5rem); color: var(--accent); margin-bottom: 2rem; }
.hero p { max-width: 700px; font-weight: 300; margin-bottom: 2rem; font-size: clamp(0.95rem, 3vw, 1.15rem); margin-left: auto; margin-right: auto; }

/* --- KPI --- */
.kpi-container { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    background: white; 
    border-bottom: 1px solid #eee;
}
.kpi-item { 
    padding: 3.5rem 1rem; 
    text-align: center; 
    border-right: 1px solid #eee; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.kpi-item:last-child { border-right: none; }
.kpi-number { display: block; font-size: 3.5rem; font-family: var(--font-serif); color: var(--primary); font-weight: 700; margin-bottom: 0.5rem; }
.kpi-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; color: #444; font-weight: 700; line-height: 1.3; }
.kpi-icon { width: 70px; height: auto; margin-bottom: 0.8rem; object-fit: contain; }

/* --- Sections --- */
section { padding: 7rem 5%; width: 100%; }
.section-title { font-size: clamp(1.8rem, 6vw, 3.5rem); text-align: center; margin-bottom: 4.5rem; width: 100%; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }

/* --- Card Grids --- */
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.card { background: white; padding: 2.5rem; border: 1px solid #eee; transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.03); height: 100%; }
.card:hover { border-color: var(--accent); transform: translateY(-5px); }
.card h3 { color: var(--primary); margin-bottom: 1rem; font-size: 1.4rem; }

/* --- Dark Sections --- */
.bg-dark-section {
    background-color: #0c0c0c;
    color: #efefef;
}
.bg-dark-section .section-title { color: white; }
.bg-dark-section .card { background: #1a1a1a; border-color: #333; color: white; }
.bg-dark-section .card h3 { color: var(--accent); }
.bg-dark-section p { color: #ccc; }

/* --- Gallery --- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.gallery-item { aspect-ratio: 4/3; overflow: hidden; border: 1px solid #ddd; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-item:hover img { transform: scale(1.08); }

/* --- Footer --- */
footer { background: var(--footer-bg); color: #bbb; padding: 5rem 5% 2rem; border-top: 5px solid var(--accent); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-logo { color: white; font-size: 1.8rem; margin-bottom: 1rem; }
.footer-col h4 { color: white; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 2px; margin-bottom: 1.5rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.8rem; }
.footer-col a { color: #999; text-decoration: none; font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent); }

.footer-bottom { border-top: 1px solid #333; padding-top: 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.8rem; }

/* --- Buttons --- */
.btn { display: inline-block; padding: 0.8rem 2rem; background: var(--primary); color: white; text-decoration: none; text-transform: uppercase; font-weight: 700; font-size: 0.8rem; border: 1px solid var(--accent); transition: 0.3s; cursor: pointer; text-align: center; }
.btn:hover { background: #7a0013; transform: translateY(-3px); }

/* --- Cookie Banner --- */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    color: white;
    padding: 1.5rem 5%;
    display: none;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    font-size: 0.85rem;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    border-top: 2px solid var(--accent);
}

/* --- Legal Pages --- */
.legal-content { padding: 4rem 15%; background: white; min-height: 60vh; }
.legal-content h1 { margin-bottom: 2rem; color: var(--primary); }
.legal-content h2 { margin-top: 2rem; margin-bottom: 1rem; font-size: 1.5rem; }
.legal-content p { margin-bottom: 1.5rem; }

/* --- Contact Form --- */
.contact-form {
    max-width: 800px;
    margin: 3rem auto;
    text-align: left;
    background: #1a1a1a;
    padding: 2.5rem;
    border: 1px solid #333;
}
.form-group { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.contact-form label { display: block; margin-bottom: 0.5rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; padding: 0.8rem; background: #252525; border: 1px solid #444; color: white; font-family: inherit; font-size: 1rem; transition: 0.3s;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); background: #2d2d2d; }
.contact-form textarea { height: 150px; resize: vertical; }
.honeypot { display: none; }

/* --- Responsive Fixes --- */

@media (max-width: 992px) {
    .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
    #cookie-banner { flex-direction: column; text-align: center; gap: 1rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .footer-top { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    /* Hamburger logic */
    .hamburger { display: flex; }
    .nav-links {
        position: fixed;
        right: -100%;
        top: 60px;
        flex-direction: column;
        background: var(--primary);
        width: 100%;
        height: calc(100vh - 60px);
        text-align: center;
        padding-top: 2rem;
        transition: 0.4s;
    }
    .nav-links.active { right: 0; }

    section { padding: 5rem 6%; }
    
    .kpi-container { grid-template-columns: 1fr; }
    .kpi-item { border-right: none; border-bottom: 1px solid #eee; padding: 4rem 1rem; }
    .kpi-item:last-child { border-bottom: none; }
    
    .card-grid { grid-template-columns: 1fr; }
    .card { padding: 2rem 1.5rem; }

    .hero { padding: 4rem 6%; }
    .hero h1 { line-height: 1.2; }
    
    .contact-form { padding: 1.5rem; }
    
    .footer-bottom { flex-direction: column; text-align: center; gap: 1.5rem; }
}
