/* ==========================================================================
   SERVIZI.CSS — componenti aggiuntivi per le pagine di servizio dinamiche.
   Si appoggia a index.css / responsive-index.css (stessi colori e font):
   oro #C5A059 · bronzo #AC8D5D / #7F5B30 · antracite #2D2D2D / #201F1A
   crema #FBFAF6 / #F3EDE1 / #E6DDCA — Cormorant Garamond + Manrope
   ========================================================================== */

/* ---------- Menu: voce corrente ---------- */
.nav-menu a.is-current { color: #C5A059; }

/* ---------- Hero di servizio ---------- */
.hero.hero-service {
    min-height: 0;
    padding: 70px 0 80px;
    background-image:
        linear-gradient(to right, rgba(32, 31, 26, 0.92) 45%, rgba(32, 31, 26, 0.5) 100%),
        var(--hero-img, url('/img/hero-modern.webp'));
}
.hero-service .hero-content::before { content: none; display: none; }

.svc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    color: rgba(251, 250, 246, 0.55);
    margin-bottom: 28px;
    justify-content: center;
}
.svc-breadcrumb a { color: rgba(251, 250, 246, 0.7); text-decoration: none; }
.svc-breadcrumb a:hover { color: #C5A059; }
.svc-breadcrumb b { font-weight: 500; color: #C5A059; }

.svc-eyebrow {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #AC8D5D;
    margin-bottom: 22px;
    font-weight: 500;
}
.hero-service .hero-title { font-size: 40px; }
.hero-service .hero-description { max-width: 640px; }

/* ---------- Fatti in breve ---------- */
.svc-facts { background: #2D2D2D; }
.svc-facts-grid {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
}
.svc-fact {
    padding: 26px 10px;
    border-bottom: 1px solid rgba(230, 221, 202, 0.15);
    text-align: center;
}
.svc-fact:last-child { border-bottom: none; }
.svc-fact span {
    display: block;
    font-family: 'Manrope', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #AC8D5D;
    margin-bottom: 8px;
    font-weight: 600;
}
.svc-fact strong {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.25;
    color: rgba(251, 250, 246, 0.9);
}

/* ---------- Introduzione + box "in breve" ---------- */
.svc-intro { background: #FBFAF6; padding: 70px 0; }
.svc-intro-inner {
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.svc-intro .about-title { font-size: 32px; margin-bottom: 25px; }
.svc-intro .about-description p { max-width: none; margin-left: 0; margin-right: 0; }
.svc-intro .about-description a { color: #7F5B30; }
.svc-aside {
    background: #F3EDE1;
    border-top: 3px solid #C5A059;
    padding: 34px 28px;
    align-self: start;
    text-align: left;
}
.svc-aside h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 500;
    color: #2D2D2D;
    margin-bottom: 18px;
}
.svc-aside ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.svc-aside li {
    position: relative;
    padding-left: 22px;
    font-family: 'Manrope', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #4A4744;
}
.svc-aside li::before {
    content: "";
    position: absolute;
    left: 0; top: 7px;
    width: 7px; height: 7px;
    background: #C5A059;
    transform: rotate(45deg);
}

/* ---------- Elenco con rombi ---------- */
.svc-checks {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid #E6DDCA;
}
.svc-checks li {
    position: relative;
    padding: 20px 8px 20px 34px;
    border-bottom: 1px solid #E6DDCA;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #4A4744;
    text-align: left;
}
.svc-checks li::before {
    content: "";
    position: absolute;
    left: 6px; top: 28px;
    width: 8px; height: 8px;
    background: #C5A059;
    transform: rotate(45deg);
}
.svc-checks strong { color: #2D2D2D; font-weight: 700; }
.svc-small-note {
    margin-top: 26px;
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    line-height: 1.65;
    color: #7a756d;
    max-width: 780px;
}

/* ---------- Timeline con numero di colonne variabile ---------- */
.svc-steps-zone .services-steps-timeline { margin-bottom: 0; }
.svc-steps-zone .services-features-dark { margin-top: 90px; }
@media screen and (min-width: 992px) {
    .services-steps-timeline.svc-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .services-steps-timeline.svc-cols-3 { grid-template-columns: repeat(3, 1fr); }
}
@media screen and (min-width: 1200px) {
    .services-steps-timeline.svc-cols-6 { grid-template-columns: repeat(3, 1fr); row-gap: 50px; }
    .services-steps-timeline.svc-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .services-steps-timeline.svc-cols-5 { grid-template-columns: repeat(5, 1fr); }
}

/* ---------- Blocco scuro autonomo ---------- */
.svc-dark-zone { background: #201F1A; padding: 70px 0; }
.svc-dark-zone .services-heading { color: rgba(251, 250, 246, 0.85); }
.svc-dark-zone .services-description { color: rgba(251, 250, 246, 0.62); }
.svc-dark-zone .services-intro { margin-bottom: 45px; }
.svc-dark-zone .services-features-dark { margin-top: 0; background: transparent; padding: 0; border-top: 1px solid rgba(230, 221, 202, 0.15); padding-top: 45px; }

/* ---------- Tabella di confronto ---------- */
.svc-table-wrap { background: #fff; border: 1px solid #E6DDCA; }
.svc-table { width: 100%; border-collapse: collapse; font-family: 'Manrope', sans-serif; text-align: left; }
.svc-table th, .svc-table td { padding: 20px 22px; font-size: 14px; line-height: 1.6; color: #4A4744; vertical-align: top; border-bottom: 1px solid #E6DDCA; }
.svc-table thead th {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 500;
    color: #2D2D2D;
    background: #F3EDE1;
    border-bottom: 3px solid #C5A059;
}
.svc-table tbody th {
    width: 22%;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #AC8D5D;
    font-weight: 600;
}
.svc-table tbody tr:last-child th, .svc-table tbody tr:last-child td { border-bottom: none; }
.svc-table strong { color: #2D2D2D; }

@media screen and (max-width: 767px) {
    .svc-table, .svc-table tbody, .svc-table tr, .svc-table th, .svc-table td { display: block; width: 100%; }
    .svc-table thead { display: none; }
    .svc-table tbody tr { border-bottom: 3px solid #C5A059; }
    .svc-table tbody tr:last-child { border-bottom: none; }
    .svc-table tbody th { width: 100%; background: #F3EDE1; border-bottom: none; padding: 14px 18px; }
    .svc-table td { padding: 14px 18px; }
    .svc-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-family: 'Cormorant Garamond', serif;
        font-size: 20px;
        font-weight: 600;
        color: #7F5B30;
    }
}

/* ---------- Galleria ---------- */
.svc-gallery-zone { background: #FBFAF6; padding: 70px 0; }
.svc-gallery-zone .services-intro { margin-bottom: 40px; }
.svc-gallery { display: grid; grid-template-columns: 1fr; gap: 20px; }
.svc-shot { position: relative; overflow: hidden; background: #E2D9C6; aspect-ratio: 16 / 10; }
.svc-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.svc-shot:hover img { transform: scale(1.04); }
.svc-shot figcaption {
    position: absolute; left: 18px; bottom: 18px;
    font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 19px;
    color: #2D2D2D; background: rgba(251, 250, 246, 0.8); padding: 4px 12px; border-radius: 2px;
}
.svc-gallery-link { text-align: center; margin-top: 40px; }
.svc-gallery-link .btn-view-all { display: inline-block; }

/* ---------- Nota / avviso ---------- */
.svc-note-zone { background: #FBFAF6; padding: 60px 0 10px; }
.svc-note-zone + .svc-note-zone { padding-top: 20px; }
.svc-note-zone:last-of-type { padding-bottom: 70px; }
.svc-note {
    margin: 0 auto;
    padding: 28px 30px;
    background: #F3EDE1;
    border-left: 3px solid #C5A059;
    text-align: left;
}
.svc-note > strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500; color: #2D2D2D; margin-bottom: 8px; }
.svc-note p { font-family: 'Manrope', sans-serif; font-size: 14px; line-height: 1.7; color: #55524C; }

/* ---------- Card servizi collegati / elenco servizi ---------- */
.svc-related { background: #F3EDE1; padding: 70px 0; }
.svc-related-inner { margin: 0 auto; }
.svc-related-head { margin-bottom: 40px; text-align: center; }
.svc-related-head .about-title { font-size: 34px; margin-bottom: 0; }
.svc-cards { display: grid; grid-template-columns: 1fr; gap: 20px; }
.svc-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid #E6DDCA; border-top: 3px solid #C5A059;
    padding: 34px 30px; text-decoration: none; text-align: left;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(45, 45, 45, 0.09); border-color: #C5A059; }
.svc-card-cat { font-family: 'Manrope', sans-serif; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: #AC8D5D; font-weight: 600; margin-bottom: 16px; }
.svc-card h3 { font-family: 'Cormorant Garamond', serif; font-size: 25px; font-weight: 500; line-height: 1.2; color: #2D2D2D; margin-bottom: 12px; }
.svc-card p { font-family: 'Manrope', sans-serif; font-size: 14px; line-height: 1.65; color: #55524C; margin-bottom: 22px; flex: 1; }
.svc-card-go { font-family: 'Manrope', sans-serif; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; color: #7F5B30; }
.svc-card-go i { margin-left: 6px; font-size: 11px; transition: margin-left 0.3s ease; }
.svc-card:hover .svc-card-go i { margin-left: 12px; }
.svc-related-hub { padding-top: 90px; padding-bottom: 100px; background: #FBFAF6; }

/* ---------- Varie ---------- */
.svc-updated {
    background: #FBFAF6;
    text-align: center;
    padding: 30px 5% 0;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    line-height: 1.7;
    color: #8a857c;
}
.svc-notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; text-align: center; padding: 80px 5%; }
.svc-notfound h1 { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 42px; color: #2D2D2D; }
.svc-notfound p { font-family: 'Manrope', sans-serif; color: #55524C; }

/* FAQ: risposte più lunghe di quelle della home */
.faq-item.active .faq-answer { max-height: 900px; }
.faq-answer p { max-width: none; }

/* Allineamento a sinistra dei testi lunghi anche su mobile */
.svc-intro .about-description, .svc-checklist-zone .expertise-header { text-align: left; }
.svc-checklist-zone .expertise-header p { margin-left: 0; margin-right: 0; }
.svc-intro .section-label, .svc-intro .about-title { text-align: left; }
.svc-related-head .section-label { display: block; }
.svc-related-head .about-title { text-align: inherit; }

/* Sfondo bianco per staccare la checklist dalle sezioni crema vicine */
.svc-checklist-zone { background: #FFFFFF; border-top: 1px solid #E6DDCA; border-bottom: 1px solid #E6DDCA; }

/* Link dentro ai testi */
.svc-aside a, .svc-intro a, .svc-checks a, .svc-note a, .svc-table a,
.faq-answer a, .expertise-description a, .services-description a,
.energy-description a, .ba-subtitle a {
    color: #7F5B30;
    text-decoration: none;
    border-bottom: 1px solid #C5A059;
    transition: color 0.2s ease, border-color 0.2s ease;
}
.svc-aside a:hover, .svc-intro a:hover, .svc-checks a:hover, .svc-note a:hover, .svc-table a:hover,
.faq-answer a:hover, .expertise-description a:hover, .services-description a:hover {
    color: #2D2D2D;
    border-bottom-color: #2D2D2D;
}

/* Larghezze allineate al resto del sito (92% mobile, 88% da 576px) */
.svc-facts-grid, .svc-intro-inner, .svc-related-inner { width: 92%; }
@media screen and (min-width: 576px) {
    .svc-facts-grid, .svc-intro-inner, .svc-related-inner { width: 88%; }
}
.svc-note { width: 92%; }
.svc-note p { max-width: 900px; }
@media screen and (min-width: 576px) { .svc-note { width: 88%; } }

/* Intestazione "Prima e dopo": tutto centrato (nella home etichetta e titolo sono disallineati) */
.before-after-section .ba-header, .before-after-section .ba-main-title, .before-after-section .ba-subtitle { text-align: center; }
.before-after-section .ba-subtitle { margin-left: auto; margin-right: auto; }

/* ---------- Breakpoint ---------- */
@media screen and (min-width: 576px) {
    .hero-service .hero-title { font-size: 46px; }
    .svc-facts-grid { grid-template-columns: repeat(2, 1fr); }
    .svc-fact { border-bottom: 1px solid rgba(230, 221, 202, 0.15); }
    .svc-fact:nth-child(odd) { border-right: 1px solid rgba(230, 221, 202, 0.15); }
    .svc-fact:nth-last-child(-n+2):nth-child(odd), .svc-fact:last-child { border-bottom: none; }
    .svc-gallery { grid-template-columns: repeat(2, 1fr); }
    .svc-cards { grid-template-columns: repeat(2, 1fr); }
}

@media screen and (min-width: 992px) {
    .hero.hero-service { padding: 90px 0 110px; }
    .svc-breadcrumb { justify-content: flex-start; margin-bottom: 36px; }
    .hero-service .hero-title { font-size: 56px; }
    .svc-facts-grid { grid-template-columns: repeat(4, 1fr); }
    .svc-fact { border-bottom: none !important; border-right: 1px solid rgba(230, 221, 202, 0.15); padding: 34px 26px; text-align: left; }
    .svc-fact:last-child { border-right: none; }
    .svc-intro, .svc-dark-zone, .svc-gallery-zone, .svc-related { padding: 100px 0; }
    .svc-intro-inner { grid-template-columns: 1.55fr 1fr; gap: 80px; align-items: start; }
    .svc-intro .about-title { font-size: 40px; }
    .svc-checks { grid-template-columns: repeat(2, 1fr); column-gap: 60px; }
    .svc-gallery { grid-template-columns: repeat(3, 1fr); }
    .svc-cards { grid-template-columns: repeat(3, 1fr); gap: 26px; }
    .svc-related-head { text-align: left; }
    .svc-related-head .about-title { font-size: 40px; }
    .svc-note-zone { padding-top: 80px; }
    .svc-note-zone + .svc-note-zone { padding-top: 20px; }
    .svc-gallery-zone .services-heading, .svc-dark-zone .services-heading { text-align: left; }
    .svc-gallery-zone .services-description, .svc-dark-zone .services-description { margin-left: 0; margin-right: 0; }
}
