/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Outfit, sans-serif;
}

body {
    line-height: 1.6;
}

/* Banner superiore */
.top-banner {
    background-color: #e8f5f4;
    padding: 8px;
    text-align: center;
    font-size: 0.875rem;
}

.top-banner-btn {
    background: none;
    border: none;
    color: #374151;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 18px;
    font-weight: bold;
}

.top-banner-btn:hover {
    color: #d1216a;
}

/* Navigazione */
.nav {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
    background-color: white;
}

.nav-container {
    max-width: 1480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-gesacom {
    max-width: 200px;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex: 1;
}

.menu-item {
    position: relative;
}

.menu-button {
    background: none;
    border: none;
    color: #374151;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
}

.menu-button:hover {
    color: #B10456;
}

.menu-icon {
    color: #B10456;
    font-size: 1.2rem;
}

.signup-btn {
    background-color: #B10456;
    color: white;
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.3s;
    font-weight: 500;
}

.signup-btn:hover {
    background-color: #B10456;
}

/* Dropdown styles */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-radius: 0.5rem;
    padding: 1.5rem;
    min-width: 800px;
    z-index: 1000;
    flex-direction: row;
    gap: 2rem;
}

/* Mostra il dropdown su hover */
.menu-item:hover .dropdown-content {
    display: flex;
}

/* Dropdown per il menu di "Supporto" senza card di anteprima */
.support-dropdown {
    min-width: 300px; /* Riduce la larghezza solo per il dropdown Supporto */
    flex-direction: column;
    gap: 1rem;
}


.menu-item:hover .dropdown-content {
    display: flex;
}

.dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 300px;
}

.dropdown-preview {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Rimosso opacity e transition */
}

/* Rimosso il codice che gestiva l'hover per mostrare la preview */
/* .drop-link:hover ~ .dropdown-preview,
.dropdown-preview:hover {
    opacity: 1;
} */

/* Il resto degli stili rimane invariato */
.preview-card {
    background-color: #f8fafc;
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.main-card {
    flex: 2;
}

.main-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.preview-description {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.time-info {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.preview-link {
    color: #B10456;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.preview-link i {
    transition: transform 0.3s ease;
}

.preview-link:hover i {
    transform: translateX(4px);
}

.secondary-card {
    flex: 1;
    background-color: #f0fdf4;
}

.secondary-card .card-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.free-label {
    font-weight: 600;
    color: #059669;
}

.secondary-card p {
    color: #374151;
    font-size: 0.875rem;
    flex: 1;
}

.secondary-card i {
    color: #059669;
}

.secondary-card i {
    transition: transform 0.3s ease;
}

.secondary-card:hover i {
    transform: translateX(4px);
}

.drop-link {
    text-decoration: none;
    color: #374151;
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.drop-link:hover {
    background-color: #f3f4f6;
    color: #B10456;
}

.drop-link i {
    color: #B10456;
    font-size: 1.2rem;
    width: 1.5rem;
}

.item-description {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* Banner superiore sticky */
.top-banner {
    position: fixed; /* Rende il banner fisso */
    top: 0; /* Posiziona in cima alla pagina */
    left: 0;
    width: 100%; /* Occupa tutta la larghezza */
    z-index: 1000; /* Sopra gli altri elementi */
    background-color: #e8f5f4;
    text-align: center;
    font-size: 0.875rem;
    border-bottom: 1px solid #ddd; /* Bordo separatore */
}

/* Navbar sticky */
.nav {
    position: fixed; /* Rende la navbar fissa */
    top: 40px; /* Altezza del banner superiore */
    left: 0;
    width: 100%; /* Occupa tutta la larghezza */
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    z-index: 999; /* Appena sotto il banner */
}



/* Blog main */
.blog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    padding-top: 40px;
    padding-bottom: 80px;
  }

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

article {
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
  }

article h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }

article p {
    margin-bottom: 10px;
  }

article figure {
    text-align: center;
    margin-bottom: 20px;
  }

article figure img {
    max-width: 100%;
    height: auto;
  }

h1, h2, h3, p {
    margin: 0;
}

/* Featured articles */
.featured-section {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem auto;
    max-width: 1200px;
}

.featured-article {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.featured-article img {
    width: 100%;
    height: auto;
}

.featured-article .content {
    padding: 1rem;
}

.featured-article .category {
    color: #d1216a;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.featured-article h2 {
    font-size: 1.2rem;
    margin: 0.5rem 0;
    color: #333;
}

.featured-article p {
    font-size: 0.9rem;
    color: #666;
}

/* Grid articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
    max-width: 1200px;
    margin: auto;
}

.blog-article {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-article:hover {
    transform: translateY(-5px);
}

.blog-article img {
    width: 100%;
    height: auto;
}

.blog-article .category {
    color: #41ceaf;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
}

.blog-article h3 {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    color: #333;
}



/* Sezione card orizzontali */
.horizontal-cards {
    max-width: 1200px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 100px;
}

.horizontal-card {
    display: flex;
    align-items: center;
    border: none;
    box-shadow: none;
    padding: 0;
    height: auto;
    background-color: none;
}

.card-left {
    flex: 1; /* Area immagine più piccola */
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-left img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.card-right {
    flex: 2; /* Area di testo più ampia */
    padding-left: 1rem; /* Spazio tra immagine e testo */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-right .category {
    font-size: 0.8rem;
    font-weight: bold;
    color: #d1216a;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.card-right h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.horizontal-card span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.horizontal-card i {
    transition: transform 0.3s ease;
}

/* Hover Effect */
.horizontal-card:hover {
    color: #d1216a;
    transform: translateY(-3px);
}

.horizontal-card:hover i {
    transform: translateX(5px);
}



/* Footer */
.footer-width {
    background-color: #747373;
    }
    
    .footer {
        color: #ffffff;
        padding: 40px 20px;
        text-align: center;
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .footer-columns {
        display: flex;
        justify-content: center;
        gap: 20px;
        margin-bottom: 20px;
        border-bottom: 2px solid #AC3F6C;
        padding-bottom: 20px;
    }
    
    /* Colonna principale di sinistra */
    .large-column {
        flex: 2;
        text-align: left;
    }
    
    .large-column h4, .small-column h4 {
        color: #fff;
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .logo-footer {
        margin-top: 40px;
    }
    
    .large-column p, .small-column ul li {
        font-size: 14px;
        color: #bbbbbb;
    }
    
    .large-column a {
        color: #ffffff;
        text-decoration: none;
    }
    
    .advisor {
        display: flex;
        align-items: center;
        margin-top: 10px;
    }
    
    
    /* Linea verticale di separazione */
    .vertical-line {
        width: 2px;
        background-color: #AC3F6C;
        margin: 0 20px;
    }
    
    /* Colonne di destra */
    .small-column {
        flex: 1;
        text-align: left;
    }
    
    .small-column ul {
        list-style: none;
        padding: 0;
    }
    
    .small-column ul li {
        margin-bottom: 8px;
        margin-top: 10px;
    }
    
    .small-column ul li a {
        color: #ffffff;
        text-decoration: none;
    }
    
    /* Sezione delle icone social e dei loghi */
    .footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 80px;
    }
    
    .social-icons a {
        margin: 0 10px;
    }
    
    .social-icons img, .logos img {
        width: 24px;
        height: 24px;
    }
    
    /* Sezione della Privacy e dell'indirizzo */
    .footer-info {
        margin-top: 20px;
        font-size: 12px;
        color: #ffffff;
    }
    
    .footer-info a {
        color: #ffffff;

    }

    

/* Floating Chat Button */
.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: white;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.chat-button button {
    background-color: #25d366;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.chat-button button:hover {
    background-color: #20c05b;
}