/* --------------------------------------------------
   HERO
-------------------------------------------------- */
.hero {
  position: relative;
  height: 90vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-logo {
  position: absolute;
  top: 20px;
  width: 170px;
  height: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero h1 {
  color: #fff;
  font-family: "Josefin Sans", sans-serif;
  font-size: 58px;
  font-weight: 400;
  letter-spacing: 1px;
  max-width: 900px;
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 38px;
    line-height: 1.1;
    max-width: 90%;
  }
}

@media (min-width: 577px) and (max-width: 992px) {
  .hero-logo {
    width: 130px;
    top: 30px;
  }

  .hero h1 {
    font-size: 46px;
    line-height: 50px;
    max-width: 80%;
    margin: 0 auto;
  }

  
}

/* --------------------------------------------------
   RED SECTION
-------------------------------------------------- */
.red-section {
  position: relative;
  text-align: center;
  padding: 40px 0;
  background: none !important;
  overflow: visible;
}

.red-stars {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    url('../img/section-stars.svg'),
    radial-gradient(circle, rgba(101,10,10,1) 0%, rgba(231,63,57,1) 50%, rgba(101,10,10,1) 100%);
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover, 101%;
}

.red-section > *:not(.red-stars) {
  position: relative;
  z-index: 2;
}

.red-section h2 {
  color: #fff;
  font-size: 32px;
}

.red-section-subtitle {
  font-family: "Josefin Sans", sans-serif;
  color: #E2CB78;
  font-size: 18px;
  font-weight: 600;
  margin: 40px 0 10px;
}

.red-section-text {
  color: #fff;
  margin-bottom: 48px;
  font-size: 24px;
  line-height: 19px;
}

.red-section-text a {
 color: #E2CB78;
}

/* MOBILE */
@media (max-width: 576px) {
  .red-section-subtitle {
    font-size: 12px;
    line-height: 14px;
    margin: 0 0 10px;
  }

  .red-section h2 {
    font-size: 32px;
    line-height: 34px;
    max-width: 300px;
    margin: 0 auto 20px;
  }

  .red-section-text {
    font-size: 16px;
    line-height: 22px;
    max-width: 320px;
    margin: 0 auto 40px;
  }
}

/* TABLET */
@media (min-width: 577px) and (max-width: 992px) {
  .red-section-subtitle {
    font-size: 14px;
    margin: 30px 0 12px;
  }

  .red-section h2 {
    font-size: 40px;
    margin: 0 auto 25px;
  }

  .red-section-text {
    font-size: 18px;
    line-height: 26px;
    max-width: 450px;
    margin: 0 auto 50px;
  }
}

/* FIX SPACING TITOLO PRIMA SLIDE */
.slide-one-title {
  margin: 0 !important;
}

/* --------------------------------------------------
   EXPERIENCE SECTION
-------------------------------------------------- */
.section-esperienza {
  width: 100%;
  text-align: center;
  background: #fff;
}

.esperienza-img {
  position: relative;
  overflow: hidden;
}

.esperienza-img img {
  width: 100%;
  height: auto;
  display: block;
}

.esperienza-overlay {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  max-width: 400px;
}

.exp-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 48px;
  font-weight: 500;
  margin-bottom: 5px;
}

.exp-subtitle {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 24px;
}

/* BOX */
.cta-esperienza {
  position: relative;
  margin: -240px auto 0;
  max-width: 850px;
  padding: 60px 20px 40px;
  background: #A40C08;
  color: #fff;
}

.cta-ribbon-wrapper {
  position: absolute;
  top: 0;
  left: 80px;
  transform: translateX(-50%);
  width: 160px;
}

.cta-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 33px;
  line-height: 38px;
  max-width: 490px;
  margin: 0 auto 20px;
}

.cta-desc {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 24px;
  line-height: 29px;
  max-width: 475px;
  margin: 0 auto 40px;
}

.cta-btn {
  background: #B19B5D;
  color: #fff;
  padding: 14px 0;
  border: none;
  font-family: "Josefin Sans", sans-serif;
  width: calc(100% - 40px);
  margin: 0 20px 20px;
  display: block;
  font-size: 21px;
  font-weight: 600;
  box-shadow: 0 0 17px rgba(0,0,0,0.19);
}

.cta-note {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 16px;
}
.cta-btn:hover,
.cta-btn:focus,
.cta-btn:active {
  color: #fff !important;
   background: #9C8750;
    text-decoration: none !important;
}
/* --------------------------------------------------
   EXPERIENCE – MOBILE
-------------------------------------------------- */
@media (max-width: 576px) {
  .esperienza-img {
    height: 500px !important;
  }

  .esperienza-img img {
    height: 500px;
    object-fit: cover;
  }

  .esperienza-overlay {
    bottom: 32%;
    max-width: 85%;
  }

  .exp-title {
    font-size: 32px;
  }

  .exp-subtitle {
    font-size: 16px;
  }

  .cta-esperienza {
    max-width: 92%;
    margin: -110px auto 0;
    padding: 45px 22px 30px;
  }

  .cta-ribbon-wrapper {
    left: 0;
    transform: none;
    width: 110px;
  }

  .cta-title {
    font-size: 22px;
    max-width: 250px;
  }

  .cta-desc {
    font-size: 16px;
    max-width: 230px;
  }

  .cta-btn {
    font-size: 14px;
    width: calc(100% - 30px);
  }

  .cta-note {
    font-size: 12px;
  }
}

/* --------------------------------------------------
   EXPERIENCE – TABLET
-------------------------------------------------- */
@media (min-width: 577px) and (max-width: 992px) {
  .esperienza-img {
    height: 620px;
  }

  .esperienza-img img {
    height: 620px;
    object-fit: cover;
  }

  .esperienza-overlay {
    bottom: 38%;
    max-width: 70%;
  }

  .exp-title {
    font-size: 40px;
  }

  .cta-esperienza {
    max-width: 85%;
    margin: -180px auto 0;
    padding: 60px 40px 40px;
  }

  .cta-title {
    font-size: 28px;
    max-width: 420px;
  }

  .cta-desc {
    font-size: 20px;
    max-width: 420px;
  }

  .cta-btn {
    font-size: 18px;
    width: calc(100% - 60px);
  }

  .cta-ribbon-wrapper {
    left: 60px;
    width: 120px;
  }
}

/* --------------------------------------------------
   BERLUCCHI MOMENTS
-------------------------------------------------- */
.berlucchi-moments {
  padding: 120px 20px;
  text-align: center;
  overflow: hidden;
}

.hashtag-moments {
  font-size: 33px;
  color: #19273e;
  font-weight: 300;
  font-family: "Josefin Sans", sans-serif;
}

.simple-slider .swiper {
  overflow: visible;
}

.simple-slider .swiper-slide {
  width: 300px;
}

.simple-slider .swiper-slide img {
  width: 100%;
  display: block;
}

.simple-pagination {
  position: static !important;
  margin-top: 15px;
  text-align: center;
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
  background: #0A2541;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.footer-logo {
  width: 190px;
  margin-bottom: 100px;
}

.footer-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 33px;
  margin-bottom: 10px;
}

.footer-hashtag {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 20px;
  margin-bottom: 80px;
}

.footer-follow {
  font-size: 18px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
}

.footer-social img {
  width: 28px;
}

.footer-legal {
  font-size: 14px;
  max-width: 450px;
  margin: 60px auto 0;
  line-height: 22px;
}

.footer-legal a {
  color: #fff;
  font-weight: 100;
  font-size: 13px;
}

/* MOBILE FOOTER */
@media (max-width: 576px) {
  footer {
    padding: 40px 20px;
  }

  .footer-logo {
    width: 140px;
    margin-bottom: 50px;
  }

  .footer-title {
    font-size: 26px;
    line-height: 30px;
    margin-bottom: 10px;
  }

  .footer-hashtag {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .footer-social img {
    width: 30px;
  }

  .footer-social {
    gap: 25px;
  }

  .footer-legal {
    font-size: 12px;
    max-width: 260px;
    line-height: 18px;
  }
}

/* TABLET FOOTER */
@media (min-width: 577px) and (max-width: 992px) {
  footer {
    padding: 60px 30px;
  }

  .footer-logo {
    width: 170px;
    margin-bottom: 70px;
  }

  .footer-title {
    font-size: 30px;
  }

  .footer-hashtag {
    font-size: 18px;
  }

  .footer-social img {
    width: 32px;
  }
}

/* --------------------------------------------------
   SWIPER BASE
-------------------------------------------------- */
.swiper {
  width: 100%;
  height: 582px;
  position: relative;
  overflow: hidden;
}

.swiper-wrapper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  width: 100%;
  max-width: 1050px;
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Pagination fuori */
.slider-wrapper .swiper-pagination {
  position: static !important;
  margin-top: 20px;
}

/* Arrows custom */
.slider-wrapper .swiper-button-next,
.slider-wrapper .swiper-button-prev {
  width: 70px;
  height: 70px;
  background-color: hsla(0, 82%, 22%, 0.60);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 20;
  cursor: pointer;
}

/* Rimuovo testo default Swiper */
.slider-wrapper .swiper-button-next::after,
.slider-wrapper .swiper-button-prev::after {
  content: "";
}

/* Arrow icons */
.slider-wrapper .swiper-button-next {
  background-image: url('../img/arrow-right-page.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px;
  right: 50px !important;
}

.slider-wrapper .swiper-button-prev {
  background-image: url('../img/arrow-left-page.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px;
  left: 50px !important;
}

/* Hover */
.slider-wrapper .swiper-button-next:hover,
.slider-wrapper .swiper-button-prev:hover {
  background-color: hsl(0, 82%, 22%);
  transform: scale(1.08);
  transition: 0.2s ease;
}

/* Pagination variables */
.slider-wrapper {
  position: relative;
  --swiper-pagination-color: #E2CB78;
  --swiper-pagination-bullet-inactive-color: #FFF;
  --swiper-pagination-bullet-opacity: 1;
  --swiper-pagination-bullet-inactive-opacity: 1;
  --swiper-pagination-bullet-size: 13px;
  --swiper-pagination-bullet-horizontal-gap: 8px;
}

/* --------------------------------------------------
   SLIDE ONE (DESKTOP)
-------------------------------------------------- */
.slide-one {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
}

.slide-one-inner {
  position: relative;
  width: 100%;
  max-width: 1050px;
  height: 100%;
  overflow: hidden;
}

.slide-one-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100.2%;
  object-fit: cover;
  z-index: 1;
}

.slide-one-overlay { /* prima slide */
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 2;
}

.slide-overlay { /* altre slide */
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(to bottom, #A40C08 9%, #0A2541 100%);
  z-index: 2;
}

.slide-one-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  padding: 40px 60px 40px 80px;
  color: #fff;
  z-index: 3;
}

.slide-one-arrow {
  width: 60px;
}

.slide-one-text {
  color: #fff;
  margin-bottom: 48px;
  font-size: 18px;
  line-height: 19px;
}

.slide-text {
  font-family: "Josefin Sans", sans-serif;
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  line-height: 29px;
}

.slide-one-title {
  font-size: 48px !important;
  font-weight: 300;
  text-transform: uppercase;
}

.slide-title {
  font-size: 40px !important;
  font-weight: 300;
  text-transform: uppercase;
}

/* --------------------------------------------------
   SLIDER – MOBILE & TABLET BASE
-------------------------------------------------- */
@media (max-width: 992px) {

  .swiper-button-next,
  .swiper-button-prev {
    display: none !important;
  }

  .swiper,
  .swiper-wrapper,
  .swiper-slide {
    height: auto !important;
  }

  .slide-one,
  .slide-one-inner {
    height: auto !important;
    display: block !important;
  }

  .slide-one-img {
    position: relative !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: right !important;
    display: block !important;
  }

  .slide-overlay {
    position: relative !important;
    width: 100% !important;
    background: linear-gradient(to bottom, #A40C08 9%, #0A2541 100%) !important;
    padding: 40px 24px 60px !important;
    box-sizing: border-box !important;
  }

  .slide-one-content {
    position: static !important;
    width: 100% !important;
    padding: 0 24px !important;
  }

  .red-section-subtitle {
    font-size: 12px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
  }

  .slide-title {
    font-size: 32px !important;
    line-height: 36px !important;
    margin: 0 0 30px !important;
  }

  .slide-text {
    font-size: 18px !important;
    line-height: 22px !important;
    margin: 0;
  }

  .slide-one-inner {
    margin: 0 30px !important;
    width: calc(100% - 60px) !important;
  }
}

/* --------------------------------------------------
   PRIMA SLIDE – MOBILE & TABLET
-------------------------------------------------- */
@media (max-width: 992px) {

  .swiper-slide:first-child .slide-one-img {
    width: 100% !important;
    object-position: center !important;
  }

  .prima-slide,
  .prima-slide-inner {
    height: 100% !important;
    display: block !important;
  }

  .swiper-slide:first-child .slide-one-overlay {
    position: absolute !important;
    bottom: 0 !important;
    height: 55% !important;
    width: 100% !important;
    background: rgba(0,0,0,0.40) !important;
  }

  .swiper-slide:first-child .slide-one-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: calc(100% - 60px) !important;
    margin: 0 30px !important;
    padding: 30px 0 40px !important;
  }

  .slide-one-title {
    font-size: 32px !important;
    line-height: 36px !important;
  }
}

/* --------------------------------------------------
   SLIDE SUCCESSIVE – MOBILE & TABLET
-------------------------------------------------- */
@media (max-width: 992px) {
.hashtag-moments {
  font-size: 23px;
  color: #19273e;
  font-weight: 300;
  font-family: "Josefin Sans", sans-serif;
}
  .slide-one:not(.prima-slide),
  .slide-one:not(.prima-slide) .slide-one-inner {
    height: auto !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .slide-one:not(.prima-slide) .slide-overlay {
    position: relative !important;
    width: 100% !important;
    background: linear-gradient(to bottom, #A40C08 9%, #0A2541 100%) !important;
    padding: 25px 24px 15px !important;
    min-height: 275px;
    display: flex !important;
    flex-direction: column !important;
  }

  .slide-one:not(.prima-slide) .slide-one-content {
    position: static !important;
    width: 100% !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 !important; /* ✚ portato qui dalla patch finale */
  }

  .slide-one:not(.prima-slide) .slide-title {
    font-size: 32px !important;
    line-height: 36px !important;
    margin: 0 0 30px !important;
  }

  .slide-one:not(.prima-slide) .slide-text {
    font-size: 18px !important;
  }
}

/* --------------------------------------------------
   DECORATIONS
-------------------------------------------------- */
.hero-stars {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-stars.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 105%;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero-stars {
    background-size: 150%;
    opacity: 0.8;
  }
}

@media (max-width: 576px) {
  .hero-stars {
    background-size: 190%;
    opacity: 0.7;
  }
}

@media (max-width: 900px) {
  .red-stars {
    background-size: 180%, cover;
    background-position: top right, right;
  }
}

/* --------------------------------------------------
   OVERRIDE MAIN.CSS – TIPOGRAFIE LANDING
-------------------------------------------------- */
.section-esperienza .exp-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 48px;
  font-weight: 500;
  color: #ffffff;
}

.section-esperienza .exp-subtitle {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 24px;
  color: #ffffff;
}

.section-esperienza .cta-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 33px;
  font-weight: 500;
  color: #ffffff;
}

.section-esperienza .cta-desc {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 24px;
  color: #ffffff;
}

.section-esperienza .cta-note {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 16px;
  color: #ffffff;
}

footer .footer-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 33px;
  font-weight: 500;
}

footer .footer-hashtag {
  font-family: "Frank Ruhl Libre", serif;
  font-size: 20px;
}

footer .footer-follow {
  font-size: 18px;
}

footer .legal-strong {
  font-weight: 600;
}

footer .footer-legal {
  font-size: 14px;
  line-height: 22px;
}

/* MOBILE TYPOGRAPHY */
@media (max-width: 576px) {

  .section-esperienza .exp-title {
    font-size: 32px;
    line-height: 34px;
  }

  .section-esperienza .exp-subtitle {
    font-size: 16px;
    line-height: 20px;
  }

  .section-esperienza .cta-title {
    font-size: 22px;
    line-height: 28px;
  }

  .section-esperienza .cta-desc {
    font-size: 16px;
    line-height: 22px;
  }

  .section-esperienza .cta-note {
    font-size: 12px;
    line-height: 14px;
  }

  footer .footer-title {
    font-size: 26px;
    line-height: 30px;
  }

  footer .footer-hashtag {
    font-size: 16px;
    line-height: 20px;
  }

  footer .footer-legal {
    font-size: 12px;
    line-height: 18px;
  }
}
/* FIX: Ripristino dimensioni corrette cta-title per TABLET */
@media (min-width: 577px) and (max-width: 992px) {
  .section-esperienza .cta-title {
    font-size: 28px !important;
    line-height: 34px !important;
    max-width: 420px !important;
    margin: 0 auto 20px !important;
  }
  @media (min-width: 577px) and (max-width: 992px) {
    .cta-desc {
        font-size: 20px;
        line-height: 26px;
        max-width: 420px;
        margin: 0 auto 35px;
    }
}
}

/* --------------------------------------------------
   CTA RIBBON FIX (FINAL)
-------------------------------------------------- */
.section-esperienza .cta-ribbon-wrapper > img.cta-ribbon {
  width: 100%;
  max-width: none;
  height: auto;
  display: block;
}


/* FIX DEFINITIVO – Prima slide mobile: overlay in basso */
@media (max-width: 992px) {

  .swiper-slide:first-child .slide-one-overlay {
    position: absolute !important;
    top: auto !important;
    bottom: 0 !important;
    height: 55% !important;
    width: 100% !important;
    background: rgba(0,0,0,0.40) !important;
  }

  .swiper-slide:first-child .slide-one-content {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: calc(100% - 60px) !important;
    margin: 0 30px !important;
    padding: 30px 0 40px !important;
  }
  .slide-one-text {
    margin-bottom: 0;
  }
}

/* RIMUOVE DEFINITIVAMENTE LE FRECCE DEFAULT DI SWIPER */

.swiper-button-next::after,
.swiper-button-prev::after {
  content: "" !important;
  background: none !important;
  background-image: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

/* Disabilita gli SVG interni (alcune versioni li iniettano dinamicamente) */
.swiper-button-next svg,
.swiper-button-prev svg {
  display: none !important;
}


footer .footer-title,
footer .footer-hashtag,
footer .footer-follow,
footer .footer-legal,
footer .footer-legal a {
    color: #ffffff !important;
}


/* Restore Berlucchi Moments pagination bullets */
.simple-slider .swiper-pagination-bullet {
  background: #A3892F !important;       /* colore oro per bullet attivo */
  opacity: 1 !important;
}

.simple-slider .swiper-pagination-bullet:not(.swiper-pagination-bullet-active) {
  background: #ccc !important;          /* colore pallino inattivo */
  opacity: 1 !important;
}

.simple-slider .swiper-pagination-bullet-active {
  background: #A3892F !important;
}