@import url('https://fonts.googleapis.com/css2?family=Mozilla+Headline:wdth,wght@125,200..700&display=swap');
/* Reset e variabili */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #81C784;
    --primary-lighter: #C8E6C9;
    --primary-darkest: #2E7D32;
    --accent-color: #66BB6A;
    --accent-light: #A5D6A7;
    --accent-dark: #43A047;
    --neutral-dark: #2C3E50;
    --neutral-medium: #5D6D7E;
    --neutral-light: #85929E;
    --text-dark: #2E2E2E;
    --text-light: #666666;
    --text-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E0E0E0;
    --shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
    --shadow-hover: 0 4px 16px rgba(76, 175, 80, 0.2);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Header */
.header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-dark);
    position: relative;
    font-family: "Mozilla Headline", sans-serif;
    white-space: nowrap; /* Evita che il testo vada a capo */
}

.logo span {
    white-space: nowrap; /* Assicura che anche il contenuto del span non vada a capo */
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-light) 50%, var(--accent-color) 100%);
    border-radius: 1px;
}

.logo i {
    font-size: 1.8rem;
}

.nav-center {
    flex: 1;
    max-width: 500px;
    margin: 0 2rem;
}

.search-bar {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    border: 1px solid var(--border-color);
}

.search-bar i {
    color: var(--text-light);
    margin-right: 0.5rem;
}

.search-bar input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.search-btn {
    background: var(--primary-dark);
    color: var(--text-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.search-btn:hover {
    background: var(--primary-darkest);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--neutral-medium);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-dark);
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-secondary {
    background: var(--bg-white);
    color: var(--neutral-dark);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    min-width: auto;
    height: auto;
}

.btn-secondary:hover {
    background: var(--neutral-dark);
    color: var(--text-white);
    border-color: var(--neutral-dark);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 0.9rem;
    min-width: auto;
    height: auto;
}

.btn-primary:hover {
    background: var(--primary-dark);
    text-decoration: none;
    color: var(--text-white);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-lighter) 0%, #E8F5E8 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--neutral-dark);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--neutral-medium);
    margin-bottom: 2rem;
}

.cta-button {
    background: var(--primary-dark);
    color: var(--text-white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button:hover {
    background: var(--primary-darkest);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
}

/* Featured Section */
.featured-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--neutral-dark);
}

.featured-info {
    text-align: center;
    margin-bottom: 3rem;
}

.featured-description {
    color: var(--neutral-medium);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.no-listings-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 2rem;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
}

.no-listings-message i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.no-listings-message h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 0.5rem;
}

.no-listings-message p {
    color: var(--neutral-medium);
    font-size: 1rem;
    line-height: 1.6;
}

.listing-card {
    background: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.listing-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.listing-card:hover .listing-image img {
    transform: scale(1.05);
}

.listing-content {
    padding: 1.5rem;
}

.listing-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 0.5rem;
}

.listing-description {
    color: var(--neutral-medium);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.listing-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.listing-type {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.listing-type.barter {
    background: var(--primary-lighter);
    color: var(--primary-dark);
}

.listing-type.sale {
    background: var(--primary-dark);
    color: var(--text-white);
}

.listing-location {
    color: var(--neutral-light);
    font-size: 0.9rem;
}

/* Categories Section */
.categories-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background: var(--bg-white);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--neutral-medium);
    font-size: 0.9rem;
}

/* How It Works Section */
.how-it-works-section {
    padding: 4rem 0;
    background: var(--bg-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.step-card {
    background: var(--bg-white);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: var(--primary-dark);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.step-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin: 1rem 0;
}

.step-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--neutral-dark);
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--neutral-medium);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #4A4A4A;
    color: var(--text-white);
    padding: 3rem 0 1rem;
    border-top: 1px solid #666666;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-white);
}

.footer-section a {
    color: #CCCCCC;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #666666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-white);
}

.social-links a:hover {
    background: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid #666666;
    padding-top: 1rem;
    text-align: center;
    color: #CCCCCC;
}

/* Privacy Page Styles - Design Professionale */
.privacy-content {
    padding: 120px 20px 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.privacy-content .container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.1);
}

.privacy-content h1 {
    color: var(--primary-dark);
    font-size: 3.2rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 700;
    font-family: "Mozilla Headline", sans-serif;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.privacy-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

.last-updated {
    color: var(--text-light);
    text-align: center;
    margin-bottom: 60px;
    font-size: 1.1rem;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-lighter), #e8f5e8);
    border-radius: 30px;
    display: inline-block;
    margin-left: 50%;
    transform: translateX(-50%);
    border: 2px solid var(--primary-light);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.15);
    font-weight: 500;
}

.privacy-section {
    margin-bottom: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(76, 175, 80, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.privacy-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.privacy-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.12);
    border-color: var(--primary-light);
}

.privacy-section h2 {
    color: var(--primary-dark);
    font-size: 2rem;
    margin-bottom: 25px;
    font-weight: 700;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-lighter);
    position: relative;
}

.privacy-section h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.privacy-section h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin: 30px 0 20px 0;
    font-weight: 600;
    padding-left: 20px;
    border-left: 4px solid var(--primary-light);
    background: linear-gradient(135deg, var(--primary-lighter), transparent);
    padding: 15px 20px;
    border-radius: 0 10px 10px 0;
    margin-left: -20px;
}

.privacy-section p {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.8;
    font-weight: 400;
}

.privacy-section ul {
    margin: 25px 0;
    padding-left: 30px;
}

.privacy-section li {
    margin-bottom: 15px;
    color: var(--text-dark);
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    padding-left: 10px;
    font-weight: 400;
}

.privacy-section li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -25px;
    font-size: 1.2rem;
    background: var(--primary-lighter);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.privacy-section strong {
    color: var(--primary-dark);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info {
    background: linear-gradient(135deg, var(--primary-lighter), #e8f5e8);
    padding: 35px;
    border-radius: 20px;
    margin-top: 25px;
    border: 2px solid var(--primary-light);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.15);
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.contact-info p {
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(76, 175, 80, 0.2);
}

.contact-info p:last-child {
    border-bottom: none;
}

.contact-info strong {
    color: var(--primary-dark);
    font-weight: 700;
    margin-right: 10px;
}

/* Sezioni speciali */
.privacy-section:nth-child(even) {
    border-left-color: var(--primary-light);
}

.privacy-section:nth-child(odd) {
    border-left-color: var(--primary-color);
}

/* Animazioni migliorate */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.privacy-section {
    animation: fadeInUp 0.8s ease forwards;
}

.privacy-section:nth-child(1) { animation-delay: 0.1s; }
.privacy-section:nth-child(2) { animation-delay: 0.2s; }
.privacy-section:nth-child(3) { animation-delay: 0.3s; }
.privacy-section:nth-child(4) { animation-delay: 0.4s; }
.privacy-section:nth-child(5) { animation-delay: 0.5s; }
.privacy-section:nth-child(6) { animation-delay: 0.6s; }
.privacy-section:nth-child(7) { animation-delay: 0.7s; }
.privacy-section:nth-child(8) { animation-delay: 0.8s; }
.privacy-section:nth-child(9) { animation-delay: 0.9s; }
.privacy-section:nth-child(10) { animation-delay: 1.0s; }
.privacy-section:nth-child(11) { animation-delay: 1.1s; }
.privacy-section:nth-child(12) { animation-delay: 1.2s; }
.privacy-section:nth-child(13) { animation-delay: 1.3s; }

/* Responsive migliorato */
@media (max-width: 768px) {
    .privacy-content {
        padding: 100px 15px 60px;
    }
    
    .privacy-content .container {
        padding: 40px 25px;
        border-radius: 15px;
    }
    
    .privacy-content h1 {
        font-size: 2.5rem;
    }
    
    .privacy-section {
        padding: 30px 25px;
        margin-bottom: 30px;
    }
    
    .privacy-section h2 {
        font-size: 1.7rem;
    }
    
    .privacy-section h3 {
        font-size: 1.3rem;
        padding: 12px 15px;
    }
    
    .privacy-section p,
    .privacy-section li {
        font-size: 1.05rem;
    }
    
    .contact-info {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .privacy-content h1 {
        font-size: 2rem;
    }
    
    .privacy-section {
        padding: 25px 20px;
    }
    
    .privacy-section h2 {
        font-size: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-center {
        display: none;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .user-actions {
        gap: 0.25rem;
    }
    
    .btn-secondary,
    .btn-primary {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        min-width: auto;
        height: auto;
    }
}

/* Form per creazione annunci */
.announcement-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
}

.form-container h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 30px;
    font-size: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.price-group {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.form-group small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: var(--bg-light);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* Responsive */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .announcement-form {
        padding: 20px;
    }
}