/* Variabili */
:root {
  --col-yt: #FF0000;
  --col-tw: #6441a5;
  --col-ig: #cc39a4;
  --col-ds: #8c9eff;
  --col-tt: #000000;
  --col-bg: #0d1117;
  --col-fg: #161b22;
  --col-blue: #247BA0;
}

/* .carousel-caption {
  align-content: center;
  text-align: left;
  padding-bottom: 8rem;
} */

#footersticky {
  background: transparent;
  transition-duration: 0.5s;
}

#footersticky.scrolled-down {
  background: var(--col-fg);
  transition-duration: 0.5s;
}

/* Stile generale */

html {
  height: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: inherit;
}

html,
body,
.wrapper {
  min-height: 100%;
}

/* Ensure content is not obscured by fixed footer */
body { padding-bottom: 3.5rem; }

/* Give pagepiling sections a safe bottom padding so content doesn't go under footer */
.pp-section { padding-bottom: 3.5rem; box-sizing: border-box; }
body {
  margin: 0;
  /*  padding-top: 56px;Altezza della Navbar */
  background: var(--col-bg);
}

.container {
  margin: auto;
  width: 80%;
}

.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Stile header delle sezioni */
.default h2 {
  white-space: normal;
  margin: 0 0 4px;
  font-size: 40px;
  color: rgb(255 255 255 / 96%);
}

.default h3 {
  font-weight: 400;
  margin: 0;
  color: rgb(255 255 255 / 57%);
}

.default h5 {
  font-weight: 300;
  margin: 0;
  color: rgb(255 255 255 / 57%);
}

/* All links white */
a,
a:is(:visited, :active, :link) {
  color: #ffffff;
  text-decoration: none;
  line-height: 24px;
}

.isDisabled {
  color: currentColor;
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: none;
  pointer-events: none;
}

/* Nascondi scrollbar */
body::-webkit-scrollbar{
  display: none;
}

/* Navbar */
/* nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  background: var(--col-fg);
  transition: 0.3s;
  gap: 20px;
  z-index: 2;
}

nav.scrolled-down {
  height: 60px;
}

nav img {
  width: 24px;
  height: 24px;
  transform-origin: 0% 50%;
  transition: 0.3s;
}

.links {
  display: flex;
  gap: 16px;
}

nav.scrolled-down img{
  scale: 1.50;
}

.burger {
  display: none;
  cursor: pointer;  
}

.filter-white {
	filter: invert(81%) sepia(100%) saturate(1%) hue-rotate(321deg) brightness(109%) contrast(101%);
}

.menu-items,
.menu {
  display: flex;
  gap: 20px;
}

.menu-right {
  position: relative;
  margin-left: auto;
  gap: 20px;
}

.menu-right img {
  width: 30px;
  height: 30px;
  padding: 5px;
}

body.open .menu-items {
  display: flex;
} 

.kochibi-pop {
  background: transparent;
  border: none;
  z-index: 5;
}

.kochibi-pop:hover {
  background: transparent;
}

.kochibi-pop:active {
  background: transparent;
}

.kochibi-popover-content {
  pointer-events: none;
  text-align: center;
  z-index: 9999;
}

.kochibi-popover-content:hover {
  pointer-events: none;
  text-align: center;
  z-index: 9999;
}

#KochibiTalk {
  content: url("/icons/Kochibi.svg");
  padding-top: 20px;
  height: 70px;
  width: 100%;
  --animate-delay: 60s;
}

#KochibiTalk:hover {
  content: url("/icons/KochibiSad.svg");
  --animate-delay: 1s;
} */

/* LP */
.lpage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 300px;
  margin-bottom: 40px;
  padding: 30px 15%;
  text-align: center;
}

.lpage::before {
  content:"";
  position: absolute;
  z-index: -1;
  top: 70%;
  left: 50%;
  translate: -50% -50%;
  width: 200%;
  height: 150%;
  rotate: -2deg;
  background: var(--col-fg);
}

.kochi-pop {
  background: transparent;
  border: none;
  z-index: 5;
}

.kochi-pop:hover {
  background: transparent;
}

.kochi-pop:active {
  background: transparent;
}

.kochi-popover-content {
  pointer-events: none;
  text-align: center;
  z-index: 9999;
}

.kochi-popover-content:hover {
  pointer-events: none;
  text-align: center;
  z-index: 9999;
}

#KochiTalk {
  content: url("../img/icons/Kochibi.svg");
  padding-top: 20px;
  width: 100%;
  --animate-delay: 60s;
}

#KochiTalk:hover {
  content: url("../img/icons/KochibiSad.svg");
  --animate-delay: 1s;
}

/* Stile per le varie sezioni */
.sec-1 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 300px;
  margin-bottom: 40px;
  padding: 30px 15%;
  text-align: start;
}

.sec-1::before {
  content:"";
  position: absolute;
  z-index: 0; /* keep the decorative block inside its own section */
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 140%; /* reduced size to avoid overlapping neighbors */
  height: 100%;
  rotate: -2deg;
  background: var(--col-fg);
}

.sec-img {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 300px;
  margin-bottom: 40px;
  padding: 30px 15%;
  text-align: start;
}

.sec-img::before {
  content:"";
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  width: 200%;
  height: 110%;
  rotate: -2deg;
}

/* Ensure content sits above the decorative pseudo-element */
.sec-1 > *, .sec-img > * {
  position: relative;
  z-index: 1;
}


.sec-1 h2 {
  white-space: normal;
  margin: 0 0 4px;
  font-size: 40px;
  color: rgb(255 255 255 / 96%);
}

.sec-1 h3 {
  font-weight: 400;
  margin: 0;
  color: rgb(255 255 255 / 57%);
}

.sec-1 h5 {
  font-weight: 300;
  margin: 0;
  color: rgb(255 255 255 / 57%);
}

.sec-2 {
  text-align: end;

}
.sec-2::before {
  background: var(--col-bg);
}

@keyframes blob {
  0%,
  100% {
    border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
  }
  34% {
    border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
  }
  67% {
    border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
  }
}

.blob {
  width: 220px;
  height: 220px;
  object-fit: cover;
  animation: blob 3.5s linear infinite;
}

.no-blob {
  width: 240px;
  height: 240px;
  object-fit: contain;
}

/* Blocca la rotazione della sezione 1 */

.no-rotate::before {
  rotate: 0deg;
}

/* In Diretta */
.on-air {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 345px;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 15px 25px 22px;
  transition: right 0.3s ease;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
  text-align: center;
}

.on-air .title {
  font-weight: 600;
  color: rgb(31 41 55);
}

/* Cookie Card */
.cookie-card {
  position: fixed;
  bottom: 50px;
  right: -370px;
  max-width: 345px;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  padding: 15px 25px 22px;
  transition: right 0.3s ease;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.cookie-card.show {
  right: 20px;
}

.cookie-card .title {
  font-weight: 600;
  color: rgb(31 41 55);
}

.cookie-card .description {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgb(75 85 99);
}

.description a {
  --tw-text-opacity: 1;
  color: rgb(59 130 246);
}

.description a:hover {
  -webkit-text-decoration-line: underline;
  text-decoration-line: underline;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  -moz-column-gap: 1rem;
  column-gap: 1rem;
  flex-shrink: 0;
}

.pref {
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgb(31 41 55 );
  -webkit-text-decoration-line: underline;
  text-decoration-line: underline;
  transition: all .3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  background-color: transparent;
}

.pref:hover {
  color: rgb(156 163 175);
}

.pref:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.acceptbtn {
  font-size: 0.75rem;
  line-height: 1rem;
  background-color: rgb(17 24 39);
  font-weight: 500;
  border-radius: 0.5rem;
  color: #fff;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  border: none;
  transition: all .15s cubic-bezier(0.4, 0, 0.2, 1);
}

.acceptbtn:hover {
  background-color: rgb(55 65 81);
}

.acceptbtn:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

/* Loading Page */
#loading {
  position: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 1;
  background-color: var(--col-bg);
  z-index: 99;
}
#loading-text {
  color: white;
  position: fixed;
  padding-top: 180px;
}
#loading-image {
  z-index: 100;
}

/* Footer: fixed to bottom of viewport (restored behavior) */
.footer-dark-fixed {
  position: fixed;
  left: 0;
  bottom: 0;
  height: 2.5rem;
  width: 100%;
  background-color: var(--col-fg);
  color: white;
  text-align: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  z-index: 9998; /* below navbar (9999) */
}

.footer-dark {
  width: 100%;
  color: white;
  text-align: center;
  justify-content: center;
  text-align: center;
  vertical-align: middle;
  z-index: 5;
  background-color:var(--col-fg);
  padding: 25px;
}

.footer-dark .item:not(.social) {
  padding-bottom:50px;
}

.footer.socialCard {
  width: 100%;
  height: 0px;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 25px;
  gap: 20px;
}


/* for all social containers*/
.footer.socialContainer {
  width: 52px;
  height: 52px;
  background-color: rgb(44, 44, 44);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition-duration: .3s;
  text-align: center;
}
/* instagram*/
.footer.containerOne:hover {
  background-color: var(--col-ig);
  transition-duration: .3s;
}
/* twitter*/
.footer.containerTwo:hover {
  background-color: #2AABEE;
  transition-duration: .3s;
}
/* linkdin*/
.footer.containerThree:hover {
  background-color: var(--col-yt);
  transition-duration: .3s;
}
/* Whatsapp*/
.footer.containerFour:hover {
  background-color: var(--col-tw);
  transition-duration: .3s;
}

.footer.socialContainer:active {
  transform: scale(0.9);
  transition-duration: .3s;
}

.footer.socialSvg {
  width: 17px;
}

.footer.socialSvg path {
  fill: rgb(255, 255, 255);
}

.footer.socialContainer:hover .socialSvg {
  animation: slide-in-top 0.3s both;
}

@keyframes slide-in-top {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}


.footer-dark h3 {
  margin-top:0;
  margin-bottom:12px;
  font-weight:bold;
  font-size:16px;
}

.footer-dark ul {
  padding:0;
  list-style:none;
  line-height:1.6;
  font-size:14px;
  margin-bottom:0;
}

.footer-dark ul a {
  color:inherit;
  text-decoration:none;
  opacity:0.6;
}

.footer-dark ul a:hover {
  opacity:0.8;
}

.copyright {
  text-align:center;
  padding-top:1vh;
  opacity:0.3;
  font-size:13px;
  margin-bottom:0;
}

/* To the top button*/
#tothetop {
  background-color: transparent;
  border-radius: 0px;
  border-width: 0px;
  padding-top: 0px;
  margin-top: 0px;
  padding-bottom: 20px;
}

#tothetopFloat {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 9; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: transparent; /* Set a background color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 10px; /* Rounded corners */
  font-size: 18px; /* Increase font size */

}

#tothetopFloat:hover img {
  content: url("../img/images/Savio.png");

}

/* Avvisi Pop-up */
/* Cookie Card */
.popup-card {
  position: fixed;
  max-width: 280px;
  width: 100%;
  background: #e2e1e1;
  border-radius: 8px;
  padding: 15px 25px 22px;
  transition: right 0.3s ease;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  z-index: 10;
  background-image: url(../img/icons/crowdplay.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  background-blend-mode:overlay
}

.popup-card.show {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.popup-card .title {
  font-weight: 700;
  color: rgb(31 41 55);
}

.popup-card .description {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgb(75 85 99);
  font-weight: 500;
}

.description a {
  --tw-text-opacity: 1;
  color: rgb(59 130 246);
}

.description a:hover {
  -webkit-text-decoration-line: underline;
  text-decoration-line: underline;
}

.popup-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  -moz-column-gap: 1rem;
  column-gap: 1rem;
  flex-shrink: 0;
}

.popup-pref {
  font-size: 0.75rem;
  line-height: 1rem;
  background-color: rgb(17 24 39);
  font-weight: 500;
  border-radius: 0.5rem;
  color: #fff;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  border: none;
  transition: all .15s cubic-bezier(0.4, 0, 0.2, 1);
}

.pref:hover {
  color: rgb(156 163 175);
}

.pref:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.popup-accbtn {
  font-size: 0.75rem;
  line-height: 1rem;
  background-color: rgb(17 24 39);
  font-weight: 500;
  border-radius: 0.5rem;
  color: #fff;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  border: none;
  transition: all .15s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-acceptbtn:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.btn.primary {
  background: #6cf2c2;
  color: #0f1220;
  font-weight: bold;
  border: none;
}