@import url("https://fonts.googleapis.com/css2?family=Jua&display=swap");

:root {
  --font: "Jua", sans-serif;
  --font-color: #39362f;
  --panna: #fcf9ed;
  --azzurro: #b2dad2;
  --giallo: #f8ebc9;
  --rosa: #e8bac2;
  --verde-chiaro: #c6ddb3;
  --verde-scuro: #0e582a;
  --h1: 4rem;
  --h1-mobile: 2.5rem;
  --h2: 2rem;
  --h3: 1.5rem;
  --h5: 1.3rem;
  --h6: 1.2rem;
  --border-radius-small: 1rem;
  --border-radius-medium: 3rem;
  --border-radius-large: 3rem;
}

main {
  overflow: hidden;
}

h1 {
  font-size: var(--h1);
  color: var(--verde-scuro);
  text-transform: uppercase;
}

h2 {
  font-size: var(--h2);
  color: var(--font-color);
  text-transform: uppercase;
}

h3 {
  font-size: var(--h3);
  color: var(--font-color);
  text-transform: uppercase;
}

h5 {
  font-size: var(--h5);
  color: var(--font-color);
  text-transform: uppercase;
}

h6 {
  font-size: var(--h6);
  color: var(--font-color);
}

body {
  font-family: var(--font);
  background-color: var(--panna);
}

p {
  font-size: 1.2rem;
  color: var(--font-color);
}

button a {
  font-size: 1rem !important;
}

.container-policy {
  max-width: 990px;
  margin: 0 auto;
}

/*BARRA ANNUNCIO*/

.annuncio-bar {
  height: 3rem;
  background-color: var(--azzurro);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-weight: 400;
  border-radius: var(--border-radius-small);
  overflow: hidden;
}

@media (max-width: 992px) {
  .annuncio-bar {
    border-radius: 0rem;
  }
}

.scrolling-text {
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 881px) {
  .scrolling-text {
    animation: marquee 40s linear infinite;
  }
}

@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/*NAVBAR*/

.offcanvas {
  width: 100vw;
}

.navbar-brand {
  display: none;
}
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--panna) !important;
  box-shadow: 0 5px 5px -5px rgba(0, 0, 0, 0.1);
}

.nav-item {
  border-radius: var(--border-radius-large);
  background-color: var(--giallo);
  padding: 0 1rem;
}

.nav-item a {
  text-transform: uppercase;
  color: var(--verde-scuro);
}

.nav-item:hover {
  border-radius: var(--border-radius-large);
  background-color: var(--verde-scuro);
  padding: 0 1rem;
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.nav-item a:hover {
  text-transform: uppercase;
  color: var(--giallo);
}

.navbar-toggler {
  border-color: var(--verde-scuro);
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

.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='%230e582a' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-close {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230e582a'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e");
}

@media (max-width: 991px) {
  .navbar-brand {
    display: block;
  }

  .nav-item {
    border-radius: var(--border-radius-large);
    background-color: var(--giallo);
    padding: 0 1rem;
    margin-bottom: 1rem;
    width: 80%;
    text-align: center;
  }

  .nav-item a:focus {
    text-transform: uppercase;
    color: var(--giallo) !important;
  }
}

/*HERO SECTION*/
@media (max-width: 520px) {
  h1 {
    font-size: var(--h1-mobile);
  }
}

.box-hero {
  background-color: var(--verde-chiaro);
  border-radius: var(--border-radius-medium);
  height: auto;
  padding: 20px;
}

@media (max-width: 991px) {
  .box-hero {
    flex-direction: column-reverse;
  }
}

.img-hero {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.button-giallo,
.button-verde,
.button-trasparente {
  border-radius: var(--border-radius-large);
  padding: 0.5rem 1rem;
  border: none;
  display: inline-block;
}

.button-giallo {
  background-color: var(--giallo);
}

.bounce {
  animation: bounce 1s infinite ease-in-out;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.button-trasparente {
  background-color: transparent;
  border: 1px solid var(--verde-scuro);
}

.button-giallo a,
.button-verde a,
.button-trasparente a {
  text-decoration: none;
  font-size: 0.8rem;
}

.button-verde {
  background-color: var(--verde-scuro);
  transition: all 0.3s ease;
}

.button-giallo a {
  color: var(--verde-scuro);
  text-transform: uppercase;
}

.button-verde a {
  color: white;
  text-transform: uppercase;
}

.button-trasparente a {
  color: var(--verde-scuro);
  text-transform: uppercase;
}

/*SEZIONE 1*/
.icona-sezione-1 {
  object-fit: contain;
}

/*SEZIONE 2*/
.card {
  height: 100%;
  border: none;
  background-color: transparent;
}

.swiper-container {
  position: relative;
}

.swiper-container {
  height: auto;
}

.swiper-pagination {
  position: absolute;
  bottom: -100px;
  left: 0;
  width: 100%;
  text-align: center;
}

.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
  bottom: var(--swiper-pagination-bottom, -30px);
}

.swiper-button-prev,
.swiper-button-next {
  color: #0e582a; /* Verde personalizzato */
}

.bi-arrow-right {
  color: #0e582a;
}

/*SEZIONE 3*/
.box-sezione-3 {
  background-color: var(--azzurro);
  border-radius: var(--border-radius-medium);
  height: auto;
  padding: 20px;
}

@media (max-width: 991px) {
  .box-sezione-3 {
    flex-direction: column-reverse;
  }
}

.img-hero {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/*SEZIONE 4*/
.box-sezione-4 {
  height: 350px;
  width: 80%;
  border-radius: var(--border-radius-medium);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--azzurro);
  border-radius: 100%;
}

.carousel-control-next-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2339362f' class='bi bi-caret-right' viewBox='0 0 16 16'%3e%3cpath d='M6 12.796V3.204L11.481 8zm.659.753 5.48-4.796a1 1 0 0 0 0-1.506L6.66 2.451C6.011 1.885 5 2.345 5 3.204v9.592a1 1 0 0 0 1.659.753'/%3e%3c/svg%3e");
}

.carousel-control-prev-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2339362f' class='bi bi-caret-left' viewBox='0 0 16 16'%3e%3cpath d='M10 12.796V3.204L4.519 8zm-.659.753-5.48-4.796a1 1 0 0 1 0-1.506l5.48-4.796A1 1 0 0 1 11 3.204v9.592a1 1 0 0 1-1.659.753'/%3e%3c/svg%3e");
}

.pink-box {
  background-color: var(--rosa);
}

.yellow-box {
  background-color: var(--giallo);
}

.blue-box {
  background-color: var(--azzurro);
  border-radius: var(--border-radius-medium);
}

@media (max-width: 991px) {
  /* Per schermi più piccoli (ad esempio tablet e telefoni) */

  .box-sezione-4 {
    height: auto; /* Impostiamo l'altezza a 500px */
    width: 100%;
  }

  .img-box-sezione-4 {
    width: 35% !important;
    object-fit: contain;
    margin-bottom: 2rem;
  }
}

/*SEZIONE 5*/
input::placeholder {
  font-size: 1rem;
}

textarea::placeholder {
  font-size: 1rem;
}

/*FOOTER*/
footer {
  background-color: var(--azzurro);
}

.h2-footer {
  color: var(--verde-scuro);
}

.btn-primary {
  border: none;
  background-color: var(--giallo);
  color: var(--verde-scuro);
}

.btn-primary:hover {
  border: none;
  background-color: var(--verde-scuro);
  color: var(--giallo);
}

.text-footer {
  border: 1px solid var(--giallo);
  background-color: transparent;
}

.ringraziamenti {
  margin: 0 auto;
  width: 70%;
  font-size: 1rem;
  background-color: var(--giallo);
  border-radius: var(--border-radius-small);
}

.ringraziamenti a {
  color: var(--font-color);
}

.lista-footer {
  color: var(--verde-scuro);
}

.lista-footer li a {
  color: var(--verde-scuro);
}

.contact-a {
  color: var(--font-color);
}

/*PARENTS CORNER*/

.faq-box {
  width: 75%;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .faq-box {
    width: 100%;
  }
}

.accordion {
  border-radius: var(--border-radius-medium);
}

.accordion-button:not(.collapsed) {
  background-color: var(--verde-chiaro);
  border-color: var(--verde-scuro);
  color: var(--font-color);
  box-shadow: none;
}

.accordion-button:focus {
  border-color: var(--verde-scuro);

  box-shadow: 0 0 0 0.1rem var(--verde-scuro);
}

/*BUSYBOARD*/
.container-add-name {
  max-width: 600px;
}

.img-name {
  width: 100%;
}

.line-green {
  border-bottom: 1px solid var(--verde-scuro);
}

/*PLAYROOM*/
.box-sensory {
  margin: 0 auto;
  max-width: 780px;
  height: auto;
}

.box-busy {
  margin: 0 auto;
  max-width: 980px;
  height: auto;
}

.container-name {
  margin: 0 auto;
  max-width: 640px;
  height: auto;
}

/*POPUP*/

/* CSS popup completo */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  display: none; /* mostriamo dopo con JS */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.popup {
  background: white;
  border: 1px solid #007d40;
  border-radius: 10px;
  max-width: 95%;
  width: 768px;
  display: flex;
  flex-direction: row;
  overflow: hidden;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #007d40;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 10;
}

.popup-close span {
  color: white;
  font-size: 18px;
  font-weight: bold;
}

.popup-left {
  flex: 1;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-left img {
  width: 100%;
  height: auto;
  display: block;
  max-width: 100%;
}

.popup-right {
  flex: 1;

  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-right iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* Responsive: solo iframe su mobile */
@media (max-width: 768px) {
  .popup {
    flex-direction: column;
    width: 95%;
    height: 450px;
  }

  .popup-left {
    display: none;
  }

  .popup-right {
    padding: 10px;
  }

  .popup-right iframe {
    height: 90vh;
    max-height: 100%;
  }
}

/*RECENSIONI*/
.img-star {
  width: 2rem;
}

.swiper-container-nova .swiper-slide {
  display: flex;
  align-items: stretch;
  height: auto;
}

.nova-box {
  border: 1px solid #39362f;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  height: 100%;
  min-height: 100%;
  line-height: 1.3rem;
  font-weight: 300;
}

.nova-box p.text-end {
  margin-top: auto !important;
  color: rgba(57, 54, 47, 0.8);
}

.star-img {
  width: 1.3rem !important;
  height: 1.3rem !important;
}

.swiper-pagination-nova {
  text-align: center !important;
  margin-top: 20px;
}

.google {
  color: black;
}
