/* =========================================================
   HOME HERO
========================================================= */

.hero-full {
  position: relative;
  width: 100vw;
  min-height: 650px;
  margin-left: calc(50% - 50vw);

  display: flex;
  align-items: center;

  overflow: hidden;

  background-image:
    url(../../img/herohands.webp),
    linear-gradient(
      90deg,
      #333 0%,
      #7c6e50 50%,
      #333 100%
    );

  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(0,0,0,0.15);

  z-index: 1;
  pointer-events: none;
}

.hero-content {
position: relative;
    z-index: 2;
    width: 600px;
    margin: 0;
    padding: 80px 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    color: #fff;
    text-align: left;
}

.hero-content h1 {
  margin: 0 0 20px;

  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.05;
  font-weight: 700;

  color: #fff;

  text-shadow: 0 3px 18px rgba(0,0,0,0.22);
}

.shipping-disclaimer {
      margin: 28px 0 0 0;


  line-height: 1.7;
  font-size: 16px;

  color: #fff !important;
}

.shipping-disclaimer a {
    color: #fff;
}

.shipping-disclaimer a::before {
    content: "💡";
    font-size: 18px;
    line-height: 1;
    margin-right: 5px;
}

.shipping-disclaimer a:hover {
text-decoration: none;
}

.shipping-disclaimer-small {
  display: inline-block;
  margin-top: 4px;

  font-size: .95em;
}

.hero-content .btn.btn-primary {
  width: 100%;
  height: 58px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
}

.hero-search {
  width: 100%;
  margin-top: 14px;

  display: flex;
  align-items: center;

  border-radius: 999px;

  overflow: hidden;

  background: rgba(255,255,255,0.10);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255,255,255,0.15);
}

.hero-search:hover {
    background: rgba(255, 255, 255, 0.20);
}

.hero-search input {
  flex: 1;

  height: 58px;

  padding: 0 22px;

  border: 0;
  outline: none;

  background: transparent;

  color: #fff;
  font-size: 16px;
}

.hero-search input::placeholder {
  color: rgba(255,255,255,0.72);
}

.hero-search button {
  width: 64px;
  height: 58px;

  border: 0;

  background: transparent;

  color: #fff;

  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: .25s ease;
}

.hero-search button:hover {
  background: rgba(255,255,255,0.10);
}

.hero-search .material-icons {
  font-size: 24px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

  .hero-full {
    min-height: 560px;
  }

  .hero-content {
    padding: 70px 25px;
  }

  .hero-content h1 {

  }

}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

 .hero-full {
    min-height: 520px;
    background-color: #302d27;

    background-image:
      url(../../img/herohands.webp),
      linear-gradient(
        90deg,
        #333 0%,
        #7c6e50 50%,
        #333 100%
      );

    background-position: center -40px, center center;
    background-size: contain, cover;
    background-repeat: no-repeat, no-repeat;

    align-items: flex-start;
    padding-top: 0;
  }

  .hero-full::before {
    inset: 0;
    background: rgba(0,0,0,0.15);
  }

  .hero-content {
    padding: 120px 20px 60px;
    width: 100%;
  }

  .hero-content h1 {
    margin-bottom: 18px;
text-align: center;
    font-size: 42px;
    line-height: 1.08;
            width: 100%;
  }

  .shipping-disclaimer {

    font-size: 14px;
    line-height: 1.6;
    text-align: center;
  }

  .hero-content .btn.btn-primary,
  .hero-search {
    max-width: 100%;
  }

  .hero-search input {
    font-size: 15px;
  }

}

/* =========================================================
   HOME PAGE / HERO / FORMATI / SERVIZI
========================================================= */

.home-formati {
  padding: 80px 0;
  text-align: center;
}

.home-formati h2 {
  text-align: center;
  font-size: 42px;
  line-height: 1.1;
  font-weight: 700;
  color: #111;
  margin-bottom: 40px;
}

.home-formati-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.home-formato-card {
  position: relative;
  height: 340px;
  min-height: 340px;
  overflow: hidden;
  border-radius: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-decoration: none;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  transition: transform .35s ease;
  isolation: isolate;
  color: #fff;
  aspect-ratio: 1;
}

.home-formato-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.65) 0%,
    rgba(0,0,0,.35) 18%,
    rgba(0,0,0,0) 38%
  );
  z-index: 1;
}

.home-formato-card::after {
  background: transparent;
}

.home-formato-card span {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 24px 18px;
  text-align: center;
  color: #fff;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
}

.home-formato-card:hover {
  transform: translateY(-5px);
}

.card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}

.home-formato-card:hover .card-bg {
  transform: scale(1.08);
}

.card-content {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 2;
  text-align: left;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.home-grani {
  padding: 40px 0;
  display: flex;
  justify-content: center;
}

.home-grani-inner {
  width: 100%;
  max-width: 1100px;
  display: flex;
  align-items: center;
  gap: 40px;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 40px;
  background: #f9f9f9;
}

.home-grani-text {
  flex: 1;
}

.home-grani-text h2 {
  margin: 0 0 15px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
}

.home-grani-text p {
  margin: 0 0 20px;
  font-size: 18px;
  color: #555;
}

.home-grani-image {
  flex: 1;
}

.home-grani-image a {
  display: block;
  overflow: hidden;
  border-radius: 6px;
}

.home-grani-image img {
  width: 100%;
  height: auto;
  transition: transform .4s ease, filter .4s ease;
}

.home-grani-image a:hover img {
  transform: scale(1.06);
  filter: brightness(0.95);
}

.home-nespresso-det .home-grani-inner {
  flex-direction: row;
}

.home-services {
  padding: 35px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.home-services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  align-items: center;
}

.ac-category-hero-overlay {
  min-height: 350px;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.78) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.78) 100%
  );
  display: flex;
  align-items: center;
}

@media (max-width: 767px) {
  .ac-category-hero-overlay {
    min-height: 340px;
  }
}

.ac-category-hero-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 25px;
}

@media (max-width: 991px) {
  .home-formati-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

@media (max-width: 991px) {
  .home-formato-card {
    height: 220px;
    min-height: 220px;
  }
}

@media (max-width: 991px) {
  .home-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .home-formati {
    padding: 40px 0;
  }
}

@media (max-width: 767px) {
  .home-formati-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .home-formato-card {
    height: 200px;
    min-height: 200px;
  }
}

@media (max-width: 767px) {
  .home-grani {
    padding: 0 0 40px;
  }
}

@media (max-width: 767px) {
  .home-grani-inner {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }
}

@media (max-width: 767px) {
  .home-nespresso-det .home-grani-inner {
    display: flex;
    flex-direction: column-reverse;
  }
}

@media (max-width: 575px) {
  .home-services-grid {
    grid-template-columns: 1fr;
  }
}



#home-formati {
  scroll-margin-top: 50px;
}
