


/* Body
------------------------------------- */
body {
    background: #ffffff;
    font-family: 'Jost';
    font-style: normal;
    font-weight: 300;
    position: relative;
}

html,body {
  width: 100%;
  overflow-x: hidden;
}

html {
  font-size: 100%;
}


/*---------------------------------------
    Typography
-----------------------------------------*/

h1,h2,h3,h4 {
  font-weight: 300;
}

h1 {
  font-size: 2rem;
  line-height: 3rem;
  letter-spacing: 12px;
  text-transform: uppercase;
  padding-bottom: 8px;
}

h2 {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 4px;

}

h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 4px;
}

p {
  color: #555555;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 34px;
}

#home p,
#contact p, footer p {
  color: #f9f9f9;
}

.btn {
  border:none;
  border-radius: 4px;
  transition: all 0.4s ease-in-out;
}

.btn:focus {
  background: #682145ff;
  border-color: transparent;
}

.btn-success {
  background: #682145ff;
  font-weight: 300;
  letter-spacing: 2px;
  padding: 14px 32px;
  margin-top: 26px;
}

.btn-success:hover {
  background: #222;
}

a {
  color: #682145ff;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
  text-decoration: none !important;
}
a:hover, a:active, a:focus {
  color: #221c35;
  outline: none;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}


/*---------------------------------------
    All Section style
-----------------------------------------*/

.section-title {
  padding-bottom: 20px;
  padding-top: 50px;
  padding-left: 20px;
}





#azienda,
#territorio,
#viticoltura,
#vini,
#contact,
#sales {
	padding-top: 0;
	padding-bottom: 120px;
  
	position: relative;
}

#azienda{
	padding-top: 120px;

}


#contact {
	padding-bottom: 0;
}



#contact, footer {
  text-align: center;
}

.overlay {
  background: rgb(52, 17, 35);
  opacity: 0.3;
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  right: 0;
}



/*---------------------------------------
    Pre Loader Style
-----------------------------------------*/

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    background: none repeat scroll 0 0 #fff;
}

.sk-spinner-pulse {
  width: 60px;
  height: 60px;
  background-color: #682145ff;
  border-radius: 100%;
  margin: 40px auto;
  -webkit-animation: sk-pulseScaleOut 1s infinite ease-in-out;
          animation: sk-pulseScaleOut 1s infinite ease-in-out; }

@-webkit-keyframes sk-pulseScaleOut {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0); }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 0; } }

@keyframes sk-pulseScaleOut {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0); }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 0; } }



/*---------------------------------------
    Main Navigation
-----------------------------------------*/

.navbar-default {
  background: #ffffff;
  box-shadow: 0px 2px 8px 0px rgba(50, 50, 50, 0.2);
  border: none;
  margin-bottom: 0px !important;
}

.navbar-bar{
  background: #682145ff;
  height:5px;
}



.navbar-default .navbar-brand {
  /* color: rgb(52, 17, 35); */
  color: rgb(52, 17, 35);
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 2px;
}

.navbar-logo {
  height: 20px;
}

.navbar-default .navbar-nav li a {
    color: #777;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    padding-right: 16px;
    padding-left: 16px;
}

.navbar-default .navbar-nav li a span {
  position: relative;
  display: block;
  padding-bottom: 2px;
}

.navbar-default .navbar-nav li a span:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.5);
  visibility: hidden;
  -webkit-transform: scaleX(0);
  -moz-transform: scaleX(0);
  -ms-transform: scaleX(0);
  -o-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s ease-in-out 0s;
  -moz-transition: all 0.3s ease-in-out 0s;
  -ms-transition: all 0.3s ease-in-out 0s;
  -o-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.navbar-default .navbar-nav li a:hover span:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  -moz-transform: scaleX(1);
  -ms-transform: scaleX(1);
  -o-transform: scaleX(1);
  transform: scaleX(1);
}

.navbar-default .navbar-nav li.active a span:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
  background-color: #682145ff;
}

.navbar-default .navbar-nav > li a:hover {
    color: rgb(52, 17, 35) !important;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #777;
    background-color: transparent;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: rgb(52, 17, 35);
    background-color: transparent;
}

.navbar-default .navbar-toggle {
     border: none;
     padding-top: 10px;
  }

.navbar-default .navbar-toggle .icon-bar {
    border-color: transparent;
  }

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: transparent;
}

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

  .navbar-default .navbar-nav li a span:before {
    background: transparent !important;
  }
  .navbar-default .navbar-nav li.active a {
    background: transparent;
    background: none;
    color: rgb(52, 17, 35) !important;
  }
  .navbar-default .navbar-nav li.active a span:before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
  }
}

/*---------------------------------------
    Language Switcher
-----------------------------------------*/
.language-switcher {
  margin-left: 15px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.language-switcher .language-buttons {
  display: flex;
  align-items: center;
  gap: 0;
}

.language-switcher .language-btn {
  color: #777;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 7px;
  border: none;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-switcher .language-btn:hover {
  color: rgb(52, 17, 35);
}

.language-switcher .language-btn.active {
  color: #682145ff;
  font-weight: bold;
}

.language-switcher .language-separator {
  color: #777;
  font-size: 14px;
  padding: 0 2px;
  user-select: none;
}

@media screen and (max-width: 768px) {
  .language-switcher {
    margin-left: 0;
    padding: 8px 10px;
  }
  
  .language-switcher .language-btn {
    font-size: 14px;
  }
  
  .language-switcher .language-separator {
    font-size: 16px;
    padding: 8px 8px;
    
  }
}

/*---------------------------------------
    Home Section
-----------------------------------------*/

#home {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
        align-items: center;
  height: 100vh;
  text-align: center;
}

#home h1 {
  color: #ffffff;
}

#home .col-md-8 {
  padding-left: 62px;
}

.container {
	background: #ffffff;
	padding-left: 70px;
	padding-right: 70px;
  padding-bottom: 30px;
}

.navbar .container {
  padding-bottom: 0px;
  padding-left: 0;
  padding-right: 0;
}

@media screen and (max-width: 768px) {
  .navbar .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

#home-container {
	background: transparent;
	padding-left: 50px;
	padding-right: 50px;
}

.home-title {
	font-weight: 300;
	font-size: 2.5rem;
	color: #ffffff;
	letter-spacing: 5px;
}

.about-thumb {
	background: #ffffff;
	border-radius: 4px;
	padding-bottom: 10px;
  padding-left: 10px;
	padding-right: 10px;
	position: relative;
}
/*---------------------------------------
    Azienda Section
-----------------------------------------*/
#azienda {
  background-color: rgba(240, 240, 240, 0.6);
}

/*---------------------------------------
    Territorio Section
-----------------------------------------*/
#territorio {
  background-color: rgba(240, 240, 240, 0.6);
}





#azienda .item {
	width: 100%;
	display: block;
}

  

#azienda .about-img img {
padding-left: 10px;
padding-right: 10px;
padding-bottom: 20px;
}

/* Hide end image on desktop */
#azienda .azienda-end-image {
  display: none;
}

#territorio .about-img img {
padding-left: 10px;
padding-right: 10px;
}

/* Vertically center images with text in territorio section */
#territorio .row {
  display: flex;
  align-items: center;
}

#territorio .about-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
}

/* Make Insubria paragraph and title italic */
#territorio h2[data-i18n="territorio.insubriaTitle"],
#territorio p[data-i18n="territorio.insubriaText"] {
  font-style: italic;
}


/*---------------------------------------
   Vinificatione TerritorioSection
-----------------------------------------*/
#viticoltura {
  background-color: rgba(240, 240, 240, 0.6);
}




#viticoltura .about-img img {
  padding-left: 10px;
  padding-right: 10px;
}

/* Vertically center images with text in viticoltura section */
#viticoltura .row {
  display: flex;
  align-items: center;
}

#viticoltura .about-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
}

/* Also center image in expandable content */
#viticoltura-expandable-content .row {
  display: flex;
  align-items: center;
}

#viticoltura-expandable-content .about-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
}

/*---------------------------------------
    Vini Section (Wines)
-----------------------------------------*/

#vini {
  background-color: rgba(240, 240, 240, 0.6);
}

#vini .grid {
  padding: 0 100px 0 100px;
}

#vini .item {
  width: 100%;
  display: block;
}

#vini .about-thumb{
  padding-bottom: 10px;
}
#vini .about-img img {
  padding-left: 10px;
  padding-right: 10px;
}
#vini .about-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 20px;
}

#vini .team-thumb {
	width: 100%;
	height: 400px;
	margin: 32px 0;
	text-align: center;
	background: #ffffff;
	border-radius: 10px;
	transition: all 0.3s ease;
}

#vini .team-thumb .image-holder {
  position: relative;
  top: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  padding: 10px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  width: 220px;
  height: 220px;
  overflow: hidden;
  border-radius: 50%;
  background-color: #ffffff;
}

#vini .team-thumb .image-holder img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

#vini .team-thumb .heading {
  font-weight: bold;
  position: relative;
  top: 10px;
  -webkit-transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#vini .team-thumb:hover {
	background: #ffffff;
}

#vini .team-thumb:hover .image-holder {
  top: -40px;
  margin-bottom: 0px;
}

#vini .team-thumb:hover .heading {
  top: -10px;
}

#vini .team-thumb .description {
  font-size: 15px;
  width: 80%;
  margin: 0 auto;
  line-height: 1.5;
  opacity: 0;
  -webkit-transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
}

#vini .team-thumb:hover .description {
  opacity: 1;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

#vini .team-thumb:hover p.description {
  color: #682145ff;
}







/*---------------------------------------
  Sales  Section
-----------------------------------------*/
#sales {
	background-color: rgba(240, 240, 240, 0.6);
}

#sales .about-thumb {
  background: #ffffff;
  border-radius: 4px;
  padding-top: 20px;
  padding-bottom: 20px;
  padding-left:20px;
  padding-right:20px;
  position: relative;
}

#sales .about-img img {
  padding-left: 20px;
  padding-right: 20px;
}

#sales .row {
  display: flex;
  align-items: center;
  min-height: 200px;
}

#sales .about-thumb {
  display: flex;
  align-items: center;
  height: 100%;
}

#sales .about-thumb {
  flex-direction: column;
  align-items: flex-start;
}

#sales .sales-webshop-btn {
  display: inline-block;
  margin-top: 12px;
  margin-bottom: 12px;
  background: #682145ff;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 5px;
  font-size: 20px;
  letter-spacing: 1px;
  text-decoration: none !important;
  transition: all 0.3s ease;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

#sales .sales-webshop-btn:hover,
#sales .sales-webshop-btn:focus {
  background: #221c35;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(104, 33, 69, 0.3);
}


/*---------------------------------------
    Contact section
-----------------------------------------*/

#contact, footer {
	background: #682145ff;
	color: #ffffff;
}
#contact .container {
  background: transparent;
}

#contact .form-control {
  background: transparent;
  box-shadow: none;
  border: 1px solid #f9f9f9;
  color: #ccc;
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 14px;
  transition: all 0.4s ease-in-out;
}

#contact .form-control:focus {
  border-color: #682145ff;
  color: #ffffff;
}

#contact input {
  height: 55px;
}

#contact input[type="submit"] {
  background: #682145ff;
  border:none;
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 1px;
}

#contact input[type="submit"]:hover {
  background: #222;
  color: #ffffff;
}



/*---------------------------------------
    Footer section
-----------------------------------------*/

footer {
  padding-bottom: 0px;
  padding-top: 20px;
}

footer .container {
  background: transparent;
}

.footer-sentence p {
  font-size: 10px;
}

.footer-sentence {
  margin-top: 15px;
}

footer a {
  color: rgb(134, 118, 126);

}
footer a:hover {
  color: rgb(121, 88, 105);

}

/*---------------------------------------
    Social icons style
-----------------------------------------*/

.social-icon {
  padding: 0;
  margin: 0;
}

.social-icon li {
  list-style: none;
  display: inline-block;
}

.social-icon li a {
  border-radius: 4px;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 20px;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  margin: 10px 10px 42px 10px;
  padding: 0px;
}

.social-icon li a:hover {
  background: #ffffff;
  color: #682145ff;
}



/*---------------------------------------
   Back top
-----------------------------------------*/

.go-top {
  background-color: #ffffff;
  box-shadow: 1px 1.732px 12px 0px rgba( 0, 0, 0, .14 ), 1px 1.732px 3px 0px rgba( 0, 0, 0, .12 );
  transition: all 1s ease;
  bottom: 2em;
  right: 2em;
  color: #682145ff;
  font-size: 26px;
  display: none;
  position: fixed;
  text-decoration: none;
  width: 40px;
  height: 40px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.go-top:hover {
  background: #682145ff;
  color: #ffffff;
}



/*---------------------------------------
   Go-Top Button Mobile Optimization
-----------------------------------------*/

@media (max-width: 768px) {
  .go-top {
    width: 44px;
    height: 44px;
    font-size: 26px;
    bottom: 1.5em;
    right: 1.5em;
  }
}

/*---------------------------------------
   Responsive Mobile
-----------------------------------------*/

@media (max-width: 980px) {
  #azienda .about-thumb, #sales .about-thumb {
    padding: 32px 20px;
    margin-bottom: 32px;
    text-align: center;
  }

  #azienda, #vini, #gallery {
    padding-top: 40px;
    padding-bottom: 0px;
  }

  #sales {
    padding-bottom: 40px;
  }
}

@media (max-device-width: 767px) {
  #home, .overlay {
    height: 100vh;
  }

  .navbar-logo {
    width: 200px;
    height: auto;
  }

  #azienda .about-thumb, #sales .about-thumb {
    padding: 32px 20px;
    margin-bottom: 32px;
    text-align: center;
  }

  #azienda .col-md-3 img, #sales .col-md-3 img {
    position: relative;
    top: 0;
    left: 0;
    max-width: 250px;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 650px) {
  h1 {
    font-size: 1.6rem;
    line-height: 2rem;
    letter-spacing: 6px;
  }

  p {
    font-size: 18px;
    line-height: 28px;
  }

  img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  #vini,
  #gallery,
  #contact {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}

/*---------------------------------------
   Carousel Navigation Arrows
-----------------------------------------*/

.carousel-container {
	position: relative;
	padding-left: 20px;
	padding-right: 20px;
	margin: 0 auto;
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background: #ffffff;
  box-shadow: 1px 1.732px 12px 0px rgba( 0, 0, 0, .14 ), 1px 1.732px 3px 0px rgba( 0, 0, 0, .12 );
  color: #682145ff;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-prev {
  left: -30px;
}

.carousel-next {
  right: -30px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: #682145ff;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev:focus,
.carousel-next:focus {
  outline: none;
}

/* Responsive adjustments for carousel arrows */
@media (max-width: 768px) {
  .carousel-prev {
    left: 10px;
  }
  
  .carousel-next {
    right: 10px;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Hide carousel navigation buttons on mobile */
@media (max-width: 768px) {
  .carousel-prev,
  .carousel-next {
    display: none !important;
  }
}

/*---------------------------------------
   Wine Link Styles
-----------------------------------------*/

.wine-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.wine-link:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-5px);
}

.wine-link:hover .team-thumb {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.wine-link:focus {
  outline: none;
  text-decoration: none;
  color: inherit;
}


/*---------------------------------------
    Mobile Compatibility Improvements
-----------------------------------------*/

/* General mobile improvements */
@media (max-width: 768px) {
  /* Typography adjustments */
  h1 {
    font-size: 1.8rem;
    line-height: 2.2rem;
    letter-spacing: 8px;
  }
  
  .section-title {
    padding-left: 20px;
    padding-top: 20px;
    padding-bottom: 0px;
  }

  .home-title {
    line-height: 1.8;
  }
  
  h2 {
    font-size: 1.1rem;
    letter-spacing: 3px;
  }
  
  p {
    font-size: 16px;
    line-height: 28px;
  }
  
  /* Container padding adjustments */
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* Section spacing */
  #azienda,
  #vini,
  #sales,
  #contact,
  #territorio, 
  #viticoltura{
    padding-bottom: 60px;
    padding-top: 0px;
  }
  
  /* Navigation improvements */
  .navbar-default .navbar-nav li a span:before {
    background: transparent !important;
  }
  
  .navbar-default .navbar-nav li.active a {
    background: transparent;
    background: none;
    color: rgb(52, 17, 35) !important;
  }
  
  .navbar-default .navbar-nav li.active a span:before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
  }
  
  /* Logo sizing */
  .navbar-logo {
    width: 180px;
    height: auto;
  }
  
  /* Mobile layout: Ensure text and images have same width in content sections */
  /* Make all columns full width on mobile */
  #azienda .col-md-4,
  #azienda .col-md-8,
  #territorio .col-md-4,
  #territorio .col-md-8,
  #viticoltura .col-md-4,
  #viticoltura .col-md-8,
  #vini .col-md-4,
  #vini .col-md-8,
  #sales .col-md-4,
  #sales .col-md-8 {
    width: 100% !important;
  }
  
  /* Text containers - consistent padding */
  #azienda .about-thumb,
  #territorio .about-thumb,
  #viticoltura .about-thumb,
  #vini .about-thumb,
  #sales .about-thumb {
    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
  }
  
  /* Image containers - full width, no padding */
  #azienda .about-img,
  #territorio .about-img,
  #viticoltura .about-img,
  #vini .about-img,
  #sales .about-img {
    width: 100% !important;
    /* padding-left:0;
    padding-right: 0; */
    padding-bottom: 20px;
  }
  
  /* Images - full width to match text width */
  #azienda .about-img img,
  #territorio .about-img img,
  #viticoltura .about-img img,
  #vini .about-img img,
  #sales .about-img img {
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Azienda specific */
  #azienda .azienda-second-img {
    display: none;
  }
  
  #azienda .azienda-end-image {
    display: block;
    margin-top: 0;
    margin-bottom: 20px;
  }
  
  /* Vini section */
  #vini .grid {
    padding: 0 20px;
  }
  
  /* Carousel improvements */
  .carousel-container {
    max-width: 95%;
  }
  
  .carousel-prev,
  .carousel-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
    line-height: 40px;
  }
  
  /* Contact section improvements */
  #contact .section-title {
    padding: 0 20px;
  }
  
  /* Footer improvements */
  footer {
    padding-bottom: 40px;
  }
  
  .social-icon li a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    font-size: 18px;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
    line-height: 2rem;
    letter-spacing: 6px;
  }
  
  .home-title {
    line-height: 1.8;
  }
  
  h2 {
    font-size: 1rem;
    letter-spacing: 2px;
  }
  
  p {
    font-size: 15px;
    line-height: 24px;
  }
  
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
  
	/* Text containers - consistent padding for small devices */
	#azienda .about-thumb,
	#territorio .about-thumb,
  #viticoltura .about-thumb,
  #vini .about-thumb,
	#sales .about-thumb {
		padding: 10px 15px;
	}
	
	.navbar-logo {
		width: 150px;
	}
  
  .carousel-prev,
  .carousel-next {
    width: 35px;
    height: 35px;
    font-size: 14px;
    line-height: 35px;
  }
}

/* Extra small devices */
@media (max-width: 320px) {
  h1 {
    font-size: 1.3rem;
    line-height: 1.8rem;
    letter-spacing: 4px;
  }
  
  .home-title {
    line-height: 1.8;
  }
  
  p {
    font-size: 13px;
    line-height: 22px;
  }
  
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  
  /* Text containers - consistent padding for extra small devices */
  #azienda .about-thumb,
  #territorio .about-thumb,
  #vini .about-thumb,
  #sales .about-thumb {
    padding: 15px 10px;
  }
  
  /* Images remain full width on extra small devices */
  #azienda .about-img img,
  #territorio .about-img img,
  #vini .about-img img,
  #sales .about-img img {
    width: 100%;
    max-width: 100%;
  }
  
  .navbar-logo {
    width: 120px;
  }
}

/* Landscape orientation adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  #home {
    height: 100vh;
  }
  
  #azienda,
  #vini,
  #sales,
  #contact {
    padding-top: 60px;
    padding-bottom: 40px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .navbar-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}
/* Touch-friendly improvements for mobile */
@media (max-width: 768px) {
  /* Ensure touch targets are at least 44px */
  .navbar-toggle {
    padding: 12px 8px;
    margin-top: 8px;
    margin-bottom: 8px;
  }
  
  .navbar-default .navbar-nav > li > a {
    padding: 15px 10px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Improve button touch targets */
  .btn {
    min-height: 44px;
    padding: 12px 20px;
  }
  
  /* Improve carousel navigation touch targets */
  .carousel-prev,
  .carousel-next {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improve social icon touch targets */
  .social-icon li a {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Improve link touch targets */
  a {
    min-height: 20px;
    display: inline-flex;
    align-items: center;
  }
  
  /* Ensure proper spacing for touch interactions */
  .wine-link {
    padding: 10px;
    margin: 5px;
  }
  
  /* Improve form elements for mobile */
  input, textarea, select {
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 44px;
  }
}

/* Final mobile optimizations */
@media (max-width: 768px) {
  /* Smooth scrolling for mobile */
  html {
    scroll-behavior: smooth;
  }
  
  /* Prevent horizontal scrolling */
  body {
    overflow-x: hidden;
    width: 100%;
  }
  
  /* Improve image loading and display */
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  /* Better text rendering on mobile */
  * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  
  /* Improve performance */
  .wow {
    animation-duration: 0.8s;
  }
  
  /* Better spacing for mobile */
  .row {
    margin-left: -10px;
    margin-right: -10px;
  }
  
  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
  .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
  .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
  .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
    padding-left: 10px;
    padding-right: 10px;
  }
}

/* Sales section mobile - reorder elements vertically */
@media (max-width: 768px) {
  #sales .row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: unset !important;
  }
  
  /* Show text first, then image */
  #sales .row:first-of-type .col-md-8,
  #sales .row:last-of-type .col-md-8 {
    order: 1 !important;
    width: 100% !important;
  }
  
  #sales .row:first-of-type .col-md-4.about-img,
  #sales .row:last-of-type .col-md-4.about-img {
    order: 2 !important;
    width: 100% !important;
  }
}

/* Show wine descriptions on mobile (no hover needed) */
@media (max-width: 768px) {
  #vini .team-thumb {
    height: auto;
    padding-bottom: 20px;
  }
  #vini .team-thumb .image-holder {
    top: -40px;
    margin-bottom: 0;
  }
  #vini .team-thumb .heading {
    top: -10px;
  }
  #vini .team-thumb .description {
    opacity: 1;
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
  }
}

/* Justify text paragraphs in vini, sales, azienda, and territorio sections */
#vini .about-thumb p,
#vini .section-title p,
#sales .about-thumb p,
#azienda .about-thumb p,
#viticoltura .about-thumb p,
#territorio .about-thumb p {
  text-align: justify;
}

/*---------------------------------------
   Wine Overlay Modal
-----------------------------------------*/

.wine-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.wine-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.wine-overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.wine-overlay-content {
  position: relative;
  background: #ffffff;
  border-radius: 15px;
  max-width: 700px;
  width: 90%;
  max-height: 95vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  z-index: 10001;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.wine-overlay.active .wine-overlay-content {
  transform: scale(1);
}

.wine-overlay-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: #682145ff;
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10002;
}

.wine-overlay-close:hover {
  background: #682145ff;
  color: #ffffff;
  transform: rotate(90deg);
}

.wine-overlay-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: calc(95vh - 60px);
}

.wine-overlay-main-content {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: stretch;
}

.wine-overlay-left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.wine-overlay-right {
  flex-shrink: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  align-self: stretch;
}

.wine-overlay-image {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.wine-overlay-image img {
  width: 180px;
  height: 100%;
  object-fit: contain;
}

.wine-overlay-heading {
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 3px;
  color: #333;
  margin-bottom: 30px;
  margin-top: 10px;
  text-transform: uppercase;
  flex-shrink: 0;
  text-align: center;
}

.wine-overlay-description {
  font-size: 18px;
  line-height: 1.8;
  color: #555555;
  margin-bottom: 30px;
  padding: 0 20px;
}

.wine-overlay-description i {
  font-style: italic;
  color: #682145ff;
}

/* Wine Information Sections */
.wine-overlay-info-sections {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 0;
  text-align: left;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.wine-info-section {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  border-left: 3px solid #682145ff;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.wine-info-section h3.info-section-title {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #333;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e0e0e0;
  flex-shrink: 0;
}

.wine-info-section .info-section-content {
  font-size: 13px;
  line-height: 1.5;
  color: #333;
  flex: 1;
  overflow-y: auto;
}

.wine-info-section .info-section-content p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}

.wine-info-section .info-section-content .no-data {
  color: #999;
  font-style: italic;
}

.wine-overlay-pdf-btn {
  /*display: none;*/
  background: #682145ff;
  color: #ffffff;
  padding: 10px 45px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: 00px;
  flex-shrink: 0;
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.wine-overlay-pdf-btn:hover {
  background: #221c35;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(104, 33, 69, 0.3);
}

.wine-overlay-pdf-btn i {
  margin-right: 8px;
}

.wine-overlay-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0px;
  margin-top: 30px;
  flex-shrink: 0;
}

.wine-overlay-shop-btn {
  display: inline-block;
  background: #682145ff;
  color: #ffffff;
  padding: 10px 45px;

  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin-top: 0;
  flex-shrink: 0;
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.wine-overlay-shop-btn:hover,
.wine-overlay-shop-btn:focus {
  background: #221c35;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(104, 33, 69, 0.3);
}

.wine-overlay-shop-btn i {
  margin-right: 8px;
}

/* Responsive adjustments for wine overlay */
@media (max-width: 768px) {
  .wine-overlay-content {
    width: 95%;
    padding: 25px 15px;
    max-height: 95vh;
  }
  
  .wine-overlay-body {
    max-height: calc(95vh - 50px);
  }
  
  .wine-overlay-main-content {
    flex-direction: column;
    gap: 20px;
  }
  
  .wine-overlay-right {
    width: 100%;
    order: -1;
  }
  
  .wine-overlay-image img {
    width: 150px;
    max-height: 300px;
  }
  
  .wine-overlay-heading {
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-align: center;
  }
  
  .wine-overlay-description {
    font-size: 16px;
    padding: 0 10px;
  }
  
  .wine-overlay-info-sections {
    gap: 12px;
    margin: 0;
  }
  
  .wine-info-section {
    padding: 12px;
  }
  
  .wine-info-section h3.info-section-title {
    font-size: 11px;
    margin-bottom: 6px;
    padding-bottom: 5px;
  }
  
  .wine-info-section .info-section-content {
    font-size: 12px;
  }
  
  .wine-overlay-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 24px;
  }
  
  .wine-overlay-pdf-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    font-size: 13px;
    margin-top: 0;
    width: 100%;
    text-align: center;
  }

  .wine-overlay-actions {
    margin-top: 20px;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .wine-overlay-shop-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px 20px;
    font-size: 13px;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .wine-overlay-content {
    padding: 25px 15px;
  }
  
  .wine-overlay-main-content {
    gap: 15px;
  }
  
  .wine-overlay-image img {
    width: 120px;
    max-height: 250px;
  }
  
  .wine-overlay-heading {
    font-size: 1.1rem;
  }
  
  .wine-overlay-description {
    font-size: 13px;
  }
  
  .wine-info-section {
    padding: 13px;
  }
  
  .wine-info-section h3.info-section-title {
    font-size: 13px;
  }
  
  .wine-info-section .info-section-content {
    font-size: 13px;
  }
}

/* Territorio Expandable Section
------------------------------------- */
.territorio-expandable {
	position: relative;
	margin-top: 0;
	margin-bottom: 20px;
  padding-left: 00px;
  padding-right: 00px;
}

.territorio-expandable-content {
  position: relative;
  max-height: 102px;
  overflow: hidden;
  transition: max-height 0.5s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.territorio-expandable-content.expanded {
  max-height: 3000px;
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.territorio-expandable-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 30%, rgba(255, 255, 255, 0.8) 70%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
  transition: opacity 0.5s ease;
  opacity: 1;
}

.territorio-expandable-content.expanded .territorio-expandable-fade {
  opacity: 0;
}

/* Remove right padding from images in viticoltura expandable section on desktop only */
@media (min-width: 769px) {
  #viticoltura-expandable-content .about-img img {
    padding-right: 0;
  }
}

/* Expandable content sections - apply same mobile rules */
@media (max-width: 768px) {
  #viticoltura-expandable-content .col-md-4,
  #viticoltura-expandable-content .col-md-8 {
    width: 100% !important;
  }
  
  
  
  /* Reset flex alignment on mobile for territorio and viticoltura */
  #territorio .row,
  #viticoltura .row {
    flex-direction: column;
    align-items: stretch;
  }
  
  #territorio .about-img,
  #viticoltura .about-img {
    align-items: flex-start;
  }
}

.territorio-expandable-toggle {
  background: transparent;
  border: 2px solid #682145ff;
  color: #682145ff;
  padding: 12px 24px;
  font-size: 18px;
  letter-spacing: 2px;
  cursor: pointer;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  font-family: 'Jost';
  font-weight: 300;
  text-transform: uppercase;
}

.territorio-expandable-toggle:hover {
  background: #682145ff;
  color: #ffffff;
}

.toggle-text-collapse {
  display: none;
}

.territorio-expandable.expanded .toggle-text-expand {
  display: none;
}

.territorio-expandable.expanded .toggle-text-collapse {
  display: inline;
}

.toggle-icon {
  transition: transform 0.3s ease;
  font-size: 14px;
}

.territorio-expandable.expanded .toggle-icon {
  transform: rotate(180deg);
}

.territorio-expandable-content p {
  margin-bottom: 10px;
  text-align: justify;
}

/* .territorio-expandable-content p:last-child {
  margin-bottom: 0;
} */

/* Certification Logos in Contact Section
------------------------------------- */
.demeter-logo-container {
  text-align: center;
  margin-bottom: 50px;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.certification-logo-link {
  display: inline-block;
  transition: opacity 0.3s ease;
}

.certification-logo-link:hover {
  opacity: 0.8;
}

.certification-logo {
  height: 50px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Responsive adjustments for certification logos */
@media (max-width: 768px) {
  .demeter-logo-container {
    gap: 25px;
    padding-top: 30px;
    margin-top: 20px;
  }
  
  .certification-logo {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .demeter-logo-container {
    gap: 20px;
    padding-top: 30px;
    margin-top: 20px;
  }
  
  .certification-logo {
    height: 35px;
  }
}

/*---------------------------------------
   Image Lightbox
-----------------------------------------*/
.image-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.image-lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  cursor: pointer;
}

.image-lightbox-content {
  position: relative;
  z-index: 10001;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.image-lightbox-close {
  position: absolute;
  top: -20px;
  right: -20px;
  background: rgba(255, 255, 255, 0.9);
  color: #682145ff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10002;
}

.image-lightbox-close:hover {
  background: #682145ff;
  color: #ffffff;
  transform: scale(1.1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Make images with img-box class cursor pointer to indicate they're clickable (desktop only) */
@media (min-width: 769px) {
  img.img-box {
    cursor: pointer;
    transition: opacity 0.3s ease;
  }

  img.img-box:hover {
    opacity: 0.9;
  }
}

/* Mobile adjustments for lightbox */
@media (max-width: 768px) {
  .image-lightbox-content {
    max-width: 95%;
    max-height: 95%;
    padding: 0;
  }
  
  .image-lightbox-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .lightbox-img {
    max-height: 85vh;
  }
}