

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Gotham Bold */
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/GothamBold.woff2') format('woff2'),
       url('../fonts/GothamBold.woff') format('woff'),
       url('../fonts/Gotham Bold.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

/* Gotham Light */
@font-face {
  font-family: 'Gotham';
  src: url('../fonts/GothamLight.woff2') format('woff2'),
       url('../fonts/GothamLight.woff') format('woff'),
       url('../fonts/Gotham-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
}
@supports (-webkit-touch-callout: none) {
  .navbar {
    display: -webkit-flex;
  }
}

/* ✅ Navbar layout desktop */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background-color: white;
  box-sizing: border-box;
  flex-wrap: nowrap;
  height: 80px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-section {
  flex-shrink: 0;
}

main {
  margin-top: 80px;
  padding: 32px;
}

.logo {
  flex: 0 0 auto;
  max-width: 150px;
}

.logo img {
  width: auto;
  height: 70px;
  display: block;
}


/* 🔹 Menu centrato */
.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  flex-grow: 1;
  gap: 50px;
  margin: 0;
  padding: 0;
}

.menu li a {
  text-decoration: none;
  font-family: 'Gotham', sans-serif;
  font-weight: bold;
  font-size: 16px;
  color: #c36d27;
}


.menu li a:hover {
  color: #a44e17;
}

/* 🔹 Icona a destra */
.icon-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.icon {
  width: 30px;
  height: auto;
  margin-left: 20px;
}

.icon:hover {
  opacity: 0.7;
}

 

/* Carosello */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.carousel-container {
  position: relative;
  width: 100%; /* Adatta alla tua esigenza */
  overflow: hidden;
}
.carousel {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100vw; /* Assicura che il carosello occupi tutta la larghezza */
}

.carousel img {
  width: 100vw;  /* Occupa tutta la larghezza dello schermo */
  height: 720px;  /* Altezza fissa */
  object-fit: cover;  /* Evita distorsioni ritagliando l'immagine */
  flex: 0 0 100vw;  /* Impedisce che le immagini si restringano */
}

.dots {
  text-align: center;
  position: absolute;
  bottom: 20px;
  width: 100%;
  z-index: 10;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active,
.dot:hover {
  background-color: rgba(255, 255, 255, 1);
}
.click-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 5;
  cursor: pointer;
}
.click-zone.left {
  left: 0;
}
.click-zone.right {
  right: 0;
}



* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* CAROSELLO BASE (desktop + mobile) */
.carousel2 {
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}
.carousel3 {
  width: 100%;
  max-width: 1200px;
  height: 90vh;
  overflow: hidden;
  position: relative;
  margin: 0 auto;
}

.carousel2-track,
.carousel3-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
  height: 100%;
}

.carousel2-item,
.carousel3-item {
  flex: 0 0 100%; /* mostra 1 solo box per volta */
  max-width: 100%;
  height: 100%;
}

.carousel2-item img,
.carousel3-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Stile di base per il carosello */
/* Carosello 5 */
.carousel5 {
position: relative;
width: 1200px;
height: 650px;
margin: 0 auto;
overflow: hidden;
margin-top: 90px;
}

.carousel5-images {
display: flex; /* immagini in fila orizzontale */
transition: transform 0.5s ease-in-out;
width: 100%;
height: 100%;
}

.carousel5-item {
position: relative;
min-width: 100%; /* ogni immagine occupa tutta la larghezza */
height: 100%;
flex-shrink: 0; /* impedisce il restringimento */
display: flex;
justify-content: center;
align-items: center;
}

.carousel5-item img {
width: 100%;
height: auto;
object-fit: cover;
transition: opacity 0.3s ease;
}

/* Caption centrata */
.caption {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: black;
font-size: 28px;
font-weight: bold;
text-align: center;
opacity: 0;
transition: opacity 0.3s ease;
z-index: 2;
}

/* Hover: mostra testo e opacizza immagine */
.carousel5-item:hover .caption {
opacity: 1;
}

.carousel5-item:hover img {
opacity: 0.6;
}

/* Frecce navigazione */
button.prev, button.next {
position: absolute;
top: 50%;
transform: translateY(-50%);
background-color: rgba(0, 0, 0, 0.5);
color: white;
border: none;
font-size: 30px;
padding: 10px 15px;
cursor: pointer;
z-index: 5;
}

button.prev {
left: 20px;
}

button.next {
right: 20px;
}

button:hover {
background-color: rgba(0, 0, 0, 0.8);
}







.testo .testoltre{
  margin-top: 120px; 
}

.title {
  font-size: 32px;
  font-weight: bold;
  color: #c36d27;
  text-align: center;
}

.titleoltre {
  font-size: 32px;
  font-weight: bold;
  color: #c36d27;
  text-align: center;
}

.subtitle, .subtitleterra {
  margin-top: 20px;
  font-size: 18px;
  font-weight: lighter;
  color: black;
}



.testo2 {
  margin: 0px;
  margin-top: 120px; 
}

.title2 {
  font-size: 32px;
  font-weight: bold;
  color: #c36d27;
}

.title3 {
  font-size: 32px;
  font-weight: bold;
  color: #c36d27;
  text-align: left;
}

.title4 {
  font-size: 32px;
  font-weight: bold;
  color: #c36d27;
  text-align: left;
  margin-left: 113px;
}


.spazio {
  display: block;
  margin-top: 20px;
}

.subtitle2 {
  margin: 20px 130px 0px 113px;
  font-size: 18px;
  font-weight: lighter;
  color: black;
}

.subtitle3 {
  margin-top: 20px;
  font-size: 18px;
  font-weight: lighter;
  color: black;
  text-align: center;
}

.subtitle {
  margin-top: 20px;
  font-size: 18px;
  font-weight: lighter;
  color: black;
  text-align: left;
}

.subtitleterra {
  margin-top: 20px;
  font-size: 18px;
  font-weight: lighter;
  color: black;
  text-align: center;
}

.title5 {
  text-align: center;
}

.subtitle5 {
  margin-top: 20px;
  font-size: 18px;
  font-weight: lighter;
  color: black;
  text-align: center;
}

.frase {
  display: block;  /* Forza il contenuto a essere un blocco, rispettando il <br> */
  text-align: center; /* Centra il testo */
  margin-top: 80px;
  font-size: 18px;
  font-weight: lighter;
  color: black;
  white-space: normal;
}



strong, b {
  font-weight: 600 !important; /* Forza il massimo spessore */
  color: black; /* Assicurati che il colore sia scuro */
}

b2 {
  font-weight: 600 !important; /* Forza il massimo spessore */
  color: rgb(255, 255, 255); /* Assicurati che il colore sia scuro */
}

img {
  width: 100%;   /* Occupa tutta la larghezza del contenitore */
  height: auto;  /* Mantiene le proporzioni originali */
  display: block; /* Evita spazi indesiderati sotto l'immagine */
}


.testob {
  margin: 120px;
  margin-top: 120px; 
  margin-bottom: 100px;
}

.text-birre {
  height: 100%; /* Assicura che il body occupi l'intera altezza */
  display: flex;
  justify-content: center; /* Centra orizzontalmente */
  align-items: center; /* Centra verticalmente */
  margin-top: 70px;
  margin-bottom: 50px;
  font-size: 20px;
  font-weight: lighter;
  color: black;
  text-align: center;
}



@keyframes slide {
  0% { transform: translateX(0); }
  20% { transform: translateX(0); }
  25% { transform: translateX(-100%); }
  45% { transform: translateX(-100%); }
  50% { transform: translateX(-200%); }
  70% { transform: translateX(-200%); }
  75% { transform: translateX(-300%); }
  95% { transform: translateX(-300%); }
  100% { transform: translateX(-400%); }
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin-top: 60px;
  margin-bottom: 100px;
}

.container3 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin-top: 60px;
  margin-bottom: 100px;
  margin-left: 115px;
}

.container4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin-top: 60px;
  margin-bottom: 100px;
  margin-left: 115px;
}

.container5 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin-top: 60px;
  margin-bottom: 100px;
  margin-left: 115px;
}

.box2 {
  flex: 1;
  width: 50%;
  height: auto;
  margin-top: 40px;
}

.box2-text {
  margin-left: 4px !important;
}

.box-text2 {
  background-color: white;
  padding: 20px;
  margin-left: -30px;
  text-align: left;
}

.box-text2 h2 {
  margin-bottom: 10px;
  font-size: 32px;
  font-weight: bold;
  color: #c36d27;
}

.box-text22 {
  margin-left: 40px;
}

.box-text2 p {
  font-size: 18px;
  font-weight: lighter;
  color: black;
}

.box-image2 {
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  height: 300px;

}

.boxi1 {
  margin-top: 50px;
}

.boxi2 {
  margin-top: 50px;
}

.boxi {
  margin-top: 50px;
}

.box-image4 img {
  max-width: 100%;
  height: auto;
  margin-left: 10px;
}

.box-image5 {
  flex: 1;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.box-image5 img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-left: -20px;
}

.box-image2 img {
  max-width: 100%;
  height: auto;
}

.box3-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin-bottom: 150px;
}

.box3 {
  flex: 1;
  height: 300px;
  margin-left: -26px;
}

.box3-text {
  background-color: white;
}

.box3-text h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.box3-text p {
  font-size: 16px;
  line-height: 1.5;
  font-weight: lighter;
}

.box3-image {
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.box3-image img {
  max-width: 60%;
  height: auto;
  margin-left: 82px;
  margin-top: 155px;
}

.foto2 {
  margin: 115px;
}

.foto3 {
  margin: 115px;
}



.container6 {
  display: flex;
  width: 1200vw;
  height: 500px;
  align-items: stretch;
  margin: 80px 0 50px 0;
  overflow: hidden;
}

.titleterra {
  margin-top: 40px; 
}

.titleoltre {
  margin-top: 40px; 
}

.box6, .box7 {
  flex: 1 1 70%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.box-text6, .box-text7 {
  width: 100%;
  font-size: 18px;
  font-weight: lighter;
  color: black;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: left;
}

.box-image6 {
  width: 100%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: right;
}
.box-image7 {
  width: 100%;
  height: 80%;
  display: flex;
  align-items: center;
  justify-content: left;
}
.box-image6 img, .box-image7 img {
  width: 80%;
  height: 80%;
  object-fit: cover;
}



.three-boxes2 {
  display: flex;
  justify-content: center;
  gap: 200px; /* Riduci il gap tra le box */
  margin-top: 120px;
}

/* 3 Box */
.three-boxes {
  display: flex;
  justify-content: center;
  gap: 165px; /* Riduci il gap tra le box */
  padding: 30px; /* Riduci il padding attorno alle box */
  margin-top: 80px;
}

.box {
  width: 15%; /* Riduci la larghezza della box */
  text-align: center;
}

.box img {
  width: 100%; /* Mantieni l'immagine a larghezza piena all'interno della box */
  border-radius: 10px;
}

.btn { 
  display: block; /* Cambiato da inline-block a block */
  margin: 30px auto; /* Centra orizzontalmente */
  padding: 16px 16px; /* Mantiene il padding ridotto */
  background-color: #c36d27;
  color: white;
  text-decoration: none;
  text-align: center;
  border-radius: 5px;
  width: fit-content; /* Impedisce che il bottone occupi tutta la larghezza */
}

.content {
  margin-top: 50px;
  display: flex;
  justify-content: space-between; /* Aggiunge spazio tra immagine e testo */
  width: 100%; /* La larghezza totale è 100% della pagina */
}

.content img {
  margin-top: 45px;
}

.content2 {
  display: flex;
  justify-content: space-between; /* Aggiunge spazio tra immagine e testo */
  width: 100%; /* La larghezza totale è 100% della pagina */
}

.content2 text {
  margin-top: 50px;
}

.image, .text {
  width: 50%; /* Ogni elemento occupa metà della larghezza */
}

.image img {
  width: 100%; /* Immagine prende tutta la larghezza del suo contenitore */
  height: auto; /* Mantiene le proporzioni dell'immagine */
}

.text {
  padding: 120px; /* Aggiungi padding se vuoi dare un po' di spazio intorno al testo */
  box-sizing: border-box; /* Assicura che il padding venga incluso nel calcolo della larghezza */
  font-size: 36px;
  text-align: center;
}

.text-center {
  margin-top: 70px;
  text-align: center;
  font-size: 36px;
  font-weight: bolder;
  color: #c36d27;
}




.content3 {
  margin-top: 90px;
  display: flex;
  width: 100%; /* Occupa tutta la larghezza disponibile */
  height: 500px; /* Imposta altezza fissa o auto-adattabile */

  justify-content: center; /* Centra orizzontalmente */
  align-items: stretch; /* Centra verticalmente */
}

.image {
  flex: 1; /* Permette all'immagine di occupare una parte della larghezza */
  max-width: 50%; /* Limita la larghezza massima dell'immagine al 50% */
  height: 100%; /* <-- Assicura che stia tutta in altezza */

}

.image img {
  width: 100%; /* Fa sì che l'immagine si adatti al contenitore */
  height: 100%; /* Mantiene le proporzioni dell'immagine */
  object-fit: cover; /* Fa in modo che l'immagine si adatti senza deformarsi */
}

.image2 img {
  width: 80%; /* Fa sì che l'immagine si adatti al contenitore */
  height: 100%; /* Mantiene le proporzioni dell'immagine */
  object-fit: cover; /* Fa in modo che l'immagine si adatti senza deformarsi */
  margin-left: 90px;
}

.text-box {
  width: 50%;
  background-color: #c36d27;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Centro verticale del contenuto */
  height: 100%; /* <-- Altezza uguale a quella della sezione */
  padding: 40px;
}

.text-box p {
  font-size: 36px;
  margin-top: 50px;
  margin-bottom: 15px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: fit-content;
  justify-content: center;
  align-items: center;
}

input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  width: 80%;
  margin: 0 auto;
}

label {
  text-align: left;
  font-size: 16px;
  color: white;
  margin-bottom: 5px;
  display: block;
  width: 100%;
}

.btn:hover {
  background-color: #fff5d1;
}



.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  min-width: 160px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1001;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  padding: 10px 15px;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* Contenitore */
.container2 {
max-width: 1200px;
margin: auto;
padding: 2rem;
text-align: center;
margin-top: 90px;
}

h1 {
font-size: 32px;
color: #c36d27;
font-weight: bolder;
}

h4 {
font-size: 18px;
font-weight: lighter;
color: black;
margin-bottom: 40px;
margin-top: 30px;
}

/* Griglia */
.grid5 {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
gap: 30px;
margin-top: 2rem;
}

.box5 {
border: 1px solid #ccc;
border-radius: 15px;
padding: 15px;
cursor: pointer;
transition: transform 0.2s, box-shadow 0.2s;
background: #fdfdfd;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
}

.box5:hover {
transform: scale(1.03);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.box5 canvas {
width: 100%;
height: auto;
border-radius: 10px;
}

.box5 p {
margin-top: 10px;
font-weight: bold;
text-align: center;
}

.box5 img {
width: 100%;
height: auto;
max-height: 200px;
object-fit: contain;
border-radius: 10px;
}

.image-grid {
display: flex;
flex-wrap: wrap;

gap: 20px;
max-width: 1200px;
margin: 50px auto;
}

.image-box8, .image-box9, .image-box10, .image-box11, .image-box12 {
display: flex;
flex-direction: column;
width: calc(33.33% - 20px); /* 3 per riga con spazio tra */
text-decoration: none;
color: inherit;
transition: transform 0.3s ease;
}

.image-box8:hover, .image-box9:hover, .image-box10:hover, .image-box11:hover, .image-box12:hover {
transform: scale(1.03);
}

.image-box8 img, .image-box9 img, .image-box10 img, .image-box11 img, .image-box12 img {
width: 100%;
height: 300px;
object-fit: cover;
border-radius: 10px;
}

.text-box8, .text-box9, .text-box10, .text-box11, .text-box12 {
margin-top: 10px;
text-align: left;
}

.text-box8 h2, .text-box9 h2, .text-box10 h2, .text-box11 h2, .text-box12 h2 {
font-size: 20px;
margin: 5px 0;
}

.text-box8 h4, .text-box9 h4, .text-box10 h4, .text-box11 h4, .text-box12 h4 {
font-size: 16px;
color: black;
margin: 3px 0;
}

.text-box8 p, .text-box9 p, .text-box10 p, .text-box11 p, .text-box12 p {
font-size: 14px;
color: #777;
margin-top: 5px;
}



.containerb {
  max-width: 1200px;
  margin: 0 auto;
}

.gridb {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 20px;
}

.gridb2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.boxb {
  background: white;
  text-align: center;
  padding: 10px;
  text-decoration: none;
  color: black;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.boxb:hover {
  transform: scale(1.02);
}

.boxb h1 {
  margin: 0 0 10px 0;
  line-height: 1.3;
  font-weight: bold;
  font-size: 24px;
  color: #c36d27;
}

.boxb h4 {
  margin: 0 0 10px 0;
  line-height: 1.3;
  font-size: 17px;
  font-weight: lighter;
  color: black;
}

.boxb img {
  height: auto;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.box:hover img {
  transform: scale(1.05);
}

.beer-line {
  display: flex;
  align-items: center;
  gap: 8px; /* spazio tra scritta e logo */
  justify-content: center;
  
}

.beer-line h4 {
  margin: 0; /* rimuove margini che potrebbero rompere l’allineamento */
}

.gluten-logo {
  width: 13%;
  height: auto;
}
.hop-container {
  display: flex;
  gap: 25px; /* spazio tra le immagini */
  align-items: center; /* allineamento verticale */
  margin-bottom: 20px;
}

.hop-logo {
  width: 25px; /* o qualsiasi dimensione preferisci */
  height: auto;
}
.hop-logo-lup {
  width: 25px; /* o qualsiasi dimensione preferisci */
  height: auto;
}
.hop-logo-den {
  width: 15px; /* o qualsiasi dimensione preferisci */
  height: auto;
}




.dettaglio {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin: 40px auto;
}

.dettaglio img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
}

.testo-dettaglio {
  flex: 1;
  min-width: 250px;
}

.testo-dettaglio h2 {
  margin-top: 0;
}


.titlenews {
font-size: 32px;
font-weight: bold;
color: #c36d27;
text-align: center;
}

.subtitlenews {
margin-top: 20px;
font-size: 18px;
font-weight: lighter;
color: black;
}

.testonews2 {
margin-top: 120px;
}

.titlenews2 {
font-size: 32px;
font-weight: bold;
color: #c36d27;
text-align: left;
}

.subtitlenews2 {
margin-top: 20px;
font-size: 18px;
font-weight: lighter;
color: black;
}

.text-news {
padding: 0px 120px;
text-align: center;
}

.text-news h2 {
font-size: 32px;
font-weight: bold;
color: #c36d27;
text-align: center;
}

.text-news2 {
padding: 15px 120px;
text-align: left;
}

.text-news2 h2 {
font-size: 32px;
color: #c36d27;
}

.text-news22 {
  padding: 15px 120px;
  text-align: left;
  }
  
  .text-news22 h2 {
  font-size: 32px;
  color: #c36d27;
  }

.text-news3 {
padding: 0px 120px;
text-align: left;
}

.text-news3 h2 {
font-size: 32px;
color: #c36d27;
}

.text-rabbit {
padding: 0px 120px;
text-align: center;
margin-bottom: 110px;
}

.text-rabbit h2 {
font-size: 32px;
font-weight: bold;
color: #c36d27;
text-align: center;
}

.text-containernews {
display: flex;
justify-content: space-between;  /* Distanza tra i box di testo e l'immagine */
gap: 20px;  /* Spazio tra i box di testo e l'immagine */
max-width: 1200px;
margin: 0px 120px 0px;
}

.text-canzone {
text-align: center;
flex: 1;
}

.text-canzone h4 {
line-height: 1.5;
}

.text-canzone h2 {
font-size: 32px;
margin-bottom: 10px;
color: #c36d27
}

.text-boxnews {
width: 48%;  /* I box di testo occupano il 48% dello spazio disponibile */
margin-bottom: 20px;  /* Distanza tra i box di testo */
margin-top: 60px;
}

.text-boxnews h2 {
font-size: 32px;
margin-bottom: 10px;
color: #c36d27
}

.text-boxnews h4 {
font-size: 18px;
color: black;
line-height: 1.5;
}

.image-boxnews {
width: 40%;  /* L'immagine occupa il 48% dello spazio disponibile */
display: flex;
align-items: stretch;  /* Fa sì che l'altezza dell'immagine corrisponda a quella dei box di testo */
justify-content: center;
}

.image-boxnews img {
width: 100%;
height: 100%;  /* L'immagine occupa tutta l'altezza del contenitore */
object-fit: contain;  /* L'immagine si adatta senza deformarsi */
}

.text-containernews2 {
display: flex;
justify-content: space-between;  /* Distanza tra i box di testo e l'immagine */
gap: 20px;  /* Spazio tra i box di testo e l'immagine */
max-width: 1200px;
margin: 0px 120px;
}

.text-boxnews2 {
width: 48%;  /* I box di testo occupano il 48% dello spazio disponibile */

}

.text-boxnews2 h2 {
font-size: 24px;
margin-bottom: 10px;
color: #c36d27
}

.text-boxnews2 h4 {
font-size: 18px;
color: black;
line-height: 1.5;
}

.image-boxnews2 {
width: 40%;  /* L'immagine occupa il 48% dello spazio disponibile */
display: flex;
align-items: stretch;  /* Fa sì che l'altezza dell'immagine corrisponda a quella dei box di testo */
justify-content: center;
}

.image-boxnews2 img {
width: 100%;
height: 95%; /* L'immagine occupa tutta l'altezza del contenitore */
object-fit: contain;  /* L'immagine si adatta senza deformarsi */
}

.image-boxlogo2 {
width: 40%;  /* L'immagine occupa il 48% dello spazio disponibile */
display: flex;
align-items: stretch;  /* Fa sì che l'altezza dell'immagine corrisponda a quella dei box di testo */
justify-content: center;
}

.image-boxlogo2 img {
width: 100%;
height: 100%; /* L'immagine occupa tutta l'altezza del contenitore */
object-fit: contain;  /* L'immagine si adatta senza deformarsi */
}


.ricetta-container {
max-width: 800px;
margin: 40px auto;
padding: 45px;
line-height: 1.6;
background-color: #fff8f1;
border-radius: 10px;
box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.ricetta-container h1 {
text-align: center;
font-size: 24px;
margin-bottom: 10px;
color: #c36d27
}

.ricetta-container p {
text-align: center;
}

.ricetta-container h2 {
font-size: 18px;
color: #c36d27;
}

.ricetta-img {
width: 30%;
height: auto;
margin: 20px 248px;
}

.ingredienti, .procedimento {
margin-left: 20px;
}

.ingredienti li {
margin-bottom: 5px;
}

.procedimento li {
margin-bottom: 10px;
}

.galleria-rola {
display: grid;
grid-template-columns: repeat(2, 1fr); /* 2 colonne */
grid-gap: 20px; /* Spazio tra le immagini */
justify-items: center;
padding: 0px 107px 50px;
}

.box-rola {
width: 600px;
height: 330px;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}

.box-rola img {
max-width: 100%;
max-height: 100%;
object-fit: cover;
display: block;
}


.galleria-personalizzata {
display: flex;
justify-content: center;
gap: 130px;
}

.box-personalizzato {
width: 200px; /* Dimensione fissa dei box */
height: 300px; /* Altezza fissa per i box */
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}

.box-personalizzato img {
width: 100%;
height: 100%;
object-fit: cover; /* Le immagini si adattano senza deformarsi */
}


.center-button {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 95px;
}

.btn-link {
  background-color: #c36d27;       /* Colore sfondo bottone */
  color: white;                  /* Colore testo */
  padding: 15px 30px;
  text-decoration: none;
  font-size: 18px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn-link:hover {
  background-color: #fff5d1;       /* Colore al passaggio del mouse */
}
.btn-link:hover,
.btn-link:visited,
.btn-link:active,
.btn-link:focus {
  text-decoration: none;
  color: white;
  background-color: fff5d1;
}

/* Footer responsive GIUSTO*/

footer {
  background-color: #222; /* Sfondo scuro */
  color: white;
  padding: 0;
  margin-top: 100px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap; /* utile anche per mobile */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  margin-top: 100px;
}

.footer-column {
  flex: 1;
  margin-top: 30px;
  margin-bottom: 30px;
}

.footer-column h3 {
  margin-bottom: 10px;
  font-size: 18px; 
  text-transform: uppercase;
  text-align: left;
}

.footer-column p, 
.footer-column a {
  font-size: 14px;
  color: #ccc;
  text-decoration: none;
  font-weight: lighter;
  text-align: left;
}

.footer-column a:hover {
  color: white;
}
.social-icons {
  display: flex;
  gap: 20px; /* spazio tra le due icone */
  margin-top: 20px; /* opzionale, solo per distanziare dal resto */
}

.iconaig {
  width: 10%;
  height: auto;
}

.iconafb {
  width: 10%;
  height: auto;
}

/* Logo nel footer */
.footer-logo {
  display: flex;
  justify-content: center;
  margin-left: -80px;
  margin-top: 50px;
}

.footer-logo img {
  max-width: 100px;
  height: auto;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.footer-logo img:hover {
  opacity: 1;
}
.footer-logo {
  flex: 0.5;
  display: flex;
  justify-content: left;
}

.comm-button {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Sezione per mobile - 6 box */
.mobile-only {
display: none;
flex-direction: column;
align-items: center;
justify-content: center;
margin-top: 20px;
}

.mobile-only .mobile-box {
width: 100%;
max-width: 320px;
height: 200px; /* Altezza fissa per ogni box */
margin: 10px 0;
background-size: cover;
background-position: center;
position: relative;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
border-radius: 10px;
cursor: pointer;
}

/* Contenuto del box (scritta sopra l'immagine) */
.mobile-only .box-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 20px;
font-weight: bold;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Aggiunge ombra alla scritta */
}

/* Link che copre l'intero box */
.mobile-only .box-link {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
text-decoration: none;
}

/* Bottone per il link */
.mobile-only .btn {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
padding: 10px 20px;
background-color: #3498db;
color: #fff;
text-decoration: none;
border-radius: 5px;
font-weight: bold;
}

.mobile-only .btn:hover {
background-color: #2980b9;
}

/* Navbar - Logo centrato nella versione mobile */
.logo-mobile {
display: block;
margin: 0 auto;
max-width: 150px; /* Aggiusta la dimensione del logo per mobile */
}

/* Mostra desktop, nasconde mobile di default */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}
.buta-wrapper {
  display: flex;
  gap: 20px;
  margin: 80px 100px;
  align-items: stretch;
  height: 385px; /* Altezza desiderata */

}

/* Colonne principali */
.buta-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 12px;
  box-sizing: border-box;
  padding: 20px;
}
.buta-left,
.buta-center,
.buta-right {
  height: 100%;
  overflow: auto;

}

/* Colonna 1: Immagine */
.buta-left {
  padding: 0;
  flex: 1.2; /* Più larga */
  padding: 0;
}

.buta-left img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

/* Colonna 2: centro colorato */
.buta-center {
  color: white;
}

.buta-center {
  flex: 1.0; /* Più stretta */
  overflow: hidden; /* Nasconde overflow */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.buta-center * {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
}
/* Colonna 3: bianca */
.buta-right {
  background-color: white;
  color: black;
  flex: 1.2; /* Più larga */
}

.buta-right h2 {
  color: #a99465;    
  font-size: 32px;
}

.buta-right p {
  color: black;    
  font-size: 18px;
  font-weight: lighter;
  color: black;
}

/* Icone luppolo */
.hop-section h4 {
  margin: 0px;
  font-weight: bolder;
  color: white;
}
.hop-section {
  padding: 25px;
}

.hop-container {
  display: flex;
  gap: 15px;
  margin: 9px;
}

.hop-logo {
  width: 30px;
  height: auto;
}

/* Info birra */
.beer-info {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.beer-info h4 {
  color: white;
}
.beer-info strong {
  color: white;
}

.buta {
  color: #fab80c;
  margin-top: 40px;
 }
 .colorbuta {
  background-color: #fab80c;
 
 }
 .titlebuta h2{
  color: #fab80c;
 
 }

 .maesa {
  color: #b49960;
  margin-top: 40px;
 
 }
 .colormaesa {
  background-color: #b49960;
 
 }
 .titlemaesa h2{
  color: #b49960;
 
 }
 
 
 .maffetta {
  color: #45bfb0;
  margin-top: 40px;
 
 }
 .colormaffetta {
  background-color: #45bfb0;
 
 }
 .titlemaffetta h2{
  color: #45bfb0;
 
 }


 .ventora {
  color: #02b5ed;
  margin-top: 40px;
 }

 .colorventora {
  background-color: #02b5ed;
 
 }
 .titleventora h2{
  color: #02b5ed;
 
 }
 
 .mamana {
  color: #b787bc;
  margin-top: 40px;
 }
 
 .colormamana {
  background-color: #b787bc;
 
 }
 .titlemamana h2{
  color: #b787bc;
 
 }
 
 .rola {
  color: #f6951c;
 
 }

.colorrola {
  background-color: #f6951c;
 
 }
 .titlerola h2{
  color: #f6951c;
 
 }
 
 .hoppela {
  color: #56b946;
  margin-top: 40px;
}

.colorhoppela {
 background-color: #56b946;

}
.titlehoppela h2{
 color: #56b946;

}

 .gluppa {
  color: #05a3d0;
  margin-top: 40px;
}

.colorgluppa {
 background-color: #05a3d0;

}
.titlegluppa h2{
 color: #05a3d0;

}

 .brugla {
  color: #ed1a2d;
  margin-top: 40px;
}

.colorbrugla {
 background-color: #ed1a2d;

}
.titlebrugla h2{
 color: #ed1a2d;

}
 
 .ripa {
  color: #a6ce3d;
  margin-top: 40px;
}

.colorripa {
 background-color: #a6ce3d;

}
.titleripa h2{
 color: #a6ce3d;
}

.nuzziale {
  color: #d6a447;
  margin-top: 40px;
}

.colornuzziale {
 background-color: #d6a447;

}
.titlenuzziale h2{
 color: #d6a447;
}

.mareggia {
  color: #9c6657;
  margin-top: 40px;
}

.colormareggia {
 background-color: #9c6657;

}
.titlemareggia h2{
 color: #9c6657;
}

.judith {
  color: #42656e;
  margin-top: 40px;
}

.colorjudith {
 background-color: #42656e;

}
.titlejudith h2{
 color: #42656e;
}
.eva {
  color: #42656e;
  margin-top: 40px;
}

.coloreva {
 background-color: #42656e;

}
.titleeva h2{
 color: #42656e;
}
.agnes {
  color: #42656e;
  margin-top: 40px;
}

.coloragnes {
 background-color: #42656e;

}
.titleagnes h2{
 color: #42656e;
}
 
.subtitle4 h1 {
  text-align: center;
}



/* Responsive */
@media (max-width: 768px) {
  .buta-wrapper {
    flex-direction: column;
    margin: 80px 50px;
    height: auto;
  }

  .buta-top-box {
    flex-direction: column;
  }

  .buta-bottom-boxes {
    flex-direction: column;
  }

  .buta-left img {
    height: auto;
  }
}

.colorb1 {
  background-color: #fab80c;
 
 }
 
 .colorb2 {
  background-color: #b49960;
 
 }
 
 .colorb3 {
  background-color: #45bfb0;
 
 }
 
 .colorb4 {
  background-color: #02b5ed;
 
 }
 
 .colorb5 {
  background-color: #b787bc;
 
 }
 
 .colorb6 {
  background-color: #f6951c;
 
 }
 
 .colorb7 {
  background-color: #56b946;
 
 }
 
 .colorb8 {
  background-color: #05a3d0;
 
 }
 
 .colorb9 {
  background-color: #ed1a2d;
 
 }
 
 .colorb10 {
  background-color: #a6ce3d;
 
 }
 
 .cookie-banner {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: white;
  color: black;
  padding: 1em;
  width: 300px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  z-index: 1000;
  display: none;
  font-size: 0.9rem;
}

.cookie-banner a {
  color: #c36d27;
  text-decoration: underline;
}

.cookie-banner button {
  background-color: #c36d27;
  color: white;
  border: none;
  padding: 0.5em 1em;
  margin-top: 0.5em;
  cursor: pointer;
  border-radius: 4px;
  float: right;
}






/* Quando lo schermo è piccolo (mobile), inverti */
@media screen and (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }
}


@media screen and (min-width: 769px) {
  .menu {
    display: flex !important;
    flex-direction: row;
    gap: 50px;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .text-containernews {
    flex-direction: column;  /* Disporre il contenuto verticalmente su schermi più piccoli */
    align-items: center;  /* Centra gli elementi su schermi piccoli */
  }
  
  .text-boxnews {
    width: 100%;  /* I box di testo occuperanno tutta la larghezza su schermi piccoli */
    margin-bottom: 20px;  /* Distanza tra i box di testo */
  }
  
  .image-boxnews {
    width: 100%;  /* L'immagine occuperà tutta la larghezza su schermi piccoli */
    margin-top: 20px;  /* Aggiunge uno spazio sopra l'immagine su schermi piccoli */
  }
 
  .text-containernews2 {
    flex-direction: column;  /* Disporre il contenuto verticalmente su schermi più piccoli */
    align-items: center;  /* Centra gli elementi su schermi piccoli */
  }
  
  .text-boxnews2 {
    width: 100%;  /* I box di testo occuperanno tutta la larghezza su schermi piccoli */
    margin-bottom: 20px;  /* Distanza tra i box di testo */
  }
  
  .image-boxnews2 {
    width: 100%;  /* L'immagine occuperà tutta la larghezza su schermi piccoli */
    margin-top: 20px;  /* Aggiunge uno spazio sopra l'immagine su schermi piccoli */
  }
  }

/* Media Query per dispositivi mobili */
@media screen and (max-width: 768px) {

@media screen and (max-width: 768px) {
.text-center {
  display: none; /* Nasconde il blocco quando la pagina è visualizzata su dispositivi mobili */
}
}

/* Mostriamo solo i box mobili */
.mobile-only {
display: flex;
margin: 50px;
}

/* Rende il logo proporzionato e centrato */
.logo-mobile {
max-width: 120px;
}

/* Footer per mobile */
footer {
padding: 10px;
}

.footer-container {
flex-direction: column;
align-items: center; /* Centra le colonne nel footer */
gap: 0px;
}

.footer-column {
width: 80%; /* Rende le colonne più strette e centrali su mobile */
text-align: center;
padding: 0px;
}


.footer-column h3 {
font-size: 16px;
text-align: center;
}

.footer-column p,
.footer-column a {
font-size: 12px;
text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;  /* centra orizzontalmente */
  text-align: center;   /* centra i testi */
  padding: 20px 10px;   /* un po' di padding ai lati */
  margin-top: -40px;
}

.footer-logo img {
  max-width: 100px;     /* riduci un po' il logo su mobile */
  height: auto;
  margin-left: 40px;
  margin-right: -35px;
}

.footer-column {
  width: 100%;          /* occupa tutta la larghezza possibile */
  max-width: 300px;     /* ma non troppo largo */
}

.social-icons {
  justify-content: center;  /* centra le icone social */
  display: flex;
  gap: 20px;
}
}





@media (max-width: 768px) {
  /* Container centrato */
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
  }

  .container3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 50px;
    text-align: center;
    margin-bottom: -15px;
    margin-left: 0px;
  }

  .container4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    margin-left: 0px;
  }
  .container5 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    margin-left: 0px;
  }

  .container.reverse {
    flex-direction: column-reverse;
  }

  .box-text2, .box-text22, .box-image4, .box-image5,.box-text6,
  .box-text7,.box-image6,.box-image7 {
    width: 90% !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .box-text6, .box-text7 {
    padding: 0px;
    margin-top: -30px;
    margin-bottom: 33px;
  }

  .box-text2 {
    margin-left: 0px;
  }

  .box-image4 img {
    margin-left: 0px;
}

.box-image5 img {
  margin-left: 0px;
}

 .box-image6 img, .box-image7 img {
  width: 100%;
}

  .foto2 {
    margin: 0px;
    margin-left: 35px;
    margin-right: 35px;
  }

  .titleterra  {
    margin-top: 40px; 
}

.box6 {
  margin-top: 40px; 
}
  .titleterra, .subtitleterra, .frase .title5  {
    margin-left: 40px; 
    margin-right: 40px; 
}


.subtitle5 {
  margin-left: 40px; 
  margin-right: 40px; 
}

.title5 {
  margin-top: 40px;
  margin-left: 40px; 
  margin-right: 40px; 
}

.titleoltre h1{

  margin-left: 40px; 
  margin-right: 40px; 
}

.titleoltre {
  margin-top: 40px;

}

.box6 {
  margin: 40px ; 
}
.box6-container {
  margin: 0px; 
}
.frase, .testo, .box2 {
  margin-top: 0px; 
}

  .box-image4 img,.box-image5 img, .box-image6 img,.box-image7 img {
    max-width: 100%;
    height: auto;
  }

  .subtitle4 h1 {
    font-size: 1.2rem;
    padding: 0px 20px 50px;
  }

  .box-text6 {
    padding: 0px; 
    margin-top: 0px;
    margin-bottom: 30px;
  }

  
}

/* ---------- MOBILE VERSION ---------- */
@media screen and (max-width: 768px) {

  /* Nascondiamo i contenuti desktop su mobile */
  .carousel-container,
  .three-boxes,
  .content,
  .content2,
  .content3,
  .text-center {
    display: none;
  }

  /* Mostra solo i box pensati per mobile */
  .mobile-only {
    display: flex;
    margin: 50px;
  }

  /* Navbar mobile layout */
  .icon-container {
    display: none ;
  }
  
  /* Solo nella home, la mostriamo */
  body.home .icon-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: -110px;
  }

  .navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 10px 20px;
    z-index: 1002;
  }

  .navbar .logo {
    display: flex;
    justify-content: center;
    flex: 1;
  }

  .logo {
    max-width: 100%;
  }

  .navbar .logo img {
    height: auto;
    max-height: 50px;
    width: auto;
  }
  

  .hamburger {
    display: block;
    font-size: 28px;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 18px;
    z-index: 1001;
    color: #c36d27;
  }

  .menu {
    display: none;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 70px;
    right: 20px;
    width: 200px;
    z-index: 1000;
    padding: 25px;
  }

  .menu.active {
    display: flex;
  }

  .menu li {
    width: 100%;
    text-align: center;
  }

  .menu li a {
    display: block;
    padding: 10px 0;
  }


}

/* Nasconde l’hamburger su desktop */
@media screen and (min-width: 769px) {
  .hamburger {
    display: none;
  }
}

@media (max-width: 768px) {
  #carousel5 {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    margin: 30px auto;
  }

  .carousel5-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
  }

  .carousel5-item {
    flex: 0 0 100%;
    position: relative;
  }


  .caption {
    font-size: 0.9rem;
    padding: 10px;
    text-align: center;
  }

  .prev,
  .next {
    top: 50%;
    font-size: 20px;
    padding: 5px 10px;
    transform: translateY(-50%);
  }

  .carousel5-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
  }
  
  
}

/* ✅ MOBILE: non cambia nulla, tutto si adatta */
@media (max-width: 768px) {

  .carousel3 {
    height: 300px; /* o auto, se vuoi che segua l'immagine */
  }


  .carousel3-item {
    height: 300px;
  }


  .carousel3-item img {
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .carousel22 {
    display: block;
    width: 100vw;
    height: 60vh;
    overflow: hidden;
    position: relative;
    margin-top: -75px;
  }

  .carousel22-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
  }

  .carousel22-item {
    flex-shrink: 0;
    width: 100vw;
    height: 100%;
  }

  .carousel22-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  .carousel2 {
    display: none;
  }
}

/* Nascondi il carosello su desktop */
@media (min-width: 769px) {
  .carousel22 {
    display: none;
  }

}

@media (max-width: 768px) {
  .carousel33 {
    display: block;
    width: 100vw;
    height: 60vh;
    overflow: hidden;
    position: relative;
    margin-top: -75px;
  }

  .carousel33-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
  }

  .carousel33-item {
    flex-shrink: 0;
    width: 100vw;
    height: 100%;
  }

  .carousel33-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }
  .carousel3 {
    display: none;
  }
}

/* Nascondi il carosello su desktop */
@media (min-width: 769px) {
  .carousel33 {
    display: none;
  }

}





  


@media (max-width: 768px) {
 

  .textb-boxb,
  .boxb,
  .boxb1 {
    flex: 1 1 100%;
  }

  .containerb {
    flex-direction: column;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 80%;
    height: auto;
    margin-left: 45px;
    margin-bottom: 30px;
    /* Centrare i box orizzontalmente e verticalmente */
    justify-content: center;
    align-items: center;
    text-align: center; /* Per centrare il testo all’interno */
  }
  
  /* Opzionale: centrare anche il testo nei paragrafi */
  .containerb p, 
  .containerb h2 {
    text-align: center;
  }

  .titolob4, .titolob1, .titolob2, .titolob3, 
  .titolob5 .titolob6 .titolob7 .titolob8 .titolob9 {
    margin-right: 0px;
    margin: 30px;
  }

  .titolob5 h2 {
    margin: 30px;  
  }
  .titolob5 {
    margin-right: 0px;  
    margin: 30px;
  }

  .titolob6 {
    margin-right: 0px;  
    margin: 30px;
  }

  .titolob7 {
    margin-right: 0px;  
    margin: 30px;
  }

  .titolob8 {
    margin-right: 0px;  
    margin: 30px;
  }

  .titolob9 {
    margin-right: 0px;  
    margin: 30px;
  }

.titolob3 h2, .titolob4 h2 {
  margin: 0px;

}
.textb-boxb h2 {
  margin: 0px;
}

  .textb-boxb { order: 1; }
  .boxb       { order: 2; }
  .boxb1      { order: 3; }

}

@media screen and (max-width: 768px) {
  /* Contenitore generale verticale */
  .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  /* Forziamo sempre l'ordine: prima testo poi immagine */
  .box-text2 {
    order: 1;
    width: 100%;
    text-align: center;
    padding: 0px;
  }

  .box-image2,
  .boxi1,
  .boxi2,
  .box3-image {
    order: 2;
    width: 100%;
    text-align: center;
  }

  .box-text2 p,
  .box-text2 h2,
  .box3 p,
  .box3 h2 {
    text-align: center;
  }

  .box-image2 img,
  .box3-image img {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* Box 3 (principi fondamentali) in stile mobile */
  .box3-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  /* Tre soci centrati verticalmente */
  .three-boxes2 {
    display: flex;
    align-items: center;
    gap: 50px;
    width: 100%;
    margin-top: 80px;
  }

  .three-boxes2 .box {
    text-align: center;
  }

  .three-boxes2 img {
    width: 100px;
    height: auto;
  }

  
  
  .title3 {
    text-align: center;
  }

  
  .box-image2, .boxi1 {
    margin-top: 0px;
  } 

  .title4  {
    margin: 0px 40px 40px 40px;
    text-align: center;
  }  
  .subtitle2  {
    margin: 40px;
    text-align: center;
  } 
  
  
  .subtitle  {
    margin-top: 0px;
    text-align: center;
  }  

  .testo2 {
    margin-top: -30px;
  }

  .container2 {
    margin-bottom: 70px;
    margin-top: 20px;
}
}

/* ✅ VERSIONE MOBILE */
@media screen and (max-width: 768px) {
  .image-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin: 40px;
  }

  .image-grid a {
    width: 100%;
  }

  .image-grid img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .text-box8,
  .text-box9,
  .text-box10,
  .text-box11,
  .text-box12 {
    text-align: left;
    padding: 10px 0;
  }

  .text-box12 {
    margin-bottom: 40px;
  }

  .titlenews {
    margin-top: 40px;
  }

  .text-news {
    padding: 0px;
    margin: 40px;
    text-align: left;
  }
  .text-news h2 {
    padding: 0px;
    margin: 0px;
    text-align: left;
  }

  .text-news2 {
    padding: 0px;
    margin: 40px;
    text-align: left;
    margin-bottom: 50px;
  }

  .text-news22 {
    padding: 0px;
    margin: 40px;
    text-align: left;
    margin-bottom: 120px;
  }

  .text-containernews {
    padding: 0px;
    margin: 40px;
    text-align: left;
  }

  .text-boxnews {
    margin: 0px;
  }

}

@media screen and (max-width: 768px) {

  /* Contenitore immagine singola + data */
  .foto2 {
    margin: 40px;
    text-align: left;
  }

  .foto2 img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
  }

  .foto2 p {
    text-align: left;
  }

  /* Titolo dopo l'immagine */
  .text-rabbit h2 {
    text-align: left;
  }
  .text-rabbit {
    padding: 0px;
    margin: 40px 40px 0px 40px;
  }

  /* Contenitore testo + immagine */
  .text-containernews2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px;
    align-items: center;
  }

  .text-boxnews2,
  .image-boxlogo2,
  .image-boxnews2 {
    width: 100%;
    text-align: left;
  }

  .image-boxlogo2 img,
  .image-boxnews2 img {
    width: 100%;
    height: auto;
    display: block;
  }

  .image-boxlogo2 {
    width: 60%;
    }

  .text-boxnews2 h2,
  .text-boxnews2 h4 {
    text-align: left;
  }

  .text-news3 {
    margin: 40px;
    text-align: left;
    padding: 0px;
  }

  .text-news3 h4 {
    text-align: left;
  }

  /* Ricetta */
  .ricetta-container {
    margin: 40px;
    text-align: left;
  }

  .ricetta-img {
    width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
  }

  .ingredienti,
  .procedimento {
    text-align: left;
    margin: 0 auto;
    max-width: 500px;
  }

  /* Galleria immagini finale */
  .galleria-personalizzata {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 40px;
  }

  .box-personalizzato img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
  }
}

@media screen and (max-width: 768px) {

  /* 🔸 Layout testo: ALLINEATO A SINISTRA */
  .text-news,
  .text-news2 {
    text-align: left;
    margin: 40px;
  }

  .text-boxnews {
    padding: 0px;
    width: 100%;
    text-align: left;
  }

  /* 🔸 Immagine singola e data */
  .foto2 {
    text-align: left;
    margin: 40px;
  }

  .foto2 img {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }

  .foto2 p {
    text-align: left;
  }

  /* 🔸 Box testo + immagine (alternati) */
  .text-containernews {
    display: flex;
    flex-direction: column;
    margin: 40px;
    gap: 30px;
    align-items: center;
  }

  .image-boxnews {
    width: 100%;
    text-align: left;
    padding: 0px;
  }

  .image-boxnews img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* 🔸 Galleria con 1 immagine per riga (le prime 4) */
  @media screen and (max-width: 768px) {
  
    .galleria-rola {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 30px;              /* Spazio verticale uguale tra i box */
      padding: 0 40px;        /* Margine laterale come il resto della pagina */
      margin: 40px 0;         /* Spazio sopra e sotto la sezione */
    }
  
    .box-rola {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: normal;
    }
  
    .box-rola img {
      width: 100%;
      max-width: 600px;       /* Mantiene proporzioni senza ingrandire troppo */
      height: auto;
      display: block;
      margin-top: 0px;
      margin-bottom: 0px;
    }
  }
  
  

  /* 🔸 Galleria con 2 immagini per riga (finale) */
  .galleria-personalizzata {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 40px;
  }

  .box-personalizzato img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
  }

  .box-personalizzato  {
    width: 100%;
    margin-bottom: 0px;
  }

  /* 🔸 Ultimo testo allineato a sinistra */
  .text-news2 h2,
  .text-news2 h4 {
    text-align: left;
    padding: 0px;
  }

  .text-containernews {
    flex-direction: column;
  }

  .text-containernews .text-boxnews {
    order: 1;
  }

  .text-containernews .image-boxnews {
    order: 2;
  }

  

}

@media (max-width: 768px) {
.galleria-personalizzata {
flex-wrap: wrap; /* Fa andare le immagini a capo */
}

.box-personalizzato {
width: 45%; /* 2 immagini per riga */
margin-bottom: 10px;
}
}

@media (max-width: 480px) {
.box-personalizzato {
width: 100%; /* 1 immagine per riga */
}


}

/* ---------- SAFARI FIXES ---------- */
@supports (-webkit-touch-callout: none) {
  
  /* Fix per immagini che in Safari non rispettano bene object-fit */
  img {
    max-width: 100%;
    height: auto;
  }

  /* Fix per il gap non sempre supportato in modo corretto nei flex */
  .menu,
  .three-boxes2,
  .galleria-rola,
  .galleria-personalizzata {
    gap: 50px;
    row-gap: 50px;
    column-gap: 50px;
  }

  /* Forza il flex-direction anche in Safari */
  .text-containernews,
  .text-containernews2,
  .box3-container,
  .containerb {
    display: flex;
    flex-direction: column !important;
  }

  /* Fix per problemi di margini negativi */
  .box-text6, .box-text7 {
    margin-top: 0 !important;
  }

  /* Forza il comportamento responsive delle immagini */
  .box-image4 img,
  .box-image5 img,
  .box-image6 img,
  .box-image7 img,
  .box-image2 img,
  .box3-image img,
  .image-boxnews img,
  .image-boxnews2 img,
  .image-boxlogo2 img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover;
    display: block;
  }

  /* Fix per Safari su .menu su desktop */
  @media screen and (min-width: 769px) {
    .menu {
      display: flex !important;
      flex-direction: row !important;
      justify-content: center !important;
      align-items: center !important;
    }
  }
}



/*.elemento-mobile {
display: none;
}*/

/*TABLET
@media screen and (max-width: 992px) {
body {
background-color: red;
}
}*/

/*MOBILE
@media screen and (max-width: 768px) {
body {
background-color: pink;
}

.elemento-mobile {
display: block;
}

.elemento-desktop {
display: none;
}

} */




