/* Impostazioni di base */
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "montserrat", sans-serif;
    font-size: 16px;
    color: #000000;
    background-color: #f8f7f7;
  }
  
  *, *::before, *::after {
    box-sizing: inherit;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  a {
    text-decoration: none;
    color: inherit;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
  }
  
  /* ------------------------------
     HEADER
  --------------------------------*/
  /* HEADER */
header {
    background-color: #f8f7f7;
    border-bottom: 1px solid #ccc;
}
/* Container interno all’header */
header .container {
    position: relative; /* Necessario per posizionare la .main-nav in modo assoluto */
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}


.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* All'inizio full width */
    background: rgba(248,247,247,0.5);
    backdrop-filter: blur(10px);
    border-radius: 0; /* Niente bordi arrotondati inizialmente */
    box-shadow: none; /* Niente ombra inizialmente */
    z-index: 999;
    padding: 0 20px;
}

.site-header.scrolled {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw; /* Adesso diventa 90% della viewport */
    border-radius: 9999px; /* Bordi arrotondati */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Leggera ombra */
}


.logo img {
    height: 50px;
}

/* Nav principale */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    justify-content: center; /* Nav centrata */
}
/* Link nav */
.main-nav a {
    font-weight: 600;
    color: #000000;
    text-transform: uppercase;
}

.visit-store-cta .btn {
    background-color: #d61116;
    color: #f8f7f7;
}

/* Hamburger (mostrato da mobile) */
.hamburger {
    display: none; /* Nascosto su desktop */
}
/* Nav principale centrata (solo da desktop, su mobile verrà gestita diversamente) */
@media (min-width: 769px) {
    .main-nav {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background: none;
        backdrop-filter: none;
        border-radius: 0;
        padding: 0;
        display: flex !important; /* Assicuriamoci che sia visibile su desktop */
    }

    .main-nav ul {
        flex-direction: row;
        gap: 20px;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .main-nav li {
        display: inline-block;
    }

    .main-nav a {
        font-weight: 600;
        color: #000;
        text-transform: uppercase;
    }

    .visit-store-cta {
        display: block; /* CTA visibile su desktop */
    }

    .hamburger {
        display: none; /* Hamburger nascosto su desktop */
    }
}

/* Versione Mobile */
@media (max-width: 768px) {
    .visit-store-cta {
        display: none;
    }

    .hamburger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
    }

    .hamburger span {
        position: absolute;
        width: 100%;
        height: 3px;
        background-color: #000;
        left: 0;
        transition: all 0.3s ease;
    }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 8px; }
    .hamburger span:nth-child(3) { top: 16px; }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 8px;
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 8px;
    }

    .main-nav {
        display: none; 
        position: absolute;
        top: 100%;
        left: 50%; 
        transform: translateX(-50%);
        background: rgba(248,247,247,0.9);
        backdrop-filter: blur(10px);
        border-radius: 20px;
        padding: 20px;
        width: 80%;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .main-nav.active {
        display: block;
    }
}
  

  /* ------------------------------
     HERO
  --------------------------------*/
/* Sezione Hero */
.hero-contatti {
    background: url('../images/contact-hero.webp') no-repeat center center/cover;
    height: 60vh; /* Altezza per desktop e tablet */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    transition: height 0.3s ease; /* Transizione fluida per cambiamenti di altezza */
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.6); /* Overlay più scuro */
    padding: 40px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 20px;
    animation: fadeIn 1s ease-in-out;
}

.hero-contatti h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 15px;
    font-family: "stilson", serif;
}

.hero-contatti p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
}

/* Animazione Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsività */
@media (max-width: 768px) {
    .hero-contatti {
        height: 30vh; /* Rimuove l'altezza fissa */
        padding: 20px 0; /* Aggiunge padding verticale per bilanciare */
    }

    .hero-overlay {
        padding: 20px;
        max-width: 90%; /* Riduce la larghezza massima per dispositivi piccoli */
    }

    .hero-contatti h1 {
        font-size: 2rem; /* Riduce ulteriormente la dimensione del testo */
        margin-bottom: 10px; /* Riduce lo spazio inferiore */
    }

    .hero-contatti p {
        font-size: 0.9rem; /* Riduce la dimensione del testo */
    }
}


  /* ------------------------------
     SEZIONE CONTATTI
  --------------------------------*/
  /* ------------------------------
   SEZIONE CONTATTI
-------------------------------- */
.contatti {
    padding: 60px 0;
    text-align: center;
}

.contatti h2 {
    margin-bottom: 20px;
    font-family: "stilson", serif;
    font-size: 3rem;
    font-weight: 700;
    color: #333; /* Colore più scuro per un contrasto migliore */
}

.intro-text {
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
    font-size: 1rem;
    color: #555; /* Colore del testo leggermente più scuro */
}

/* ------------------------------
   FORM DI CONTATTO
-------------------------------- */
.contact-form {
    margin: 40px auto;
    max-width: 600px;
    text-align: left;
    background: #fff; /* Sfondo bianco per un aspetto pulito */
    padding: 40px;
    border-radius: 15px; /* Bordi arrotondati */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Ombra sottile */
    transition: box-shadow 0.3s ease;
}

.contact-form:hover {
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15); /* Ombra leggermente più intensa al hover */
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    position: relative;
    display: flex;
    flex-direction: column;
}

.form-row label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
}

.form-row input,
.form-row textarea {
    padding: 15px 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: "Montserrat", sans-serif;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: #aaa;
    font-style: italic;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #d61116; /* Rosso principale */
    box-shadow: 0 0 5px rgba(214, 17, 22, 0.5); /* Sottile ombra colorata */
    background-color: #fff; /* Sfondo bianco al focus */
}

.required {
    color: #d61116;
}

/* Bottone di Invio */
.contact-form .btn-primary {
    align-self: center;
    padding: 15px 40px;
    font-size: 1rem;
    background-color: #d61116;
    color: #fff;
    border: none;
    border-radius: 50px; /* Forma completamente arrotondata */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: "Montserrat", sans-serif;
}

.contact-form .btn-primary:hover {
    background-color: #ba1818; /* Rosso più scuro */
    transform: translateY(-2px); /* Solleva il bottone */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Ombra al hover */
}

/* Feedback Visivo per Errori e Successo */
.form-row.error input,
.form-row.error textarea {
    border-color: #e74c3c; /* Rosso per errori */
}

.form-row.success input,
.form-row.success textarea {
    border-color: #2ecc71; /* Verde per successo */
}

.form-row.error label::after {
    content: '⚠️'; /* Icona di avviso */
    margin-left: 5px;
    color: #e74c3c;
}

.form-row.success label::after {
    content: '✅'; /* Icona di successo */
    margin-left: 5px;
    color: #2ecc71;
}

/* Responsività */
@media (max-width: 768px) {
    .contact-form {
        padding: 30px 20px;
    }

    .contatti h2 {
        font-size: 2.5rem;
    }

    .intro-text {
        font-size: 0.95rem;
    }

    .form-row input,
    .form-row textarea {
        font-size: 0.95rem;
        padding: 12px 15px;
    }

    .contact-form .btn-primary {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

  
  /* INFO CONTATTO + MAPPA */
  .contact-info {
    margin-top: 60px;
  }
  
  .contact-info h2 {
    font-family: "stilson", serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
  }
  
  .contact-info p {
    font-size: 1rem;
    line-height: 1.5;
    margin: 10px auto;
    max-width: 500px;
  }
  
  .mappa {
    margin: 30px 0;
  }
  
  /* Bottone mappa centrato */
  .map-button {
    margin-top: 20px;
    text-align: center; 
  }
  
  @media (max-width: 768px) {
    .contact-form {
      margin: 30px auto;
      padding: 0 15px; 
    }
    .contact-info p {
      margin: 10px auto;
      padding: 0 15px;
    }
  }
  
  /* ------------------------------
     GALLERY
  --------------------------------*/
  .gallery-preview {
    padding: 60px 0;
    background-color: #f8f7f7;
}

.gallery-preview .container {
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 30px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}


  /* ------------------------------
     CTA
  --------------------------------*/
/* Sezione CTA Banner */
.cta-banner {
    position: relative;
    background: url('../images/cta-background.webp') no-repeat center center/cover;
    padding: 100px 0;
    text-align: center;
    color: white; /* Miglior contrasto */
}

.cta-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay scuro */
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 30px;
}

.cta-content .btn-primary {
    padding: 15px 30px;
    font-size: 1rem;
    background-color: #d61116;
    color: #f8f7f7;
    border-radius: 9999px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    animation: pulse 2s infinite;
}

.cta-content .btn-primary:hover {
    background-color: #ba1818;
    transform: translateY(-2px);
}

/* Animazione Pulsante */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsività */
@media (max-width: 768px) {
    .cta-banner {
        padding: 60px 20px;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }

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

    .cta-content .btn-primary {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}


  /* ------------------------------
     BOTTONI
  --------------------------------*/
  .btn, .btn-primary {
    display: inline-block;
    text-align: center;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 9999px; /* Forma a pillola */
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    text-decoration: none;
  }
  
  .btn {
    background-color: #000000;
    color: #f8f7f7;
  }
  
  .btn-primary {
    background-color: #d61116;
    color: #f8f7f7;
    margin-bottom: 20px;
  }
  
  .btn:hover, .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
  }
  
  .btn:hover {
    background-color: #333333; /* Da nero a grigio scuro */
  }
  
  .btn-primary:hover {
    background-color: #ba1818; /* Rosso leggermente più scuro */
  }
  
  /* Responsive dimensioni bottoni */
  @media (max-width: 768px) {
    .btn, .btn-primary {
      font-size: 1rem;
      padding: 14px 28px;
    }
  }
  
  /* FOOTER */
footer {
    background-color: #ba1818;
    color: #f8f7f7;
    padding: 20px 0;
}
footer .footer-links {
    text-align: center;
    margin-bottom: 20px; /* un po’ di spazio sotto il menu */
}

footer .footer-links ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0; /* <--- Aggiungi questa riga */
    justify-content: center;
}

footer .footer-links a {
    color: #f8f7f7;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}
footer .social {
    /* layout in flex per centrare orizzontalmente */
    display: flex;
    justify-content: center; 
    align-items: center;
    gap: 20px; /* spazio orizzontale fra i loghi */
    margin: 20px 0;
}

footer .social a img {
    width: 40px; 
    height: 40px; 
    /* assicura che mantengano il giusto rapporto d’aspetto */
    object-fit: contain; 
}

footer .legal {
    text-align: center;
    font-size: 0.8rem;
    margin-top: 20px;
}
footer .legal a {
    color: #f8f7f7;
    text-decoration: underline;
}
  
/* Contenitore del checkbox e del testo */
.form-row.privacy-policy {
  display: flex;          /* o inline-flex se vuoi che l’intero blocco sia “inline” */
  align-items: center;    /* allinea verticalmente al centro */
  gap: 0.5rem;            /* spaziatura orizzontale tra checkbox e testo (facoltativa) */
  margin-bottom: 1rem;    /* distanza dal resto del form */
}

/* Facoltativo: se vuoi regolare la posizione del checkbox rispetto al testo */
.form-row.privacy-policy input[type="checkbox"] {
  margin-right: 0.5rem;
    align-items: center;    /* allinea verticalmente al centro */

}
