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

body {
    font-family: 'Syncopate', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
    padding: 1rem;
    transition: background 0.3s ease, padding 0.3s ease;
}

.header.scrolled {
    background: transparent;
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    mask: linear-gradient(black, black, transparent);
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.header.scrolled .header-content {
    justify-content: space-between;
}

.logo {
    text-decoration: none;
}

.logo-img {
    height: 80vh;
    max-height: 500px;
    min-height: 200px;
    width: auto;
    transition: height 0.3s ease;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    mix-blend-mode: difference;
}

.header.scrolled .logo-img {
    height: 45px;
    filter: none;
    mix-blend-mode: difference;
}

.social-icons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    right: 0;
}

.header.scrolled .social-icons {
    opacity: 1;
    position: static;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4CAF50, #81C784);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.social-icon:hover {
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    margin-top: 0;
}

.section {
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Hero Section with Carousel */
.hero {
    padding: 0;
    margin: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10vh; /* altezza della sfumatura */
    background: linear-gradient(to top, #EDF7E8 20%, transparent 100%);
    z-index: 5; /* sotto i bottoni ma sopra le immagini */
    pointer-events: none; /* non blocca il click */
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 1001;
    transition: background 0.2s ease;
    color: #333;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

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

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: background 0.2s ease;
    border: 2px solid rgba(153, 153, 153, 0.8);
}

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

/* About Section */
.about {
    background: linear-gradient(135deg, #E8F5E8, #F1F8E9);
    padding: 4rem 2rem;
    text-align: center;
    color: #2E7D32;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #FF6B35;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.highlight-text {
  margin-bottom: 0;
}

.highlight-text p {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-text strong {
    color: #FF6B35;
    font-weight: 700;
}

.menu-btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, #FF6B35, #FF8A65);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2rem;
}

.menu-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}

.about-row {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.about-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.about-logo img {
  width: 40vw;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #eef7e9 10%, #388E3C 100%);
    color: rgb(83, 83, 83);
    padding: 3rem 2rem 1rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: #2c6e2d;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    font-weight: 400;
}

.footer-section a {
    color: #81C784;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: #A5D6A7;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #4CAF50;
    font-size: 0.9rem;
    color: #C8E6C9;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .about h2 {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .highlight-text p {
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo-img {
        height: 70vh;
        max-height: 400px;
        min-height: 180px;
    }
    
    .carousel-btn {
        font-size: 20px;
        padding: 12px 16px;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .about h2 {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .highlight-text p {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    
    .logo-img {
        height: 60vh;
        max-height: 300px;
        min-height: 150px;
    }
    
    .header.scrolled .logo-img {
        height: 35px;
    }
    
    .menu-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .carousel-btn {
        font-size: 18px;
        padding: 10px 14px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
