/* --- FONTS --- */
/* lato-300 - latin */
@font-face {
  font-display: swap;
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src: url('assets/fonts/lato-v25-latin-300.woff2') format('woff2');
}
/* lato-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/lato-v25-latin-regular.woff2') format('woff2');
}
/* lato-700 - latin */
@font-face {
  font-display: swap;
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: url('assets/fonts/lato-v25-latin-700.woff2') format('woff2');
}
/* playfair-display-regular - latin */
@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src: url('assets/fonts/playfair-display-v40-latin-regular.woff2') format('woff2');
}
/* playfair-display-italic - latin */
@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  src: url('assets/fonts/playfair-display-v40-latin-italic.woff2') format('woff2');
}
/* playfair-display-600 - latin */
@font-face {
  font-display: swap;
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 600;
  src: url('assets/fonts/playfair-display-v40-latin-600.woff2') format('woff2');
}

/* --- RESET --- */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif; /* Font per il testo */
    color: #333;
    line-height: 1.6;
    width: 100%;
}

h1, h2, h3, .nav-logo {
    font-family: 'Playfair Display', serif; /* Font per i titoli */
}

:root {
    --primary-color: rgb(121, 136, 15);
}

/* --- NAVBAR STICKY --- */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: color 0.3s;
}

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

.nav-logo {
    display: flex; /* Allinea logo e testo in orizzontale */
    align-items: center; /* Li centra verticalmente */
    gap: 12px; /* Spazio tra l'immagine e il testo */
    text-decoration: none;
    z-index: 1002;
}

/* Stile per il testo del logo (ex .nav-logo) */
.nav-logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    font-family: 'Playfair Display', serif;
}

/* Stile per l'immagine del logo */
.nav-logo-img {
    height: 45px; /* Si adatta perfettamente all'altezza di 70px della navbar */
    width: auto;
    object-fit: contain; /* Previene distorsioni dell'immagine */
    /* border-radius: 50%; Scommenta questa riga se vuoi che il jpg diventi un cerchio perfetto */
}

.active-link {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color);
}

/* --- BURGER MENU STYLE --- */
.burger {
    display: none;
    cursor: pointer;
    z-index: 1002;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* --- HEADER PARALLAX --- */
.parallax-header {
    background-image: url('assets/header-albero.webp');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 400px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: relative;
    color: white;
    text-align: center;
}

.parallax-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
}

.header-content {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 110px;
    padding-bottom: 40px;
    box-sizing: border-box;
}

.header-subtitle {
    font-size: 32px;
    font-weight: bold;
}

.header-content h1 {
    font-size: 3.5rem;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.header-locations {
    font-size: 22px;
}

/* --- SEZIONI --- */
.section-padding {
    padding: 80px 0;
}

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

.features-section {
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
}

/* ABOUT */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

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

.about-text h2 {
    color: var(--primary-color);
    margin-top: 0;
}

.about-text {
    width: 100%;
    text-align: center;
}

.btn-primary {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 35px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-item {
    display: flex;
    flex-direction: column;
}

.feature-inner {
    background: white;
    padding: 30px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s;
}

.feature-inner:hover {
    transform: translateY(-5px);
}

.feature-short-descr {
    text-align: start;
}

.circle-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid #eeeae7;
    aspect-ratio: 1 / 1;
}

.feature-title {
    color: var(--primary-color);
    margin: 10px 0;
}

.feature-short-descr {
    flex-grow: 1;
    margin-bottom: 20px;
}

.prod-property {
    color: var(--primary-color);
    font-weight: bold;
}

.feature-back-content {
    display: none;
}

.btn-trigger {
    background: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    padding: 8px 35px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.btn-trigger:hover {
    background: transparent;
    color: var(--primary-color);
}

.square-img {
    width: 150px;
    height: 150px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.full-height-img {
    width: 150px;
    height: auto;
}

/* Product Gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.gallery-item .detail-img {
    flex-shrink: 0;
}

.gallery-caption {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.gallery-item .detail-img {
    flex-shrink: 0;
    cursor: zoom-in;
}

.lightbox-img {
    cursor: zoom-in;
}
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    line-height: 1;
}

.modal-content.product-modal {
    max-width: 700px;
}

.detail-content {
    /*line-height:1.8;*/
    text-align: start;
}

/* --- MAPPE (DOVE SIAMO) --- */
.locations-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.location-box {
    flex: 1;
    min-width: 300px;
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.location-box h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.map-frame {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
    margin-bottom: 10px;
}

.location-box a {
    color: #333;
    text-decoration: underline;
    font-size: 0.9rem;
}

.iframe-map {
    width: 100%;
    height: 300px;
    border: none;      /* Sostituisce frameborder="0" */
    overflow: hidden;  /* Sostituisce scrolling="no" */
    margin: 0;         /* Sostituisce marginheight/marginwidth (se riferiti all'esterno) */
}

/* --- MODALE --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    padding: 0;
    border-radius: 10px;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    flex-grow: 1;
    padding-right: 15px;
}

.modal-body {
    padding: 20px;
}

.modal-close-btn {
    position: static;
    float: none;
    background: transparent;
    padding: 0;
    font-size: 2rem;
    border: none;
    cursor: pointer;
    color: #999;
    line-height: 1;
    margin-top: -5px;
}

/* --- FOOTER --- */
footer {
    background: #333;
    color: white;
    padding: 50px 20px 20px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-col h3, .footer-col h4 {
    color: white;
    margin-top: 0;
}

.footer-col p {
    font-size: 0.9rem;
    color: #ccc;
}

.footer-col a {
    color: white;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    height: 24px;
    width: 24px;
}

.footer-legal {
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #bbb;
}
.footer-legal a {
    color: #bbb;
}
/* Whatsapp */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

.whatsapp-widget-icon {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

/* --- PAGINA PRIVACY --- */
.privacy-wrapper {
    padding-top: 100px; /* Compensa la navbar fissa */
    padding-bottom: 60px;
    background-color: #f9f9f9;
    min-height: 80vh;
}

.privacy-content {
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    max-width: 900px; /* Larghezza ottimale per la lettura */
    margin: 0 auto;
}

.privacy-content h1 {
    color: var(--primary-color);
    margin-bottom: 5px;
}

.privacy-content .subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0;
    margin-bottom: 30px;
    font-style: italic;
}

.privacy-content h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.privacy-content p,
.privacy-content li {
    font-size: 1rem;
    color: #444;
    line-height: 1.8;
    margin-bottom: 15px;
}

.privacy-content ul,
.privacy-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.privacy-content strong {
    color: #222;
}

/* --- MEDIA QUERY (MOBILE) --- */
@media (max-width: 768px) {
    /* Adattamento Logo nella Navbar su Mobile */
    .nav-logo-img {
        height: 38px;
    }

    .nav-logo-text {
        font-size: 1.2rem;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }

    .about-container {
        flex-direction: column;
    }

    .about-image img {
        width: 100%;
    }

    .locations-wrapper {
        flex-direction: column;
    }

    /* Mappe una sotto l'altra su mobile */
    .location-box {
        width: 100%;
        box-sizing: border-box;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    /* MENU MOBILE LOGIC */
    .burger {
        display: block;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.4s ease-in-out;
        padding-top: 50px;
        box-shadow: -5px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links li {
        margin: 20px 0;
    }

    .nav-active {
        transform: translateX(0%);
    }

    /* Animazione Burger */
    .toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .toggle .line2 {
        opacity: 0;
    }

    .toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Adattamento mobile per la privacy */
    .privacy-content {
        padding: 25px;
    }
}