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

:root {
    --primary-color: #556B2F;   /* Verde Uliva */
    --secondary-color: #C5A059; /* Giallo Oro / Olio */
    --text-color: #2C2C2C;
    --bg-light: #F9F8F3;        /* Warm off-white */
    --white: #FFFFFF;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* NAVBAR */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo a {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

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

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

.nav-links li a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 25px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

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

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 8px 16px;
    border-radius: 4px;
}

/* HERO SECTION SLIDER */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 70px;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

.slide.active {
    opacity: 1;
}

/* OPACITA' RIDOTTA PER RENDERE LE IMMAGINI PIU' LUMINOSE */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.20);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 400;
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: var(--secondary-color);
}

.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #b08d49;
}

/* LAYOUT E SCHEDE */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.subtitle {
    color: var(--secondary-color);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.about-text h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
}

.card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.card-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 30px;
}

.card-body h3 {
    font-size: 24px;
    color: var(--primary-color);
}

.tag {
    display: inline-block;
    background: #EFEFEF;
    color: var(--secondary-color);
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 600;
    margin: 8px 0 15px 0;
}

.card-body ul {
    list-style: none;
    margin-top: 15px;
    font-size: 14px;
}

/* FORM DI CONTATTO */
.contact-details {
    margin-top: 20px;
    font-size: 15px;
}

.contact-details p {
    margin-bottom: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.btn-full {
    width: 100%;
    background-color: var(--primary-color);
}

.btn-full:hover {
    background-color: #405123;
}

/* FOOTER */
footer {
    background-color: #1A1A1A;
    color: #888;
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
}

/* HAMBURGER MENU PER MOBILE */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 2px 0;
}

/* LISTE PRODOTTI */
.product-subtitle {
    font-size: 16px;
    color: var(--primary-color);
    margin-top: 15px;
    margin-bottom: 8px;
}

.product-list {
    list-style: none;
    padding-left: 0;
}

.product-list li {
    font-size: 14px;
    padding: 4px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.product-list li:last-child {
    border-bottom: none;
}

/* RESPONSIVE (MOBILE) */
@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 32px;
    }
    .hamburger {
        display: flex;
    }
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background-color: var(--white);
        width: 100%;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active {
        max-height: 350px; /* Aumentato per assicurare che "Prenota Olio 2026" sia ben visibile */
        padding: 20px 0;
    }
    .nav-links li {
        margin: 10px 0;
    }
    .nav-links li a {
        margin-left: 0;
    }
}

/* GRIGLIA DOPPIA IMMAGINE CHI SIAMO */
.about-images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.about-images-grid img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.about-images-grid img:hover {
    transform: scale(1.02);
}

.about-text ul {
    margin-top: 15px;
    padding-left: 20px;
}

.about-text ul li {
    margin-bottom: 10px;
    font-size: 15px;
}

.nav-links li a.active-link {
    color: var(--primary-color) !important;
    font-weight: 600;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}