@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/lora-latin-500-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Lora';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/lora-latin-700-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Lora';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/lora-latin-400-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/nunito-latin-400-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/nunito-latin-600-normal.woff2') format('woff2');
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/nunito-latin-700-normal.woff2') format('woff2');
}

:root {
    --bg-cream: #FDFBF7;
    --bg-warm: #F4EFE6;
    --text-main: #3A2E28;
    --text-soft: #6B5B53;
    --accent-terra: #C86A4A;
    --accent-terra-hover: #A85235;
    --white: #FFFFFF;
    --shadow-soft: 0 4px 20px rgba(58, 46, 40, 0.06);
    --radius: 16px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 17px;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Lora', serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

.italic { font-style: italic; color: var(--accent-terra); }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.section { padding: 120px 0; }
.bg-warm { background-color: var(--bg-warm); }

.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--accent-terra);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(200, 106, 74, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-terra-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 106, 74, 0.4);
}

.btn-large { padding: 20px 40px; font-size: 1.1rem; }

.header {
    background: rgba(253, 251, 247, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(58, 46, 40, 0.05);
    animation: fadeInDown 1s ease-out;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    animation: rotateIn 1.2s ease-out;
}

.logo-text { color: var(--accent-terra); }

.nav { display: flex; gap: 30px; align-items: center; }
.nav a { font-weight: 600; transition: var(--transition); }
.nav a:hover { color: var(--accent-terra); }

.btn-nav {
    background-color: var(--text-main);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
}
.btn-nav:hover { background-color: var(--accent-terra); }

.hero {
    padding: 160px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-tagline {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-terra);
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--text-soft);
    max-width: 700px;
    margin: 0 auto 40px;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero .btn {
    animation: fadeInUp 1s ease-out 0.9s both, pulse 2s infinite 1.5s;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: center;
}

.about-img-container { position: relative; }

.about-img {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    margin: 0 auto;
    display: block;
    filter: grayscale(20%);
    transition: var(--transition);
}

.about-img:hover {
    filter: grayscale(0%);
    transform: translateY(-5px);
}

.about-text h2 { font-size: 2.5rem; margin-bottom: 20px; }
.about-text p { margin-bottom: 20px; color: var(--text-soft); font-size: 1.1rem; }

.percorso-section {
    background: linear-gradient(180deg, var(--bg-cream) 0%, #F7F2E9 100%);
    position: relative;
}

.percorso-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-terra), transparent);
    opacity: 0.3;
}

.percorso-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.percorso-intro p {
    font-size: 1.15rem;
    color: var(--text-soft);
    margin-bottom: 20px;
    line-height: 1.8;
}

.percorso-intro strong {
    color: var(--text-main);
    font-weight: 700;
}

.percorso-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.percorso-card {
    background: var(--white);
    padding: 35px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border-left: 4px solid var(--accent-terra);
    position: relative;
    overflow: hidden;
}

.percorso-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(200, 106, 74, 0.03) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.percorso-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(58, 46, 40, 0.12);
}

.percorso-card:hover::before { opacity: 1; }

.percorso-icon {
    font-size: 2.8rem;
    margin-bottom: 20px;
    display: block;
}

.percorso-card h3 {
    font-size: 1.35rem;
    margin-bottom: 15px;
    color: var(--text-main);
    font-weight: 700;
}

.percorso-card p {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.7;
}

.percorso-conclusione {
    background: linear-gradient(135deg, var(--text-main) 0%, #5C4A3D 100%);
    color: var(--bg-cream);
    padding: 50px 40px;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(58, 46, 40, 0.2);
}

.conclusione-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: rgba(253, 251, 247, 0.9);
}

.conclusione-text strong {
    color: var(--white);
    font-weight: 700;
}

.conclusione-highlight {
    font-size: 1.4rem;
    font-family: 'Lora', serif;
    font-style: italic;
    color: var(--accent-terra);
    font-weight: 600;
    line-height: 1.6;
}

.section-title { font-size: 2.5rem; margin-bottom: 15px; }
.section-subtitle { color: var(--text-soft); font-size: 1.1rem; margin-bottom: 50px; max-width: 600px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.method-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.method-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(58, 46, 40, 0.1); }
.method-icon { font-size: 2.5rem; margin-bottom: 20px; }
.method-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.method-card p { color: var(--text-soft); }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    border: 2px solid transparent;
}

.skill-card:hover { 
    border-color: var(--accent-terra); 
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(58, 46, 40, 0.1);
}

.skill-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--accent-terra); }
.skill-card p { color: var(--text-soft); }

.skill-card.featured {
    background: linear-gradient(135deg, #3A2E28 0%, #5C4A3D 100%);
    color: var(--bg-cream);
    grid-column: 1 / -1;
}

.skill-card.featured h3 { color: var(--white); font-size: 1.6rem; }
.skill-card.featured p { color: rgba(253, 251, 247, 0.85); font-size: 1.05rem; }

.skill-badge {
    display: inline-block;
    background: var(--accent-terra);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.pricing-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    font-size: 1rem;
}

.pricing-table thead th {
    background: var(--text-main);
    color: var(--bg-cream);
    font-family: 'Lora', serif;
    font-weight: 700;
    padding: 20px 24px;
    text-align: left;
}

.pricing-table thead th:first-child { width: 34%; }

.pricing-table tbody td {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(58, 46, 40, 0.08);
    color: var(--text-soft);
}

.pricing-table tbody tr:last-child td { border-bottom: none; }

.pricing-table tbody td:first-child {
    color: var(--text-main);
    font-weight: 700;
    font-family: 'Lora', serif;
}

.pricing-table tbody td:not(:first-child) {
    color: var(--accent-terra);
    font-weight: 700;
    font-size: 1.1rem;
}

.price-note {
    display: block;
    color: var(--text-soft);
    font-weight: 400;
    font-size: 0.85rem;
    margin-top: 4px;
}

.pricing-footnote {
    max-width: 750px;
    margin: 30px auto 0;
    text-align: center;
    color: var(--text-soft);
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 600px) {
    .pricing-table { font-size: 0.9rem; }
    .pricing-table thead th, .pricing-table tbody td { padding: 14px 12px; }
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 8px 30px;
    transition: var(--transition);
}

.faq-item summary {
    padding: 18px 0;
    font-family: 'Lora', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.6rem;
    color: var(--accent-terra);
    flex-shrink: 0;
    transition: var(--transition);
    line-height: 1;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item[open] { border: 2px solid var(--accent-terra); padding: 8px 28px; }

.faq-item p {
    color: var(--text-soft);
    padding-bottom: 22px;
    line-height: 1.7;
}

.legal-content {
    max-width: 750px;
}

.legal-content h1 { margin-bottom: 10px; }

.legal-updated {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 1.4rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--accent-terra);
}

.legal-content p {
    color: var(--text-soft);
    margin-bottom: 15px;
}

.legal-content a { color: var(--accent-terra); text-decoration: underline; }

.footer-links {
    margin-top: 12px;
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(253, 251, 247, 0.7);
    text-decoration: underline;
}

.footer-links a:hover { color: var(--accent-terra); }

.cta-section {
    background-color: var(--bg-warm);
    text-align: center;
}

.cta-content { max-width: 700px; margin: 0 auto; }
.cta-content h2 { font-size: 2.5rem; margin-bottom: 20px; }
.cta-content p { font-size: 1.15rem; color: var(--text-soft); margin-bottom: 30px; }
.cta-small { margin-top: 20px; font-size: 0.95rem; }
.cta-small a { color: var(--accent-terra); font-weight: 700; text-decoration: underline; }

.footer {
    background-color: var(--text-main);
    color: rgba(253, 251, 247, 0.7);
    padding: 40px 0;
    text-align: center;
}

.footer-quote {
    font-family: 'Lora', serif;
    font-style: italic;
    margin-top: 10px;
    color: var(--accent-terra);
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes rotateIn {
    from { opacity: 0; transform: rotate(-180deg) scale(0.5); }
    to { opacity: 1; transform: rotate(0deg) scale(1); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.method-card:nth-child(1).animate-on-scroll.animate-in { animation: slideInLeft 0.8s ease-out; }
.method-card:nth-child(2).animate-on-scroll.animate-in { animation: slideInRight 0.8s ease-out; }

.skill-card.animate-on-scroll.animate-in { animation: fadeInScale 0.8s ease-out; }
.skill-card:nth-child(1).animate-on-scroll.animate-in { animation-delay: 0.1s; }
.skill-card:nth-child(2).animate-on-scroll.animate-in { animation-delay: 0.2s; }
.skill-card:nth-child(3).animate-on-scroll.animate-in { animation-delay: 0.3s; }
.skill-card:nth-child(4).animate-on-scroll.animate-in { animation-delay: 0.4s; }

.percorso-card.animate-on-scroll.animate-in { animation: slideUpFade 0.8s ease-out both; }
.percorso-card:nth-child(1).animate-on-scroll.animate-in { animation-delay: 0.1s; }
.percorso-card:nth-child(2).animate-on-scroll.animate-in { animation-delay: 0.2s; }
.percorso-card:nth-child(3).animate-on-scroll.animate-in { animation-delay: 0.3s; }
.percorso-card:nth-child(4).animate-on-scroll.animate-in { animation-delay: 0.4s; }
.percorso-card:nth-child(5).animate-on-scroll.animate-in { animation-delay: 0.5s; }
.percorso-card:nth-child(6).animate-on-scroll.animate-in { animation-delay: 0.6s; }
.percorso-card:nth-child(7).animate-on-scroll.animate-in { animation-delay: 0.7s; }

.percorso-intro.animate-on-scroll.animate-in { animation: fadeInUp 1s ease-out; }
.percorso-conclusione.animate-on-scroll.animate-in { animation: fadeInScale 1s ease-out; }
.about-grid.animate-on-scroll.animate-in { animation: fadeInUp 1s ease-out; }
.hero-content.animate-on-scroll.animate-in { animation: fadeInUp 1s ease-out; }
.cta-content.animate-on-scroll.animate-in { animation: fadeInScale 1s ease-out; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-img { max-width: 300px; }
    .method-grid { grid-template-columns: 1fr; }
    .percorso-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .header-flex { flex-direction: column; gap: 15px; }
    .nav { flex-wrap: wrap; justify-content: center; gap: 15px; }
    .logo-img { width: 40px; height: 40px; }
    .logo { font-size: 1.3rem; }
    .hero { padding: 120px 0; min-height: auto; }
    .hero h1 { font-size: 2.2rem; }
    .hero-desc { font-size: 1rem; }
    .section { padding: 80px 0; }
    .section-title { font-size: 2rem; }
    .skill-card.featured { grid-column: auto; }
    .percorso-conclusione { padding: 40px 25px; }
    .conclusione-highlight { font-size: 1.2rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .btn { padding: 14px 24px; font-size: 0.95rem; }
    .btn-large { padding: 16px 30px; }
    .logo-img { width: 35px; height: 35px; }
    .logo { font-size: 1.2rem; }
    .percorso-card { padding: 25px 20px; }
    .percorso-icon { font-size: 2.2rem; }
}