/* ==========================================================================
   1. BASE, FONT & RESET GLOBALI
   ========================================================================== */
@font-face {
  font-family: "LogoFont";
  src: url("../fonts/logo.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "TitoloFont";
  src: url("../fonts/titoli.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "TestoFont";
  src: url("../fonts/testo.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

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

body {
  margin: 0;
  background: #002dff;
  color: #ffffff;
  font-family: "TestoFont", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 60px;

}

@media (min-width: 992px) {
  body {
    font-size: 18px;
    padding-top: 100px;

  }
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

html {
  scroll-behavior: smooth;
}

section,
main {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.container-fluid {
  padding-left: 0;
  padding-right: 0;
}

input,
textarea {
  -webkit-user-select: text;
  user-select: text;
}


::selection {
  background-color: #ff00cc;
  color: #ffffff;
  position: relative;
  z-index: -1;
}

::-moz-selection {
  background-color: #ff00cc;
  color: #ffffff;
  position: relative;
  z-index: -1;
}


/* ==========================================================================
   2. HEADER, NAVIGAZIONE & LOGO
   ========================================================================== */
.logo {
  font-family: "LogoFont", sans-serif;
  color: #ff00cc;
  font-weight: 700;
  font-size: 28px;
}

@media (min-width: 992px) {
  .logo {
    font-size: 40px;
  }
}

h1,
h2,
h3,
h4 {
  font-family: "TitoloFont", sans-serif;
  line-height: 0.93;
  letter-spacing: normal;
}

p,
li,
a,
button,
input,
textarea {
  font-family: "TestoFont", sans-serif;
  line-height: 1.2 !important;
}

.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  background: #002dff;
}

.header-inner {
  padding: 0;
}

.main-nav {
  gap: 12px;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 600;
}

.navbar-nav .nav-link {
  color: #ffffff;
  position: relative;
  padding: 10px 15px !important;
  border-radius: 8px;
  overflow: hidden;
  transition: color 0.25s ease, background 0.25s ease;
  line-height: 1;
  display: flex;
  align-items: center;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #ffffff;
}


.main-nav .nav-link::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
  border: 2px solid transparent;
  background: linear-gradient(90deg, #ff00cc, #ff66e0, #f0b3ff, #ff00cc) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.main-nav .nav-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 0%, #ffffff70 50%, transparent 100%);
  transform: translateX(-100%);
  animation: neon-run 1.5s linear infinite;
  opacity: 0;
}

.main-nav .nav-link:hover::before,
.main-nav .nav-link:hover::after,
.main-nav .nav-link.active::before,
.main-nav .nav-link.active::after {
  opacity: 1;
}

@keyframes neon-run {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}

.navbar-toggler {
  border-color: #ff00cc;
  border-radius: 8px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 0, 204, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.active:hover,
.navbar-nav .nav-link.active:focus {
  color: #ffffff;
  font-weight: 700;
}

.navbar-brand.logo {
  color: #ff00cc;
}

.navbar-brand.logo:hover,
.navbar-brand.logo:focus {
  color: #ffffff !important;
  transition: color 0.3s ease;
}

/* ==========================================================================
   MODIFICA MOBILE
   ========================================================================== */

@media (max-width: 991px) {

  .main-nav .nav-link::before,
  .main-nav .nav-link::after {
    display: none !important;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link:focus {
    color: #ffffff !important;
    background: none;
  }


  .navbar-collapse {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #002dff !important;
    padding-top: 30px;
    z-index: 1020;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.4s ease-in-out;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
  }


  .navbar-collapse.show {
    clip-path: inset(0 0 0 0);
  }

  .navbar-collapse.collapsing {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px) !important;
    background-color: #002dff !important;
    z-index: 1020;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    clip-path: inset(0 0 100% 0);
    transition: height 0s;
  }

  .navbar-nav {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .navbar-nav .nav-link {
    width: 100%;
    display: block;
    font-size: 24px !important;
    padding: 20px 0 !important;
    color: #ffffff !important;
    text-align: center !important;
  }

  .navbar-nav .nav-link.active {
    background-color: #ff00cc !important;
    color: #ffffff !important;
  }

}

@media (max-width: 991px) {



  /* MENU */
  .navbar-collapse {
    position: fixed;


    top: 60px;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #002dff !important;
    z-index: 1020;
    padding-top: 20px;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.4s ease-in-out;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    border-top: 1px solid #002dff;
    margin-top: -1px;
  }

}


.navbar-nav .nav-link[href*="contat"].active::before,
.navbar-nav .nav-link[href*="contat"].active::after,
.navbar-nav .nav-link[href*="contact"].active::before,
.navbar-nav .nav-link[href*="contact"].active::after {
  opacity: 0 !important;
  animation: none !important;
}

.navbar-nav .nav-link[href*="contat"]:hover::before,
.navbar-nav .nav-link[href*="contat"]:hover::after,
.navbar-nav .nav-link[href*="contact"]:hover::before,
.navbar-nav .nav-link[href*="contact"]:hover::after {
  opacity: 1 !important;
}

.navbar-nav .nav-link[href*="contat"].active,
.navbar-nav .nav-link[href*="contact"].active {
  color: #ffffff !important;
  font-weight: 600 !important;
}

.navbar-nav .nav-link[href*="contat"]:hover,
.navbar-nav .nav-link[href*="contact"]:hover {
  color: #ffffff !important;
}


/* ==========================================================================
   3. HERO & SLIDER (HOME)
   ========================================================================== */
.hero {
  padding: 0 0 60px;
}

.hero-inner {
  display: block;
}

.hero-main-title {
  font-family: "TitoloFont", sans-serif;
  font-size: 56px;
  line-height: 1.1;
  margin: 0 0 16px;
  text-transform: uppercase;
  text-align: left;
  width: 100%;
  display: block;
}

@media (min-width: 992px) {
  .hero-main-title {
    font-size: 80px;
    margin-bottom: 80px;
    margin-top: 80px;
  }
}

.hero-text {
  text-align: left;
}

.hero-text p {
  font-size: 20px;
  line-height: 1.6;
  max-width: 100%;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  transition: transform 0.3s ease-out;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 45, 255, 0.3);
}

.top-slider {
  position: relative;
  width: 100%;
  height: 350px;
  margin-top: 20px;
  overflow: hidden;
  background: transparent;
  display: block;
}

@media (min-width: 992px) {
  .top-slider {
    height: 480px;
  }
}

.top-slider-wrapper {
  display: flex;
  width: max-content;
  height: 100%;
  animation: marquee-infinite 60s linear infinite;
}

.top-slider-track {
  display: flex;
  align-items: center;
  gap: 15px;
  padding-right: 15px;
  flex-shrink: 0;
  height: 100%;
}

.slide-item {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}

.slide-item img {
  height: auto !important;
  width: auto !important;
  max-height: 100% !important;
  max-width: 100% !important;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

@keyframes marquee-infinite {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-25%, 0, 0);
  }
}

/* override home */
.home h1,
.home h2,
.home h3,
.home .hero-main-title {
  line-height: 1 !important;
}

.home .hero-text p {
  font-size: 25px !important;
  line-height: 1.2 !important;
}

.home .hero-main-title {
  line-height: 0.93 !important;
}


/* ==========================================================================
   4. COMPONENTI & CARD (TRIPS, COME FUNZIONA, TESTIMONIAL)
   ========================================================================== */
/* Bottoni */
.btn-grad {
  display: inline-block;
  margin-top: 24px;
  padding: 16px 36px;
  text-align: center;
  text-transform: uppercase;
  font-family: "TestoFont", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  background-image: linear-gradient(to right, #ff00cc 0%, #ff66e0 50%, #ff00cc 100%);
  background-size: 200% auto;
  border-radius: 999px;
  border: none;
  box-shadow: 0 0 20px rgba(255, 0, 204, 0.5);
  transition: 0.5s ease;
}

.btn-grad:hover {
  background-position: right center;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 102, 224, 0.8);
}

.btn-grad-blue {
  display: inline-block;
  margin-top: 24px;
  padding: 16px 36px;
  text-align: center;
  text-transform: uppercase;
  font-family: "TestoFont", sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #ffffff;
  background-image: linear-gradient(to right, #002dff 0%, #6685ff 50%, #002dff 100%);
  background-size: 200% auto;
  border-radius: 999px;
  border: none;
  box-shadow: 0 0 20px rgba(0, 45, 255, 0.5);
  transition: 0.5s ease;
}

.btn-grad-blue:hover {
  background-position: right center;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(102, 133, 255, 0.8);
}


.how-title-bar {
  background: #ff00cc;
  text-align: center;
  height: auto;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how-title-bar h2 {
  margin: 0;
  padding: 40px 20px;
  font-size: 32px;
  line-height: 1.3;
}

.how-inner {
  padding: 40px 0 60px;
  text-align: center;
}

.how-video {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 24px;
  border-radius: 8px;
  overflow: hidden;
}


.how-page h1 {
  font-size: 48px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.how-page p {
  font-size: 18px;
  max-width: 600px;
  line-height: 1.6;
}

.how-steps {
  padding: 60px 0;
}

.how-step-title {
  font-size: 26px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.how-step-text p {
  font-size: 18px;
}

.how-bar-final {
  margin-top: 60px;
}

/* Trips & Buste 3D */
.trips {
  padding: 60px 0;
  text-align: center;
}

.trips-inner h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.trips-image {
  margin-bottom: 24px;
}

.trips-envelopes-row {
  margin-top: 40px;
  row-gap: 50px;
}

.wrapper {
  height: 180px;
  width: 270px;
  background-color: transparent;
  position: relative;
  display: flex;
  justify-content: center;
  z-index: 0;
  margin: 0 auto;
}

.lid {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  border-right: 135px solid transparent;
  border-bottom: 90px solid transparent;
  border-left: 135px solid transparent;
  transform-origin: top;
  transition: transform 0.25s linear;
}

.lid.one {
  border-top: 90px solid #cc009f;
  transform: rotateX(0deg);
  z-index: 4;
  transition-delay: 0.75s;
}

.lid.two {
  border-top: 90px solid #ff00cc;
  transform: rotateX(90deg);
  z-index: 1;
  transition-delay: 0.5s;
}

.envelope {
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  border-top: 90px solid transparent;
  border-right: 135px solid #ff00cc;
  border-bottom: 90px solid #ff00cc;
  border-left: 135px solid #ff00cc;
  z-index: 3;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.7);
}

.letter {
  position: absolute;
  top: 8px;
  width: 78%;
  height: 78%;
  background-color: transparent;
  border-radius: 8px;
  overflow: hidden;
  z-index: 2;
  transition: 0.5s;
  box-shadow: none;
}

.letter a {
  display: block;
  width: 100%;
  height: 100%;
}

.letter img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.wrapper:hover .lid.one {
  transform: rotateX(90deg);
  transition-delay: 0s;
}

.wrapper:hover .lid.two {
  transform: rotateX(180deg);
  transition-delay: 0.25s;
}

.wrapper:hover .letter {
  transform: translateY(-50px);
  transition-delay: 0.5s;
  box-shadow: 0 0 20px rgba(255, 0, 204, 0.9), 0 0 32px rgba(0, 45, 255, 0.8);
  z-index: 5;
}

.wrapper:hover .letter img {
  transform: scale(1.05);
}

/* Testimonials Home (Base) */
.testimonials-title-bar {
  background: #ff00cc;
  text-align: center;
  height: auto;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}

.testimonials-title-bar h2 {
  margin: 0;
  padding: 40px 20px;
  font-size: 32px;
  line-height: 1.2 !important;
}

.testimonials-bar {
  background: #ff00cc;
  padding: 40px 0 40px;
}

.testimonials-inner {
  padding: 0 8px;
}

.testimonials-inner .row {
  row-gap: 30px;
}

.testimonial-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.testimonial-card {
  background: #002dff;
  border: none;
  border-radius: 8px;
  padding: 24px 20px;
  color: #ffffff;
}

.testimonial-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  opacity: 0.9;
  margin-bottom: 12px;
}

.testimonial-card-big .testimonial-name {
  font-size: 16px;
  font-weight: 600;
}

.testimonial-card-big h3 {
  font-size: 24px;
  margin: 12px 0 12px;
  text-transform: uppercase;
  letter-spacing: normal;
}

.testimonial-card-big p {
  font-size: 16px;
  line-height: 1.6;
}

.testimonial-card-small h3 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 15px;
  line-height: 1.2 !important;
}

.testimonial-card-small p {
  font-size: 15px;
  line-height: 1.2;
}

.testimonials-cta {
  text-align: center;
  padding: 32px 0 0;
}


/* ==========================================================================
   5. PAGINA RECENSIONI (LISTA)
   ========================================================================== */
.recensioni-page h1 {
  font-size: 48px;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: #ffffff;
}

.recensioni-hero p {
  font-size: 20px;
  max-width: 500px;
  color: #ffffff;
}

.review-card-large {
  background: #ff00cc;
  color: #ffffff;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.review-card-small {
  background: #ff00cc;
  color: #ffffff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  height: 100%;
  font-size: 14px;
  box-shadow: 0 0 0 rgba(255, 0, 204, 0);
  transform: translateY(0) scale(1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.review-title {
  font-size: 28px;
  margin: 12px 0 16px;
  text-transform: uppercase;
  letter-spacing: normal;
  line-height: 1.2;
  padding-top: 15px;
}

.review-text {
  font-size: 18px;
  margin: 0;
  line-height: 1.2;
  flex-grow: 1;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
}

.review-title-small {
  font-size: 18px;
  margin: 8px 0;
  font-weight: 600;
  line-height: 1.2;
  padding-top: 10px;
}

.review-text-small {
  font-size: 15px;
  margin: 0;
  line-height: 0.9;
  flex-grow: 1;
}

.review-card-large ::selection,
.review-card-small ::selection {
  background-color: #002dff;
  color: #ffffff;
  text-shadow: none;
}

.review-card-large ::-moz-selection,
.review-card-small ::-moz-selection {
  background-color: #002dff;
  color: #ffffff;
  text-shadow: none;
}


/* ==========================================================================
   6. PAGINA ESPERIENZE (LISTA & DETTAGLIO)
   ========================================================================== */
.esperienze-page h1 {
  font-size: 48px;
  text-transform: uppercase;
  margin: 0 0 16px;
}

.esperienze-hero p {
  font-size: 18px;
  max-width: 500px;
}

.esperienze-slider {
  background: #002dff;
  padding: 50px 0;
  overflow: hidden;
}

.esperienze-slider-viewport {
  width: 100%;
  overflow: visible;
}

.esperienze-slider-track {
  display: flex;
  gap: 80px;
  width: max-content;
  animation: esperienze-marquee 60s linear infinite;
  padding: 20px 0;
}

@keyframes esperienze-marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.esperienze-slide-pair {
  position: relative;
  width: 360px;
  height: 260px;
  flex: 0 0 auto;
}

.esperienze-slide-img {
  position: absolute;
  width: 260px;
  height: auto;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  border-radius: 0 !important;
  transition: transform 0.4s ease-out;
}

.esperienze-slide-img img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.esperienze-slide-img.is-left {
  bottom: 0;
  left: 0;
  z-index: 1;
  transform: rotate(-8deg);
}

.esperienze-slide-img.is-right {
  top: 0;
  right: 0;
  z-index: 2;
  transform: rotate(8deg);
}

.esperienze-slide-pair:hover .is-left {
  transform: translateX(-15px) rotate(-15deg) scale(1.05);
}

.esperienze-slide-pair:hover .is-right {
  transform: translateX(15px) rotate(15deg) scale(1.05);
}

/* Lista Esperienze */
.esperienze-list-header,
.esperienze-list {
  background: #002dff;
}

.esperienze-list-title {
  margin: 0 0 32px;
  font-size: 32px;
  text-transform: uppercase;
  padding-bottom: 100px;
}

.esperienza-row {
  border-bottom: 2px solid #ff00cc;
  padding: 24px 0;
}

.esperienza-link {
  display: block;
}

.esperienza-title {
  font-size: 40px;
  text-transform: uppercase;
  margin: 0 0 8px;
  letter-spacing: normal;
  font-weight: 800;
  transition: color 0.25s ease, transform 0.15s ease;
}

.esperienza-row:hover .esperienza-title {
  color: #ff00cc;
  transform: translateX(4px);
}


.esperienza-hero h1 {
  font-size: 56px;
  text-transform: uppercase;
  margin-bottom: 0px !important;
  line-height: 0.9;
}

.esperienza-sub {
  font-size: 20px;
  opacity: 0.9;
  margin-top: 10px;
  margin-bottom: 0 !important;
}

.esperienza-block-title {
  font-size: 28px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.esperienza-block-text-body p {
  font-size: 18px;
  line-height: 1.6;
}

.esperienza-quote {
  font-family: "TitoloFont", sans-serif;
  font-size: 56px;
  line-height: 1.1 !important;
  text-align: center !important;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}


.theme-blue {
  background-color: #002dff !important;
  color: #ffffff !important;
}

.theme-blue .esperienza-quote {
  color: #ff00cc;
}

.theme-blue ::selection {
  background-color: #ff00cc;
  color: #ffffff;
}

.theme-blue ::-moz-selection {
  background-color: #ff00cc;
  color: #ffffff;
}

.theme-magenta {
  background-color: #ff00cc !important;
  color: #ffffff !important;
}

.theme-magenta .esperienza-quote {
  color: #002dff;
}

.theme-magenta *::selection {
  background-color: #002dff !important;
  color: #ffffff !important;
}

.theme-magenta *::-moz-selection {
  background-color: #002dff !important;
  color: #ffffff !important;
}


/* ==========================================================================
   7. FOOTER & CONTATTI
   ========================================================================== */
.contact {
  padding: 80px 0 100px;
  width: 100%;
}

.contact h2 {
  margin-top: 0;
  margin-bottom: 50px;
  font-size: 36px;
  text-align: center;
  text-transform: uppercase;
  line-height: 0.93 !important;
}

.contact-rows-container {
  width: 100%;
  border-top: 1px solid #ff00cc;
}

.contact-row-full {
  width: 100%;
  border-bottom: 1px solid #ff00cc;
  padding-top: 30px;
  padding-bottom: 30px;
  margin: 0;
  background: transparent;
}

.contact-text {
  margin: 0 !important;
  padding: 0;
  font-size: 25px;
  line-height: 1.2;
  text-align: center;
}

.contact-text a {
  text-decoration: none;
  color: inherit;
}

.contact-text a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: #ff00cc;
  color: #ffffff;
  padding: 60px 0 15px 0;
  width: 100%;
  transition: background-color 0.3s ease;
}

.site-footer.bg-magenta {
  background-color: #ff00cc !important;
  color: #ffffff !important;
}

.site-footer.bg-blue {
  background-color: #002dff !important;
  color: #ffffff !important;
}

.pre-footer-logo-container {
  width: 100%;
  padding-top: 40px;
  padding-bottom: 60px;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-bar-single-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  font-family: "TestoFont", sans-serif;
  font-size: 14px;
}

.footer-icon a {
  font-size: 20px;
  text-decoration: none;
  display: block;
}

.footer-text-inline {
  display: flex;
  gap: 8px;
  white-space: nowrap;
  flex-wrap: nowrap;
  align-items: center;
}

.sep {
  opacity: 0.5;
  font-size: 12px;
}

.footer-text-inline a {
  text-decoration: none;
}

.footer-text-inline a:hover {
  text-decoration: underline;
}

@media (max-width: 991px) {
  .site-footer {
    padding: 40px 0 20px 0;
  }

  .footer-bar-single-line {
    display: grid;
    grid-template-columns: 40px 1fr;
    align-items: end;
    gap: 10px;
  }

  .footer-icon {
    grid-column: 1;
    text-align: left;
    padding-bottom: 2px;
  }

  .footer-text-inline {
    grid-column: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 5px;
    white-space: normal;
    text-align: center;
    font-size: 12px;
    justify-items: center;
  }

  .footer-text-inline .sep {
    display: none;
  }

  .footer-text-inline span:first-child {
    grid-column: span 2;
    width: 100%;
    margin-bottom: 8px;
  }
}


/* ==========================================================================
   8. ANIMAZIONI & MEDIA QUERY EXTRA
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(1) {
  transition-delay: 0s;
}

.reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.reveal:nth-child(4) {
  transition-delay: 0.3s;
}

/* override come funziona */
.how-page {
  background-color: #ff00cc !important;
  color: #002dff !important;
}

.how-page ::selection {
  background-color: #002dff;
  color: #ffffff;
}

.how-page ::-moz-selection {
  background-color: #002dff;
  color: #ffffff;
}

.how-page .how-title-bar ::selection {
  background-color: #ff00cc;
  color: #ffffff;
}

.how-page .how-title-bar ::-moz-selection {
  background-color: #ff00cc;
  color: #ffffff;
}

.how-page .hero h1,
.how-page .hero p {
  color: #ffffff !important;
  text-align: left;
}

.how-page .how-step-title {
  color: #002dff !important;
  font-weight: 700;
  font-size: 28px;
}

.how-page .how-step-text,
.how-page .how-step-text p {
  color: #002dff !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1.5;
}

.how-page .how-title-bar {
  background-color: #002dff;
  color: #ffffff;
}

body.template-come-funziona .site-header {
  background-color: #ff00cc !important;
}

body.template-come-funziona .navbar-brand.logo {
  color: #002dff !important;
}

body.template-come-funziona .navbar-nav .nav-link {
  color: #002dff !important;
  font-weight: 600;
}

body.template-come-funziona .navbar-toggler {
  border-color: #002dff !important;
}

body.template-come-funziona .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 45, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

body.template-come-funziona .main-nav .nav-link::before {
  background: linear-gradient(90deg, #002dff, #00c6ff, #002dff) border-box !important;
}

/* Galleria Cartoline */
#gallery-container {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  display: flex;
  justify-content: center;
  user-select: none;
  perspective: 1000px;
  background: transparent;
  margin: 0 auto;
}

#gallery-container:active {
  cursor: grabbing;
}

.gallery-item {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 320px;
  height: 215px;
  will-change: transform;
  margin-left: -160px;
}

.gallery-item-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
}

.gallery-item:hover .gallery-item-inner {
  transform: rotateY(180deg);
}

.gallery-face {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 0;
  background-color: transparent;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.gallery-back {
  transform: rotateY(180deg);
  background-color: transparent;
}

@media (max-width: 768px) {
  #gallery-container {
    height: 300px;
  }

  .gallery-item {
    width: 240px;
    height: 160px;
    margin-left: -120px;
  }
}

/* responsive extra */
@media (max-width: 991px) {
  .how-page .how-step {
    display: flex;
    flex-wrap: wrap;
  }

  .how-page .how-step-image {
    order: 1 !important;
    width: 100%;
  }

  .how-page .how-step-textcol {
    order: 2 !important;
    width: 100%;
  }

  .how-page .how-step-image img {
    width: 100%;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    font-size: 14px;
    gap: 8px;
  }

  .how-page h1 {
    font-size: 36px;
    margin: 0 0 16px;
  }

  .how-page p {
    font-size: 16px;
    max-width: 480px;
  }

  .how-step-title {
    font-size: 22px;
    margin-bottom: 8px;
  }

  .how-step-text p {
    font-size: 16px;
  }

  .esperienze-slider-track {
    animation-duration: 26s;
  }

  .recensioni-page h1,
  .esperienze-page h1 {
    font-size: 32px;
  }

  .wrapper {
    height: 160px;
    width: 240px;
  }

  .lid {
    border-right: 120px solid transparent;
    border-bottom: 80px solid transparent;
    border-left: 120px solid transparent;
  }

  .lid.one {
    border-top: 80px solid #cc009f;
  }

  .lid.two {
    border-top: 80px solid #ff00cc;
  }

  .envelope {
    border-top: 80px solid transparent;
    border-right: 120px solid #ff00cc;
    border-bottom: 80px solid #ff00cc;
    border-left: 120px solid #ff00cc;
  }

  .trips-envelopes-row {
    row-gap: 32px;
  }

  .footer-bar {
    flex-direction: column;
    gap: 12px;
  }

  .footer-info {
    justify-content: center;
    text-align: center;
  }

  .esperienza-hero h1 {
    font-size: 42px;
  }

  .esperienza-quote {
    font-size: 32px;
    line-height: 1.2 !important;
    margin-top: 40px;
    margin-bottom: 40px;
  }
}


/* ==========================================================================
   9. FIX FINALI & OVERRIDE DI PRIORITÀ
   ========================================================================== */

/* Fix Layout Pagine Dettaglio Esperienza (Isolato) */
.esperienza-blocks .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.esperienza-blocks .row {
  margin-bottom: 60px !important;
  margin-top: 0 !important;
  padding: 0 !important;
  --bs-gutter-x: 1.5rem;
}

.esperienza-blocks .row:last-child {
  margin-bottom: 0 !important;
}

.esperienza-blocks [class*="col-"] {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.esperienza-blocks figure,
.esperienza-blocks .esperienza-image-wrapper,
.esperienza-blocks .esperienza-video-wrapper {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  font-size: 0 !important;
  display: block !important;
  border: none !important;
}

.esperienza-blocks img,
.esperienza-blocks video {
  display: block !important;
  width: 100%;
  height: auto;
  margin: 0 !important;
  padding: 0 !important;
}

.esperienza-blocks .esperienza-quote {
  margin: 0 !important;
  line-height: 1.1 !important;
  display: block;
  width: 100%;
}

/* Spaziatura Titoli Card Home */
body .testimonial-card-big h3 {
  margin-top: 15px !important;
  margin-bottom: 12px !important;
  line-height: 1.2 !important;
}

body .testimonial-card-small h3 {
  margin-top: 10px !important;
  margin-bottom: 8px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

/* Override Recensioni per Home Page */
.home-review-card {
  background-color: #002dff !important;
  color: #ffffff !important;
  border: none !important;
}

.home-review-card .review-title,
.home-review-card .review-title-small,
.home-review-card .review-meta,
.home-review-card p {
  color: #ffffff !important;
}

.home-review-card .heart-filled {
  color: #ff00cc !important;
}

.home-review-card .heart-empty {
  color: rgba(255, 255, 255, 0.3) !important;
}

.home-review-card ::selection {
  background-color: #ff00cc !important;
  color: #ffffff !important;
}

.home-review-card ::-moz-selection {
  background-color: #ff00cc !important;
  color: #ffffff !important;
}

#testimonials {
  background-color: #ff00cc;
  padding-top: 60px;
  padding-bottom: 60px;
  width: 100%;
}

/* recensioni stats & grafico */
.recensioni-stats {
  background-color: #002dff;
  color: #ffffff;
  padding-bottom: 40px;
}

.score-value-big {
  font-family: "TitoloFont", sans-serif;
  font-size: 80px;
  line-height: 1;
  color: #ff00cc;
}

.score-hearts-big .heart-filled {
  color: #ff00cc;
  font-size: 24px;
}

.score-hearts-big .heart-dimmed {
  color: rgba(255, 255, 255, 0.3);
  font-size: 24px;
}

.score-count-label {
  font-size: 16px;
  text-transform: uppercase;
  opacity: 0.8;
}

.recensioni-bars {
  width: 100%;
}

.recensioni-bar-row {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.recensioni-bar-label {
  font-size: 16px;
  font-weight: 600;
  min-width: 80px;
  text-align: right;
  margin-right: 15px;
}

.recensioni-bar-track {
  flex-grow: 1;
  background-color: rgba(255, 255, 255, 0.2);
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
}

.recensioni-bar-fill {
  background-color: #ff00cc;
  height: 100%;
  border-radius: 6px;
  display: block;
}

/* Icone Footer */
.footer-icon img {
  width: 24px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-footer .container,
.site-footer .container-fluid {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

.footer-bar-single-line {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100%;
}

.footer-icon {
  padding-left: 20px;
  flex-shrink: 0;
}

.footer-text-inline {
  padding-right: 20px;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .footer-bar-single-line {
    flex-direction: row !important;
  }

  .footer-text-inline {
    font-size: 10px;
    white-space: normal;
    text-align: right;
    padding-left: 10px;
  }
}

.footer-text-inline p {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
}

/* fix definitivo cuori (home & recensioni) */
.home-review-card .testimonial-hearts span,
.recensioni-page .testimonial-hearts span,
.score-hearts-big span {
  font-family: inherit !important;
  display: inline-block;
}

.home-review-card .heart-filled {
  color: #ffffff !important;
  opacity: 1 !important;
}

.home-review-card .heart-empty {
  color: #ffffff !important;
  opacity: 0.3 !important;
}

.recensioni-page .heart-filled,
.review-card-large .heart-filled,
.review-card-small .heart-filled {
  color: #ffffff !important;
  opacity: 1 !important;
}

.recensioni-page .heart-empty,
.recensioni-page .heart-dimmed,
.review-card-large .heart-dimmed,
.review-card-small .heart-dimmed {
  color: #ffffff !important;
  opacity: 0.4 !important;
}

/* Override Pagina "Come Funziona" (Testi Grandi) */
.how-page .hero p,
.how-page .how-inner p {
  font-size: 18px !important;
  line-height: 1.5 !important;
}

.how-page .how-step-text p,
.how-page .how-step-text {
  font-size: 18px !important;
  line-height: 1.4 !important;
}

/* =========================================
   VIDEO SWITCHER (HOME - COME FUNZIONA)
   ========================================= */

.how-video {
  display: block;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 24px;
  outline: none;
}


.video-desktop {
  display: none !important;
}

.video-mobile {
  display: block !important;
}

@media (min-width: 768px) {
  .video-desktop {
    display: block !important;
  }

  .video-mobile {
    display: none !important;
  }
}

.how-video {
  width: 100%;
  max-width: 100% !important;
  /* ERA 900px -> ORA 100% */
  margin: 0 auto 24px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
}

/* =========================================
   UNIFORMA BORDER RADIUS (ANGOLI TONDI)
   ========================================= */

.how-video {
  border-radius: 18px !important;
}

.esperienza-image-wrapper img,
.esperienza-video-wrapper video {
  border-radius: 18px !important;
}

.review-card-large,
.review-card-small {
  border-radius: 18px !important;
}

/* =========================================
   BORDER RADIUS - PAGINA "COME FUNZIONA"
   ========================================= */

.how-page img {
  border-radius: 24px !important;
}

.how-page video {
  border-radius: 24px !important;
}

.how-steps img,
.how-step-image img {
  border-radius: 24px !important;
}

/* ==========================================================================
   FORZA MENU MOBILE (SEMPRE BLU, SEMPRE BIANCO)
   ========================================================================== */

@media (max-width: 991px) {

  body .site-header {
    background-color: #002dff !important;
  }

  body .navbar-collapse {
    background-color: #002dff !important;
  }

  body .navbar-nav .nav-link {
    color: #ffffff !important;
  }

  body .navbar-nav .nav-link.active {
    background-color: #ff00cc !important;
    color: #ffffff !important;
  }

  body .navbar-brand.logo {
    color: #ff00cc !important;
  }

  body .navbar-toggler {
    border-color: #ff00cc !important;
  }

  body .navbar-toggler-icon {
    filter: none !important;
  }

}

/* ==========================================================================
   FIX LINK CONTATTI MOBILE (NO SFONDO MAGENTA)
   ========================================================================== */

@media (max-width: 991px) {

  .navbar-nav .nav-link[href*="contact"].active,
  .navbar-nav .nav-link[href*="contat"].active {
    background-color: transparent !important;
    color: #ffffff !important;
    font-weight: 700 !important;
  }


}


.how-page~body,
body:has(.how-page) {
  background-color: #ff00cc !important;
}

/* ==========================================================================
   FIX MENU MOBILE - RIMUOVE HOVER E COLORI STRANI
   ========================================================================== */

@media (max-width: 991px) {

  .navbar-collapse .navbar-nav .nav-link {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: #ffffff !important;
    opacity: 1 !important;
  }

  .navbar-collapse .navbar-nav .nav-link:hover,
  .navbar-collapse .navbar-nav .nav-link:focus,
  .navbar-collapse .navbar-nav .nav-link:active {
    background: transparent !important;
    color: #ffffff !important;
    transform: none !important;
  }

  .navbar-collapse .navbar-nav .nav-link.active {
    background-color: #ff00cc !important;
    color: #ffffff !important;
  }

  .navbar-collapse .navbar-nav .nav-link::before,
  .navbar-collapse .navbar-nav .nav-link::after {
    display: none !important;
    content: none !important;
    animation: none !important;
    background: none !important;
  }
}

/* ==========================================================================
   FIX LINK CONTATTI MOBILE (ECCEZIONE)
   ========================================================================== */

@media (max-width: 991px) {

  .navbar-collapse .navbar-nav .nav-link[href*="contact"].active,
  .navbar-collapse .navbar-nav .nav-link[href*="contat"].active {
    background-color: transparent !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: none !important;
  }

  .navbar-collapse .navbar-nav .nav-link[href*="contact"]::before,
  .navbar-collapse .navbar-nav .nav-link[href*="contact"]::after,
  .navbar-collapse .navbar-nav .nav-link[href*="contat"]::before,
  .navbar-collapse .navbar-nav .nav-link[href*="contat"]::after {
    display: none !important;
  }
}

/* ==========================================================================
   FIX LOGO HOVER - GLOBALE
   ========================================================================== */

a.navbar-brand.logo:hover,
a.navbar-brand.logo:focus,
.theme-magenta a.navbar-brand.logo:hover,
.theme-blue a.navbar-brand.logo:hover,
body.template-esperienza a.navbar-brand.logo:hover {
  color: #ffffff !important;
  opacity: 1 !important;
  transition: color 0.3s ease;
}

/* ==========================================================================
   GESTIONE VIDEO VERTICALI (Esperienza)
   ========================================================================== */

.esperienza-video-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
  background: transparent;
}

.esperienza-video-wrapper video {
  width: auto !important;
  max-height: 600px;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}


@media (max-width: 991px) {
  .esperienza-video-wrapper video {
    max-height: 80vh;
    width: 100% !important;
    object-fit: cover;
    height: auto;
  }
}

.esperienza-video-wrapper.is-right {
  justify-content: flex-end !important;
}

.esperienza-video-wrapper.is-right video {
  margin-left: auto !important;
  margin-right: 0 !important;
  display: block !important;
}

/* CENTRATURA CITAZIONE */
.esperienza-quote {
  text-align: center !important;
  width: 100%;
  max-width: 900px;
  margin-left: auto !important;
  margin-right: auto !important;
  display: block;
}

.esperienza-quote p {
  text-align: center !important;
  margin-bottom: 0;
}

.navbar-toggler {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
}

.navbar-toggler:focus,
.navbar-toggler:active,
.navbar-toggler:hover {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.navbar-toggler img {
  border-radius: 0 !important;
  box-shadow: none !important;
}