/* ==========================================================================
   LANZA CRAFTED - FOGLIO DI STILE PRINCIPALE (Stile Amiro Invertito)
   ========================================================================== */

/* --- 1. VARIABILI GLOBALI E COLORI (Inversione Amiro) --- */
:root {
  /* Ora lo sfondo è chiaro e il testo è scuro */
  --bg-main: #e2e0df; /* Bianco sporco/Grigio chiaro da Amiro */
  --bg-darker: #f4f4f4; /* Grigio chiarissimo per alternare le sezioni */
  --accent-color: #000000; /* Nero puro per titoli e testi principali */
  --text-muted: #2f2f2f; /* Grigio molto scuro per i testi secondari */
  --text-on-accent: #e2e0df; /* Testo chiaro su sfondo nero */

  /* Manteniamo i nostri font, puliti e d'impatto */
  --font-heading: "Teko", sans-serif;
  --font-body: "Montserrat", sans-serif;
}

/* --- 2. RESET E IMPOSTAZIONI DI BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main); /* Sfondo chiaro principale */
  color: var(--accent-color); /* Testo scuro */
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

/* --- 3. CLASSI DI STRUTTURA (UTILITY) --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 4rem; /* Titoli giganteschi come Amiro */
  color: var(--accent-color);
  text-align: center;
  margin-bottom: 5px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 50px;
  font-size: 1.1rem;
}

/* --- 4. PULSANTI --- */
/* Nuovi pulsanti neri con testo grigio */
.btn-primary,
.btn-secondary,
.btn-prenota,
.btn-whatsapp {
  display: inline-block;
  padding: 12px 30px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Pulsante pieno nero (primary/prenota) */
.btn-primary,
.btn-prenota {
  background-color: #000000;
  color: #e2e0df; /* Testo grigio chiaro su sfondo nero */
  border: 2px solid #e2e0df; /* Bordo sottile grigio chiaro */
}

.btn-primary:hover,
.btn-prenota:hover {
  background-color: #e2e0df; /* Sfondo grigio chiaro */
  color: #000000; /* Testo nero */
}

/* Pulsante trasparente con bordo scuro (secondary) */
.btn-secondary {
  background-color: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: #e2e0df; /* Testo chiaro su sfondo nero */
}

/* Pulsante WhatsApp (manteniamo il verde originale) */
.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
  border: none;
  font-size: 1.1rem;
}

.btn-whatsapp:hover {
  background-color: #1ebe5d;
  color: #fff;
}

/* Pulsante Torna alla Home (Pagina Prodotti) */
.btn-back {
  color: var(--accent-color);
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-back:hover {
  color: var(--text-muted);
}

/* --- 5. COMPONENTI DELLA PAGINA --- */

/* NAVBAR */
header {
  background-color: rgba(
    226,
    224,
    223,
    0.95
  ); /* Sfondo grigio chiarissimo semi-trasparente */
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--text-muted);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo a {
  display: flex;
  align-items: center;
}

.logo-img {
  max-height: 120px; /* Altezza perfetta per i computer */
  width: auto; /* Mantiene le proporzioni corrette */
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--text-muted);
}

/* Icona menu ad hamburger (nascosta su desktop) */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--accent-color);
  cursor: pointer;
}

/* HERO SECTION (Homepage) */
.hero-section {
  height: 100vh;
  background:
    linear-gradient(rgba(226, 224, 223, 0.7), rgba(226, 224, 223, 0.7)),
    /* Filtro grigio chiaro */
    url("https://images.unsplash.com/photo-1503951914875-452162b0f3f1?q=80&w=2070&auto=format&fit=crop")
      center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.hero-content h1 {
  font-size: 6rem; /* Titolo massiccio allo scroll come Amiro */
  color: var(--accent-color);
  margin-bottom: 10px;
  letter-spacing: 3px;
  line-height: 1;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* HERO PRODOTTI (Pagina Shop) */
.shop-hero {
  height: 50vh;
  background:
    linear-gradient(rgba(226, 224, 223, 0.8), rgba(226, 224, 223, 0.8)),
    /* Filtro grigio chiaro */ url("../img/sfondo-prodotti.jpg") center/cover
      no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
}

.shop-hero h1 {
  font-size: 4rem;
  color: var(--accent-color);
}

/* SEZIONE CHI SIAMO (STORYTELLING) */
.about-minimal {
  display: flex;
  background-color: var(--bg-darker);
  border-top: 1px solid var(--accent-color);
  border-bottom: 1px solid var(--accent-color);
}

.about-minimal-image {
  flex: 1;
  width: 50%;
}

.about-minimal-image img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  filter: grayscale(100%);
  display: block;
}

.about-minimal-text {
  flex: 1;
  width: 50%;
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg-darker);
}

.about-minimal-text h2 {
  font-size: 4.5rem;
  line-height: 1;
  color: var(--accent-color);
  margin-bottom: 40px;
  letter-spacing: 1px;
}

.about-minimal-text p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 25px;
  max-width: 600px;
}

/* SEZIONE SERVIZI E PREZZI */
.services-section {
  background-color: var(--bg-main);
}

.price-list {
  max-width: 800px;
  margin: 0 auto;
}

.price-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed var(--accent-color);
  padding: 20px 0;
}

.price-item:last-child {
  border-bottom: none;
}

.price-info h3 {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.price-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.price-tag {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--accent-color);
}

/* SEZIONE GALLERY */
.gallery-section {
  background-color: var(--bg-darker);
}

/* --- IMPOSTAZIONI CAROSELLO SWIPER --- */
.gallerySwiper {
  width: 100%;
  padding-bottom: 50px;
}

/* Colora il pallino attivo con il nostro colore di accento (nero) */
.swiper-pagination-bullet-active {
  background-color: var(--accent-color) !important;
}

.gallery-item {
  overflow: hidden;
  border-radius: 5px;
}

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

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

/* SEZIONI PRENOTA E LAVORA CON NOI */
.booking-section {
  background-color: var(--bg-main);
  text-align: center;
}

.work-section {
  background-color: var(--bg-darker);
  text-align: center;
}

.contact-info,
.instructions {
  margin: 30px 0;
}

.contact-info p,
.instructions p {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

/* --- 6. PAGINA PRODOTTI (SHOP) --- */
.products-section {
  background-color: var(--bg-main);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.product-card {
  background-color: var(--bg-darker);
  padding: 20px;
  text-align: center;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 20px;
}

.product-card h3 {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.product-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-color);
}

.whatsapp-banner {
  background-color: var(--bg-main);
  text-align: center;
  padding: 60px 20px;
  border-top: 1px solid var(--accent-color);
}

.whatsapp-banner h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.whatsapp-banner p {
  max-width: 600px;
  margin: 0 auto 30px auto;
  color: var(--text-muted);
}

/* FOOTER */
.footer {
  background-color: #000000; /* Fondo scuro per il footer per "staccare" */
  text-align: center;
  padding: 40px 0;
  color: #e2e0df; /* Testo chiaro su sfondo nero */
}

.social-links {
  margin-bottom: 20px;
}

.social-links a {
  display: inline-block;
  margin: 0 10px;
  font-size: 1.2rem;
  color: var(--text-on-accent);
}

.social-links a:hover {
  color: #fff;
}

/* ==========================================================================
   ANIMAZIONI DI SCORRIMENTO (MICRO-INTERAZIONI)
   ========================================================================== */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease-out,
    transform 0.8s ease-out;
  will-change: opacity, visibility;
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   7. RESPONSIVE (MOBILE & TABLET) - Ottimizzazione UI/UX
   ========================================================================== */

/* TABLET E DISPOSITIVI MEDI (sotto i 992px) */
@media (max-width: 992px) {
  .hero-content h1,
  .shop-hero h1 {
    font-size: 4.5rem;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-minimal-text {
    padding: 60px 40px;
  }
  .about-minimal-text h2 {
    font-size: 3.5rem;
  }
}

/* MOBILE - SMARTPHONE (sotto i 768px) */
@media (max-width: 768px) {
  /* Spaziature ottimizzate per schermi piccoli */
  .section-padding {
    padding: 50px 0;
  }
  .section-title {
    font-size: 3rem;
    margin-bottom: 5px;
  }
  .section-subtitle {
    margin-bottom: 30px;
    font-size: 1rem;
  }

  /* Riorganizzazione Navbar */
  .navbar {
    padding: 0px 25px;
  }
  .btn-prenota {
    display: none; /* Nascosto su mobile per fare spazio al menu */
  }
  .menu-toggle {
    display: block; /* Mostra l'icona hamburger */
    color: var(--accent-color); /* L'icona diventa nera */
  }

  /* Hamburger Menu: animazione e posizionamento per lo stile "Amiro" */
  .nav-links {
    position: fixed;
    right: -100%; /* Il menu parte fuori dallo schermo */
    top: 70px;
    height: calc(100vh - 70px);
    background-color: rgba(226, 224, 223, 0.98); /* Sfondo chiaro del menu */
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 40px;
    transition: right 0.4s ease-in-out;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    margin-bottom: 30px;
  }

  .nav-links a {
    color: var(--accent-color); /* Testo nero sui link del menu mobile */
    font-size: 1.5rem;
  }

  /* Testi Hero ottimizzati */
  .hero-content h1,
  .shop-hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
  }
  .hero-content p {
    font-size: 1rem;
    padding: 0 10px;
  }

  /* Chi siamo minimalista: incolonna foto e testo su mobile */
  .about-minimal {
    flex-direction: column;
  }
  .about-minimal-image,
  .about-minimal-text {
    width: 100%;
  }
  .about-minimal-image img {
    min-height: 400px;
  }
  .about-minimal-text {
    padding: 60px 20px;
  }
  .about-minimal-text h2 {
    font-size: 3rem;
  }

  /* Prezzi incolonnati su mobile */
  .price-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 0;
    text-align: left;
  }
  .price-tag {
    margin-top: 10px;
    font-size: 1.8rem;
  }

  /* Griglie shop trasformate in singola colonna */
  .products-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .whatsapp-banner h2 {
    font-size: 2rem;
  }
  .whatsapp-banner p {
    font-size: 0.95rem;
  }
}
