/* Stili per le Vetrine Aziendali */

/* Sezione vetrine homepage */
.business-showcases-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.business-showcases-section h2 {
    text-align: center;
    margin-bottom: 50px;
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
}

.showcases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Card vetrina */
.showcase-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.showcase-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    position: relative;
}

.showcase-logo {
    position: absolute;
    bottom: -30px;
    left: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.showcase-content {
    padding: 40px 20px 20px;
}

.showcase-header {
    margin-bottom: 15px;
}

.showcase-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.showcase-category {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.showcase-description {
    color: #5a6c7d;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Informazioni di contatto */
.contact-info {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #5a6c7d;
    font-size: 0.9rem;
}

.contact-item i {
    width: 16px;
    margin-right: 10px;
    color: #3498db;
}

/* Social links */
.social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 16px;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.social-link.linkedin { background: #0077b5; }
.social-link.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-link.facebook { background: #1877f2; }
.social-link.tiktok { background: #000000; }
.social-link.whatsapp { background: #25d366; }

/* Footer card */
.showcase-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.showcase-views {
    color: #95a5a6;
    font-size: 0.8rem;
}

.showcase-actions {
    display: flex;
    gap: 10px;
}

.btn-showcase {
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-success {
    background: #25d366;
    color: white;
}

.btn-success:hover {
    background: #20b358;
    transform: translateY(-1px);
}

/* Pagina gestione vetrina */
.showcase-manager {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.form-section {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.form-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.social-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.social-input {
    flex: 1;
    padding: 10px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
}

/* Anteprima vetrina */
.preview-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.preview-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .showcases-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }
    
    .showcase-card {
        margin-bottom: 20px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .showcase-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .showcase-actions {
        justify-content: center;
    }
}

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

.showcase-card {
    animation: fadeInUp 0.6s ease forwards;
}

.showcase-card:nth-child(2) { animation-delay: 0.1s; }
.showcase-card:nth-child(3) { animation-delay: 0.2s; }
.showcase-card:nth-child(4) { animation-delay: 0.3s; }
.showcase-card:nth-child(5) { animation-delay: 0.4s; }
.showcase-card:nth-child(6) { animation-delay: 0.5s; }

/* Pagina visualizzazione vetrina completa */
.showcase-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.showcase-detail-header {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.showcase-detail-cover {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.showcase-detail-info {
    padding: 30px;
    position: relative;
}

.showcase-detail-logo {
    position: absolute;
    top: -40px;
    left: 30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 5px solid white;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.showcase-detail-content {
    margin-left: 100px;
}

.google-maps-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.google-maps-container iframe {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 10px;
}

.showcase-gallery {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.gallery-item {
    aspect-ratio: 16/10;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 10px;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.showcase-videos {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.video-item {
    border-radius: 10px;
    overflow: hidden;
}

.video-item iframe {
    width: 100%;
    height: 200px;
    border: none;
}

/* Correzione dropdown menu utente */
.navbar .dropdown-menu {
    background-color: #ffffff !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.navbar .dropdown-item {
    color: #212529 !important;
    padding: 0.5rem 1rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: #f8f9fa !important;
    color: #16181b !important;
}

.navbar .dropdown-divider {
    border-top: 1px solid #dee2e6 !important;
}

/* Assicura che il dropdown sia visibile anche nel tema scuro */
[data-theme="dark"] .navbar .dropdown-menu {
    background-color: #343a40 !important;
    border: 1px solid #495057 !important;
}

[data-theme="dark"] .navbar .dropdown-item {
    color: #ffffff !important;
}

[data-theme="dark"] .navbar .dropdown-item:hover,
[data-theme="dark"] .navbar .dropdown-item:focus {
    background-color: #495057 !important;
    color: #ffffff !important;
}

[data-theme="dark"] .navbar .dropdown-divider {
    border-top: 1px solid #495057 !important;
}

/* CSS per le offerte nella vetrina pubblica */
.offer-card {
    border: 1px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.offer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.offer-banner {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.offer-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.offer-content {
    padding: 1rem;
}

.offer-title {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.offer-description {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.offer-pricing {
    margin-bottom: 0.5rem;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.discounted-price {
    color: #28a745;
    font-weight: bold;
    font-size: 1.1rem;
}

.offer-validity {
    margin-bottom: 0.5rem;
}

.offer-terms {
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
}