@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,200..800&family=Inter+Tight:ital,wght@0,100..900;1,100..900&display=swap");
/*#c4d48b #fede84 #b7cdda #d96a9e #c4d48b #fede84 #b7cdda #d96a9e #c4d48b */

:root {
  --64px: 64px;
  --48px: 48px;
  --24px: 24px;
  --16px: 16px;
  --14px: 14px;
}

body {
  font-family: "Inter Tight", serif;
}

main {
  overflow-x: hidden;
}

h1,
h2,
h3,
h3,
h4,
h5,
h6 {
  font-family: "Bricolage Grotesque", serif;
  color: black;
}

a {
  text-decoration: none !important;
}

p {
  line-height: 1.8rem;
}

.h1-articoli {
  font-size: 42px;
  line-height: 2.5rem;
  color: #d96a9e;
}

.h2-articoli {
  font-size: 46px !important;
  line-height: 2.5rem;
  color: #d96a9e;
}

.h3-articoli {
  font-size: 36px;
  line-height: 2.5rem;
  color: #d96a9e;
}

.h4-articoli {
  font-size: 28px;
  line-height: 2rem;
  color: #d96a9e;
}

.p-articoli {
  font-size: 21px;
  margin-bottom: 32px;
  font-weight: 400 !important;
  line-height: 1.5rem;
}

ul {
  padding-left: 0rem;
}

li {
  list-style: none;
  margin-bottom: 5px;
  margin-top: 5px;
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  background-color: #25d366; /* Verde WhatsApp */
  left: 1rem;
  bottom: -3rem; /* Inizialmente nascosto */
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1rem;
  gap: 0.5rem;
  border-radius: 0.8rem;
  z-index: 100;
  width: auto;
  height: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: bottom 0.3s ease;
  text-decoration: none;
}

.testo__scrollup {
  color: white;
  font-weight: 500;
  font-size: 1rem;
}

.scrollup__icon img {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1); /* rende bianca l'icona se è scura */
}

/* Show Scroll Up */
.show-scroll {
  bottom: 1rem;
}

/* Animazione */
.heartbeat {
  animation: heartbeat 1.5s ease-in-out infinite both;
}

@keyframes heartbeat {
  from {
    transform: scale(1);
    transform-origin: center center;
    animation-timing-function: ease-out;
  }
  10% {
    transform: scale(0.91);
    animation-timing-function: ease-in;
  }
  17% {
    transform: scale(0.98);
    animation-timing-function: ease-out;
  }
  33% {
    transform: scale(0.87);
    animation-timing-function: ease-in;
  }
  45% {
    transform: scale(1);
    animation-timing-function: ease-out;
  }
}

.navbar {
  box-shadow: 0px 25px 20px -20px rgba(0, 0, 0, 0.45);
}

/* Offcanvas animation from top */
.offcanvas {
  top: -100%;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  transition: top 0.6s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  background-color: white;
}

.offcanvas.show {
  top: 0;
}

.offcanvas-header {
  justify-content: flex-end;
  border: none;
}

/* Offcanvas body content */
.offcanvas-body {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.navbar-nav {
  align-items: flex-start !important;
}

.nav-links-custom {
  text-align: left;
  align-items: flex-start;
}

.nav-links-custom .nav-link {
  font-family: "Bricolage Grotesque", serif !important;
  font-size: 12vh;
  display: inline-block;
  position: relative;
  padding-bottom: 1rem;
  line-height: 1;
  color: black !important;
}

@media (max-width: 680px) {
  .nav-links-custom .nav-link {
    font-size: 8vh;
  }
}

.nav-links-custom .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 1px;
  background-color: black;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links-custom .nav-link:hover::after,
.nav-links-custom .nav-link:focus::after {
  transform: scaleX(1);
}

.circle img {
  width: 2rem;
  height: auto;
}

.border-animated {
  color: black;
  background-color: transparent;
  border-radius: 5rem;
  border: none;
  border: 1px solid black;
  padding: 0.5rem 1rem;
  font-size: var(--16px);
  font-weight: 500;
  transition: all 0.3s ease;
  animation: pulse 1.5s infinite ease-in-out;
}

.body-articolo {
  max-width: 1024px;
  margin: 0 auto;
}
.briciole a {
  color: black;
}

.img-articolo {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

.img-articol-1 {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: flex;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
}

.list-group-flush li a {
  color: #f682a5 !important;
}

.img-testo {
  object-fit: cover;
  object-position: top;
  height: 15rem !important;
}

.img-testo-1 {
  object-fit: contain;
  margin: 0 auto;
  height: 15rem !important;
  display: flex;
  justify-content: center;
}

.sottotitolo-1 {
  font-size: 1rem;
}

.img-separatore {
  object-fit: contain;
  object-position: center;
  height: 40vh !important;
  width: 100%;
  margin: 0 auto;
}

.link-interni {
  color: #f682a5;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .img-testo {
    object-fit: cover;
    object-position: center;
    height: 20vh !important;
    width: 100% !important;
  }

  .img-separatore {
    height: 30vh !important;
    width: 100% !important;
    object-fit: cover;
    object-position: center;
  }
}

table {
  margin: 20px 0;
  border: 1px solid #ddd;
}
th,
td {
  padding: 12px;
  text-align: center;
}
th {
  background-color: #f2f2f2;
}

.finale {
  background-color: #f2f2f2;
}

footer {
  margin-top: 3rem;
  font-size: var(--14px);
  background-color: black;
}

footer h5 {
  color: white;
}
.border-animated {
  color: white;
  background-color: transparent;
  border-radius: 5rem;
  border: none;
  border: 1px solid white;
  padding: 0.5rem 1rem;
  font-size: var(--16px);
  font-weight: 500;
  transition: all 0.3s ease;
  animation: pulse 1.5s infinite ease-in-out;
}
footer a,
footer li {
  font-size: 14px;
  color: white !important;
}

blockquote p {
  font-size: 14px !important;
}

figcaption {
  font-size: 1rem !important;
  color: black !important;
}

.figure-caption-1 {
  font-size: 0.8rem !important;
}

.figure-caption-1 a {
  color: #0b1b26 !important;
}

.em-cpanel {
  font-size: 0.8rem;
}

.tag {
  font-size: 14px;
}

.box-conclusioni {
  width: auto;
  height: auto;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
  border-radius: 2rem;
}

.alert-link {
  color: black;
  text-decoration: underline !important;
}
