@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600&display=swap");

#home * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#home .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#home .container:hover {
  cursor: pointer;
}

#home .container img {
  filter: grayscale();
  width: 200px;
  height: 200px;

  box-shadow: 2px 2px 10px 2px rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
  transition: filter 0.4s ease-in-out;
}

#home .container:hover img {
  filter: none;
}

#home .title {
  font-family: "Dancing Script", cursive;
  font-size: 3rem;
  color: white;
  position: relative;
}

#home .title::after {
  position: absolute;
  content: "";
  width: 0%;
  height: 3px;
  background-color: white;
  left: 50%;
  bottom: -10px;
  transition: all 0.4s ease-in-out;
}

#home .container:hover .title::after {
  width: 100%;
  left: 0;
}

.title-home{
  text-align: center;
  font-family: 'Arapey', serif;
  font-size: 60px;
  color: #a9855b;
}

body#home  {
  background: url(http://www.francocaffe.it/assets/immagini/immagini/image_freepik.com_index.jpg) no-repeat center center fixed;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}


body { 
  font-family: 'Montserrat', sans-serif; 
  font-size: 16px; 
  color: black; 
  line-height: 30px; 
  padding-top: 150px;
  
}

.top-auto{top:auto}

/*** Trademark ***/
.registred{
  font-size: 14px;
  position:absolute;
}


/*** Back to top ***/
#myBtn {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 60px; /* Place the button at the bottom of the page */
  right: 10px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: #341412; /* Set a background color */
  color: white; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 10px 15px 10px 15px; /* Some padding */
  border-radius: 100%; /* Rounded corners */
  font-size: 18px; /* Increase font size */
}

#myBtn:hover {
  background-color: #555; /* Add a dark-grey background on hover */
}



/***** Navbar *****/
/* Megamenu style */
.mega-menu {
  background-color: #eddec8; /* crema chiaro */
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: none;
  z-index: 1050;
  top: 100%;
  padding: 2rem 5vw;
  width: 100%;
}


.dropdown-header {
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.dropdown-item {
  font-size: 0.95rem;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
  margin-left: 25px;
}

.dropdown-item:hover {
  color: #a9855b;
  background-color: transparent;
}

/***** Breadcrumb *****/
.breadcrumbs {
  font-size:12px;
  margin: -15px 0px 10px 0px;
}

.fa-home {
  padding: 0px 10px 0px 0px;
  font-size: 15px;
}

.breadcrumb_last {
  padding: 0px 0px 0px 10px;
}


/***** Carusel *****/
.carousel{
  background: #2f4357;
  margin-top: -100px;
}
.carousel-item{
  text-align: center;
  min-height: 300px; /* Prevent carousel from being distorted if for some reason image doesn't load */
}

.carosel-title-slide {
  font-family: 'Arapey', serif;
  font-size: 50px;
  
}

.bs-carusel{
  margin: 0px;
  font-size: 25px;
  line-height: 1.5;
}

.align-items-center {
  -ms-flex-align: center!important;
  align-items: center!important;
}
/***** End Carusel *****/




/***** Buttons *****/

a.btn-customized-2 {
margin-left: 5px; margin-right: 5px; padding: 10px 25px; 
background: #eddec8; border: 0; border-radius: 4px; 
font-size: 16px; font-weight: 300; color: #613d29; box-shadow: none;
}

a.btn-customized-2:hover, 
a.btn-customized-2:active, 
a.btn-customized-2:focus, 
a.btn-customized-2:active:focus, 
a.btn-customized-2.active:focus,
a.btn-customized-2.btn.btn-primary:not(:disabled):not(.disabled):active,
a.btn-customized-2.btn.btn-primary:not(:disabled):not(.disabled):active:focus {
outline: 0; background: #ccc; background: #a9855b; border: 0; color: #eddec8; box-shadow: none;
}

a.btn-customized-2 i { margin-right: 5px; }

/***** General style, all sections *****/

.section-container { margin: 0 auto; padding-bottom: 80px; }

.section-description { margin-top: 60px; padding-bottom: 10px; }

.section-description p { margin-top: 20px; padding: 0 120px; }

.section-bottom-button { padding-top: 20px; }


/***** Section 1 *****/
.section-1-container{
  margin-top: 30px;
  min-height: 50px;
  font-family: 'Montserrat', sans-serif;
}

.section-1-container p{
  text-align: justify;
}

.section-1-box { padding-top: 30px; text-align: left; font-size: 16px; line-height: 1.7; }

.section-1-box h3 { margin-top: 0; padding: 0 0 10px 0; }

.h2-section-1 { text-align: center;}

.img-certificati {
  margin-left: 300px;
}

/***** End Section 1 *****/

/***** ICONE SERVIZI *****/
.icona-img {
  width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.icona-titolo {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: #613d29;
}
/***** END ICONE SERVIZI *****/


.title-section {
  text-align: center;
  font-family: 'Arapey', serif;
  font-size: 60px;
  color: #fff;
}


/**** Section 2 ****/

.we-serve-text-v {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 18px;
}

.we-serve-text-v p:after{
  content: "";
  top:17px;
  right:-62px;
  display:inline-block;
  width:2px;
  height:52px;
  background:#0f0f0f;
  text-align: center;
  margin-top: 15px;
}

.we-serve-title{
  font-family: 'Arapey', serif;
  font-size: 40px;
  color: #a9855b;
}

.we-serve-text {
  margin-top: 20px;
  font-size: 16px;
  color:#222221;
  text-align: justify!important;
}

.row-section-2 {
  padding-bottom: 150px!important;
}

.text-capsule {
  align-items: center;
}

.row-capsule {
  margin-bottom: 100px;
}

.marchio-registrato {
  font-size: small;
  line-height: 20px;
  text-align: left;
  padding: 0 30px 0 30px;
}



/* Capsule Styles */
.capsule-section {
  padding: 4rem 1rem;
  background-color: #fff;
}

.capsule-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, 1fr);
}

.capsule-card {
  background: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.03);
  transition: transform 0.2s ease;
}

.capsule-card:hover {
  transform: translateY(-4px);
}

.capsule-card img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.capsule-card h3 {
  font-size: 1.2rem;
  color: #391707;
  margin-bottom: 1rem;
  font-weight: bold;
}

.capsule-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.capsule-card ul li {
  margin: 0.3rem 0;
}

.capsule-card a {
  font-weight: bold;
}

.note {
  font-size: 0.65rem;
  line-height: normal;
  text-align: justify;
}
/* End Capsule Styles */







/*****  testo Pagina Azienda e private label *****/
.text-container-pagina {
  text-align: justify;
}


/* Rende l'immagine fluida e la riduce a 200px su dispositivi piccoli */
.packaging-private-label {
  max-width: 100%;
  height: auto;
}

/*****  Video  *****/
.container-video{
  margin-top: 70px;
  width: 100%;
}
/*****  End Video  *****/


/***** Section 3 *****/

.section-3-box { margin-top: 30px; text-align: left; }

.section-3-box .section-3-box-icon {
  width: 60px; height: 60px; margin: 0 auto;
}

.section-3-box h3 { margin-top: 0; padding: 0 0 10px 0; }



/*****  Footer  *****/
a {
  color: grey;
}
a:hover {
  color: #a9855b;
  text-decoration: none;
}

::selection {
  background: gainsboro;
  text-shadow: none;
}

footer {
  padding: 40px 0;
  background-color: #391707;
}

.container .row:not(:last-child) {
  padding-bottom: 20px;
}

.footer-column:not(:first-child) {
  padding-top: 20px;
}

.footer-column {
  text-align: center;
  border: none
}

.span.nav-link {
  color: grey;
}
.span.footer-title {
  font-size: 14px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
}
.fas {
  margin-right: 0.5px;
}


.ul {
display: inline-block;
}

ul.social-buttons {
  margin-bottom: 0;
}

ul.social-buttons li a:active,
ul.social-buttons li a:focus,
ul.social-buttons li a:hover {
  background-color: #a9855b;
  color: #eddec8
}

ul.social-buttons li a {
  font-size: 20px;
  line-height: 40px;
  display: block;
  width: 40px;
  height: 40px;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  transition: all 0.3s;
  color: #fff;
  border-radius: 100%;
  outline: 0;
  background-color: #613d29;
}

footer .quick-links {
  font-size: 90%;
  line-height: 40px;
  margin-bottom: 0;
  text-transform: none;
  font-family: 'Montserrat', sans-serif;
}

.footer-title{
  color: white;
}

.copyright {
  color: white;
}

.fa-ellipsis-h {
  color: white;
  padding: 2rem 0;
}

.footer-item{
  color: white;
}

.nav-link{
  color: white;
}

.navbar.bg-dark {
  background-color: #130707 !important;
}



/*****  Jumbotron  *****/
.jumbotron {
  margin: 0px;
  padding: 30px;
}

.bs-jumbotron {
  margin: 0px;
  padding: 0px;
}

.bs-jumbotron .jumbotron {
  background-color: transparent !important; /* Per evitare che Bootstrap sovrascriva con grigio */
}


.jumbotron-title{
  font-family: 'Arapey', serif;
  font-size: 45px;
  color: #a9855b;
  text-align: center;
}

.jumbotron-text {
  text-align: justify;
}

.img-jumbotron {
  text-align: center;
}

/*****  Scede prodotti  *****/

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


.tostatura-lenta {
  text-align: center;
}

.tostatura-lenta-bg {
  background-color: #a9855b;
  margin: 0px 0px 40px 0px;
  padding: 40px 0px 30px 0px;
}

.tostatura-lenta h2:before,
.tostatura-lenta h2:after {
  background-color: #000;
  content: "";
  display: inline-block;
  height: 2px;
  position: relative;
  vertical-align: middle;
  width: 100px;
}

.tostatura-lenta h2:before {
  right: 0.5em;
  margin-left: -50%;
}

.tostatura-lenta h2:after {
  left: 0.5em;
  margin-right: -50%;
}

.tostatura-lenta-text {
  font-size: 18px;
  padding: 0px 70px 0px 70px;
  text-align: justify;
  
}



.dettagli-prodotto-h2 {
  font-family: 'Arapey', serif;
  text-align: left;
  font-style: italic;
  padding-bottom: 30px;
  padding-top: 30px;
}


.dettagli-prodotto h2:after {
  background-color: #000;
  content: "";
  display: inline-block;
  height: 1px;
  position: relative;
  vertical-align: middle;
  width: 800px;
}

.dettagli-prodotto h2:after {
  left: 0.5em;
}

.dettagli-prodotto-title{
  font-size: 25px;
  margin-top: 50px;
}

.dettagli-prodotto h5:before,
.dettagli-prodotto h5:after {
  background-color: #000;
  content: "";
  display: inline-block;
  height: 1px;
  position: relative;
  vertical-align: middle;
  width: 20px;
}

.dettagli-prodotto h5:before {
  right: 0.5em;
  margin-left: -50%;
}

.dettagli-prodotto h5:after {
  left: 0.5em;
  margin-right: -50%;
}

.dettagli-prodotto-p {
  line-height: 1.5;
  padding-top: 20px;
  text-align: justify;
}

.dettagli-prodotto-text-1 {
  text-align: justify;
  line-height: 1.5;
  padding: 20px 40px 0px 40px;
}

.dettagli-prodotto-text {
  text-align: justify;
  line-height: 1.5;
  padding-top: 20px;
}

.dettagli-prodotto-div {
  margin-top: 40px;
}

.formati-disponibili {
  text-align: center;
}

.formati-disponibili-text {
  font-style: italic;
  font-size: 15px;
  color: #787878;
}

.formati-disponibili-title:before,
.formati-disponibili-title:after {
  background-color: #000;
  content: "";
  display: inline-block;
  height: 1px;
  position: relative;
  vertical-align: middle;
  width: 10px;
}

.formati-disponibili-title:before {
  right: 0.5em;
  margin-left: -50%;
}

.formati-disponibili-title:after {
  left: 0.5em;
  margin-right: -50%;
}

.flessibilita-bg {
  background-color: #a9855b;
  padding: 40px 0px 30px 0px;
}

.page-navigation-next {
  text-align: right;
}







.container-products {
  margin-bottom: 40px;
}

.container_foto {
	background-color: white;
	padding: 0;
	overflow: hidden;
	max-width: 350px;
	margin: 5px;
}

.container_foto article {
	padding: 10%;
	position: absolute;
	bottom: 0;
	z-index: 1;
	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
	-ms-transition: all 0.5s ease;
	transition: all 0.5s ease;
}

.container_foto h2 {
	color: #a9855b;
	font-weight: 800;
	font-size: 35px;
  font-family: 'Arapey', serif;
}

.container_foto h4 {
	font-weight: 300;
	color: black;
	font-size: 16px;
  line-height: 1.5;
}

.container_foto img {
	width: 100%;
	top: 0;
	left: 0;

	-webkit-transition: all 4s ease;
	-moz-transition: all 4s ease;
	-o-transition: all 4s ease;
	-ms-transition: all 4s ease;
	transition: all 4s ease;
}

.ver_mas {
	background-color: #a9855b;
	position: absolute;
	width: 100%;
	height: 70px;
	bottom: 0;
	z-index: 1;
	opacity: 0;
	transform: translate(0px, 70px);
	-webkit-transform: translate(0px, 70px);
	-moz-transform: translate(0px, 70px);
	-o-transform: translate(0px, 70px);
	-ms-transform: translate(0px, 70px);
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}

.ver_mas span {
	font-size: 40px;
	color: #fff;
	position: relative;
	margin: 0 auto;
	width: 100%;
	top: 13px;
}


.ver_mas_description {
	position: absolute;
	width: 100%;
	height: 200px;
	bottom: 0;
	z-index: 1;
	opacity: 0;
	transform: translate(0px, 70px);
	-webkit-transform: translate(0px, 70px);
	-moz-transform: translate(0px, 70px);
	-o-transform: translate(0px, 70px);
	-ms-transform: translate(0px, 70px);
	-webkit-transition: all 0.2s ease-in-out;
	-moz-transition: all 0.2s ease-in-out;
	-o-transition: all 0.2s ease-in-out;
	-ms-transition: all 0.2s ease-in-out;
	transition: all 0.2s ease-in-out;
}



/*****  ACCORDION  *****/

.accordion {
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 50px;
}

.accordion-item {
  border-bottom: 1px solid #ccc;
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: #9e8374;
  color: white;
  padding: 1rem;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  background: #f7f4f2;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
  text-align: left;
}

.accordion-body.open {
  padding: 1rem;
  max-height: 800px; /* regola se hai più contenuto */
}

.arrow {
  transition: transform 0.3s ease;
}

.accordion-header.active .arrow {
  transform: rotate(180deg);
}



/*hovers*/

.container_foto:hover {
	cursor: pointer;
}

.container_foto:hover img {
	opacity: 0.1;
	transform: scale(1.5);
}

.container_foto:hover article {
	transform: translate(2px, -69px);
	-webkit-transform: translate(2px, -69px);
	-moz-transform: translate(2px, -69px);
	-o-transform: translate(2px, -69px);
	-ms-transform: translate(2px, -69px);
}

.container_foto:hover .ver_mas {
	transform: translate(0px, 0px);
	-webkit-transform: translate(0px, 0px);
	-moz-transform: translate(0px, 0px);
	-o-transform: translate(0px, 0px);
	-ms-transform: translate(0px, 0px);
	opacity: 1;
}

.container_foto:hover .ver_mas_description {
	transform: translate(0px, 0px);
	-webkit-transform: translate(0px, 0px);
	-moz-transform: translate(0px, 0px);
	-o-transform: translate(0px, 0px);
	-ms-transform: translate(0px, 0px);
	opacity: 1;
}



/*Privacy Policy*/
.row-privacy-policy {
  font-size: 12px;
  line-height: normal;
}


/***** SEZIONE DETTAGLI SCHEDA TECNICA *****/
.dettagli-prodotto {
  text-align: center;
  margin-bottom: 50px;
}

.product-profile {
  padding-top: 2rem;
}

.profile-grid {
  margin-left: 80px;
  margin-top: 30px;
}

.profile-grid .row {
  display: flex;
  align-items: center;
  margin: -10px 0;
}

.profile-grid .row span {
  flex: 1;
  font-weight: bold;
  text-align: left;
}

.beans {
  flex: 2;
  display: flex;
  gap: 6px;
}

.beans img {
  width: 20px;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.roast-level {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: 1rem;
}

.bean {
  padding: 0.3rem 1rem;
  border-radius: 20px;
  border: 2px solid transparent;
}

.bean.selected {
  border-color: #613d29;
  font-weight: bold;
}

.caffeine-meter {
  margin-top: 1rem;
}

.caffeine-meter .bar {
  height: 6px;
  background: #ccc;
  position: relative;
  margin: 1rem 0;
}

.caffeine-meter .fill {
  height: 100%;
  background: #613d29;
  width: 0%;
  transition: width 0.6s ease;
}

.caffeine-meter .indicator {
  position: absolute;
  top: -6px;
  width: 16px;
  height: 16px;
  background: #613d29;
  border-radius: 50%;
  transform: translateX(-50%);
  transition: left 0.6s ease;
  left: 0%;
}

.labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}


/***** CONTATTI *****/
/* Contenitore generale */
  .contact-cta-section {
    max-width: 600px;
    margin: auto;
    margin-top: 30px;
    margin-bottom: 100px;
    padding: 0 15px;
    text-align: center;
  }

  .contact-cta-section h3 {
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.5rem;
    color: #333;
  }

  .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .cta-buttons button {
    flex: 1 1 250px;
    padding: 15px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    color: white;
  }

  #cta-azienda {
    background-color: #9e8374;
  }
  #cta-azienda:hover {
    background-color: #a9855b;
  }

  #cta-privato {
    background-color: #391707;
  }
  #cta-privato:hover {
    background-color: #a9855b;
  }

  .container-istruzioni {
    max-width: 800px;
    margin: 50px auto;
  }

  .elenco-istruzioni {
    margin-top: 50px;
    text-align: justify;
  }


/* SFONDO TITOLI PAGINA */
.container-background {
  position: relative;
  height: 300px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden; /* per tagliare l'overlay se serve */
  z-index: 0;
}

/* Overlay scuro con opacità */
.container-background::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2); /* nero al 20% */
  z-index: 1;
}

/* Titolo sopra l'overlay */
.container-background .section-description {
  position: relative;
  z-index: 2;
}

.container-contatti {
  background-image: url('/assets/immagini/carosello/espresso_1920x800.jpg');
}

.container-azienda {
  background-image: url('/assets/immagini/immagini/sfondo-franco-caffe-azienda.jpg');
}

.container-private-label {
  background-image: url('/assets/immagini/immagini/sfondo-franco-caffe-private-label.jpg');
}
.container-capsule {
  background-image: url('/assets/immagini/immagini/sfondo-franco-caffe-capsule.jpg');
}

/* CONTAINER HOME CTA */
.container-background-cta {
  position: relative;
  height: 300px;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-size: cover;
  background-position: center;
  overflow: hidden; /* per tagliare l'overlay se serve */
  z-index: 0;
}

.container-cta {
  background-image: url('/assets/immagini/immagini/coffee-pattern-sfondo-franco-caffe.jpg');
}

.cta-title {
font-size: 38px;
font-weight: bold;
color: #613d29; /* Colore del testo */
}

.cta-subtitle {
font-size: 24px;
}

/***** CTA BUTTON *****/
.cta-button {
  padding: 1rem 2rem;
  background-color: #9e8374;
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.05em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid transparent;
}

.cta-subtitle:last-of-type {
  margin-bottom: 1.5rem;
}

.cta-button:hover {
  background-color: #a9855b;
  color: #fff;
}