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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Sezione Social Media */
.social-section {
    background: linear-gradient(135deg, #8fbc8f 0%, #7ba05b 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.social-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.social-header p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.social-item img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

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

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-item h3 {
    font-size: 2rem;
    font-weight: bold;
}

.logo-item .logo {
    max-width: 200px;
    height: auto;
}

/* Sezione Ricerca Lista Regali */
.search-section {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6));
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 0;
    color: white;
    text-align: center;
}

.search-header h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: bold;
}

.search-form-container {
    margin: 3rem 0;
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.search-input-extended {
    min-width: 500px;
    width: 100%;
    max-width: 700px;
    padding: 15px 25px;
    font-size: 1.1rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.search-input-extended:focus {
    outline: none;
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.search-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

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

.ai-text {
    color: #ffa500;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

/* Pulsanti */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
}

.btn-ai {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    color: white;
}

.btn-contact {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
    width: 100%;
}

.btn-consultation {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    color: white;
    padding: 20px 30px;
    font-size: 1.1rem;
}

.btn-partnership {
    background: linear-gradient(135deg, #6f42c1 0%, #5a2d91 100%);
    color: white;
    font-size: 1.2rem;
    padding: 20px 40px;
}

/* Sezione Cataloghi */
.catalogs-section {
    background: linear-gradient(135deg, #8fbc8f 0%, #7ba05b 100%);
    padding: 80px 0;
    color: white;
    text-align: center;
}

.catalogs-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.catalogs-header p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    opacity: 0.9;
}

/* Slider Canvas - NASCONDERE I DOTS */
.canvas-slider-container {
    margin: 3rem 0;
    position: relative;
}

.canvas-slider {
    max-width: 800px;
    margin: 0 auto;
}

.slide-item {
    display: flex !important;
    align-items: center;
    justify-content: center;
    height: 500px;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.slide-item img,
.slide-item video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

/* NASCONDERE I DOTS DELLO SLIDER */
.canvas-slider .slick-dots {
    display: none !important;
}

.canvas-slider .slick-dots li {
    display: none !important;
}

/* Frecce dello slider */
.canvas-slider .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 20px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.canvas-slider .slick-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.canvas-slider .slick-prev {
    left: -60px;
}

.canvas-slider .slick-next {
    right: -60px;
}

/* Griglia Fornitori */
.suppliers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.supplier-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.3s ease;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.supplier-item:hover {
    transform: translateY(-10px);
}

.supplier-logo {
    width: 100%;
    height: 150px;
    object-fit: contain;
    padding: 20px;
}

.supplier-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.supplier-item:hover .supplier-overlay {
    opacity: 1;
}

/* Sezione Professionisti */
.professionals-section {
    background: linear-gradient(135deg, #f5f5dc 0%, #e6e6d3 100%);
    padding: 80px 0;
    color: #333;
}

.professionals-header {
    text-align: center;
    margin-bottom: 3rem;
}

.professionals-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.search-professionals {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 3rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-input,
.form-select,
.form-textarea {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.categories-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.categories-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
    color: #333;
}

.category-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.category-btn {
   color: rgb(51, 51, 51);
   display: inline-block;
   font-weight: bold;
   font-size: 0.9rem;
   background: linear-gradient(135deg, rgb(168, 237, 234) 0%, rgb(254, 214, 227) 100%);
   padding: 10px 20px;
   margin: 5px;
   border-radius: 20px;
   text-decoration: none;
   transition: 0.3s;
}


.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Sezione Mappa */
.coverage-section {
    background: linear-gradient(135deg, #f5f5dc 0%, #e6e6d3 100%);
    padding: 80px 0;
    color: #333;
}

.coverage-header {
    text-align: center;
    margin-bottom: 3rem;
}

.coverage-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.map-container {
    margin: 3rem 0;
    text-align: center;
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

#maphome {
    height: 500px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Form Contattaci - MIGLIORATO E INTEGRATO NELLA MAPPA */
.contact-form-section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem auto;
    max-width: 800px;
    border: 2px solid #e9ecef;
}

.contact-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-header h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.contact-header p {
    color: #666;
    font-size: 1rem;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-form-grid .full-width {
    grid-column: 1 / -1;
}

/* Sezione Consulenza */
.consultation-section {
    background: rgba(255, 255, 255, 0.9);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    margin: 3rem 0;
}

.consultation-header {
    text-align: center;
    margin-bottom: 2rem;
}

.consultation-header h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.privacy-section {
    margin-top: 1rem;
}

.privacy-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.privacy-links a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

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

.consultation-details {
    margin-top: 1rem;
}

.consultation-details .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffa500;
}

.consultation-details .timing {
    font-size: 0.9rem;
    color: #666;
}

/* Sezione Come Funziona */
.how-it-works-section {
    background: linear-gradient(135deg, #f5f5dc 0%, #e6e6d3 100%);
    padding: 80px 0;
    color: #333;
}

.how-it-works-header {
    text-align: center;
    margin-bottom: 3rem;
}

.how-it-works-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

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

.description p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.note {
    background: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid #ffa500;
}

.videos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.demo-video {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Sezione Testimonianze - MIGLIORATA CON RIQUADRI STONDATI */
.testimonials-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
    color: #333;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.testimonials-header p {
    font-size: 1.2rem;
    color: #666;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.testimonials-column {
    background: rgba(255, 255, 255, 0.9);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid #e9ecef;
}

.testimonials-column h3 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.testimonial-item {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border-left: 4px solid #007bff;
}

.testimonial-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #555;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.testimonial-author strong {
    color: #007bff;
    font-size: 1rem;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

.testimonials-cta {
    background: linear-gradient(135deg, #d5cce5 0%, #5a2d91 100%);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    color: white;
    box-shadow: 0 15px 40px rgba(111, 66, 193, 0.3);
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Sezione FAQ */
.faq-section {
    background: linear-gradient(135deg, #f5f5dc 0%, #e6e6d3 100%);
    padding: 80px 0;
    color: #333;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.faq-example {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-example h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.example-image {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

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

.faq-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.faq-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #007bff;
}

.faq-item p {
    line-height: 1.6;
}

/* Risultati Ricerca */
.search-results-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 60vh;
}

.search-results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.search-results-header h1 {
    color: #333;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.search-result-item {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.no-results {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .search-input-extended {
        min-width: 280px;
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .videos-container {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
    .search-results-grid {
        grid-template-columns: 1fr;
    }
    
    .canvas-slider .slick-prev {
        left: 10px;
    }
    
    .canvas-slider .slick-next {
        right: 10px;
    }
    
    .canvas-slider .slick-arrow {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    /* Nascondere le frecce su mobile se necessario */
    .canvas-slider .slick-arrow {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .social-header h2,
    .search-header h2,
    .catalogs-header h2,
    .professionals-header h2,
    .coverage-header h2,
    .how-it-works-header h2,
    .testimonials-header h2,
    .faq-header h2 {
        font-size: 2rem;
    }
    
    .search-results-header h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .slide-item {
        height: 300px;
    }
}

/* Lazy Loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy.loaded {
    opacity: 1;
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Accessibilita */
.btn:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .social-section,
    .search-section,
    .catalogs-section,
    .professionals-section,
    .coverage-section {
        background: white !important;
        color: black !important;
    }
    
    .btn {
        border: 1px solid #333;
        background: white !important;
        color: black !important;
    }
}
