/* BASE STYLES */
:root {
    --primary-color: #0054AD; /* Blu professionale */
    --secondary-color: #175E28; /* Verde per le CTA di successo */
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --font-family: 'Arial', sans-serif;
    --input-border: #ccc;
    --white-color: #ffffff;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    color: var(--dark-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: #000000;
}

a:hover {
    text-decoration: underline;
}

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

h1, h2, h3 {
    color: var(--dark-color);
    margin-top: 0;
}

/* HEADER & NAVIGATION */
header {
    background: #fff;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

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

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    margin-left: 10px;
}

.btn-secondary:hover {
    background-color: #1e7e34;
}
        
/* HERO SECTION */
#hero {
    background: var(--light-color);
    padding: 80px 0;
    text-align: center;
}

#hero h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    line-height: 1.2;
}

#hero p {
    font-size: 1.3em;
    margin-bottom: 30px;
}
        
.hero-cta {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* HOW IT WORKS SECTION */
#how-it-works {
    padding: 60px 0;
    text-align: center;
}
        
.steps {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}
        
.step {
    flex: 1;
    padding: 20px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary-color);
}
        
.step h3 {
    color: var(--primary-color);
    font-size: 1.5em;
}

/* QUALITY SECTION */
#quality-advantage {
    background: var(--dark-color);
    color: white;
    padding: 60px 0;
}
        
#quality-advantage h2 {
    color: white;
    text-align: center;
    margin-bottom: 40px;
}
        
#quality-advantage blockquote {
    text-align: center;
    font-size: 1.4em;
    font-style: italic;
    margin: 0 auto 30px;
    max-width: 800px;
    border-left: 4px solid var(--secondary-color);
    padding-left: 20px;
}
        
.feature-list {
    display: flex;
    justify-content: space-around;
    text-align: center;
    margin-top: 30px;
}
        
.feature-item {
    flex: 1;
}
        
.feature-item strong {
    display: block;
    margin-top: 10px;
    font-size: 1.1em;
    color: var(--secondary-color);
}

/* CATEGORIES SECTION */
#categories {
    padding: 60px 0;
}

#categories h2 {
    text-align: center;
    margin-bottom: 40px;
}

.category-grid {
    display: inline-flex;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.category-item {
    background: #fff;
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    transition: transform 0.2s;
    margin: 10px;
}
        
.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* STATS & TESTIMONIALS */
#stats-testimonials {
    background: #f1f3f5;
    padding: 60px 0;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    margin-top: 30px;
}

.stat-item h3 {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1.1em;
}

/* FREELANCE CTA SECTION */
#freelance-cta {
    background: var(--primary-color);
    color: white;
    padding: 60px 0;
    text-align: center;
}

#freelance-cta h2 {
    color: white;
    margin-bottom: 20px;
}
        
#freelance-cta ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}
        
#freelance-cta ul li {
    margin: 10px 0;
    font-size: 1.1em;
}
        
.btn-cta-light {
    background-color: white;
    color: var(--primary-color);
}

.btn-cta-light:hover {
    background-color: #e9ecef;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
    color: #6c757d;
    font-size: 0.9em;
}

/* BLOG */
.main-content {
    min-width: 0; /* Fix per il flex/grid overflow */
}

.article-card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.article-image {
    width: 100%;
    height: 250px;
    background-color: #ccc; /* Placeholder colore */
    background-size: cover;
    background-position: center;
}

.article-body {
    padding: 25px;
}

.article-body h2 a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.8em;
    margin-top: 0;
    transition: color 0.3s;
}

.article-body h2 a:hover {
    color: var(--secondary-color);
}

.article-meta {
    font-size: 0.9em;
    color: var(--light-text);
    margin-bottom: 15px;
}

.article-meta span {
    margin-right: 15px;
}

.article-excerpt {
    margin-bottom: 20px;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
}

.read-more:hover {
    text-decoration: underline;
}

/* FAQ */
.faq-category {
    margin-bottom: 40px;
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-category h2 {
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8em;
}
        
.accordion-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.accordion-button {
    background-color: #f9f9f9;
    color: var(--text-color);
    cursor: pointer;
    padding: 18px;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.3s;
    font-size: 1.1em;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-button:hover, .accordion-button.active {
    background-color: #f1f1f1;
}

.accordion-icon {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s;
}
        
.accordion-button.active .accordion-icon {
    transform: rotate(45deg); /* Trasforma il '+' in 'x' o ruota per un effetto moderno */
}

.accordion-content {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.accordion-content p {
    padding-bottom: 18px;
    margin-top: 0;
    color: var(--light-text);
}

.contact-cta {
    text-align: center;
    padding: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    margin-top: 40px;
}

.contact-cta h3 {
    margin-top: 0;
    font-size: 1.8em;
}

.contact-cta a {
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-block;
    margin-top: 15px;
    transition: background-color 0.3s;
}

.contact-cta a:hover {
    background-color: #f76839;
}

@media (max-width: 600px) {
    .faq-category {
        padding: 20px;
    }
    .accordion-button {
        font-size: 1em;
    }
    .header h1 {
        font-size: 2em;
    }
}

/* CONTATTI */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 66% Modulo, 33% Info */
    gap: 40px;
}
        
/* ------------------ Modulo di Contatto ------------------ */
.contact-form-section {
    background-color: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-form-section h2 {
    color: var(--secondary-color);
    margin-top: 0;
    font-size: 1.8em;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9em;
}

input[type="text"], input[type="email"], select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.2);
}

textarea {
    resize: vertical;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1em;
    font-weight: 700;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #076aa8;
}

.contact-info-section {
    padding: 30px 20px;
}
        
.contact-info-section h2 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.8em;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.info-block {
    margin-bottom: 30px;
}

.info-block h3 {
    font-size: 1.2em;
    color: var(--text-color);
    margin-bottom: 5px;
}

.info-block p, .info-block a {
    font-size: 1em;
    color: var(--light-text);
    text-decoration: none;
}
        
.info-block a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}
        
.social-icons a {
    font-size: 1.5em;
    margin-right: 15px;
    color: var(--primary-color);
}
        
.social-icons a:hover {
    color: var(--secondary-color);
}

@media (max-width: 850px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Colonna singola per schermi piccoli */
    }
    .contact-form-section {
        order: 2; /* Sposta il modulo sotto le info su mobile, se preferito */
    }
    .contact-info-section {
        order: 1;
        padding: 0 0 20px 0;
    }
}

/* LOGIN */
input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    transition: border-color 0.3s;
}

input[type="password"]:focus {
    border-color: var(--secondary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.2);
}

.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.login-container {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.btn-login {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1em;
    font-weight: 700;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: #076aa8; /* Un po' più scuro all'hover */
}

.forgot-password {
    margin-top: 15px;
    font-size: 0.9em;
}

.forgot-password a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-password a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.signup-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
}

.signup-link a {
    color: var(--secondary-color);
    font-weight: bold;
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

@media (max-width: 500px) {
    .login-container {
        padding: 30px 20px;
        margin: 20px;
    }
}

/* SIGNUP */
.signup-body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.signup-container {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px; /* Leggermente più largo della login */
    text-align: center;
}

.logo-placeholder {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.btn-signup {
    background-color: var(--secondary-color); /* Usiamo l'arancione per distinguere la CTA principale */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1em;
    font-weight: 700;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.btn-signup:hover {
    background-color: #f76839; /* Un po' più scuro all'hover */
}

.login-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
}

.login-link a {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
}

.login-link a:hover {
    text-decoration: underline;
}

@media (max-width: 550px) {
    .signup-container {
        padding: 30px 20px;
        margin: 20px;
    }
}

/* LOST PASSWORD */
.lost-body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.recovery-container {
    background-color: var(--card-background);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.description {
    color: var(--light-text);
    margin-bottom: 30px;
    font-size: 0.95em;
}

.back-to-login {
    margin-top: 25px;
    font-size: 0.9em;
}

.back-to-login a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.back-to-login a:hover {
    text-decoration: underline;
}

@media (max-width: 500px) {
    .recovery-container {
        padding: 30px 20px;
        margin: 20px;
    }
}
