body {
    font-family: 'Georgia', serif;
    margin: 0;
    line-height: 1.7;
    color: #4a4a4a;
    background-color: #f8f5f0;
}

.container {
    width: 95%;
    margin: auto;
    overflow: hidden;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    color: #7b8e6a;
    margin-bottom: 20px;
}

header {
    background: url('../foto-cerbaia-mamma/foto-casa-integrale.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 120px 0;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

header * {
    position: relative;
    z-index: 2;
}

nav {
    position: absolute;
    top: 20px;
    right: 20px;
    left: 20px;
}

nav ul {
    padding: 0;
    list-style: none;
    text-align: right;
    margin: 0;
}

nav ul li {
    display: inline;
    margin-left: 30px;
}

nav ul li a {
    color: #f8f5f0;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.8px;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    color: #e0b06b;
    border-bottom: 2px solid #e0b06b;
}
.hero h1 {
    font-size: 3.8em;
    margin-bottom: 15px;
    font-weight: normal;
    ;
}

.hero p {
    font-size: 1.3em;
    margin-bottom: 40px;
    font-style: normal;
    color: rgba(255, 255, 255, 0.9);
}
.button {
    display: inline-block;
    background: #a0522d;
    color: #fff;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.button:hover {
    background: #8b4513;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

section {
    padding: 60px 0;
    text-align: center;
}

.intro-section {
    background-color: #fff;
    padding: 80px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.intro-section h2 {
    font-size: 2.8em;
    margin-bottom: 25px;
    font-weight: normal;
}

.section-description-intro {
    font-size: 1.15em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555;
}

.intro-content-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}


.video-wrapper {
    flex: 2;
    min-width: 200px;
    max-width: 600px;
    order: 2;
}

.intro-side-column-left,
.intro-side-column-right {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 250px;
}

.intro-side-column-left {
    order: 1;
}

.intro-side-column-right {
    order: 3;
}

@media (min-width: 993px) {
    .intro-side-column-left {
        order: 1;
    }
    .video-wrapper {
        order: 2;
    }
    .intro-side-column-right {
        order: 3;
    }
}

@media (max-width: 992px) {
    .intro-content-layout {
        flex-direction: column;
        align-items: center;
        gap: 90px;
    }
    .video-wrapper,
    .intro-side-column-left,
    .intro-side-column-right {
        max-width: 80%;
        width: 100%;
        order: unset;
    }
    .video-container {
        height: 350px;
    }
}

.video-container {
    position: relative;
    padding-bottom: 100%;
    height: 0;
    overflow: hidden;
    max-width: 300px;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}


.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.micro-section {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-grow: 1;
}

.micro-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.micro-section img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.micro-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: #4A6B3C;
    margin-bottom: 15px;
}

.micro-section p {
    font-family: 'Georgia', serif;
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.button-small {
    display: inline-block;
    background-color: #7DA65D;
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.button-small:hover {
    background-color: #6A914D;
}

@media (min-width: 993px) {
    .intro-side-content:first-of-type {
        order: 1;
    }
    .video-wrapper {
        order: 2;
    }
    .intro-side-content:last-of-type {
        order: 3;
    }
}

@media (max-width: 992px) {
    .intro-content-layout {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }
    .video-wrapper,
    .intro-side-content {
        max-width: 80%;
        width: 100%;
    }
    .video-container {
        height: 350px;
    }
    .video-wrapper,
    .intro-side-content {
        order: unset;
    }
}

@media (max-width: 768px) {
    .intro-section p {
        font-size: 1em;
    }
    .video-container {
        height: 300px;
    }
    .micro-section img {
        height: 120px;
    }
}

.about-section {
    background-color: #f0f0e8;
    padding: 80px 0;
}

.about-section h2 {
    margin-bottom: 50px;
    font-size: 3em;
    font-weight: normal;
    color: #7b8e6a;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
}

.about-text {
    flex: 2;
    min-width: 350px;
    text-align: left;
    max-width: 750px;
}

.about-text p {
    margin-bottom: 25px;
    font-size: 1.18em;
    line-height: 1.8;
    color: #555;
}

.about-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.image-caption {
    font-style: italic;
    color: #777;
    margin-top: 15px;
    font-size: 0.95em;
}

footer {
    background: #3c4b3a;
    color: #e0dcd4;
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
    font-size: 0.95em;
}

@media (max-width: 992px) {
    .hero h1 {
        font-size: 3em;
    }
    .about-section h2 {
        font-size: 2.5em;
    }
    .about-content {
        gap: 30px;
    }
}

@media (max-width: 768px) {
    nav {
        position: static;
        text-align: center;
        margin-bottom: 20px;
    }
    nav ul {
        text-align: center;
    }
    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .hero h1 {
        font-size: 2.5em;
    }
    .hero p {
        font-size: 1.1em;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .about-text, .about-image {
        width: 90%;
        min-width: unset;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2em;
    }
    .intro-section h2 {
        font-size: 2.2em;
    }
    .about-section h2 {
        font-size: 2em;
    }
}
.section-description {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.menu-section {
    background-color: #fff;
    padding: 80px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.menu-section h2 {
    color: #7b8e6a;
    margin-bottom: 50px;
}

.menu-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.menu-category {
    background-color: #f8f5f0;
    border: 1px solid #e0dcd4;
    border-radius: 10px;
    padding: 30px;
    flex: 1;
    min-width: 300px;
    max-width: 45%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: left;
}

.menu-category h3 {
    color: #a0522d;
    margin-bottom: 25px;
    font-size: 1.8em;
    border-bottom: 1px solid #e0b06b;
    padding-bottom: 10px;
}

.menu-category ul {
    list-style: none;
    padding: 0;
}

.menu-category li {
    margin-bottom: 25px;
}

.menu-category h4 {
    font-size: 1.3em;
    color: #4a4a4a;
    margin-bottom: 5px;
}

.menu-category p {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
}

.note-menu {
    margin-top: 60px;
    font-style: italic;
    color: #777;
    font-size: 0.9em;
}

.menu-dish-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 15px;
    display: block;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .menu-dish-img {
        height: 120px;
    }
}


.gallery-section {
    background-color: #f0f0e8;
    padding: 80px 0;
}

.gallery-section h2 {
    color: #7b8e6a;
    margin-bottom: 50px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.image-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.image-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
/* ... codice CSS esistente ... */

.contact-section {
    background-color: #fff;
    padding: 80px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Aggiungi o modifica queste righe per forzare il posizionamento sotto la galleria */
    width: 60%; /* Assicura che occupi tutta la larghezza */
    clear: both; /* Pulisce eventuali float precedenti */
    display: block; /* Assicura che sia trattato come un blocco, anche se lo è di default */
}

/* ... resto del codice CSS ... */

.contact-section h2 {
    color: #7b8e6a;
    margin-bottom: 50px;
}

.contact-details {
    margin-bottom: 40px;
    text-align: center;
}

.contact-details p {
    font-size: 1.1em;
    color: #555;
    margin-bottom: 15px;
}

.contact-details ul {
    list-style: none;
    padding: 0;
    font-size: 1.15em;
    margin-top: 30px;
}

.contact-details li {
    margin-bottom: 10px;
    color: #4a4a4a;
}

.contact-details a {
    color: #a0522d;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #8b4513;
}

.contact-map {
    margin-top: 50px;
    text-align: center;
}

.contact-map iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.map-caption {
    font-style: italic;
    color: #777;
    margin-top: 15px;
    font-size: 0.95em;
}

@media (max-width: 992px) {
    .menu-category {
        max-width: 48%;
    }
}

@media (max-width: 768px) {
    .menu-categories {
        flex-direction: column;
        align-items: center;
    }
    .menu-category {
        max-width: 90%;
        min-width: unset;
    }
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .contact-map iframe {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .image-grid {
        grid-template-columns: 1fr;
    }
    .image-grid img {
        height: 200px;
    }
}
.lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-caption {
    margin-top: 20px;
    text-align: center;
    color: #f8f5f0;
    font-size: 1.2em;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 80%;
}

.close-button {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1000;
}

.close-button:hover,
.close-button:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}
.prev-button, .next-button {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.prev-button {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.next-button {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-button:hover, .next-button:hover {
    background-color: rgba(0,0,0,0.8);
}

footer p {
    margin-top: 10px;
    margin-bottom: 5px;
}

.social-icons {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icons a {
    color: #e0dcd4;
    font-size: 2.2em;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-decoration: none;
}

.social-icons a:hover {
    color: #a0522d;
    transform: translateY(-3px) scale(1.1);
}

/* Nuove regole per la sezione "6 motivi per venire a Cerbaia" */
.why-cerbaia-section {
    background-color: #f8f5f0; /* Stesso background del body o un colore leggermente diverso */
    padding: 80px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Simile ad altre sezioni */
}

.why-cerbaia-section h2 {
    font-size: 2.8em;
    margin-bottom: 25px;
    font-weight: normal;
    color: #7b8e6a;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 40px;
}

/* Regole per i singoli motivi, usando la classe .micro-section esistente */
/* Le regole per .micro-section, .micro-section img, .micro-section h3, .micro-section p, .button-small sono già definite e verranno riutilizzate. */
/* Se vuoi un'immagine diversa per le micro-section in questa nuova sezione rispetto a quelle in .intro-content-layout, potresti creare una classe specifica, ad esempio .reasons-grid .micro-section img */

/* Media query per la nuova sezione */
@media (max-width: 768px) {
    .reasons-grid {
        grid-template-columns: 1fr; /* Una colonna su schermi più piccoli */
        gap: 40px;
    }
}
@media (max-width: 480px) {
    .why-cerbaia-section h2 {
        font-size: 2.2em;
    }
}