/* ============================================
   GRAZIA SCAINI - PSICOLOGA
   Design System: Calma, Fiducia, Accoglienza
   Palette: Verde Teal + Crema + Bianco
   ============================================ */

@font-face {
    font-family: standardFont;
    src: url(./../source/AvenirLT35Light.ttf);
}

/* --- Base --- */
body.content {
    color: rgb(80, 80, 80);
    font-family: standardFont, 'Segoe UI', Arial, Helvetica, sans-serif;
    background: #FCF5E5;
    line-height: 1.7;
}

/* --- Header --- */
header {
    background-color: rgba(0, 0, 0, 0);
    color: rgb(42, 124, 111);
    text-align: center;
    padding-top: 3rem;
}

h1.ptitle {
    color: rgb(42, 124, 111);
    letter-spacing: 0.1em;
}

h1.lefttitle {
    color: rgb(42, 124, 111);
    text-align: left;
}

/* --- Navigation --- */
nav {
    color: rgb(42, 124, 111);
    text-align: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline;
    text-align: center;
    margin-left: 1rem;
}

nav a {
    text-decoration: none;
    color: rgb(42, 124, 111);
    font-weight: bold;
}

.nav-link {
    color: rgb(42, 124, 111) !important;
    transition: opacity 0.3s ease;
}

.nav-link:hover {
    opacity: 0.7;
}

.nav-item {
    margin-left: 0 !important;
}

.justify {
    justify-content: center;
}

.navbar-toggler {
    position: absolute;
    top: 0;
    left: 0;
}

button.ham-btn {
    background-color: #FCF5E5;
}

/* --- Sections --- */
section {
    margin-top: 2rem;
    padding: 1rem;
    text-align: center;
}

.section-title {
    color: rgb(42, 124, 111);
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    color: rgb(80, 80, 80);
}

/* --- Hero Section --- */
.hero {
    padding: 3rem 1.5rem;
    text-align: center;
    background: linear-gradient(160deg, rgba(42, 124, 111, 0.06) 0%, rgba(252, 245, 229, 1) 100%);
    border-radius: 16px;
    margin-top: 1.5rem;
}

.hero h2 {
    color: rgb(42, 124, 111);
    font-size: 1.9rem;
    margin-bottom: 1rem;
    font-weight: bold;
    line-height: 1.3;
}

.hero p {
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 1.5rem;
    line-height: 1.8;
    color: rgb(80, 80, 80);
}

/* --- CTA Buttons --- */
.cta-primary {
    display: inline-block;
    background-color: rgb(42, 124, 111);
    color: #FCF5E5;
    padding: 13px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin: 0.5rem;
    letter-spacing: 0.02em;
}

.cta-primary:hover {
    background-color: rgb(30, 100, 88);
    color: #FCF5E5;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(42, 124, 111, 0.25);
}

.cta-secondary {
    display: inline-block;
    border: 2px solid rgb(42, 124, 111);
    color: rgb(42, 124, 111);
    padding: 11px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin: 0.5rem;
    letter-spacing: 0.02em;
}

.cta-secondary:hover {
    background-color: rgb(42, 124, 111);
    color: #FCF5E5;
    text-decoration: none;
    transform: translateY(-2px);
}

/* --- Service Cards (Home Preview) --- */
.service-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.service-card h3 {
    color: rgb(42, 124, 111);
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgb(80, 80, 80);
}

/* --- Service Detail (Servizi page) --- */
.service-detail {
    background: #ffffff;
    border-radius: 14px;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
    text-align: left;
}

.service-detail h2 {
    color: rgb(42, 124, 111);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.service-detail h4 {
    color: rgb(42, 124, 111);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.service-detail p {
    line-height: 1.8;
    color: rgb(80, 80, 80);
}

/* --- Empathy List --- */
.empathy-list {
    list-style: none;
    padding: 0;
    max-width: 620px;
    margin: 0 auto;
    text-align: left;
}

.empathy-list li {
    padding: 0.8rem 0 0.8rem 2rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.7;
    border-bottom: 1px solid rgba(42, 124, 111, 0.1);
    color: rgb(80, 80, 80);
}

.empathy-list li::before {
    content: "–";
    color: rgb(42, 124, 111);
    font-size: 1.2rem;
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0.8rem;
}

.empathy-list li:last-child {
    border-bottom: none;
}

/* --- Quote Section --- */
.quote-section {
    background: linear-gradient(135deg, rgba(42, 124, 111, 0.07), rgba(42, 124, 111, 0.02));
    border-radius: 14px;
    padding: 2.5rem 2rem;
    margin: 2rem 0;
    border-left: 4px solid rgb(42, 124, 111);
}

.quote-section blockquote {
    margin: 0;
    text-align: center;
}

.quote-section blockquote p {
    font-size: 1.25rem;
    font-style: italic;
    color: rgb(42, 124, 111);
    margin-bottom: 0.5rem;
}

.quote-section cite {
    font-size: 0.9rem;
    font-style: normal;
    color: rgb(97, 156, 146);
}

/* --- Trust Bar --- */
.trust-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding: 1.5rem;
    text-align: center;
}

.trust-item {
    font-size: 0.85rem;
    color: rgb(100, 100, 100);
}

.trust-item strong {
    display: block;
    color: rgb(42, 124, 111);
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

/* --- FAQ Section --- */
.faq-item {
    background: #ffffff;
    border-radius: 10px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    text-align: left;
}

.faq-question {
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    font-weight: bold;
    color: rgb(42, 124, 111);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    margin: 0;
}

.faq-question:hover {
    background: rgba(42, 124, 111, 0.03);
}

.faq-question::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: bold;
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    line-height: 1.8;
    color: rgb(80, 80, 80);
}

.faq-answer.show {
    max-height: 300px;
    padding: 0 1.5rem 1.2rem;
}

/* --- Contact Link --- */
.contact-link {
    color: rgb(42, 124, 111);
    text-decoration: none;
    font-weight: bold;
    transition: opacity 0.3s;
}

.contact-link:hover {
    color: rgb(30, 100, 88);
    text-decoration: underline;
}

/* --- Existing component styles (preserved) --- */
.tariffe-section {
    text-align: left;
}

.border-space-table {
    border-collapse: separate;
    border-spacing: 0 1rem;
}

li.skill {
    margin-bottom: 1.5rem;
    text-align: left;
    margin: auto;
}

p.author {
    text-align: end;
}

/* --- Footer --- */
footer {
    background-color: rgba(0, 0, 0, 0);
    color: rgb(42, 124, 111);
    text-align: center;
    padding: 1.5rem 10px;
    width: 100%;
    bottom: 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(42, 124, 111, 0.15);
}

/* --- Layout helpers --- */
div.desc-col {
    width: 70%;
    padding: 0rem 1rem;
}

div.res-row {
    margin-bottom: 1rem;
}

label {
    font-size: .8rem;
    margin-left: 0px;
    margin-top: 0px;
}

.wrapper {
    display: flex;
    flex-direction: column;
}

/* --- Contact Row --- */
.contact-row {
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    align-items: center;
}

.contact-row:last-child {
    border-bottom: none;
}

/* --- Images --- */
.main-image {
    height: 20rem;
    width: 15rem;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.curriculum-image {
    width: 16rem;
    height: 16rem;
    border-radius: 14px;
    object-fit: cover;
}

.carousel-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* --- Buttons --- */
.submit-btn {
    background-color: rgb(42, 124, 111) !important;
}

/* --- Curriculum --- */
.curriculum-title {
    color: rgb(42, 124, 111) !important;
    font-weight: bold;
    font-size: 0.9rem;
}

.curriculum-title small {
    font-weight: normal;
    color: rgb(120, 120, 120);
}

.curriculum-row {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-left: 3px solid rgb(42, 124, 111) !important;
}

/* --- Contact Table --- */
.contact-table {
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

/* --- Tariffe --- */
.paper-container {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    width: 85%;
    margin: 20px auto;
}

.table-tariffe {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 1rem;
    text-align: left;
}

.table-tariffe th,
.table-tariffe td {
    padding: 14px 12px;
    border: 1px solid #eee;
}

.table-tariffe th {
    background-color: #f4f4f4;
    font-weight: bold;
    text-align: center;
}

.table-tariffe td {
    text-align: center;
}

.table-tariffe td:first-child {
    text-align: left;
    color: rgb(60, 60, 60);
}

.table-tariffe tr:nth-child(even) {
    background-color: #fafafa;
}

/* --- Responsive --- */
@media only screen and (min-width: 768px) {
    body {
        padding: 0rem 17%;
    }
}

@media only screen and (max-width: 767px) {
    .hero {
        padding: 2rem 1rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .service-detail {
        padding: 1.5rem;
    }

    .trust-bar {
        gap: 1.5rem;
    }

    .contact-table {
        width: 95%;
    }

    .section-title {
        font-size: 1.4rem;
    }
}