/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-300: #fcd34d;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-small {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: transparent;
}

nav.scrolled,
nav.menu-open {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo img {
    height: 3.5rem;
    width: 3.5rem;
}

.nav-logo span {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--amber-800);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--amber-600);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    transition: all 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        max-height: 300px;
        padding: 1rem;
        opacity: 1;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-link {
        padding: 0.75rem;
        border-bottom: 1px solid var(--amber-100);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--amber-50) 0%, var(--amber-100) 100%);
    overflow: hidden;
}

/* Immagine diagonale di sfondo */
.hero-diagonal-bg {
    position: absolute;
    inset: 0;
    background: url('images/bee-background.png') center/cover no-repeat;
    clip-path: polygon(0 0, 50% 0, 32% 100%, 0% 100%);
    opacity: 0;
    animation: diagonalFade 4s ease-in-out infinite alternate;
}

/* IMPORTANTE: Sostituisci 'images/bee-background.jpg' con il percorso della tua immagine di api/miele */

@keyframes diagonalFade {
    0% {
        opacity: 0.32;
    }
    100% {
        opacity: 0.50;
    }
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    z-index: 1;
}

.hero-bg::before,
.hero-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.hero-bg::before {
    top: 5rem;
    left: 2rem;
    width: 8rem;
    height: 8rem;
    background: var(--amber-300);
}

.hero-bg::after {
    bottom: 5rem;
    right: 2rem;
    width: 10rem;
    height: 10rem;
    background: var(--amber-600);
}

.hero-content {
    text-align: center;
    z-index: 10;
    padding: 2rem;
    position: relative;
}

.hero-logo {
    height: 8rem;
    width: 8rem;
    margin: 0 auto 1.5rem;
    animation: float 3s ease-in-out infinite;
    /* Rimosso pointer-events: none per permettere hover, ma l'animazione continua */
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-title {
    position: relative;
    display: block;
    text-align: center;
    margin-bottom: 1rem;
    width: 100%;
}

.title-text,
.title-overlay {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--amber-900);
    display: inline-block;
    position: relative;
}

.title-overlay {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: url('images/bee-pattern.jpg') center/cover;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    animation: imageTextFade 3s ease-in-out infinite alternate;
}

@keyframes imageTextFade {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.8;
    }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--amber-900);
    margin-bottom: 1rem;
}

.hero p {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    color: var(--amber-700);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--amber-600);
    color: white;
    text-decoration: none;
    border-radius: 9999px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--amber-700);
    transform: scale(1.05);
}

.scroll-indicator {
    margin-top: 3rem;
    color: var(--amber-600);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Section Titles */
.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    color: var(--amber-900);
    margin-bottom: 3rem;
}

/* Chi Siamo */
.chi-siamo {
    padding: 5rem 0;
    background: white;
}

.chi-siamo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    align-items: center;
}

.chi-siamo-text p {
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.chi-siamo-image {
    position: relative;
}

.image-placeholder {
    position: relative;
    height: 24rem;
    background: var(--amber-100);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chi-siamo-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, var(--amber-900), transparent);
    color: white;
    padding: 1.5rem;
    font-size: 0.875rem;
}

/* Prodotti */
.prodotti {
    padding: 5rem 0;
    background: var(--amber-50);
}

.prodotti-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-image {
    height: 16rem;
    background: linear-gradient(135deg, var(--amber-200), var(--amber-300));
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-regina {
    background: linear-gradient(135deg, #fef08a, #fde047);
}

.emoji-large {
    font-size: 6rem;
}

.product-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-content {
    padding: 2rem;
}

.product-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amber-900);
    margin-bottom: 1rem;
}

.product-content > p {
    color: var(--gray-700);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.product-list {
    list-style: none;
}

.product-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.product-list li span {
    color: var(--amber-600);
    font-weight: 700;
}

/* Valori */
.valori {
    padding: 5rem 0;
    background: white;
}

.valori-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.valore-card {
    text-align: center;
    padding: 1.5rem;
}

.emoji-medium {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.valore-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--amber-900);
    margin-bottom: 0.75rem;
}

.valore-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Contatti */
.contatti {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--amber-100), var(--amber-50));
}

.contatti-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 3rem;
}

.contatti-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
}

.contatti-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contatto-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--amber-50);
    border-radius: 0.5rem;
}

.contatto-item svg {
    color: var(--amber-600);
    flex-shrink: 0;
}

.contatto-item h4 {
    font-weight: 600;
    color: var(--amber-900);
    margin-bottom: 0.25rem;
}

.contatto-item a {
    color: var(--gray-700);
    text-decoration: none;
    transition: color 0.3s;
}

.contatto-item a:hover {
    color: var(--amber-600);
}

.contatto-item p {
    color: var(--gray-700);
}

.social-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--amber-200);
    text-align: center;
}

.social-section > p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--amber-600);
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--amber-700);
    transform: scale(1.1);
}

/* Footer */
.footer {
    background: var(--amber-900);
    color: var(--amber-100);
    padding: 2rem 0;
    text-align: center;
}

.footer-logo {
    height: 4rem;
    width: 4rem;
    opacity: 0.8;
    margin: 0 auto 1rem;
}

.footer p {
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--amber-300);
}

/* Responsive */
@media (max-width: 640px) {
    .contatti-card {
        padding: 2rem 1.5rem;
    }
    
    .chi-siamo-grid {
        grid-template-columns: 1fr;
    }
}