/* =====================================================
   STYLE.CSS – Dr.ssa Marta Basilico Psicoterapeuta
   File CSS condiviso per tutte le pagine del sito
   Ottimizzato per performance (riduce HTML inline)
   ===================================================== */

:root {
    --primary-color: #2F5D62;   /* Verde petrolio – fiducia */
    --primary-dark:  #1a3a3e;
    --secondary-color: #A7C4BC; /* Verde salvia chiaro – calma */
    --accent-color:  #DFEEEA;   /* Bianco ghiaccio – pulizia */
    --text-color:    #333333;
    --text-muted:    #6c757d;
    --bg-warm:       #F9F7F2;   /* Fondo caldo */
    --white:         #ffffff;
    --success:       #198754;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
    font-family: 'Lato', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}
body.has-fixed-nav { padding-top: 80px; }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

a { color: var(--primary-color); }
a:hover { color: var(--primary-dark); }

/* ---------- Navbar ---------- */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}
.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}
.nav-link {
    color: var(--text-color);
    font-weight: 500;
}
.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}
.nav-link.active { font-weight: 700; }

/* ---------- Buttons ---------- */
.btn-cta {
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    padding: 10px 25px;
    font-weight: 700;
    transition: all 0.3s;
    border: none;
}
.btn-cta:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* ---------- Hero (home) ---------- */
.hero-section {
    background: linear-gradient(rgba(255,255,255,0.85), rgba(247,244,238,0.7)),
                url('../img/hero-studio.jpg') center/cover no-repeat;
    padding: 100px 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

/* ---------- Section ---------- */
section { padding: 80px 0; }
.bg-warm { background-color: var(--bg-warm); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 15px; }
.divider {
    height: 3px;
    width: 60px;
    background-color: var(--secondary-color);
    margin: 0 auto;
}

/* ---------- Page Header (interne) ---------- */
.page-header {
    background-color: var(--bg-warm);
    padding: 60px 0;
    margin-bottom: 50px;
    text-align: center;
}
.breadcrumb { justify-content: center; }
.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}
.breadcrumb-item.active { color: var(--text-muted); }

/* ---------- Service Cards ---------- */
.service-card {
    border: none;
    border-radius: 15px;
    transition: 0.3s;
    background: var(--white);
    height: 100%;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* ---------- Service Hub Cards (servizi page) ---------- */
.service-hub-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.service-hub-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(47, 93, 98, 0.15);
}
.service-img-wrapper {
    height: 200px;
    overflow: hidden;
    background-color: var(--accent-color);
}
.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-hub-card:hover .service-img-wrapper img { transform: scale(1.05); }
.service-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.btn-link-custom {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
}
.btn-link-custom:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ---------- Bonus Box ---------- */
.bonus-box {
    background-color: var(--accent-color);
    border-left: 5px solid var(--primary-color);
    padding: 30px;
    border-radius: 5px;
}
.bonus-section {
    background-color: var(--accent-color);
    border-radius: 15px;
    padding: 40px;
    margin: 60px 0;
    border-left: 6px solid var(--primary-color);
}

/* ---------- Testimonials ---------- */
.testimonial-card {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.stars { color: #FFD700; }

/* ---------- Profile / Chi sono ---------- */
.profile-img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(47,93,98,0.15);
    object-fit: cover;
    width: 100%;
    height: auto;
}
.cv-box {
    background-color: var(--white);
    border-left: 4px solid var(--secondary-color);
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.value-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* ---------- Step Cards (metodo) ---------- */
.step-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    height: 100%;
    border: 1px solid #eee;
    position: relative;
    transition: 0.3s;
    overflow: hidden;
}
.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border-color: var(--secondary-color);
}
.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--accent-color);
    position: absolute;
    top: -10px;
    right: 10px;
    font-weight: 700;
    opacity: 0.5;
}
.step-title {
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

/* ---------- Sidebar (pagine servizi) ---------- */
.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}
.sidebar-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}
.service-list a {
    display: block;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: var(--text-color);
    text-decoration: none;
    transition: 0.3s;
    border-left: 3px solid transparent;
}
.service-list a:hover {
    background-color: var(--bg-warm);
    color: var(--primary-color);
    padding-left: 20px;
}
.service-list a.active {
    border-left: 3px solid var(--primary-color);
    background-color: var(--bg-warm);
    color: var(--primary-color);
    font-weight: 700;
}
.service-list a:last-child { border-bottom: none; }

/* ---------- Content Area (articoli/servizi) ---------- */
.content-area img {
    border-radius: 10px;
    margin-bottom: 30px;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.content-area ul { margin-bottom: 30px; }
.content-area ul.list-checked li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    list-style: none;
}
.content-area ul.list-checked li::before {
    content: '\f00c';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

/* ---------- Miti vs Realtà ---------- */
.myth-box {
    border-left: 4px solid #dc3545;
    background-color: #fff5f5;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 10px 10px 0;
}
.truth-box {
    border-left: 4px solid var(--success);
    background-color: #f0fdf4;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 0 10px 10px 0;
}

/* ---------- Benefits list ---------- */
.benefits-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: start;
}
.benefits-list i {
    color: var(--primary-color);
    margin-top: 5px;
    margin-right: 15px;
}

/* ---------- Online Benefits Box ---------- */
.online-benefit-box {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    align-items: start;
    gap: 15px;
}
.benefit-icon {
    color: var(--primary-color);
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 5px;
}

/* ---------- Contatti ---------- */
.contact-card-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.contact-info-box {
    background-color: var(--bg-warm);
    padding: 40px;
    border-radius: 15px;
    border-left: 5px solid var(--secondary-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}
.contact-form-box {
    background-color: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    height: 100%;
}
.info-item { display: flex; margin-bottom: 30px; }
.info-icon {
    width: 50px;
    height: 50px;
    background-color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    flex-shrink: 0;
}
.form-control {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    margin-bottom: 20px;
}
.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(167,196,188,0.25);
}
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 50px;
    height: 450px;
    width: 100%;
}

/* ---------- Accordion (FAQ) ---------- */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.accordion-button {
    font-weight: 600;
    color: var(--primary-color);
    background-color: var(--white);
    padding: 20px;
}
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--accent-color);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.1);
}
.accordion-body {
    background-color: var(--white);
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}
.faq-category-title {
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}

/* ---------- Local landing pages ---------- */
.local-info-card {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
    border-top: 4px solid var(--secondary-color);
}
.local-info-card i.local-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 50px 0 20px;
}
footer a {
    color: var(--accent-color);
    text-decoration: none;
}
footer a:hover {
    color: var(--white);
    text-decoration: underline;
}
footer h5 {
    color: var(--white);
    margin-bottom: 20px;
}

/* ---------- Skip link (accessibilità) ---------- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    z-index: 9999;
    text-decoration: none;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 60px 0;
    }
    .section-title h2 { font-size: 2rem; }
    section { padding: 60px 0; }
}
