/* =========================================
   SERVIZI DETTAGLIO — CSS condiviso
   Usato da: certificazione-ape.html,
   pratiche-edilizie.html, pratiche-catastali.html,
   pratiche-vincolistiche.html, consulenza-tecnica.html
   ========================================= */

/* === BODY === */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #f3f3f1;
    color: #333;
}

/* === HEADER === */
header {
    background: #253439;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .logo {
    color: #ceb99e;
    font-size: 1.8rem;
    text-decoration: none;
    font-weight: bold;
}

header nav a {
    color: #ceb99e;
    text-decoration: none;
    margin-left: 20px;
    font-weight: 600;
    position: relative;
}

header nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background: #8a775e;
    transition: 0.3s;
}

header nav a:hover::after {
    width: 100%;
}

@keyframes drawLineTop {
    from { width: 0%; left: 0; }
    to { width: 100%; left: 0; }
}

@keyframes drawLineBottom {
    from { width: 0%; right: 0; }
    to { width: 100%; right: 0; }
}

@media (max-width: 768px) {
    header { flex-direction: column; text-align: center; padding: 15px 20px; }
    header .logo { display: none; }
    header nav a { display: block; margin: 10px auto; }
}

/* === HERO SERVIZIO === */
.servizio-hero {
    max-width: 1000px;
    margin: 3rem auto 0;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.servizio-hero .hero-icona {
    width: 120px;
    height: 120px;
    min-width: 120px;
    background-color: #f0f4f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.servizio-hero .hero-icona img {
    width: 85px;
    height: 85px;
    object-fit: contain;
}

.servizio-hero .hero-testo h1 {
    color: #213c43;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-shadow: 0.8px 0.8px 2px rgba(0,0,0,0.2);
}

.servizio-hero .hero-testo p {
    color: #5e5e5e;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* === SEZIONI CONTENUTO === */
.sezione-dettaglio {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.sezione-dettaglio.verde {
    background-color: rgba(230, 240, 242, 0.44);
    border-left: 5px solid #213c43;
}

.sezione-dettaglio.oro {
    background-color: rgba(255, 223, 182, 0.3);
    border-left: 5px solid #a2814e;
}

.sezione-dettaglio h2 {
    color: #213c43;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-shadow: none;
}

.sezione-dettaglio p {
    color: #5e5e5e;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.8rem;
}

.sezione-dettaglio ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sezione-dettaglio ul li {
    color: #5e5e5e;
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.sezione-dettaglio ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #a2814e;
    font-weight: bold;
}

/* === AVVISO === */
.avviso {
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding: 1rem 1.5rem;
    background-color: rgba(255, 223, 182, 0.4);
    border-left: 4px solid #a2814e;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #5e5e5e;
}

/* === CTA === */
.cta-section {
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding: 2rem;
    text-align: center;
    background-color: #213c43;
    border-radius: 10px;
}

.cta-section p {
    color: #ffdfb6;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta-section a {
    background: #a2814e;
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.cta-section a:hover {
    background: #C9A96D;
    transform: translateY(-2px);
}

/* === FAQ === */
.faq-dettaglio {
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.faq-dettaglio h2 {
    color: #213c43;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-shadow: none;
    text-align: center;
}

.faq-dettaglio .faq-item {
    border: 1px solid #dde4e6;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.faq-dettaglio .faq-domanda {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    background: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: #213c43;
    font-family: inherit;
    transition: background 0.2s ease;
}

.faq-dettaglio .faq-domanda:hover {
    background-color: #f0f4f5;
}

.faq-dettaglio .faq-icona {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 10px;
    color: #a2814e;
}

.faq-dettaglio .faq-risposta {
    display: none;
    padding: 0 20px 16px;
    font-size: 0.95rem;
    color: #3b4b50;
    line-height: 1.7;
    border-top: 1px solid #dde4e6;
}

.faq-dettaglio .faq-item.aperto .faq-icona {
    transform: rotate(180deg);
}

/* === BREADCRUMB === */
.breadcrumb {
    max-width: 1000px;
    margin: 1.5rem auto 0;
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
    color: #5e5e5e;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(230, 240, 242, 0.5);
    border-radius: 6px;
    width: fit-content;
}

.breadcrumb a {
    color: #a2814e;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #213c43;
    text-decoration: underline;
}

.breadcrumb-sep {
    color: #a2814e;
    font-weight: bold;
}

.breadcrumb-current {
    color: #213c43;
    font-weight: 600;
}

/* === FOOTER === */
#footer {
    background-color: #333;
    color: white;
    padding: 40px 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

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

.footer-info, .footer-social {
    flex: 1;
    min-width: 250px;
}

.footer-info h3, .footer-social h3 {
    color: #8a775e;
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.footer-info p, .footer-social p {
    font-size: 1rem;
    line-height: 1.6;
    color: #ddd;
}

.footer-info a, .footer-social a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-info a:hover, .footer-social a:hover { color: #8a775e; }

.social-icons { display: block; text-align: center; margin-top: 20px; }
.social-icon { display: block; margin-bottom: 15px; }

.footer-bottom p {
    padding-top: 20px;
    color: #d1d1d1;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-container { flex-direction: column; align-items: center; }
    .footer-info, .footer-social { margin-bottom: 20px; }
    .servizio-hero { flex-direction: column; text-align: center; }
    .servizio-hero .hero-icona { margin: 0 auto; }
    .sezione-dettaglio { padding: 1.5rem; }
}

/* === NAVIGAZIONE TRA SERVIZI === */
.altri-servizi-nav {
    max-width: 1000px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    text-align: center;
}

.altri-servizi-nav h2 {
    color: #213c43;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    text-shadow: none;
}

.servizi-nav-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.servizio-nav-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #213c43;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    border-top: 3px solid #a2814e;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 130px;
}

.servizio-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    color: #a2814e;
}