/* Stili Generali (semplificati dall'originale) */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    color: #555;
    line-height: 1.6;
    background-color: #fff;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #333;
    margin-bottom: 0.8em;
}

h2 {
    font-size: 2.2em;
}

h3 {
    font-size: 1.8em;
}

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

.section-padding {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: #333;
}

.section-title span {
    color: #FF7F50;
}

/* Arancione corallo come colore accento */
.btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #FF7F50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #E67347;
}

.btn-secondary {
    background-color: transparent;
    color: #FF7F50;
    border: 2px solid #FF7F50;
}

.btn-secondary:hover {
    background-color: #FF7F50;
    color: #fff;
}

/* Header */
.top-bar {
    background-color: #FF7F50;
    color: white;
    padding: 10px 0;
    font-size: 0.9em;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
}

.top-bar-contact span,
.top-bar-socials a {
    margin-right: 15px;
    color: white;
    text-decoration: none;
}

.main-header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

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

.logo {
    font-size: 1.8em;
    font-weight: bold;
    color: #FF7F50;
    text-decoration: none;
}

.logo i {
    margin-right: 5px;
}

.main-nav {
    display: flex;
    transition: none;
}

.main-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.main-nav ul li {
    margin-left: 20px;
}

.main-nav ul li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
    color: #FF7F50;
}

.new-badge {
    background-color: #FFD700;
    /* Giallo */
    color: #333;
    font-size: 0.6em;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 3px;
    vertical-align: super;
}

.hamburger-menu {
    display: none;
    font-size: 1.5em;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    color: #FF7F50;
    z-index: 1100;
}


/* Hero Section */
.hero {
    background: url('hero.webp') no-repeat center center/cover;
    color: white;
    padding: 100px 0;
    text-align: left;
    position: relative;
    min-height: 50vh;
}

.hero::before {
    /* Overlay per migliorare leggibilità testo */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.hero-content {
    flex: 1;
    max-width: 60%;
}

.hero h1 {
    font-size: 3em;
    margin-bottom: 20px;
    color: white;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.hero-image-placeholder {
    /* Rimosso perché usiamo un background */
}


/* Services Section */
.services-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.service-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    flex-basis: calc(33.333% - 20px);
    /* 3 per riga, con gap */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.service-item i {
    font-size: 3em;
    color: #FF7F50;
    margin-bottom: 20px;
}

.service-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.service-item p {
    font-size: 0.95em;
}

.service-item a {
    display: inline-block;
    margin-top: 15px;
    color: #FF7F50;
    text-decoration: none;
    font-weight: bold;
}

.service-item a i {
    font-size: 1em;
    margin-left: 5px;
    vertical-align: middle;
}

/* About Section */
.about-section {
    background-color: #fff;
}

.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h4 {
    color: #FF7F50;
    font-size: 1.2em;
    text-transform: uppercase;
}

.about-mission-vision {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mission-item,
.vision-item {
    padding-left: 20px;
    border-left: 3px solid #FF7F50;
}

.mission-item i,
.vision-item i {
    color: #FF7F50;
    margin-right: 10px;
    font-size: 1.5em;
}

.mission-item h4,
.vision-item h4 {
    margin-bottom: 5px;
    font-size: 1.3em;
    display: flex;
    align-items: center;
}


/* Process Section */
.process-section {
    background-color: #f9f9f9;
}

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

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.process-step i {
    font-size: 1.8em;
    color: #FF7F50;
    margin-top: 5px;
    display: block;
    margin-top: 25px;
}

.process-step-content h4 {
    margin-bottom: 5px;
    font-size: 1.2em;
}

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

.process-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Features Section */
.features-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.feature-item {
    display: flex;
    gap: 30px;
    align-items: center;
}

.feature-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Alterna layout */
.feature-image {
    flex: 1;
}

.feature-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.feature-content {
    flex: 1;
}

.feature-content i {
    font-size: 2em;
    color: #FF7F50;
    margin-bottom: 10px;
}

.feature-content h3 {
    font-size: 1.6em;
}

/* Stats Section */
.stats-section {
    background-color: #334756;
    /* Blu scuro originale */
    color: white;
    padding: 60px 0;
}

.stats-section .section-title {
    color: white;
}

.stats-section .section-title span {
    color: #FF7F50;
}

.stats-section p {
    color: #f0f0f0;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-item i {
    font-size: 2.5em;
    color: #FF7F50;
    margin-bottom: 10px;
}

.stat-item .number {
    font-size: 2.8em;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: white;
}

.stat-item .label {
    font-size: 1em;
    color: #ccc;
}

/* Pricing Section */
.pricing-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

.pricing-plan {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    flex-basis: calc(33.333% - 20px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-plan:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pricing-plan h3 {
    font-size: 1.3em;
    text-transform: uppercase;
    color: #555;
}

.pricing-plan .price {
    font-size: 2.5em;
    color: #FF7F50;
    font-weight: bold;
    margin: 15px 0;
}

.pricing-plan .price span {
    font-size: 0.5em;
    color: #777;
}

.pricing-plan ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pricing-plan ul li {
    margin-bottom: 10px;
    color: #666;
}

.pricing-plan ul li i {
    color: #28a745;
    margin-right: 8px;
}

/* Icona check verde */
.pricing-plan .btn {
    margin-top: 10px;
    width: 80%;
}

/* More Services Section */
.more-services-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    flex-wrap: wrap;
}

.more-service-item {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    flex-basis: calc(70% - 15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.more-service-item i.icon-bg {
    /* Icona grande a lato */
    font-size: 3em;
    color: #FF7F50;
    opacity: 0.2;
    float: left;
    margin-right: 20px;
}

.more-service-item h3 {
    font-size: 1.6em;
    margin-top: 1.1rem;
}

/* Testimonials Section */
.testimonial-slider {
    background: #f9f9f9;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    position: relative;
}

.testimonial-slider .stars {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.testimonial-slider blockquote {
    font-size: 1.1em;
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: bold;
    color: #FF7F50;
}

.testimonial-author span {
    font-weight: normal;
    color: #777;
    font-size: 0.9em;
}

.client-avatars {
    margin-top: 30px;
}

.client-avatars img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 10px;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.testimonial-slider.swiper {
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    background: #f9f9f9;
    position: relative;
}

.testimonial-slider .swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.testimonial-slider .swiper-pagination {
    margin-top: 25px;
    position: static;
}

.testimonial-slider .swiper-button-next,
.testimonial-slider .swiper-button-prev {
    color: #FF7F50;
    top: 50%;
    transform: translateY(-50%);
}

.testimonial-slider .swiper-button-next {
    right: 10px;
}

.testimonial-slider .swiper-button-prev {
    left: 10px;
}

@media (max-width: 600px) {
    .testimonial-slider.swiper {
        padding: 15px;
    }
}

/* Blog Section */
.blog-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.blog-post-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    flex-basis: calc(33.333% - 20px);
    transition: transform 0.3s ease;
}

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

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

.blog-post-content {
    padding: 20px;
}

.blog-post-meta span {
    font-size: 0.8em;
    color: #fff;
    background-color: #FF7F50;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 5px;
}

.blog-post-meta span.date {
    background-color: #777;
}

.blog-post-content h3 {
    font-size: 1.3em;
    margin: 15px 0 10px 0;
}

.blog-post-content h3 a {
    text-decoration: none;
    color: #333;
}

.blog-post-content h3 a:hover {
    color: #FF7F50;
}

.blog-post-content p {
    font-size: 0.9em;
    color: #666;
}

/* Footer */
.main-footer {
    background-color: #2c3e50;
    /* Blu scuro più profondo */
    color: #bdc3c7;
    /* Grigio chiaro */
    padding: 50px 0 20px 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

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

.footer-col .logo {
    color: #FF7F50;
    margin-bottom: 15px;
    display: block;
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2em;
}

.footer-col p {
    font-size: 0.9em;
    margin-bottom: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #FF7F50;
}

.newsletter-form input[type="email"] {
    padding: 10px;
    border: 1px solid #444;
    background: #333;
    color: white;
    border-radius: 4px 0 0 4px;
    width: calc(100% - 90px);
    display: block;
}

.newsletter-form button {
    padding: 10px 15px;
    background: #FF7F50;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    display: block;
    margin-top: 1rem;
}

.footer-contact-info i {
    margin-right: 10px;
    color: #FF7F50;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9em;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom a {
    color: #FF7F50;
    text-decoration: none;
}

.footer-socials {
    margin-top: 10px;
}

.footer-socials a {
    color: #bdc3c7;
    margin: 0 8px;
    font-size: 1.2em;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: #FF7F50;
}

/* Responsive (Esempio base) */
@media (max-width: 992px) {
    .top-bar {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero .container {
        flex-direction: column;
    }

    .about-content {
        flex-direction: column;
    }

    .process-grid {
        flex-direction: column-reverse;
    }

    /* Immagine sopra su mobile */
    .feature-item,
    .feature-item:nth-child(even) {
        flex-direction: column;
    }

    .feature-image {
        margin-bottom: 20px;
    }

    .service-item,
    .pricing-plan,
    .blog-post_item {
        flex-basis: calc(80% - 15px);
    }

    /* .hamburger-menu {
        display: block;
        margin-left: auto;
        color: #FF7F50;
    } */
}

@media (max-width: 768px) {
    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        left: -260px;
        width: 240px;
        height: 100vh;
        background: #fff;
        box-shadow: 2px 0 24px rgba(0, 0, 0, 0.10);
        border-radius: 0 12px 12px 0;
        z-index: 1200;
        padding: 40px 0 0 0;
        transition: left 0.35s cubic-bezier(.77, 0, .18, 1);
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 30px;
    }

    .main-nav ul li {
        margin: 18px 0 0 0;
    }

    .main-nav ul li a {
        font-size: 1.1em;
        padding: 8px 0;
    }

    .main-nav.nav-open {
        left: 0;
        box-shadow: 2px 0 24px rgba(0, 0, 0, 0.15);
    }

    .hamburger-menu {
        display: block;
        margin-left: 18px;
        color: #FF7F50;
        position: relative;
        z-index: 1300;
        background: none;
        border: none;
        outline: none;
    }
}