* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

/* Colori aggiornati */
:root {
    --primary: #8B4513; /* Marrone più caldo */
    --text: #333333; /* Nero più profondo */
    --background: #FFF8EF; /* Bianco caldo */
    --other-bg: #F9E9D5; /* Beige chiaro */
    --secondary-bg: #FAD6A5; /* Beige più scuro */
    --accent: #D2691E; /* Marrone-arancio */
    --accent-light: #FFCF99; /* Arancione chiaro */
}

body {
    background-color: var(--background);
    color: var(--text);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    position: relative;
    color: white;
    padding: 350px 0 80px;
    text-align: center;
    overflow: hidden;
    background-color: var(--primary);
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

header video {
    object-fit: cover;
    width: 100%;
    height: 100%;
    filter: brightness(0.65);
}

header::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    height: 100px;
    background: var(--background);
    transform: skewY(-3deg);
    z-index: 1;
}

header h1, header p {
    transform: translateY(-180px);
    position: relative;
    z-index: 2;
}

header h1 {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 7rem;
    color: #fff;
    margin-bottom: 20px;
}

header p {
    font-family: 'Lora', serif;
    font-weight: 400;
    font-size: 2rem;
    color: white;
    opacity: 0.65;
    
}

.main-content {
    padding: 40px;
    background-color: var(--background);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    animation: fadeIn 1s ease-out;
}

/* Modifica la storia section per posizionarla a destra */
.storia-section {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    align-items: center;
    justify-content: flex-end;
    padding-left: 15%; /* Spazio a sinistra */
  }
  
  /* Modifica feature per posizionarla a destra */
  .feature {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 30px;
    background-color: var(--other-bg);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-left: auto; /* Sposta verso destra */
    width: 80%; /* Riduce la larghezza */
  }
/*
PROVA AD ELIMINARE QUESTO COMMENTO MA A ME PIACE PIU COSI SEMBRA PIU ORDINATO

.storia-content {
    flex: 1;
}

.storia-image {
    flex: 1;
}
*/

.storia-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
}

h2 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text);
    font-size: 1.1rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    padding: 30px;
    background-color: var(--other-bg);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.feature img {
    width: 100px;
    height: 100px;
    margin-right: 30px;
    border-radius: 15px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Sezione prodotti aggiornata - layout in colonna */
.product-section {
    margin: 60px 0;
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 15px;
}

.product-card {
   /* background-color: var(--secondary-bg);*/
    background: linear-gradient(135deg, #f8c291, #f56c42); /* Sfumatura arancio/rosso */
    background: linear-gradient(to bottom, #ff7eb3, #ff758c);
    background: radial-gradient(circle, #ff7eb3, #ff758c); /* Sfumatura rosa */
    background: linear-gradient(to top, #ffffff, #9e9e9e); /* Sfumatura rosa */
    background: linear-gradient(to top, #ffe6e600, #fad6a556); /* Sfumatura rosa */
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.product-card img {
    width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-right: 25px;
    flex-shrink: 0;
}

.product-card .product-content {
    flex: 1;
    min-width: 300px;
}

.product-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.product-preview {
    margin-bottom: 0;
}

.product-details {
    display: none;
    width: 100%;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
}

.product-card.active .product-details {
    display: block;
    animation: fadeIn 0.5s ease;
}

.product-card.active .product-preview {
    display: none;
}

.product-details ul {
    margin: 20px 0;
    padding-left: 20px;
}

.product-details li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Rimuovo l'icona + */
.expand-icon {
    display: none;
}

/* Sezione contatti ridisegnata */
.contact-section {
    background-color: var(--other-bg);
    padding: 60px 0;
    margin-top: 60px;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
}

.contact-actions {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.email-button {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary);
    color: white;
    padding: 16px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.2s;
}

.email-button:hover {
    background-color: var(--accent);
    transform: translateY(-3px);
}

.email-button .icon {
    margin-right: 10px;
}

/* Footer ridisegnato */
footer {
    background-color: var(--text);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.7;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.contact-item .icon {
    margin-right: 10px;
    flex-shrink: 0;
    color: var(--primary);
}

.contact-item span {
    color: rgba(255, 255, 255, 0.8);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Classi per l'animazione di entrata */
.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  .slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  
  /* Classe quando l'elemento è visibile */
  .appear {
    opacity: 1;
    transform: translateX(0);
  }

/* Media queries */
@media (max-width: 768px) {
    header {
        padding: 200px 0 80px;
    }
    
    header h1, header p {
        transform: translateY(-30px);
    }
    
    header h1 {
        font-size: 3.5rem;
    }
    
    header p {
        font-size: 1.5rem;
    }
    
    .storia-section {
        padding-left: 0;
        justify-content: center;
      }
      
      .feature {
        width: 100%;
        margin-left: 0;
      }
    
    .feature img {
        margin: 0 0 20px 0;
    }
    
    .product-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .product-card img {
        width: 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Animazioni */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* Ottimizzazioni per dispositivi mobili */
@media (max-width: 768px) {
    /* Miglioramenti generali */
    .container {
        padding: 20px 15px;
    }
    
    .main-content {
        padding: 25px 15px;
    }
    
    /* Ottimizzazioni specifiche per product section */
    .product-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 15px;
    }
    
    .product-card img {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .product-content {
        width: 100%;
        min-width: unset;
    }
    
    .product-details {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .product-details ul {
        padding-left: 15px;
    }
    
    /* Miglioramenti per altre sezioni in mobile */
    .contact-container {
        padding: 0 15px;
    }
    
    .contact-actions {
        width: 100%;
        justify-content: flex-start;
    }
    
    .footer-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Ottimizzazioni per dispositivi molto piccoli */
@media (max-width: 480px) {
    h2 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }
    
    .product-card h4 {
        font-size: 1.3rem;
    }
    
    .feature {
        padding: 20px 15px;
    }
    
    .product-details li {
        font-size: 0.95rem;
    }
    
    .email-button {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}
