/* Reset e stili base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

/* Header e navigazione */
header {
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #d6317a;
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #d6317a;
}

/* Menu mobile */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
    background: none;
    border: none;
    color: #d6317a;
    padding: 10px;
}

.menu-toggle:hover {
    color: #222;
}

/* Hero section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #ffedf6;
    margin-top: 70px;
    padding: 40px 0;
}

.hero-content {
    display: flex;
    align-items: center;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-subtitle {
    margin-bottom: 20px;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.profile-img {
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

/* Tipografia */
h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #d6317a;
}

h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    margin-top: 30px;
    color: #d6317a;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #d6317a;
}

/* Bottoni */
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #d6317a;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid #d6317a;
}

.btn:hover {
    background-color: #d63384;
    border-color: #d63384;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: #d6317a;
}

.btn-outline:hover {
    background-color: #d6317a;
    color: white;
}

.btn i {
    font-size: 1.1em;
}

/* Sezioni */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

/* Bio */
.bio {
    background-color: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #d6317a;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    background-color: inherit;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: white;
    border: 4px solid #d6317a;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -16px;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(214, 49, 122, 0.1);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-year {
    font-weight: 600;
    color: #d6317a;
    margin-bottom: 10px;
}

.timeline-content h3 {
    color: #333;
    margin-bottom: 15px;
}

.experience-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.experience-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95em;
}

.experience-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: #d6317a;
    font-size: 1em;
}

/* Servizi */
.services {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;   /* seconda riga parte da sinistra */
    padding: 40px 0;
}

.service-card {
    flex: 0 1 calc(33.333% - 20px); /* 3 per riga su desktop */
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-content {
    padding: 20px;
}

.service-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #d6317a;
}

/* Careers / Collabora con me */
.careers {
    padding: 60px 0;
    background-color: #fff;
}

.careers-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.careers-text {
    flex: 1;
    min-width: 300px;
}

.careers-description {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.careers-features {
    list-style: none;
    padding: 0;
}

.careers-features li {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.careers-features i {
    color: #d6317a;
    font-size: 1.5rem;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.careers-cta {
    flex: 1;
    min-width: 300px;
    background-color: #ffedf6;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.cta-intro {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.cta-downloads {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Contatti */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 50px;
}

.contact-item {
    flex-basis: calc(50% - 20px);
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    text-align: center;
}

.contact-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #d6317a;
}

.contact-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #d6317a;
}

/* Sezione Lavora con me (versione estesa) */
.careers {
    background-color: #ffedf6;
    padding: 80px 0;
}

.careers-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.careers-text {
    flex: 2;
}

.careers-text h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.careers-description {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.careers-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.careers-features li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: white;
    margin-bottom: 15px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.careers-features li:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(214, 49, 122, 0.1);
}

.careers-features i {
    color: #d6317a;
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 3px;
}

.careers-features span {
    color: #555;
    line-height: 1.6;
}

.careers-features strong {
    color: #333;
    display: block;
    margin-bottom: 5px;
}

.careers-cta {
    flex: 1;
    align-self: center;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(214, 49, 122, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 350px;
}

.careers-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(214, 49, 122, 0.15);
}

.cta-intro {
    text-align: center;
    font-size: 1.2em;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cta-downloads {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cta-downloads .btn {
    font-size: 0.95em;
    padding: 10px 20px;
    justify-content: center;
    gap: 10px;
}

.cta-downloads .btn i {
    font-size: 1.1em;
    margin-right: 8px;
}

.cta-buttons .btn {
    text-align: center;
    justify-content: center;
}

/* Footer */
footer {
    background-color: white;
    padding: 40px 0;
    border-top: 1px solid #eee;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-cv {
    text-align: right;
}

.footer-cv p {
    margin-bottom: 10px;
    color: #666;
}

@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-cv {
        text-align: center;
    }
}

/* Media queries per responsività */
@media screen and (max-width: 960px) {
    .service-card {
        flex: 0 1 calc(50% - 15px); /* 2 per riga su tablet */
    }
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: -100vh;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        opacity: 0;
        backdrop-filter: blur(5px);
    }
    
    .nav-links.active {
        top: 70px;
        opacity: 1;
    }
    
    .nav-links li {
        margin: 30px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        transition: transform 0.3s ease, color 0.3s ease;
        display: inline-block;
    }

    .nav-links a:hover {
        transform: scale(1.1);
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 30px;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::before {
        left: 60px;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }
    
    .left::after,
    .right::after {
        left: 15px;
    }
    
    .right {
        left: 0;
    }
    
    .service-card {
        flex: 0 1 100%; /* 1 per riga su mobile */
    }
    
    .contact-item {
        flex-basis: 100%;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }

    .timeline-content {
        padding: 20px;
    }
    
    .experience-list li {
        font-size: 0.9em;
    }
}

/* Per schermi molto piccoli */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .bio {
        padding: 20px;
    }
    
    .hero {
        padding: 20px 0;
    }
    
    .contact-item {
        padding: 20px;
    }
}

/* Form di Prenotazione */
.appointment-form {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.form-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
}

.form-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 95%;
    max-width: 800px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.form-column {
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
}

@media screen and (max-width: 768px) {
    .form-content {
        padding: 30px;
        max-width: 100%;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
    }
}

.success-message {
    text-align: center;
    padding: 40px;
    background: #f8f8f8;
    border-radius: 10px;
    margin-bottom: 30px;
}

.success-message i {
    color: #4caf50;
    font-size: 3em;
    margin-bottom: 20px;
}

.success-message h4 {
    color: #333;
    margin-bottom: 15px;
}

.success-message p {
    color: #666;
    margin-bottom: 25px;
}

@media screen and (max-width: 768px) {
    .success-message {
        padding: 30px;
    }
}
