:root {
    --bg-light: #f4efeb;
    --text-dark: #587d8d;
    --accent-color: #c8dae6;
    --btn-green: #587d8d;
    --white: #ffffff;
}

/* =========================================
   2. RESET BASE E TYPOGRAPHY
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Quicksand', sans-serif; }
body { background-color: var(--bg-light); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
h1, h2, h3 { font-family: 'Playfair Display', serif; color: var(--text-dark); }

/* =========================================
   3. NAVBAR
   ========================================= */
.navbar { background-color: rgba(249, 248, 246, 0.90); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); position: fixed; top: 0; width: 100%; z-index: 2000; padding: 15px 0; border-bottom: 1px solid rgba(141, 163, 153, 0.2); }
.navbar-container { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; }
.logo-img { height: 60px; width: auto; transition: all 0.3s ease; }
.navbar-list { display: flex; list-style: none; gap: 30px; }
.navbar-list a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.85rem; letter-spacing: 1px; transition: 0.3s; }
.navbar-list a:hover { color: var(--accent-color); }
.navbar-prenota { background: var(--btn-green); color: var(--white) !important; padding: 10px 22px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 0.8rem; transition: 0.3s; }
.navbar-prenota:hover { background: var(--accent-color); }

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero { position: relative; height: 100vh; width: 100%; display: flex; align-items: center; justify-content: center; background: url('../images/dh.jpg') no-repeat center center/cover; padding-top: 0; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.3); z-index: 1; }
.hero-container { position: relative; z-index: 2; text-align: center; max-width: 900px; padding: 0 20px; }
.hero-content-centered h1 { font-size: 3.2rem; color: var(--white); margin-bottom: 20px; text-shadow: 2px 2px 10px rgba(0,0,0,0.2); }
.hero-subtitle { color: var(--white); opacity: 0.9; letter-spacing: 3px; margin-top: 130px; display: block; font-family: 'Quicksand', sans-serif; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; margin-bottom: 15px; }
.hero-content-centered p { font-size: 1.3rem; color: var(--white); max-width: 700px; margin: 0 auto 40px auto; }
.hero-buttons { display: flex; justify-content: center; gap: 20px; }
.btn-prenota { background: var(--btn-green); color: var(--white); padding: 15px 30px; border-radius: 8px; text-decoration: none; font-weight: 700; transition: 0.3s; font-family: 'Quicksand', sans-serif; }
.btn-prenota:hover { background: var(--accent-color); }
.btn-scopri-light { background: transparent; color: var(--white); padding: 15px 30px; border-radius: 8px; text-decoration: none; font-weight: 700; border: 1px solid var(--white); transition: 0.3s; }
.btn-scopri-light:hover { background: var(--white); color: var(--text-dark); }
.btn-scopri { background: transparent; color: var(--text-dark); padding: 15px 30px; border-radius: 8px; text-decoration: none; font-weight: 700; border: 1px solid var(--text-dark); transition: 0.3s; font-family: 'Quicksand', sans-serif; }
.btn-scopri:hover { background: rgba(74, 68, 62, 0.05); }

/* =========================================
   6. CHI SONO
   ========================================= */
.chisono-section { background-color: var(--bg-light); padding: 120px 0; }
.chisono-bio-grid { display: flex; align-items: center; justify-content: space-between; gap: 70px; max-width: 1300px; margin: 0 auto 100px auto; padding: 0 30px; }
.chisono-bio-text { flex: 1.3; max-width: 1150px; text-align: left; }
.chisono-bio-text .section-subtitle { font-family: 'Quicksand', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--accent-color); letter-spacing: 2px; text-transform: uppercase; display: block; margin-bottom: 15px; }
.chisono-bio-text .section-title { font-size: 2.4rem; font-family: 'Playfair Display', serif; margin-bottom: 30px; color: var(--text-dark); }
.bio-text { font-size: 1rem; line-height: 1.8; color: #587d8d; margin-bottom: 25px; }
.chisono-bio-image { flex: 1; display: flex; justify-content: flex-end; }
.bio-img { width: 100%; max-width: 450px; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 20px 120px 20px 120px; box-shadow: 0 20px 40px rgba(74, 68, 62, 0.1); border: 8px solid var(--white); padding: 0; position: relative; background-color: transparent; }

/* =========================================
   7. SEZIONE VISITA E PERCORSO
   ========================================= */
.visita-elegante { background-color: var(--white); padding-top: 120px; padding-bottom: 0; }
.header-elegante { text-align: center; max-width: 700px; margin: 0 auto 80px auto; }
.subtitle-chic { font-family: 'Quicksand', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--accent-color); letter-spacing: 3px; text-transform: uppercase; display: block; margin-bottom: 15px; }
.title-chic { font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--text-dark); margin-bottom: 20px; }
.divider-chic { width: 60px; height: 1px; background-color: var(--accent-color); margin: 0 auto 30px auto; }
.desc-chic { font-size: 1.15rem; color: #66605B; line-height: 1.8; }
.servizi-editorial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 50px; margin-bottom: 120px; }
.servizio-item { display: flex; gap: 25px; align-items: flex-start; padding-top: 30px; border-top: 1px solid rgba(141, 163, 153, 0.2); transition: transform 0.4s ease; }
.servizio-item:hover { transform: translateY(-5px); }
.servizio-num { font-family: 'Playfair Display', serif; font-style: italic; font-size: 2.5rem; color: var(--accent-color); line-height: 1; }
.servizio-text h3 { font-family: 'Playfair Display', serif; font-size: 1.6rem; margin-bottom: 15px; color: var(--text-dark); }
.servizio-text p { font-size: 1.05rem; color: #66605B; line-height: 1.7; }
.servizi-action-center { text-align: center; margin-top: -60px; margin-bottom: 100px; }

.percorso-chic-wrapper { background-color: var(--bg-light); padding: 80px 60px; border-radius: 2px; }
.percorso-title-chic { text-align: center; font-family: 'Playfair Display', serif; font-size: 2.4rem; color: var(--text-dark); margin-bottom: 60px; }
.steps-chic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.step-chic { position: relative; padding: 30px; background: var(--white); border: 1px solid rgba(141, 163, 153, 0.1); z-index: 1; overflow: hidden; transition: box-shadow 0.4s ease; }
.step-chic:hover { box-shadow: 0 15px 35px rgba(74, 68, 62, 0.05); }
.watermark-num { position: absolute; top: -20px; right: 10px; font-family: 'Playfair Display', serif; font-size: 8rem; color: var(--accent-color); opacity: 0.08; z-index: -1; pointer-events: none; line-height: 1; }
.step-chic h4 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 15px; color: var(--text-dark); }
.step-chic p { font-size: 1rem; color: #66605B; line-height: 1.7; }

/* =========================================
   8. SEZIONE BLOG (Compatta)
   ========================================= */
.blog-elegante { background-color: var(--bg-light); padding: 100px 0; }
.blog-grid-chic { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-bottom: 60px; }
.blog-card-chic { display: flex; flex-direction: column; background-color: var(--white); border-radius: 12px; overflow: hidden; border: 1px solid rgba(141, 163, 153, 0.15); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.blog-card-chic:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(74, 68, 62, 0.06); border-color: rgba(141, 163, 153, 0.4); }
.blog-img-wrapper { width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.blog-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.blog-card-chic:hover .blog-img { transform: scale(1.03); }
.blog-content { display: flex; flex-direction: column; flex-grow: 1; padding: 25px 20px; }
.blog-meta { font-family: 'Quicksand', sans-serif; font-size: 0.8rem; font-weight: 700; color: var(--accent-color); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.blog-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; line-height: 1.3; margin-bottom: 10px; }
.blog-title a { color: var(--text-dark); text-decoration: none; transition: color 0.3s ease; }
.blog-title a:hover { color: var(--btn-green); }
.blog-excerpt { font-size: 1rem; color: #66605B; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.blog-link { font-family: 'Quicksand', sans-serif; font-size: 0.9rem; font-weight: 700; color: var(--text-dark); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: color 0.3s ease, gap 0.3s ease; border-bottom: 1px solid transparent; padding-bottom: 2px; align-self: flex-start; }
.blog-link:hover { color: var(--btn-green); gap: 12px; }
.blog-link i { font-size: 0.8rem; }
.blog-footer-action { text-align: center; margin-top: 50px; }

/* =========================================
   PAGINA DETTAGLIO SERVIZI (servizi.jsp)
   ========================================= */
.servizi-header-minimal { padding-top: 180px; padding-bottom: 60px; text-align: center; background-color: var(--bg-light); }
.servizi-page-wrapper { background-color: var(--white); padding: 60px 0 120px 0; }
.service-row { display: flex; align-items: flex-start; gap: 80px; margin-bottom: 120px; }
.service-row.reverse { flex-direction: row-reverse; }
.service-img-col { flex: 1; }
.service-img { width: 100%; height: auto; object-fit: cover; aspect-ratio: 4/5; border-radius: 12px; box-shadow: 0 15px 35px rgba(74, 68, 62, 0.08); border: 1px solid rgba(141, 163, 153, 0.2); padding: 8px; background-color: var(--white); }
.service-text-col { flex: 1.2; }
.service-text-col h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--text-dark); margin-bottom: 25px; margin-top: -10px; }
.service-text-col p { font-size: 1.1rem; color: #66605B; line-height: 1.8; margin-bottom: 20px; }
.servizi-dettagli-list { list-style: none; margin: 25px 0 35px 0; column-count: 2; column-gap: 40px; }
.servizi-dettagli-list li { margin-bottom: 20px; padding-left: 25px; position: relative; font-size: 1.05rem; line-height: 1.6; color: #66605B; display: inline-block; width: 100%; break-inside: avoid; page-break-inside: avoid; }
.servizi-dettagli-list li::before { content: '•'; color: var(--accent-color); font-size: 1.8rem; position: absolute; left: 0; top: -5px; line-height: 1; }
.servizi-dettagli-list strong { color: var(--text-dark); display: block; margin-bottom: 4px; }
.servizi-cta-finale { text-align: center; padding: 80px 0 40px 0; margin-top: 60px; border-top: 1px solid rgba(141, 163, 153, 0.2); }
.servizi-cta-finale p { font-size: 1.15rem; color: #66605B; margin-bottom: 10px; }

/* =========================================
   9. SEZIONE CONTATTI E FOOTER
   ========================================= */
.contatti-elegante { background-color: var(--white); padding: 120px 0; }
.contact-grid-chic { display: grid; grid-template-columns: 4fr 6fr; gap: 80px; max-width: 1000px; margin: 0 auto; }
.contact-info-chic { padding-right: 40px; border-right: 1px solid rgba(141, 163, 153, 0.2); }
.info-block { margin-bottom: 40px; }
.info-block h4 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--accent-color); margin-bottom: 15px; }
.info-block p { font-size: 1.1rem; color: var(--text-dark); line-height: 1.8; }
.info-block a { color: var(--text-dark); text-decoration: none; transition: color 0.3s; border-bottom: 1px solid transparent; }
.info-block a:hover { color: var(--btn-green); border-color: var(--btn-green); }
.nota-orari { font-size: 0.9rem !important; font-style: italic; color: #888 !important; margin-top: 5px; }
.contact-map-wrapper { width: 100%; min-height: 450px; border-radius: 4px; overflow: hidden; border: 1px solid rgba(141, 163, 153, 0.2); box-shadow: 0 10px 30px rgba(74, 68, 62, 0.04); }
.contact-map-wrapper iframe { width: 100%; height: 100%; min-height: 450px; display: block; }

footer { background-color: var(--bg-light); padding: 60px 0 40px; text-align: center; border-top: 1px solid rgba(141, 163, 153, 0.15); }
.footer-inner p { color: #66605B; font-size: 0.95rem; margin-bottom: 8px; }
.footer-socials { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }
.footer-socials a { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 50%; background-color: var(--white); color: var(--text-dark); font-size: 1.2rem; text-decoration: none; border: 1px solid rgba(141, 163, 153, 0.2); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.footer-socials a:hover { background-color: var(--btn-green); color: var(--white); transform: translateY(-5px); box-shadow: 0 10px 20px rgba(74, 68, 62, 0.1); border-color: var(--btn-green); }


/* =========================================================================
   10. RESPONSIVE GLOBALE (Tablet & Mobile - TUTTE LE REGOLE ACCORPATE QUI)
   ========================================================================= */

/* --- FINO A 992px (Tablet e Smartphone) --- */
@media (max-width: 992px) {
    /* Navbar */
    .navbar-list { display: none !important; }
    .navbar-container { justify-content: space-between; }

    /* Hero */
    .hero-container { flex-direction: column; text-align: center; gap: 40px; }
    .hero-text { max-width: 100%; }
    .hero-text h1 { font-size: 2.8rem; }
    .hero-buttons { justify-content: center; }
    .hero-image-box { justify-content: center; }

    /* Chi Sono */
    .chisono-section { padding: 60px 0 40px 0; }
    .chisono-bio-grid { flex-direction: column-reverse; gap: 40px; padding: 0 15px; margin-bottom: 0 !important; }
    .chisono-bio-text { max-width: 100%; text-align: left; }
    .chisono-bio-text .section-subtitle, .chisono-bio-text .section-title { text-align: center; }
    .chisono-bio-text .section-title { font-size: 2.6rem; margin-bottom: 25px; }
    .bio-text { font-size: 1.05rem; line-height: 1.7; text-align: left; }
    .chisono-bio-image { justify-content: center; }
    .bio-img { max-width: 350px; }

    /* Pagina Servizi (Dettagli) */
    .service-row, .service-row.reverse { flex-direction: column; gap: 30px; margin-bottom: 70px; text-align: left; padding: 0 15px; }
    .service-text-col h2 { font-size: 1.8rem; margin-top: 10px; margin-bottom: 20px; text-align: center; }
    .servizi-dettagli-list { column-count: 1; margin-top: 15px; }
    .servizi-dettagli-list li { text-align: left; margin-bottom: 15px; }

    /* Contatti e Mappa */
    .contact-grid-chic { grid-template-columns: 1fr; gap: 40px; padding: 0 15px; }
    .contact-info-chic { padding-right: 0; border-right: none; border-bottom: 1px solid rgba(141, 163, 153, 0.2); padding-bottom: 40px; text-align: left; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .contact-map-wrapper, .contact-map-wrapper iframe { min-height: 300px; }
}

/* --- FINO A 768px (Smartphone) --- */
@media (max-width: 768px) {
    /* Hero */
    .hero-content-centered h1 { font-size: 2rem !important; line-height: 1.3; margin-bottom: 15px; }
    .hero-content-centered p { font-size: 1.05rem; margin-bottom: 25px; padding: 0 10px; }
    .hero-subtitle { margin-top: 60px !important; font-size: 0.75rem; letter-spacing: 1.5px; margin-bottom: 15px; }
    .hero-buttons { flex-direction: column; gap: 15px; align-items: center; }

    /* Servizi Home e Percorso */
    .servizio-item { flex-direction: column; gap: 15px; }
    .percorso-chic-wrapper { padding: 50px 20px; }

    /* Blog */
    .blog-elegante { padding: 80px 0; }
    .blog-title { font-size: 1.3rem; }
    .blog-content { padding: 20px 15px; }

    /* Contatti */
    .contatti-elegante { padding: 80px 0; }
    .contact-info-chic { display: block; }
    .info-block { margin-bottom: 30px; }
    .contact-map-wrapper, .contact-map-wrapper iframe { min-height: 250px; }
}

/* --- FINO A 480px (Smartphone molto piccoli) --- */
@media (max-width: 480px) {
    /* Navbar */
    .logo-img { height: 45px; }
    .navbar-prenota { padding: 8px 15px; font-size: 0.75rem; }
    .navbar-container { padding: 0 15px; }

    /* Hero */
    .hero-content-centered h1 { font-size: 1.75rem !important; }
    .hero-subtitle { margin-top: 80px !important; }
}
/* --- FINO A 768px (Smartphone) --- */
@media (max-width: 768px) {
    /* Hero */
    .hero-content-centered h1 {
        font-size: 2rem !important;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-content-centered p {
        font-size: 1.05rem;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    .hero-subtitle {
        margin-top: 60px !important;
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        margin-bottom: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    /* Servizi Home e Percorso */
    .header-elegante {
        padding: 0 20px;
    }

    /* AGGIUNTO: Dà respiro al titolo "Come posso aiutarti" */
    .servizi-editorial-grid {
        padding: 0 20px;
    }

    /* AGGIUNTO: Dà respiro alle card 01, 02, 03 */
    .servizio-item {
        flex-direction: column;
        gap: 15px;
    }

    .percorso-chic-wrapper {
        padding: 50px 20px;
    }
}
/* Blog */
/* ... (il resto rimane uguale) ... */