/* Base Styles */
:root {
    --primary-color: #8b0000; /* Dark red / meat tone */
    --primary-dark: #5e0000;
    --text-color: #333333;
    --text-light: #555555;
    --bg-color: #ffffff;
    --bg-light: #f9f9f9;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;
    --transition: all 0.3s ease;
}

* {
    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 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #222;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.mt-4 { margin-top: 2rem; }
.bg-light { background-color: var(--bg-light); }

/* Typography */
h1 { font-size: 2.8rem; line-height: 1.2; text-shadow: 2px 2px 8px rgba(0,0,0,0.5); }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.4rem; }
.section-subtitle { text-align: center; font-size: 1.1rem; margin-bottom: 2rem; }
.e-e-a-t-note { font-size: 0.95rem; color: #666; max-width: 800px; margin: 1rem auto; text-align: center; }

/* Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255,255,255, 0.95);
    padding: 1rem 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .logo {
    color: #222;
}

header .nav-links li a {
    color: #333;
}

header.sticky {
    padding: 0.8rem 0;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: #222;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #222;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
}
.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(139, 0, 0, 0.3);
}
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    color: #fff;
    margin-top: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4));
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-top: 80px; /* offset for fixed header */
}

.hero .sub-headline {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #f8f8f8;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    line-height: 1.8;
}

.hero h1 { color: #fff; margin-bottom: 1.5rem; }

/* Sections */
.section {
    padding: 6rem 0;
}

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

/* Grids */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* Cards */
.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: var(--transition);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.card h3 {
    padding: 1.5rem 1.5rem 0.5rem;
    color: var(--primary-color);
}
.card p {
    padding: 0 1.5rem 1.5rem;
}

/* Feature Boxes */
.feature-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}
.feature-box:hover {
    border-bottom: 3px solid var(--primary-color);
    transform: translateY(-5px);
}
.feature-box .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85)), url('2026 Macelleria Original small (1).jpg') center/cover fixed;
    padding: 6rem 0;
    color: #fff;
}
.cta-section h2 { color: #fff; font-size: 2.5rem; margin-bottom: 1.5rem; }
.cta-section p { color: #f1f1f1; margin-bottom: 3rem; font-size: 1.2rem; }
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}
.cta-buttons .btn-secondary {
    border-color: #fff;
    color: #fff;
}
.cta-buttons .btn-secondary:hover {
    background-color: #fff;
    color: #222;
}

/* Consiglio Box */
.consiglio-box {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: #fff;
    padding: 4rem 3rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(139, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}
.consiglio-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}
.consiglio-box h2, .consiglio-box p { color: #fff; position: relative; z-index: 1;}
.consiglio-box h2 { font-size: 2.2rem; margin-bottom: 1.5rem;}
.consiglio-box p { font-size: 1.15rem; max-width: 800px; margin: 0 auto;}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-container h2 {
    text-align: center;
    margin-bottom: 3rem;
}
.accordion-item {
    background: #fff;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}
.accordion-button {
    background-color: #fff;
    color: var(--text-color);
    cursor: pointer;
    padding: 1.5rem 2rem;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.3s;
    font-weight: 600;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.accordion-button:hover {
    color: var(--primary-color);
}
.accordion-button:after {
    content: '\002B';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.8rem;
    margin-left: 10px;
}
.accordion-button.active:after {
    content: "\2212";
}
.accordion-content {
    padding: 0 2rem;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.accordion-content p {
    padding: 1rem 0 1.5rem 0;
    margin: 0;
    color: var(--text-light);
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 4rem 0 3rem;
}
footer p { margin-bottom: 1rem; color: #aaa; text-align: center; }
.footer-link {
    color: #fff;
    text-decoration: underline;
    opacity: 0.8;
}
.footer-link:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* Privacy Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
    position: relative;
    display: flex;
    flex-direction: column;
    animation: modalFadeIn 0.3s ease-out forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #999;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary-color);
    text-decoration: none;
}

.modal-body {
    padding: 3rem 2.5rem;
    overflow-y: auto;
}

.modal-body h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
    border-bottom: 2px solid #eee;
    padding-bottom: 1rem;
    color: #111;
}

.modal-body h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.modal-body p, .modal-body ul {
    margin-bottom: 1.2rem;
    color: #444;
}
.modal-body ul {
    padding-left: 2rem;
}
.modal-body a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .section { padding: 4rem 0; }
    
    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        width: 250px;
        background-color: #fff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links li a {
        color: #222;
        font-size: 1.2rem;
    }
    .hamburger { display: flex; z-index: 1500; }
    
    .hero-content { text-align: center; }
    .cta-buttons { flex-direction: column; }
    .hero { min-height: 100vh; }
    
    .modal-body { padding: 2rem 1.5rem; }
    .close-btn { right: 15px; top: 10px; }
}
