/* --- RESET E BASI --- */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Segoe UI', 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333333;
    background-color: #FDFCF8; /* Bianco crema originale */
}

.container {
    max-width: 1100px;
    margin: auto;
    padding: 0 25px;
}

/* --- COORDINAMENTO HEADER --- */
.main-header {
    background: #FDFCF8; /* Deve essere uguale al body per non vedere lo stacco */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    border-bottom: none; /* Rimosso come richiesto per pulizia */
    position: relative; /* Indispensabile per il menu mobile */
    z-index: 1000;
}

.main-header .logo a {
    font-size: 1.8em;
    font-weight: bold;
    color: #2F4F4F;
	text-decoration: none !important;
}

.main-nav ul { 
    list-style: none; 
    display: flex; 
}

.main-nav ul li { 
    margin-left: 30px; 
}

.main-nav ul li a {
    text-decoration: none !important;
    color: #333;
    font-weight: 500;
    transition: 0.3s;
    padding-bottom: 5px;
    outline: none !important; /* Rimuove il bordino di selezione al click */
    border-bottom: none !important; /* Elimina le righette residue */
}

.main-nav ul li a:hover { 
    color: #5F9EA0; 
    border-bottom: none; 
}


/* --- SEZIONE HERO (CON DIAGONALE VERDE SALVIA) --- */
.hero-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background-color: #FDFCF8;
}

.hero-flex-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2; /* Sopra lo sfondo verde */
}

.hero-content { 
    flex: 1; 
    max-width: 55%; 
}

.hero-content h1 { 
    font-size: 3.2em; 
    color: #2F4F4F; 
    line-height: 1.2; 
    margin-bottom: 20px; 
}

.greeting { 
    font-size: 1.5em; 
    color: #5F9EA0; 
    font-weight: bold; 
    margin-bottom: 10px; 
}

.description { 
    font-size: 1.1em; 
    margin-bottom: 20px; 
}

.detailed-bio {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 25px;
	font-style: italic;
}

.detailed-bio p {
    margin-bottom: 15px;
}

.hero-image { 
    flex: 1; 
    display: flex; 
    justify-content: center; 
}

.hero-image img {
    width: 420px; 
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border: 12px solid white; /* Cornice bianca originale */
}

.diagonal-bg {
    position: absolute;
    top: 0; 
    right: 0; 
    width: 50%; 
    height: 100%;
    background-color: #D4EDDA; /* Il tuo verde salvia originale */
    transform: skewX(-10deg);
    transform-origin: top right;
    z-index: 1;
}


/* --- AREE DI INTERVENTO (I TUOI RIQUADRI) --- */
.problems-grid-section, .areas-section {
    padding: 80px 0; 
    background: #f9f9f9; 
    text-align: center; 
}

.problems-grid, .areas-grid {
    display: grid;
    /* Crea colonne automatiche che si adattano allo schermo */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 0 20px;
}

.problem-card, .area-item {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 6px solid #5F9EA0; /* Il tuo bordo colorato superiore */
    text-align: left;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.problem-card:hover { 
    transform: translateY(-10px); 
}

.problem-card i {
    font-size: 2.5rem;
    color: #5F9EA0;
    margin-bottom: 20px;
}

.problem-card h3 {
    color: #2F4F4F;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.problem-card p {
    color: #555;
    line-height: 1.6;
}

/* --- PAGINA CONTATTI (FORM E MAPPA) --- */
.page-header {
    background: #5F9EA0;
    color: white;
    padding: 60px 20px; /* Aggiunto padding laterale per il titolo */
    text-align: center;
}

.page-header h1 { color: white; }

.contact-flex {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    padding: 60px 25px; /* Aumentato a 25px per staccare dai bordi del telefono */
}

/* Allineamento Icone e Testi */
.info-item {
    display: flex;
    align-items: flex-start; /* Allinea l'icona in alto accanto al titolo */
    gap: 15px;
    margin-bottom: 30px;
    padding: 0 10px; /* Spazio extra per non toccare i bordi */
}

.info-item i {
    font-size: 1.4em;
    color: #5F9EA0;
    margin-top: 5px; /* Centra l'icona con la prima riga di testo */
}

.info-item h3 {
    margin-bottom: 5px;
    color: #2F4F4F;
    text-align: left;
}

.info-item p {
    text-align: left;
}

.contact-info, .contact-form-wrapper { flex: 1; }

/* Gestione Mappa */
.map-wrapper {
    margin: 20px 0 30px 0;
    padding: 0 10px; /* Fondamentale per non far toccare la mappa ai bordi */
}

.map-wrapper iframe {
    width: 100%;
    border-radius: 12px;
}

/* Stile Form */
.styled-form {
    padding: 0 10px; /* Spazio laterale per il form su mobile */
}

.styled-form .form-group {
    margin-bottom: 20px;
}

.styled-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    text-align: left;
}

.styled-form input, .styled-form select, .styled-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px; /* Evita lo zoom automatico fastidioso su iPhone */
}

/* --- FOOTER --- */
.main-footer { 
    background: #2F4F4F; 
    color: white; 
    padding: 60px 0; 
    margin-top: 50px; 
}

.footer-content { 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    gap: 40px; 
}

.footer-contact a { color: #D4EDDA; }

/* --- ICONE SOCIAL NEL FOOTER --- */
.footer-social {
    text-align: left; /* Allinea a sinistra il titolo "Seguimi" */
}

.footer-social h3, .footer-social p {
    margin-bottom: 20px;
    text-align: left; /* Forza il testo a sinistra */
}

.social-icons-container {
    display: flex;
    justify-content: center; /* Centra le icone social */
    gap: 30px; /* Distanza tra le icone */
    margin-top: 15px;
}

.footer-social a {
    color: white;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none !important;
}

.footer-social a:hover {
    color: #D4EDDA;
    transform: translateY(-3px);
}

.footer-social i {
    font-size: 1.8em;
}

/* --- REGOLE MOBILE UNIFICATE --- */
.menu-toggle {
    display: none; /* Nascosto su PC */
    font-size: 1.8em;
    color: #2F4F4F;
    cursor: pointer;
}

@media (max-width: 900px) {
    /* Layout Hero e Sezioni */
    .diagonal-bg { display: none; }
    .hero-flex-container { 
        flex-direction: column-reverse; 
        text-align: center; 
    }
    .hero-content { 
        max-width: 100%; 
        margin-top: 40px; 
    }
    .hero-image img { 
        width: 300px; 
        height: 300px; 
    }
    .hero-btns { justify-content: center; }
    .contact-flex { flex-direction: column; }

    /* Navigazione Hamburger */
    .menu-toggle {
        display: block; /* Appare su mobile */
    }
    .main-nav {
        display: none; /* Nasconde menu orizzontale */
        width: 100%;
        background: #FDFCF8;
        position: absolute;
        top: 80px;
        left: 0;
        z-index: 100;
        border-bottom: 2px solid #5F9EA0;
    }
    .main-nav.active {
        display: block; /* Si apre quando clicchi */
    }
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 0; /* Pulizia spaziatura vecchio menu */
    }
    .main-nav ul li {
        margin: 15px 0;
        margin-left: 0;
    }
}

/* STILE SEZIONE APPROCCIO */
.approach-section {
    padding: 80px 0;
    text-align: center; /* Centra tutto il testo */
    background-color: #FDFCF8;
}

.approach-section h2 {
    margin-bottom: 30px;
    color: #2F4F4F;
}

.approach-section p {
    max-width: 800px;
    margin: 0 auto 20px auto; /* Centra il blocco di testo e distanzia i paragrafi */
    font-size: 1.1rem;
}

.approach-cta {
    margin-top: 40px;
}

/* STILE SEZIONE OLTRE LA TERAPIA */
.beyond-therapy-section {
    padding: 80px 0;
    text-align: center;
    background-color: #F2F6F2; /* Il tuo nuovo sfondo salvia */
}

.beyond-therapy-section h2 {
    margin-bottom: 30px;
    color: #2F4F4F;
}

.beyond-content {
    max-width: 800px;
    margin: 0 auto;
}

.beyond-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

/* --- SISTEMA TASTI UNIFORMATO --- */

/* Regole comuni a tutti i bottoni */
.btn-secondary, 
.btn-contact, 
.btn-whatsapp, 
.btn-submit {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px; /* Modificato da 5px a 50px per l'effetto pillola */
    font-weight: bold;
    text-decoration: none !important;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: inherit;
}

/* Colore: Turchese (Bottoni standard e contatti) */
.btn-secondary, 
.btn-contact {
    background-color: #5F9EA0;
    color: white !important;
}

.btn-secondary:hover, 
.btn-contact:hover {
    background-color: #4A8C8E;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Colore: Verde WhatsApp */
.btn-whatsapp {
    background-color: #25D366;
    color: white !important;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Colore: Grigio Scuro (Invia Modulo) */
.btn-submit {
    background-color: #2F4F4F;
    color: white !important;
    width: 100%; /* Mantiene la larghezza intera nel form */
}

.btn-submit:hover {
    background-color: #1e3333;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Contenitore tasti nella Hero */
.hero-btns { 
    display: flex; 
    gap: 15px; 
    margin-top: 30px; 
    flex-wrap: wrap;
}

/* Protezione info legali nel footer */
.footer-info p {
    color: white !important;
    text-decoration: none !important;
}

/* Impedisce al browser di sottolineare la P.IVA come telefono */
[href^="tel"] { 
    color: inherit; 
    text-decoration: none; 
}

/* --- SEZIONE "HAI BISOGNO DI PARLARNE" --- */
.cta-bottom {
    padding: 60px 20px;
    background-color: #f0f4f4; /* Un grigio-azzurro leggero per staccare dal bianco */
    text-align: center;
}

.cta-bottom h2 {
    color: #2F4F4F;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.cta-bottom p {
    margin-bottom: 30px;
    color: #555;
}

/* Bottoni Mail e WhatsApp */
.cta-bottom .btn-contact, 
.cta-bottom .btn-whatsapp {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px;
    border-radius: 50px; /* Arrotondati per uno stile più moderno */
    text-decoration: none !important;
    font-weight: bold;
    transition: 0.3s;
}

.cta-bottom .btn-contact {
    background-color: #5F9EA0;
    color: white !important;
}

.cta-bottom .btn-whatsapp {
    background-color: #25D366;
    color: white !important;
}

/* Effetto al passaggio del mouse */
.cta-bottom .btn-contact:hover, 
.cta-bottom .btn-whatsapp:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Ottimizzazione Mobile */
@media (max-width: 600px) {
    .cta-bottom .btn-contact, 
    .cta-bottom .btn-whatsapp {
        display: block; /* Uno sopra l'altro su schermi piccoli */
        margin: 15px 0;
        width: 100%;
    }
}

/* --- STILE PAGINA CHI SONO --- */
.bio-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 60px 25px;
}

.bio-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%; /* Foto circolare */
    border: 8px solid #5F9EA0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.bio-text { flex: 1; }
.bio-text h2 { color: #2F4F4F; margin-bottom: 20px; }

/* Stile a blocchi per il CV */
.cv-section { background: #f4f7f7; padding: 60px 0; }

.cv-block {
    display: flex;
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.cv-icon {
    font-size: 2rem;
    color: #5F9EA0;
}

.cv-content h3 { color: #2F4F4F; margin-bottom: 15px; }
.cv-content ul { list-style: none; }
.cv-content li { margin-bottom: 10px; position: relative; padding-left: 20px; }
.cv-content li::before {
    content: "•";
    color: #5F9EA0;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Mobile */
@media (max-width: 900px) {
    .bio-flex { flex-direction: column; text-align: center; }
    .cv-block { flex-direction: column; text-align: center; }
    .cv-content li { padding-left: 0; }
    .cv-content li::before { display: none; }
}

/* Nasconde il testo extra inizialmente */
.text-full {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.3s ease;
    opacity: 0;
}

/* Quando la card è attiva, mostra il testo */
.problem-card.expanded .text-full {
    max-height: 1000px; /* Valore alto per contenere tutto il testo */
    opacity: 1;
    margin-top: 10px;
}

/* --- SOLUZIONE DEFINITIVA E GARANTITA --- */
.read-more-btn {
    background-color: #5F9EA0 !important;
    border: none;
    border-radius: 50% !important;
    width: 35px;
    height: 35px;
    cursor: pointer;
    margin-top: 15px;
    position: relative; /* Necessario per posizionare le linee interne */
    transition: all 0.3s ease;
    display: block;
    margin-left: auto; /* Allinea a destra se desiderato, o lascialo così */
    margin-right: 0;
}

/* Creazione delle due linee che formano il + */
.read-more-btn::before,
.read-more-btn::after {
    content: '';
    position: absolute;
    background-color: white;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

/* Linea orizzontale */
.read-more-btn::before {
    width: 14px;
    height: 2px;
}

/* Linea verticale */
.read-more-btn::after {
    width: 2px;
    height: 14px;
}

/* --- MODIFICA DA X A MENO (-) --- */

/* Quando la card si espande, il pulsante NON ruota più */
.problem-card.expanded .read-more-btn {
    background-color: #2F4F4F !important;
    transform: none !important; /* Rimuoviamo la rotazione di 45 gradi */
}

/* Quando la card si espande, facciamo sparire la linea verticale */
.problem-card.expanded .read-more-btn::after {
    height: 0 !important; /* La linea verticale si ritrae e sparisce */
    opacity: 0 !important;
}

/* La linea orizzontale rimane visibile formando il simbolo meno (-) */
.problem-card.expanded .read-more-btn::before {
    background-color: white !important;
}
}

.read-more-btn:hover {
    transform: scale(1.1);
}
}

/* Ottimizzazione Mobile */
@media (max-width: 768px) {
    .read-more-btn {
        width: 44px; /* Più grande su mobile per il tocco */
        height: 44px;
        margin-top: 20px;
    }
    
    .problem-card {
        padding: 20px; /* Aumenta un po' lo spazio interno della card */
    }
}

/* --- CORREZIONE FORM CONTATTI --- */

/* 1. Colore del tasto Invia (Turchese come gli altri) */
.btn-submit {
    background-color: #5F9EA0 !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.btn-submit:hover {
    background-color: #2F4F4F !important; /* Colore più scuro al passaggio */
    transform: translateY(-2px) !important;
}

/* 2. Colore bordo celle quando si scrive (Focus turchese) */
.styled-form input:focus, 
.styled-form select:focus, 
.styled-form textarea:focus {
    outline: none !important;
    border-color: #5F9EA0 !important;
    box-shadow: 0 0 8px rgba(95, 158, 160, 0.2) !important;
}

/* 3. Sistemazione Freccetta Select (Menu a tendina) */
.styled-form select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    /* Inserisce freccetta turchese distanziata dal bordo */
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg%20xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg"%20width%3D"24"%20height%3D"24"%20viewBox%3D"0%200%2024%2024"%20fill%3D"none"%20stroke%3D"%235F9EA0"%20stroke-width%3D"2"%20stroke-linecap%3D"round"%20stroke-linejoin%3D"round"><polyline%20points%3D"6%209%2012%2015%2018%209"%2F><%2Fsvg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 18px !important;
    padding-right: 40px !important;
}

/* 4. Spostamento tasto "+" a destra nelle card */
.read-more-btn {
    margin-left: auto !important;
    margin-right: 0 !important;
    display: block !important;
}

/* --- OTTIMIZZAZIONE SELEZIONE MIRATA --- */

/* Quando l'utente apre il menu, le scritte rimangono nere su bianco per massima leggibilità */
.styled-form select option {
    background-color: #ffffff;
    color: #333333;
}

/* Solo l'opzione selezionata (checked) avrà il testo turchese */
.styled-form select option:checked {
    color: #5F9EA0 !important;
    font-weight: bold;
}

/* Effetto di selezione sulle celle del form (bordo e ombra) */
.styled-form input:focus, 
.styled-form select:focus, 
.styled-form textarea:focus {
    border-color: #5F9EA0 !important;
    box-shadow: 0 0 8px rgba(95, 158, 160, 0.2) !important;
}