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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
    padding-top: 70px; /* Add padding to account for the fixed navbar height */
}

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

/* Navbar adjustments */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Update the mobile menu styles */
@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 80px;  /* Allineato con l'altezza della navbar */
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #2c3e50, #3498db);
        display: none; /* Nascosto inizialmente */
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1rem;
        z-index: 999;
        width: 100%;
        height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s ease;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        height: calc(100vh - 70px); /* Altezza calcolata correttamente */
        opacity: 1;
        overflow-y: auto;
        display: flex !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
        z-index: 999 !important;
        padding-top: 2rem;
        margin-top: 0;
        justify-content: flex-start !important; /* Manteniamo l'allineamento all'inizio */
        flex-direction: column !important; /* Invertiamo l'ordine degli elementi per posizionare i link in alto */
        align-items: stretch !important; /* Assicura che gli elementi occupino tutta la larghezza */
    }
    .nav-links li {
        order: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
}


/* Logo container styling */
.logo-container {
    display: flex;
    align-items: center;
}

/* Remove the logo image styling */
.nav-logo {
    display: none; /* Hide the logo instead of removing it completely */
}

@media (max-width: 768px) {
    .nav-logo {
        display: none; /* Ensure it's hidden on mobile too */
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    color: white;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    line-height: 1;
    margin-bottom: 8px; /* Increased from 2px to make room for the line */
    position: relative; /* Added for positioning the line */
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -4px; /* Position the line between the text and date */
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white line */
}

.logo-date {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding-top: 2px; /* Added padding to create more space after the line */
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .logo-date {
        font-size: 0.7rem;
    }

    .logo-badge {
        width: 100px;
        height: 100px;
        margin: 0 auto 1.5rem;
        font-size: 1.5rem;
    }
}


@media (max-width: 480px) {
    .logo-badge {
     min-width: 110px;
     min-height: 110px; /* Mantieni proporzioni rotonde */
     margin: 0 auto 1rem;
     font-size: 1.2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }
}





/* Navigation links - ensure they're on the right */
/* Navigation links - base styles */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto !important; /* This ensures nav links are pushed to the right */
    align-items: center;
    justify-content: flex-end !important; /* Additional property to ensure right alignment */
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    display: block; /* Assicura che l'intero elemento sia cliccabile */
}

/* Miglioramento stile dei link nel menu mobile */
@media (max-width: 1024px) {
    .nav-links a {
        font-size: 1.2rem;
        padding: 0.8rem 1rem;
        text-align: center;
        margin: 0;
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav-links li {
        width: 100%;
        margin-top: 0;
    }
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

.nav-links i {
    margin-right: 0.5rem;
}

.navbar-bell {
    margin-left: auto;
    margin-right: 1rem;
    position: relative;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar-bell:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.navbar-bell.has-notifications::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background-color: #e74c3c;
    border-radius: 50%;
    border: 2px solid #2c3e50;
}

@media (max-width: 1024px) {
    .navbar-bell {
        margin-left: auto;
        margin-right: 1rem;
        order: 1;
    }
    
    .menu-toggle {
        margin-left: 0;
        display: flex !important;
        order: 2;
    }
    
    /* Assicura che il logo e i controlli della navbar siano ben posizionati */
    .top-nav {
        padding: 0.8rem 1rem;
        justify-content: space-between;
    }
    
    .logo-container {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .navbar-bell {
        margin-right: 0.5rem;
    }
    
    .menu-toggle {
        margin-left: 0;
    }

    .top-nav {
        padding: 1rem;
    }
}

.nav-links.active + .navbar-bell {
    z-index: 1002; /* Make sure bell stays above mobile menu */
}

.notification-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 1001;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.notification-popup.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}



/* Modern Hero Section */
.hero {
    height: 100vh;
    background: url('images/home legno.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(52, 152, 219, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.logo-badge {
    background: white;
    color: #2c3e50;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    animation: float 3s ease-in-out infinite;
}

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


.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500; /* Reduced from 600 for more elegance */
    letter-spacing: 2px; /* Increased from 1px for more sophistication */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-family: 'Montserrat', sans-serif; /* Using Montserrat for more elegance */
    text-transform: uppercase; /* Adding uppercase for a more professional look */
    position: relative;
    display: inline-block;
    padding-bottom: 15px; /* Add space for the decorative line */
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
        letter-spacing: 1.5px;
    }
    
    .hero-content h1::after {
        width: 80px;
    }
}



.small-text {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.text-animation {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    transition: opacity 0.5s ease;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 8rem; /* Increased from 6rem to 8rem for more space */
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block; /* Ensure proper display */
    text-align: center; /* Center text */
    min-width: 180px; /* Ensure minimum width */
}

.btn-primary {
    background: white;
    color: #2c3e50;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 3.5rem; /* Increased from 2rem to 3.5rem */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    cursor: pointer;
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.2); /* Added semi-transparent background */
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator i {
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .text-animation {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* Specific adjustment for iPhone X to iPhone 14 */
@media (min-width: 375px) and (max-width: 428px) {
    .scroll-indicator {
        bottom: -2%; /* Positioned lower for iPhone X-14 */

    }
}


section {
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    font-family: 'Playfair Display', serif; /* Elegant serif font */
    font-weight: 600;
    letter-spacing: 0.5px;
}


h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: #3498db;
    transition: width 0.8s ease;
}

section.animate-in h2::after {
    width: 80px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.about-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    color: #2c3e50;
    font-size: 1.2rem;
    line-height: 1.8;
    font-weight: 300;
    letter-spacing: 0.3px;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
}

.about-text p {
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 1rem;
}

.about-text p:first-child {
    font-size: 1.3rem;
    font-weight: 400;
    color: #34495e;
    font-style: italic; /* Adding subtle italic for first paragraph */
}

.about-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.stat {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease; /* Changed from 0.5s to 2s */
    transition-delay: calc(var(--stat-index, 0) * 0.1s);
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.1);
    min-width: 200px;
    border: 1px solid rgba(52, 152, 219, 0.1);
}

section.animate-in .stat {
    opacity: 1;
    transform: translateY(0);
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 0.5rem;
    position: relative;
}


.stat-number::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: #3498db;
    border-radius: 2px;
}

.stat-text {
    font-size: 1.1rem;
    color: #34495e;
    display: block;
    margin-top: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stat {
        min-width: 160px;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-text {
        font-size: 0.9rem;
    }
}

.about-section {
    overflow-x: hidden !important; /* Rimuove lo scroll orizzontale con !important */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.services-section {
    overflow-x: hidden !important; /* Rimuove lo scroll orizzontale con !important */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.services-section .container {
    overflow-x: hidden !important;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, opacity 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
    transition-delay: calc(var(--card-index, 0) * 0.2s);
}

section.animate-in .service-card {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.carousel {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-item {
    min-width: 100%;
    position: relative;
    overflow: hidden;
    height: 500px;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease, filter 0.7s ease;
    filter: brightness(0.9);
}

.carousel-item:hover img {
    transform: scale(1.05);
    filter: brightness(1);
}

.carousel-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.5) 20%, rgba(0, 0, 0, 0.85));
    color: white;
    transform: translateY(0);
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0.95;
}

.carousel-item:hover .carousel-info {
    transform: translateY(-10px);
    opacity: 1;
}

.carousel-info h3 {
    margin-bottom: 15px;
    font-size: 2rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
    font-family: 'Playfair Display', serif;
}

.carousel-info h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #3498db;
    transition: width 0.3s ease;
}

.carousel-item:hover .carousel-info h3::after {
    width: 100%;
}

.carousel-info p {
    font-size: 1.2rem;
    line-height: 1.7;
    max-width: 90%;
    opacity: 0.9;
    margin-top: 15px;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 24px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-container:hover .carousel-btn {
    opacity: 0.9;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.dot::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.dot.active {
    background: white;
    transform: scale(1.2);
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

/* Opening hours styling */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 1.5rem;
    color: #3498db;
}

.opening-hours {
    margin-top: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.opening-hours h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.opening-hours h4 i {
    margin-right: 0.8rem;
    color: #3498db;
}

.opening-hours h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #3498db;
}

.hours-list {
    list-style: none;
    padding: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.hours-list li:last-child {
    border-bottom: none;
}

.hours-list .day {
    font-weight: 500;
    color: #34495e;
}

.hours-list .time {
    color: #666;
}

.hours-list .closed {
    color: #e74c3c;
    font-style: italic;
}

/* Mission Section */
.mission-section {
    background-color: #f8f9fa;
}

.mission-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.mission-image {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    position: relative;
}

.mission-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(44, 62, 80, 0.1));
    z-index: 1;
}

.mission-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.mission-image:hover img {
    transform: scale(1.05);
}

.mission-text {
    flex: 1;
    padding: 1rem;
}

.mission-text h3 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.mission-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #3498db;
}

.mission-text p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.mission-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.mission-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    color: #34495e;
}

.mission-features i {
    color: #3498db;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.mission-btn {
    margin-top: 1.5rem;
    display: inline-block;
}

@media (max-width: 992px) {
    .mission-content {
        flex-direction: column;
    }
    
    .mission-image, .mission-text {
        flex: none;
        width: 100%;
    }
    
    .mission-image {
        margin-bottom: 2rem;
    }
}

/* General alignment fixes */
section {
    padding: 5rem 0;
    width: 100%;
    overflow: hidden; /* Prevents horizontal scroll */
}

/* Ensure responsive layouts */
@media (max-width: 768px) {
    .mission-content,
    .contact-content,
    .about-stats {
        flex-direction: column;
    }
    
    .carousel-container {
        max-width: 100%;
    }
}



/* Remove the sidebar styles completely */
/* Sidebar Styles - REMOVING THIS SECTION */
.sidebar {
    display: none; /* Hide the sidebar instead of removing it completely */
}

.sidebar-logo, .sidebar-nav, .sidebar-toggle {
    display: none; /* Hide all sidebar components */
}

/* Remove sidebar adjustments for main content */
.with-sidebar {
    margin-left: 0;
    width: 100%;
}

/* Mobile sidebar toggle */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: #3498db;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Mobile responsive sidebar */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .with-sidebar {
        margin-left: 0;
        width: 100%;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo .logo {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-logo p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #3498db;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a, 
.footer-legal a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover, 
.footer-legal a:hover {
    opacity: 1;
}

.footer-contact p {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: 0.8rem;
    color: #3498db;
}


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

.footer-bottom p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}


.footer-middle-text {
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center;
    font-style: italic;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        margin-top: 1rem;
    }
}





/* Menu toggle definition */
.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.2);
}

/* Ensure menu toggle is visible on mobile */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
        background: rgba(255, 255, 255, 0.2);
        margin-left: 10px;
        border: none;
        color: white;
        font-size: 1.8rem;
        cursor: pointer;
        z-index: 1001;
        width: 40px; /* Ridotto a dimensioni più appropriate */
        height: 40px; /* Ridotto a dimensioni più appropriate */
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: all 0.3s ease;
        position: relative;
        -webkit-tap-highlight-color: transparent; /* Per iOS */
        touch-action: manipulation; /* Per una migliore risposta al tocco */
        user-select: none; /* Impedisce la selezione del testo */
        outline: none; /* Rimuove l'outline quando si clicca */
        padding: 0; /* Assicura che non ci sia padding extra */
    }

.menu-toggle i {
    position: absolute;
    top: 50%; /* Centered vertically */
    left: 50%; /* Centered horizontally */
    transform: translate(-50%, -50%);
    pointer-events: none;
    font-size: 1.5rem; /* Dimensione dell'icona aumentata */
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.3); /* Aggiunge un leggero effetto ombra per migliorare la visibilità */
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}
}

/* Effetto più sottile per il menu hamburger */
@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
        animation: pulse 3s infinite;
    }
    
    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2);
        }
        70% {
            box-shadow: 0 0 0 5px rgba(255, 255, 255, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        }
    }
}

/* Add these rules at the end of your CSS file */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Make sure all sections stay within bounds */
section, header, footer {
    max-width: 100vw;
    box-sizing: border-box;
}

/* Ensure images don't cause overflow */
img {
    max-width: 100%;
    height: auto;
}

/* Fix for carousel container */
.carousel-container {
    max-width: 100%;
    margin: 0 auto;
}

/* Ensure container doesn't cause overflow */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

/* Add iPad/tablet specific styles */
@media (min-width: 768px) and (max-width: 1024px) {
    /* Hero section tablet optimization */
    .hero {
        height: 80vh; /* Reduce height on tablets */
    }
    
    .hero-content {
        max-width: 90%;
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .text-animation {
        font-size: 1.3rem;
        margin-bottom: 2rem;
    }
    
    .hero-buttons {
        margin-bottom: 5rem;
    }
    
    .btn {
        min-width: 160px;
        padding: 0.7rem 1.8rem;
    }
    
    .scroll-indicator {
        bottom: 2.5rem;
    }
    
    /* Adjust padding for better spacing on tablets */
    section {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1025px) {
    .menu-toggle {
        display: none !important;
    }
    
    .top-nav {
        justify-content: space-between !important; /* Ensure space between logo and nav links */
        display: flex !important; /* Ensure flex display is enforced */
        flex-wrap: nowrap !important; /* Prevent wrapping */
        align-items: center !important; /* Ensure vertical alignment */
    }
    
    .top-nav .logo-container {
        order: 1 !important; /* Ensure logo comes first */
        flex: 0 0 auto !important; /* Prevent logo from growing or shrinking */
    }
    
    .top-nav .nav-links {
        display: flex !important;
        position: static !important;  /* Change from relative to static with !important */
        background: none !important;
        flex-direction: row !important;
        padding: 0 !important;
        box-shadow: none !important;
        height: auto !important;     /* Reset height with !important */
        width: auto !important;      /* Reset width with !important */
        margin-left: auto !important; /* Ensure nav links are on the right with higher specificity */
        justify-content: flex-end !important; /* Align items to the right with higher specificity */
        align-items: center !important;
        order: 2 !important; /* Ensure nav links come after logo */
        opacity: 1 !important; /* Ensure links are visible */
        overflow: visible !important; /* Ensure links are not hidden */
    }
    
    .top-nav .navbar-bell {
        order: 3 !important; /* Ensure bell comes after nav links */
        margin-left: 1rem !important; /* Add some spacing between nav links and bell */
    }
}

/* Questa definizione è già presente in precedenza nel file e può essere rimossa */


/* Map responsive layout for smartphones */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;  /* Stack on mobile */
    }
    
    .map-container {
        height: 300px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .map-wrapper {
        width: 200%;  /* Make the map wider for horizontal scroll */
        height: 100%;
        position: relative;
    }

    .map-wrapper iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

    /* Scroll hint only on mobile */
    .scroll-hint {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(52, 152, 219, 0.8);
        color: white;
        padding: 10px;
        border-radius: 5px;
        font-size: 0.9rem;
        pointer-events: none;
        animation: fadeInOut 2s infinite;
    }
}

/* Chatbot Container */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 360px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    pointer-events: none;
}

.chatbot-container.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    display: flex;
    pointer-events: auto;
}

/* Chatbot Header */
.chatbot-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 20px;
    color: white;
    border-radius: 20px 20px 0 0;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Chat Messages Area */
/* Chat Messages Area */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Add styles for the suggested questions list */
.suggested-questions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.question-chip {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.2);
    text-align: left;
}

.question-chip:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateX(5px);
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.bot-message {
    background: #f0f2f5;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}

.user-message {
    background: #3498db;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

/* Chat Input Area */
.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    align-items: center;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
    color: #2c3e50;  /* Added text color */
}

.chat-input input::placeholder {
    color: #95a5a6;  /* Changed placeholder color */
    font-style: italic;  /* Made text italic */
}

.chat-input input:focus {
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.2);  /* Added subtle focus effect */
}

.send-btn {
    background: #3498db;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.05);
}

/* Chatbot Toggle Button */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #3498db;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    z-index: 999;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chatbot-container {
        width: 100%;
        height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chatbot-header {
        border-radius: 0;
    }

    .chatbot-toggle {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

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

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s ease;
}

.chatbot-close:hover {
    transform: scale(1.1);
}


.chatbot-toggle {
    /* ... existing styles ... */
    transition: transform 0.3s ease;
}

.chatbot-container {
    /* ... existing styles ... */
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: flex;
    opacity: 0;
    pointer-events: none;
}

.chatbot-container.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

/* Add this to your existing chatbot styles */
.typing-indicator {
    display: flex;
    padding: 10px;
    margin: 5px 0;
    background: #f0f0f0;
    border-radius: 18px;
    width: 50px;
    justify-content: center;
    align-self: flex-start;
}
  
.typing-indicator span {
    height: 8px;
    width: 8px;
    background: #999;
    border-radius: 50%;
    display: block;
    margin: 0 2px;
    opacity: 0.4;
    animation: typing 1s infinite alternate;
}
  
.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}
  
.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}
  
.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}
  
@keyframes typing {
    0% {
        opacity: 0.4;
        transform: translateY(0);
    }
    100% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

.footer-logo h1 {
    font-size: 2rem;  /* Increased from previous size */
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
}

.footer-logo .small-text,
.footer-logo .subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.3rem;
}

  .logo-badge {
    background: white;
    color: #2c3e50;
    width: 120px;  /* Increased from 80px to 120px */
    height: 120px; /* Increased from 80px to 120px */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 1.8rem;
    font-weight: bold;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    animation: float 3s ease-in-out infinite;
    overflow: hidden;
}

.badge-logo {
    width: 90%;  /* Increased from 70% to 90% */
    height: auto;
    object-fit: contain;
    max-height: 90%;  /* Increased from 70% to 90% */
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&display=swap');
.about-text p, 
.mission-text p,
.service-card p,
.carousel-info p,
.mission-features li,
.info-item div p,
.hours-list li {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 0.3px;
    line-height: 1.8;
}

.mission-text h3,
.service-card h3,
.carousel-info h3,
.info-item div h4,
.opening-hours h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.info-item div h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    margin-bottom: 5px;
}


/* Warning Notification Styles */
.warning-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translate(-20px);
    background-color: #ff9800;
    color: white;
    padding: 15px 25px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 90%;
    width: 500px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.warning-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}


.warning-notification .warning-message {
    flex: 1;
}

.warning-notification .close-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

@media (max-width: 768px) {
    .warning-notification {
        width: 90%;
        padding: 12px 20px;
        font-size: 13px;
    }
}

.footer-logo h1 {
    font-size: 2rem;  /* Increased from previous size */
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
}

/* ... existing code ... */
.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Warning Notification Styles */


.warning-notification.show {
    opacity: 1;
    transform: translateY(0) translateX(-50%);
}

.warning-notification .warning-icon {
    font-size: 20px;
    margin-right: 10px;
    animation: bell-ring 2s infinite;
}

@keyframes bell-ring {
    0%, 100% { transform: rotate(0); }
    5%, 15% { transform: rotate(15deg); }
    10%, 20% { transform: rotate(-15deg); }
    25% { transform: rotate(0); }
}

.warning-notification .warning-message {
    flex: 1;
}

.warning-notification .close-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.warning-notification .close-button:hover {
    transform: scale(1.2);
}

/* Notification Bell Icon */
.notification-bell {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #3498db;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 999;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.notification-bell:hover {
    transform: scale(1.1);
    background: #2980b9;
}

.notification-bell i {
    font-size: 18px;
}

.notification-bell.has-notifications::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background-color: #e74c3c;
    border-radius: 50%;
    border: 2px solid white;
}

/* Notification Popup */
.notification-popup {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    z-index: 998;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.notification-popup.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.notification-header {
    background: #3498db;
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.notification-header h4 {
    margin: 0;
    font-size: 16px;
}

.notification-header .close-button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 20px;
    transition: transform 0.2s ease;
}


.notification-header .close-button:hover {
    transform: scale(1.2);
}


.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}



.notification-item:last-child {
    border-bottom: none;
}






.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item .icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
}

.notification-item .content {
    flex: 1;
}

.notification-item .time {
    font-size: 12px;
    color: #95a5a6;
    margin-top: 5px;
}


    
    .notification-bell {
        top: 70px;
    }
    
    .notification-popup {
        width: calc(100% - 40px);
        top: 120px;
    }




.footer-logo h1 {
    font-size: 2rem;  
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: white;
    letter-spacing: 2px;
}


