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

html {
    height: 100%;
    scroll-behavior: smooth; /* Animazione di scorrimento fluida */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.main-content {
    flex: 1 0 auto;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1; /* Prende tutto lo spazio disponibile */
}

footer {
  background: #000000;
  color: #ffffff;
  text-align: center;
  padding: 58px 10px 12px 10px;
  font-size: 15px;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header e Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-logo {
    margin-right: auto;
    padding-left: 1rem; /* opzionale: per staccare dal bordo */
}

.nav-menu {
    display: flex;
    align-items: left;
    gap: 2rem;
    padding: 0 2rem;

}

.nav-logo h2 {
    color: #d4af37;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-logo i {
    margin-right: 1px;
    color: #ff6b35;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #d4af37;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #d4af37;
    transform: scaleX(0); /* Inizia senza larghezza */
    transform-origin: bottom right;
    transition: transform 0.3s ease-out; /* Animazione fluida */
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Stile custom per il select in modo che sia cross-browser */
.form-group select {
    appearance: none; /* Rimuove lo stile di default */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 12 12'%3E%3Cpath stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M1 4l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    padding-right: 30px; /* Spazio per la freccia custom */
}

/* Body no-scroll quando il menu è aperto */
body.no-scroll {
    overflow: hidden;
}


/* Hero Section */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Occupa tutta l'altezza dello schermo */
    padding: 4rem 0;
    background: url('../images/hero-image.jpg') center center/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Se vuoi un overlay scuro per migliorare la leggibilità del testo: */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35); /* Cambia l'opacità se vuoi più/meno scuro */
    z-index: 1;
}

.hero-content {
    flex: 1;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffffc5;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: #ffffffb7;
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg,  #f57f17, #bf360c);
    color: rgba(255, 255, 255, 0.89);
    padding: 16px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
    background-size: 200% auto;
}

.cta-button:hover {
    transform: translateY(-5px); /* Solleva di più il pulsante */
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.5); /* Ombra più pronunciata */
    background-position: right center; /* Cambia il gradiente */
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Prodotti Section - Single Product */
.prodotti {
    padding: 5rem 0;
    background: #fff;
}

.prodotti h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.prodotto-single {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.prodotto-image-large {
    position: sticky;
    top: 120px;
}

.prodotto-image-large img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.prodotto-details {
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.prodotto-details h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.prodotto-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.prodotto-caratteristiche {
    margin-bottom: 2rem;
}

.prodotto-caratteristiche h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
}

.prodotto-caratteristiche ul {
    list-style: none;
}

.prodotto-caratteristiche li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    color: #666;
}

.prodotto-caratteristiche i {
    color: #d4af37;
    margin-right: 10px;
    font-size: 0.9rem;
}

.prezzo-info {
    display: flex;
    align-items: baseline;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 2px solid #d4af37;
}

.prezzo {
    font-size: 2rem;
    font-weight: 700;
    color: #d4af37;
}

.peso {
    color: #999;
    margin-left: 5px;
    font-size: 1.1rem;
}

/* Prenotazione Form */
.prenotazione-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e0e0e0;
}

.prenotazione-form h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: left;
}

.prenotazione-form-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

.form-row.form-row-full {
    grid-template-columns: 1fr;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-family: inherit;
    color: #333; /* Imposta un colore di testo esplicito */
}

/* Colora il placeholder del select in modo più leggero */
.form-group select:invalid {
    color: #999;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2); /* Bagliore al focus */
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-bottom {
    width: 100%;
    margin-top: 1.5rem; /* Spazio sopra il blocco prezzo/bottone */
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Spazio tra prezzo e bottone */
}

#prezzo-totale {
    display: block;
    text-align: left;
    margin: 0; /* margin-top rimosso, gestito dal gap del contenitore */
    width: 100%;
    font-size: 1.1rem;
}

.prenota-btn {
    display: block;
    width: 100%; /* Occupa tutta la larghezza */
    margin: 0; /* Rimuovo margin auto e top */
    background: linear-gradient(45deg,  #f57f17, #bf360c);
    color: white;
    border: none;
    padding: 15px; /* Padding uniforme */
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Include padding e border nel width */
}

.prenota-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Chi Siamo Section */
.chi-siamo {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f9f9f9 0%, #f0f0f0 100%);
}

.chi-siamo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.chi-siamo-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1.5rem;
}

.chi-siamo-text p {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.valori {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.valore {
    text-align: center;
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
}

.valore:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.valore i {
    font-size: 2rem;
    color: #d4af37;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.valore:hover i {
    transform: scale(1.1);
}

.valore h4 {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.valore p {
    color: #666;
    font-size: 0.9rem;
}

.chi-siamo-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Contatti Section */
.contatti {
    padding: 5rem 0;
    background: #fff;
}

.contatti h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.contatti-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
}

.contatti-info {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    text-align: center;
    width: 100%;
}

/* Responsive: impila su mobile */
@media (max-width: 768px) {
    .contatti-info {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}

.contatto-item {
    display: flex;
    flex-direction: row;      /* icona a sinistra, testo a destra */
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 20px;
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 15px;
    transition: all 0.3s ease;
    width: 390px;
    min-width: 250px;
    max-width: 100%;
    box-sizing: border-box;
    text-align: left;         /* testo allineato a sinistra */
    gap: 20px;                /* spazio tra icona e testo */
}

.contatto-item:hover {
    background: #f0f0f0;
    transform: translateY(-5px); /* Cambiato da translateX a translateY */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.contatto-item i {
    font-size: 1.5rem;
    color: #d4af37;
    width: 40px;
    min-width: 40px;
    text-align: left;
    margin-top: 4px; /* opzionale: per centrare meglio verticalmente */
}

.contatto-item h4,
.contatto-item p {
    text-align: left;
}

.contatti-form {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4af37;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(45deg, #d4af37, #ff6b35);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* Solo Ritiro Info */
.solo-ritiro-info {
    color: #000000;
    font-weight: 500;
    text-align: left;
    margin-bottom: 1rem;
    opacity: 0.55;
    white-space: normal;
    font-size: 0.85rem;
    background: none;
    padding: 0 px;
    line-height: 1.3;
    display: block;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #d4af37;
}

.footer-section h3 i {
    margin-right: 8px;
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #d4af37;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: #d4af37;
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #ff6b35;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        justify-content: center;
        background-color: white;
        width: 100%;
        height: 100vh; /* Occupa tutta l'altezza */
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 6rem 1rem 2rem 1rem; /* Aumentato il padding top */
        background-position: center top; /* oppure: center 30% */
        /* Puoi anche provare: background-size: cover; */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .prodotto-single {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .prodotto-image-large {
        position: static;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .chi-siamo-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contatti-content {
        flex-direction: column !important;
        align-items: center !important;
    }

    .valori {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 15px;
    }

    .prodotto-details {
        padding: 1rem;
    }

    .prenotazione-form {
        padding: 1rem;
    }

    .prenota-btn {
        padding: 12px 0;
        width: 100%;
        font-size: 1rem;
    }
    #prezzo-totale {
        font-size: 1rem;
    }
}

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

.prodotto-single
.contatto-item

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

/* Loading States */
.prenota-btn:active,
.submit-btn:active {
    transform: scale(0.95);
}

/* Focus States for Accessibility */
.nav-link:focus {
    outline: none; /* Rimuove il contorno giallo solo dai link della navbar */
}

.cta-button:focus,
.prenota-btn:focus,
.submit-btn:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

.quantita-selector {
    display: flex;
    align-items: stretch; /* Align items to stretch vertically */
    gap: 10px;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield; /* For Firefox */
}

#quantita {
    width: 100%;
    text-align: center;
    font-size: 1.5rem; /* Larger font for visibility */
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    height: 104px; /* Height to match the two 50px buttons + gap */
    box-sizing: border-box;
}

#quantita:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.quantita-buttons {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Gap between the two buttons */
}

.quantita-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #333;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
    touch-action: manipulation;
}

.quantita-btn:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}