body {
  margin: 0;
  font-family: Inter, sans-serif;
  background-color: #FAF1E6;
  margin-left: auto;
  margin-right: auto;
}
/* --- header originale --- */
header {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 78px;
  background-color: white;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 5;
  transition: height 0.3s ease; /* 🔹 transizione morbida */
}


/* Fix logo and nav positions so they don't move when header height changes */

header .logo img {
  width: 285px;
  height: 90px;
  object-fit: contain;
}

header .logo {
  position: absolute;
  left: 78px;
  top: 22px;
  z-index: 6;
}

header nav {
  position: absolute;
  right: 78px;
  top: 64px;
  display: flex;
  align-items: center;
  z-index: 6;
  font-size:20px;
}

nav {
  display: flex;
  align-items: center;
}

nav a {
  margin-left: 30px;
  text-decoration: none;
  color: black;
  font-weight: bold;
  position: relative;
}

/* === Dropdown === */
.dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 100%; /* parte sotto il bottone */
  left: 0;
  background-color: white;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  min-width: 220px;
  z-index: 10;
  padding: 8px 0 0 0;
}

.dropdown-content a {
  padding:5px 0 ;
  text-decoration: none;
  color: black;
  font-weight: normal;
}

.dropdown-content a:hover {
  background-color: #f5f5f5;
}

/* 🔹 Quando passo sopra, mostra il menu */
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Also show menu when JS toggles the 'open' class (click behavior) */
.dropdown.open .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero {
  position: relative;
  display: flex;
  width: 100%;
  height: 1024px;          /* finestra visibile */
  overflow: hidden;        /* maschera solo orizzontale */
  margin: 0;
  
}


.hero img {
  position: relative;    
   justify-content: center;/* rimane fissa rispetto alla viewport */
  left: 50%;
  transform: translateX(-50%);
  height: 1024px;           /* dimensione originale */
  width: 4036px;
  object-fit: cover;
  z-index: -1;              /* resta dietro il contenuto della pagina */
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 85px;                 /* distanza dal bordo sinistro */
  transform: translateY(-50%); /* centra verticalmente */
  font-family: rubik, serif;
  font-size: 96px;
  font-weight: 700;
  color: white;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.6);
  pointer-events: none;
  z-index: 20;
}

.le-nostre-armi {
  background-color: #FFFFFF;
  height: 752px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.le-nostre-armi-wrapper {
  display: flex;
  align-items: center;
  gap: 74px;
  width: 1440px;
  padding: 62px;
  box-sizing: border-box;
}

.le-nostre-armi-img {
  width: 625px;
  height: 590px;
  object-fit: cover;
}


.le-nostre-armi-text p {
  font-family: Playfair;
  font-weight: 700;
  font-style: Bold;
  font-size: 48px;
  line-height: 100%;
  letter-spacing: -2%;
  text-align: justify;
}

.sezione {
  padding: 36px 0;
  text-align: center;
}

.sezione h2 {
  font-family: Playfair, serif;
  font-weight: 700;
  font-size: 48px;
  line-height: 100%;
  letter-spacing: -2%;
  margin-top: 0;
  margin-bottom: 50px;
}

.grid {
display: grid;
grid-template-columns: repeat(3, minmax(50px, 3fr));  /* ✅ colonne flessibili */
gap: 36px;
justify-content: center;
margin: 0 78px 0 78px;
}

  .quadrato, .rettangolo, .rettangolo_largo {
overflow: hidden;
height: 405px;            /* ✅ altezza fissa */
}

.rettangolo {
  grid-column: span 2;      /* mantiene proporzione */
  height: 405px;
}

.rettangolo_largo {
  grid-column: span 3;      /* mantiene proporzione */
  height: 405px;
}

.quadrato img, .rettangolo img, .rettangolo_largo img{
width: 100%;
height: 100%;
object-fit: cover;
} 

.le-nostre-armi-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 74px;
  width: 100%;              /* ✅ ora occupa tutto lo spazio disponibile */
  max-width: 1440px;        /* ✅ resta centrata */
  margin: 0 auto;
  padding: 62px;
  box-sizing: border-box;
}

.immagine-con-testo {
  position: relative;
  width: 100%;
  height: 100%;
}

.immagine-con-testo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.immagine-con-testo .testo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: rubik, serif;
  font-size: 24px;
  font-weight: 700;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  pointer-events: none;
  text-align: center;
}
.colore-chiaro {
  background-color: #D1D4AC;
}

.colore-scuro {
  background-color: #775948;
}

.colore-grigio {
  background-color: #D9D9D9;
}

.altro-large {
  width: 1287px;
  height: 405px;
  background-color: #ccc;
  margin: 0 auto;
}

.rettangolo-266 {
  height: 180px;
  background-color: #D1D4AC;
  width: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

/* .slides diventa il "track" che scorre */
.slides {
  display: flex;
  align-items: center;
  gap: 200px;                 /* spazio tra loghi */
  width: max-content;        /* fondamentale per il nastro */
  height: 100%;

  /* niente transition qui */
  transition: none;

  /* animazione continua */
  animation: logo-scroll 26s linear infinite;
  will-change: transform;
}

/* Ogni slide NON deve più occupare il 100% */
.slide {
  flex: 0 0 auto;            /* importante */
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  height: 100px;
  width: auto;
  display: block;
}

/* scorre di una "sequenza" intera (perché la duplichiamo in JS) */
@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

footer {
  background-color: white;
}

.footer-content {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 48px;
  padding: 44px 78px;
  box-sizing: border-box;
}

.footer-contatti {
  display: flex;
  flex-direction: column;
  flex: 1;
}

footer p {
  font-family: rubik, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: #000;
  margin: 0;
}

.footer-map-link {
  display: inline-block;
  width: fit-content;
  margin-top: 14px;
  font-family: rubik, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #775948;
  text-decoration: none;
}

.footer-map-link:hover {
  text-decoration: underline;
}

.footer-map {
  flex: 1.35;
  min-height: 220px;
}

.footer-map iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  display: block;
}

.footer-title {
  font-family: "Playfair", serif;
  font-weight: 700;
  font-size: 48px;
  color: #1B4C23;
  margin: -5px 0 22px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: grid;
  grid-template-columns: 36px auto;
  align-items: center;
  column-gap: 16px;
  font-family: rubik, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: #000;
}

.footer-contact-icon-wrap {
  width: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-contact-icon {
  width: auto;
  height: auto;
  max-width: none;
}

.sidebar {
  width: 260px;
  height: auto;
  background: white;
  box-sizing: border-box;   /* ✅ evita aumento dimensione */
  padding: 51px 0 0 78px;
}
.filters-title {
  font-family: Playfair, serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 18px;
}

.filter-group {
  margin-bottom: 12px;
}

.filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  padding-right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: rubik, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #000;
}

.filter-toggle .caret {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #000;
  border-bottom: 1.5px solid #000;
  transform: rotate(-45deg);      /* freccetta tipo ">" */
  margin-right: 4px;
  transition: transform 0.2s ease;
}

.filter-group.open .filter-toggle .caret {
  transform: rotate(45deg);       /* freccetta in giù a gruppo aperto */
}

.filter-options {
  display: none;
  margin-top: 6px;
  margin-left: 14px;
}

.filter-group.open .filter-options {
  display: block;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-bottom: 4px;
}

.filter-option input[type="radio"] {
  margin: 0;
  accent-color: #775948;          /* colore pallino selezione */
}

.griglia-prodotti {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 35px;
  padding-right: 75px;
  padding-bottom: 50px;
  justify-content: center; /* così quando sono poche restano centrali */
}
.scheda {
  width: 100%;              /* prende tutta la larghezza della colonna */
  aspect-ratio: 1 / 1;      /* resta un quadrato responsive */
  background-color: #FAF1E6;
  display: block;
  transition: transform 0.2s ease;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.scheda img {
  width: 100%;
  height: 100%;
  object-fit: scale-down;
  background-color: #FAF1E6;
}

.scheda:hover {
  transform: scale(1.03);
}
.prodotto {
  max-width: 400px;
}
.prodotto h3 {
  font-family: rubik , sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #000;
  margin: 0;
  padding: 15px 0 0 0;
}

.prodotto p {
  font-family: rubik display, sans-serif;
  font-size: 20px;
  color: #000;
  margin: 10px 0 10px 0;
}

/* 🔻 QUI cambia rispetto a prima */
.prodotto h3,
.prodotto p {
  width: 100%;              /* non più 250px */
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
main {
  background-color: #FAF1E6;
  width: 100%;
  margin: 0 auto;
  padding-top: 0px;
  display: flex;
  z-index: 1;
}

.contenuto {
  flex: 1;
  padding-left:70px;
}

.contenuto-prodotti-full {
  width: 100%;
  padding-left: 78px;
  box-sizing: border-box;
}

.contenuto-prodotti-full .griglia-prodotti {
  padding-right: 78px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.btn-back {
  background-color: transparent;
  border: 1px solid #775948;
  color: #775948;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 20px;
  margin-bottom: 20px;
  margin-left:20px;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background-color: #775948;
  color: white;
}
    /* ==========================================================
   📏 RESPONSIVE DESIGN
   ========================================================== */



}
/* 💻 Schermi molto grandi (>1440px)
   → le sezioni centrali si allargano, ma restano proporzionate */
@media screen and (min-width: 1441px) {


  .grid {
    max-width: 98%;
  }

  .le-nostre-armi-wrapper {
    max-width: 90%;
  }

}

/* 📱 Tablet (tra 910px e 1440px)
   → 1 colonna, immagini più grandi, testo centrato */
@media screen and (max-width: 1440px) {

  header {
    flex-direction: column;
    padding: 20px;
  }
  
  .hero {
  height: 1024px;          /* finestra visibile */
}
  .hero img {
    width: 100%;
    height: auto;
  }


  .quadrato, .rettangolo, .rettangolo_largo {
    height: 350px;
  }

  .le-nostre-armi-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
}
  /* On tablet and smaller, reset to normal flow so header stacks correctly */


@media screen and (max-width: 1024px) {
    
.quadrato, .rettangolo, .rettangolo_largo {
    height: 200px;
  }
  
  header {
      height: 160px;
  }   /* On tablet and smaller, reset to normal flow so header stacks correctly */
  header .logo,
  header nav {
    position: static;
    display: flex;
    font-size:20px;
  }

  header nav {
    margin-top: 15px;
    margin-bottom: 15px;
  }
  .immagine-con-testo .testo-overlay {
    font-size: 20px;
  }
}


@media screen and (max-width: 730px) {

  header nav {
    font-size:10px;
  }
  
  .immagine-con-testo .testo-overlay {
  font-size: 10px;
  }
  .quadrato, .rettangolo {
    height: 150px;
  }
  .grid {
     margin: 0 10px 0 10px;
     gap: 10px;
  }
  .hero {
  height: 512px;          /* finestra visibile */
  overflow: hidden;        /* maschera solo orizzontale */
}
  .hero-text {
      font-size:50px;
      left:10px;
  }
  
  .hero img {

  height: 512px;

}
 .rettangolo-266 {
    height: 90px;
 }
 .slide img {
  height: 50px;
}

.slides {

  gap: 100px;                 /* spazio tra loghi */

}

  .footer-content {
    flex-direction: column;
    gap: 24px;
    padding: 32px 20px;
  }

  .footer-map {
    min-height: 240px;
  }
}