/* Reset e variabili - Ispirato a Gusto.com */
:root {
    --primary-color: #FF6A4A; /* Arancione-rosso di Gusto */
    --primary-dark: #E34F33;
    --primary-light: #FF8B73;
    --secondary-color: #1F325D; /* Blu scuro di Gusto */
    --accent-color: #FFB400; /* Giallo di Gusto */
    --text-color: #3D4356;
    --text-light: #6E7382;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --bg-cream: #FFF9F5; /* Sfondo crema chiaro usato da Gusto */
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --container-width: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

.section-title p {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons - Stile Gusto */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 100px; /* Gusto usa bottoni molto arrotondati */
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 106, 74, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
}

.btn-secondary:hover {
    background-color: rgba(31, 50, 93, 0.05);
    color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: rgba(255, 106, 74, 0.1);
    color: var(--primary-dark);
}

.btn-white {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background-color: #F8F8F8;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Header */
header {
    background-color: white;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex: 0 0 auto;
}

.logo img {
    height: 40px;
    width: auto;
}

nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    gap: var(--spacing-md);
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem;
    position: relative;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
}

/* Hero Section - Stile Gusto */
.hero {
    padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
    background-color: var(--bg-cream);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    right: -150px;
    top: -150px;
    width: 400px;
    height: 400px;
    background-color: rgba(255, 180, 0, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.hero::after {
    content: "";
    position: absolute;
    left: -100px;
    bottom: -150px;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 106, 74, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    padding: 0.75rem 1.25rem;
    background-color: white;
    border-radius: 100px;
    display: inline-flex;
    box-shadow: var(--shadow-sm);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 10px solid white;
}

/* Features Section - Stile Gusto */
.benefits {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-white);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.benefit-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    margin-bottom: var(--spacing-sm);
    background-color: var(--bg-cream);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.benefit-benefit {
    color: var(--primary-color);
    font-weight: 600;
}

/* How It Works - Stile Gusto */
.how-it-works {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.step {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
}

.step-number {
    flex: 0 0 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--secondary-color);
}

.step-content p {
    color: var(--text-light);
}

.step-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.step-image img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 6px solid white;
}

/* Testimonials - Stile Gusto */
.testimonials {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-cream);
}

.testimonials-slider {
    margin-bottom: var(--spacing-lg);
}

.testimonial {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial::before {
    content: """;
    position: absolute;
    top: -40px;
    left: 40px;
    font-size: 120px;
    color: var(--primary-light);
    font-family: Georgia, serif;
    opacity: 0.3;
}

.testimonial-content {
    margin-bottom: var(--spacing-md);
    color: var(--text-color);
    font-size: 1.25rem;
    position: relative;
    font-weight: 500;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-cream);
}

.author-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--secondary-color);
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    background-color: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.client-logos img {
    height: 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.client-logos img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Detailed Features - Stile Gusto 
.detailed-features {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-white);
}

.features-container {
    display: flex;
    gap: var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.features-list {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    background-color: white;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.feature-item img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background-color: var(--bg-cream);
    padding: 6px;
    border-radius: 10px;
}

.feature-text h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.feature-text p {
    font-size: 0.875rem;
    color: var(--text-light);
}

.features-screenshot {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.features-screenshot img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    max-width: 100%;
    border: 10px solid white;
}

*/

/* Detailed Features - Revised Layout */
.detailed-features {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-light);
}

.features-screenshot-container {
    position: relative;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.features-screenshot {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: var(--radius-lg);
    border: 10px solid white;
    transition: transform 0.3s ease;
}

.features-screenshot:hover {
    transform: scale(1.02);
}

.screenshot-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
}

.screenshot-badge {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 4px 12px rgba(255, 106, 74, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.feature-item {
    background-color: white;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
}

.feature-icon img {
    width: 32px;
    height: 32px;
}

.feature-text h3 {
    font-size: 1.1rem;
    margin-bottom: var(--spacing-xs);
    color: var(--secondary-color);
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.features-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Pricing - Stile Gusto */
.pricing {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-cream);
}

.pricing-plans {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.pricing-plan {
    flex: 1;
    max-width: 350px;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.pricing-plan:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pricing-plan.featured {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--primary-color);
}

.pricing-plan.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.plan-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--accent-color);
    color: var(--secondary-color);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-bottom-left-radius: var(--radius-md);
}

.plan-header {
    padding: var(--spacing-md);
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

.plan-price {
    margin-bottom: var(--spacing-sm);
}

.plan-price .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.plan-price .period {
    font-size: 0.875rem;
    color: var(--text-light);
}

.plan-features {
    padding: var(--spacing-md);
}

.plan-features ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.plan-features ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.plan-cta {
    padding: 0 var(--spacing-md) var(--spacing-md);
    text-align: center;
}

/* FAQ - Stile Gusto */
.faq {
    padding: var(--spacing-xl) 0;
    background-color: var(--bg-white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 106, 74, 0.05);
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--spacing-md) var(--spacing-md);
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    color: var(--text-light);
    font-size: 0.9375rem;
}

/* Final CTA - Stile Gusto */
.final-cta {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: "";
    position: absolute;
    left: -5%;
    top: -50%;
    width: 40%;
    height: 200%;
    background-color: rgba(255, 255, 255, 0.1);
    transform: rotate(-30deg);
}

.final-cta::after {
    content: "";
    position: absolute;
    right: -5%;
    top: -50%;
    width: 40%;
    height: 200%;
    background-color: rgba(255, 255, 255, 0.05);
    transform: rotate(30deg);
}

.final-cta .container {
    position: relative;
    z-index: 2;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.final-cta p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-md);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta .btn-white {
    background-color: white;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.final-cta .btn-white:hover {
    background-color: var(--bg-light);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.final-cta .small-text {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Footer - Stile Gusto */
footer {
    background-color: var(--secondary-color);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column:first-child {
    flex: 2;
}

.footer-column p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    margin-top: var(--spacing-sm);
    line-height: 1.7;
}

.footer-column h4 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
    font-size: 0.875rem;
}

.footer-column ul li a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.legal-links {
    display: flex;
    gap: var(--spacing-md);
}

.legal-links a {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.legal-links a:hover {
    color: white;
}

/* Responsive Adjustments for Tablet */
@media (max-width: 1024px) {
    html {
        font-size: 14px;
    }
    
    .container {
        padding: 0 var(--spacing-md);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-sm);
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-image {
        justify-content: center;
        margin-top: var(--spacing-sm);
    }
    
    .features-container {
        flex-direction: column;
    }
    
    .features-list {
        order: 2;
    }
    
    .features-screenshot {
        order: 1;
        margin-bottom: var(--spacing-md);
    }
    
    .pricing-plans {
        flex-direction: column;
        align-items: center;
    }
    
    .pricing-plan {
        width: 100%;
        max-width: 400px;
        margin-bottom: var(--spacing-md);
    }
    
    .pricing-plan.featured {
        transform: scale(1);
        order: -1;
    }
    
    .footer-columns {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .footer-column {
        width: 100%;
    }
}

/* Animation & Effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatingAnimation {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.hero-content,
.feature-card,
.step,
.testimonial,
.pricing-plan,
.faq-item {
    animation: fadeIn 0.6s ease-out;
}

.hero-image {
    animation: floatingAnimation 6s ease-in-out infinite;
}

.feature-card:nth-child(2) {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.4s;
}

.step:nth-child(2) {
    animation-delay: 0.2s;
}

.step:nth-child(3) {
    animation-delay: 0.4s;
}

/* Icons for feature items - Replace with actual font icons or SVGs */
.icon-linkedin::before { content: "in"; }
.icon-twitter::before { content: "tw"; }
.icon-facebook::before { content: "fb"; }
.icon-instagram::before { content: "ig"; }


/* Stili per il Blog */

/* Hero section del blog
.blog-hero {
    background-color: var(--primary-color);
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #0d6ab7 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.blog-hero .subtitle {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

*/

/* Updated Blog Hero Section Styles */

/* Sostituisce le classi .blog-hero e relative nel CSS originale */
.blog-hero-updated {
    position: relative;
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    overflow: hidden;
}

/* Nuovo background con elementi */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0b5ea0 50%, #084b85 100%);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* Aggiornamento del contenuto */
.blog-hero-updated h1 {
    font-size: 3.2rem;
    margin-bottom: 1.2rem;
    margin-top: 1.5rem; /* Aumentato margine superiore */
    position: relative;
    display: inline-block;
}

/* Aggiungi un sottile effetto decorativo sotto il titolo */
.blog-hero-updated h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 3px;
}

.blog-hero-updated .subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 1.8rem auto 0;
    opacity: 0.9;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-hero-updated {
        padding: 80px 0 60px;
    }
    
    .blog-hero-updated h1 {
        font-size: 2.5rem;
    }
    
    .blog-hero-updated .subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .blog-hero-updated {
        padding: 70px 0 50px;
    }
    
    .blog-hero-updated h1 {
        font-size: 2.2rem;
    }
    
    .blog-hero-updated .subtitle {
        font-size: 1rem;
    }
}

/* Articoli in evidenza */
.featured-posts {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 1000px;
    margin: 0 auto;
}

.featured-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.featured-post .post-image {
    height: 100%;
}

.featured-post .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-post .post-content {
    padding: 40px;
}

.featured-post .category {
    display: inline-block;
    background-color: #e9f0fe;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 5px 15px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.featured-post h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.featured-post h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-post h3 a:hover {
    color: var(--primary-color);
}

.featured-post p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.post-meta {
    display: flex;
    align-items: center;
    color: #888;
    font-size: 0.9rem;
}

.post-meta .date {
    margin-right: 20px;
}

/* Grid di articoli */
.blog-posts {
    padding: 80px 0;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.post-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.post-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-card .post-info {
    padding: 25px;
}

.post-card .category {
    display: inline-block;
    background-color: #e9f0fe;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.post-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-card h3 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card h3 a:hover {
    color: var(--primary-color);
}

.post-card p {
    color: #555;
    margin-bottom: 15px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.post-card .post-meta {
    font-size: 0.85rem;
}

/* Paginazione */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 5px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a.active {
    background-color: var(--primary-color);
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #f0f0f0;
}

.pagination a.next {
    width: auto;
    padding: 0 15px;
}

.pagination a.next i {
    margin-left: 5px;
}

/* Newsletter */
.blog-newsletter {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-content h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.newsletter-content p {
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
}

.newsletter-form button {
    border-radius: 0 5px 5px 0;
    padding: 15px 25px;
}

.privacy-notice {
    font-size: 0.85rem;
    color: #888;
    margin-top: 15px;
}

.privacy-notice a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Breadcrumb */
.breadcrumb {
    background-color: #f8f9fa;
    padding: 15px 0;
    font-size: 0.9rem;
}

.breadcrumb ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 10px;
    color: #aaa;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb li:last-child {
    color: #555;
}

/* Stili per la pagina dell'articolo */
.blog-post {
    padding: 60px 0;
}

.blog-post .container {
    max-width: 900px;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-header h1 {
    font-size: 2.8rem;
    margin: 15px 0 25px;
    line-height: 1.2;
}

.post-header .post-meta {
    justify-content: center;
}

.post-header .author {
    display: flex;
    align-items: center;
    margin-right: 20px;
}

.post-header .author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.featured-image {
    margin-bottom: 40px;
}

.featured-image img {
    width: 100%;
    border-radius: 10px;
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.post-content p {
    margin-bottom: 25px;
}

.post-content h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    color: var(--dark-color);
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 35px 0 15px;
    color: var(--dark-color);
}

.post-content ul li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 22px;
}

.post-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

/* elenco ordinato con numerazione

.post-content ol li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 22px;
    counter-increment: list-counter;
}

.post-content ol {
    counter-reset: list-counter;
}

.post-content ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: var(--primary-color);
}
*/

/* Elimina la numerazione automatica per ol
.post-content ol li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 12px; /* Rimuovi il padding
    left: 22px;
}

/* Rimuovi il counter automatico
.post-content ol li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: var(--primary-color);

}
*/

/* Soluzione più precisa */
.post-content ol {
    list-style: none; /* Rimuove i numeri default */
    padding-left: 0;
    counter-reset: list-counter;
}

.post-content ol li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 28px; /* Spazio per il numero */
    counter-increment: list-counter;
}

.post-content ol li::before {
    content: counter(list-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 600;
    color: var(--primary-color); /* Colore arancione solo per il numero */
}

.post-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.post-content a:hover {
    border-color: var(--primary-color);
}

.post-content .lead {
    font-size: 1.25rem;
    color: #555;
    font-weight: 500;
}

.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 20px 30px;
    margin: 30px 0;
    background-color: #f8f9fa;
    font-style: italic;
    color: #444;
}

.post-content blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    font-style: normal;
}

.info-box {
    background-color: #e9f0fe;
    border-radius: 8px;
    padding: 25px;
    margin: 30px 0;
}

.info-box h4 {
    display: flex;
    align-items: center;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-box h4 i {
    margin-right: 10px;
}

.cta-box {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.cta-box h3 {
    margin-bottom: 15px;
}

.cta-box p {
    margin-bottom: 20px;
}

.post-tags {
    margin: 40px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.post-tags span {
    margin-right: 10px;
    font-weight: 600;
    color: #555;
}

.post-tags a {
    display: inline-block;
    background-color: #f0f0f0;
    color: #555;
    padding: 5px 12px;
    margin: 5px;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background-color: #e0e0e0;
}

.post-share {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.post-share span {
    margin-right: 15px;
    font-weight: 600;
    color: #555;
}

.post-share a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    background-color: #f0f0f0;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-share a:hover {
    background-color: var(--primary-color);
    color: white;
}

.author-bio {
    display: flex;
    background-color: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 50px;
}

.author-bio img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-right: 25px;
}

.author-info h3 {
    margin-bottom: 5px;
}

.author-role {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.author-social {
    margin-top: 15px;
}

.author-social a {
    color: #555;
    margin-right: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-social a:hover {
    color: var(--primary-color);
}

.related-posts {
    margin-bottom: 60px;
}

.related-posts h3 {
    margin-bottom: 25px;
    color: var(--dark-color);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-post {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
}

.related-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-post h4 {
    padding: 15px 15px 5px;
    font-size: 1rem;
    line-height: 1.4;
}

.related-post h4 a {
    color: var(--dark-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-post h4 a:hover {
    color: var(--primary-color);
}

.related-post .date {
    display: block;
    padding: 0 15px 15px;
    font-size: 0.85rem;
    color: #888;
}

/* Commenti */
.comments-section {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 60px;
}

.comments-section h3 {
    margin-bottom: 30px;
    color: var(--dark-color);
}

.comments-list {
    margin-bottom: 50px;
}

.comment {
    display: flex;
    margin-bottom: 30px;
}

.comment.reply {
    margin-left: 60px;
    margin-top: -15px;
}

.comment img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 20px;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-header h4 {
    margin-right: 10px;
    margin-bottom: 0;
}

.author-label {
    background-color: var(--primary-color);
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 10px;
    margin-right: 10px;
}

.comment-header .date {
    font-size: 0.85rem;
    color: #888;
}

.comment-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.reply-btn {
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.comment-form h3 {
    margin-bottom: 25px;
}

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

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

.form-group.checkbox {
    display: flex;
    align-items: flex-start;
}

.form-group.checkbox input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

/* Responsive design per il blog */
@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2.5rem;
    }
    
    .featured-post {
        grid-template-columns: 1fr;
    }
    
    .featured-post .post-image {
        height: 250px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-header h1 {
        font-size: 2.2rem;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .author-bio img {
        margin: 0 auto 20px;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .comment.reply {
        margin-left: 30px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input {
        border-radius: 5px;
        margin-bottom: 10px;
    }
    
    .newsletter-form button {
        border-radius: 5px;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-meta > * {
        margin-bottom: 5px;
    }
    
    .post-header .post-meta {
        flex-direction: column;
        align-items: center;
    }
    
    .post-header .author {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment img {
        margin-bottom: 15px;
    }
    
    .comment.reply {
        margin-left: 20px;
    }
}


/* Category filter styles */
.category-filter {
    padding: 30px 0 0;
    background-color: #f8f9fa;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--dark-color);
}

#active-filter {
    display: none;
    background-color: #e9f0fe;
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.category-btn {
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background-color: #e0e0e0;
}

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

.no-results {
    text-align: center;
    padding: 40px 0;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin: 30px 0;
}

.no-results p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 20px;
}

.btn-filter {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-filter:hover {
    background-color: #5a6268;
}

/* Styling per i link di categoria */
.category a, .post-tags a.category-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.category a:hover, .post-tags a.category-link:hover {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .filter-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #active-filter {
        margin-top: 10px;
    }
    
    .category-buttons {
        overflow-x: auto;
        padding-bottom: 10px;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .category-btn {
        white-space: nowrap;
    }
}

