@font-face {
  font-family: "Ubuntu-Regular";
  src: url("/website/static/fonts/Ubuntu-Regular.ttf") format('truetype');
}

@font-face {
  font-family: "Ubuntu-Bold";
  src: url("/website/static/fonts/Ubuntu-Bold.ttf") format('truetype');
}


html {
  scroll-behavior: smooth;
}

body {
  background-color: #15b587;
}

/* --- Website Main & Layout --- */

.extra-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.w-main {
  display: flex;
  width: 100%;
  padding: 10px 20px;
  max-width: 1750px;
  margin-inline: auto;
  flex-direction: column;
  overflow-y: auto;
}

h2 {
  font-family: Ubuntu-Bold;
  font-size: 2rem;
}

h3 {
  font-family: Ubuntu-Bold;
  font-size: 1.6rem;
}

p {
  font-family: Ubuntu-Regular;
  font-size: 1.1rem;
  hyphens: auto;
  -webkit-hyphens: auto;
}

strong {
  font-family: Ubuntu-Bold;
}

/* section intro */

section#intro {
  width: 100%;
  background-color: #d4fcff;
  background-image: url(../img/web-intro-mountains.svg?v=1.0);
  background-position: center calc(100% - 40px);
  background-repeat: no-repeat;
  background-size: 2044px auto;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

nav.web-nav {
  width: 100%;
  position: fixed;
  top: 0px;
  z-index: 10;
  background-image: linear-gradient(
      to right,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 50%,
      rgba(255, 255, 255, 0.9) 60%,
      rgba(255, 255, 255, 0.9) 100%
    );
  padding: 20px 0px 5px 0px;
}

nav.web-nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  justify-content: flex-end;
  margin-right: 50px;
}

nav.web-nav a {
  text-decoration: none;
  font-family: Ubuntu-Bold;
  font-size: 16px;
  color: #4b9999;
  text-shadow:
       1px  0px 0px #ffffff,
      -1px  0px 0px #ffffff,
       0px  1px 0px #ffffff,
       0px -1px 0px #ffffff;
}

nav.web-nav li:last-child a {
  color: #ffffff;
  background-color: #f7993b;
  padding: 10px 20px;
  border-radius: 5px;
  text-shadow: none;
}

nav.web-nav a i {
  padding-left: 10px;
  font-size: 14px;
}

.intro-main-container {
  height: 630px;
  text-align: center;
  position: relative;
}

.intro-main {
  position: relative;
  max-width: 800px;
  height: 630px;
  margin: auto;
}

.web-logo {
  position: absolute;
  top: 100px;
  left: calc(50% - 151px);
  width: 302px;
  z-index: 2;
}

div.catch {
  position: absolute;
  top: 230px;
  left: calc(50% - 186px);
  width: 372px;
  height: 126px;
  background-image: url(../img/web-intro-catch-cloud.svg?v=1.0);
  font-family: Ubuntu-Bold;
  font-size: 17px;
  padding-top: 40px;
  color: #3c9599;
  text-align: left;
}

div.catch span:first-child {
  margin-left: 80px;
}

div.catch span:last-child {
  margin-left: 200px;
}

div.catch em {
  background-image: url(../img/web-highlight.svg?v=1.0);
  background-repeat: no-repeat;
  background-position: center bottom;
  padding-bottom: 10px;
}

.intro-sun {
  position: absolute;
  top: -100px;
  width: 298px;
  right: -110px;
  z-index: -1;
}

.intro-cloud-left {
  position: absolute;
  top: 120px;
  width: 510px;
  left: -450px;
  z-index: 1;
}

.intro-cloud-right {
  position: absolute;
  top: 150px;
  width: 428px;
  right: -420px;
  z-index: 1;
}

.intro-tree-front-left {
  position: absolute;
  bottom: -30px;
  left: -230px;
  z-index: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25))
          drop-shadow(0 5px 5px rgba(0, 0, 0, 0.20));
}

.intro-tree-front-right {
  position: absolute;
  bottom: -30px;
  right: -230px;
  z-index: 1;
  transform: scaleX(-1);
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25))
          drop-shadow(0 5px 5px rgba(0, 0, 0, 0.20));
}

.intro-tree-back-left {
  position: absolute;
  bottom: -100px;
  left: -350px;
  z-index: -1;
}

.intro-tree-back-right {
  position: absolute;
  bottom: -100px;
  right: -350px;
  z-index: -1;
  transform: scaleX(-1);
}

.intro-animals {
  width: 800px;
  height: auto;
  position: absolute;
  bottom: -78px;
  left: 50%;
  margin-left: -400px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25))
          drop-shadow(0 5px 5px rgba(0, 0, 0, 0.20));
}

.intro-middle {
  width: 100%;
  vertical-align: bottom;
}

div.intro-details-container {
  min-height: 300px;
  background-color: #15b587;
  background-image: url(../img/web-intro-mixed-props.svg?v=1.0);
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: 1284px auto;
}

div.intro-details {
  display: flex;
  gap: 20px;
  max-width: 800px;
  padding: 50px;
  margin: auto;
}

div.intro-details div {
  flex: 1;
}

div.intro-details h3 {
  color: #ffffff;
  text-align: center;
  margin-left: -2rem;
  font-size: 1.8rem;
  margin-bottom: 1.4rem;
}

div.intro-details p {
  color: #bdffe9
}

div.intro-details p strong {
  color: #ffffff;
}

/* section online */

section#online {
  width: 100%;
  min-height: 450px;
  background-color: #15b587;
  background-image: url(../img/web-online-mixed-props.svg?v=1.0);
  background-position: bottom center;
  background-repeat: no-repeat;
  background-size: 1266px auto;
}

.online-top {
  width: 100%;
  vertical-align: bottom;
}

.online-middle {
  width: 100%;
  vertical-align: top;
}

.online-main-container {
    background-color: #00c2c2;
    background-image: url(../img/web-online-waves.svg?v=1.0);
    background-position: top center;
    background-repeat: no-repeat;
    background-size: 1510px auto;
    padding-top: 30px;
}

.online-main {
  max-width: 800px;
  padding: 0px 50px;
  margin: 0px auto;
  position: relative;
}

.online-fish {
  position: absolute;
  top: 80px;
  left: -140px;
}

section#online h2 {
  color: #ffffff;
  margin-bottom: 2rem;
  text-align: center;
}

section#online p {
  color: #d5f9fc;
  margin-bottom: 0px;
  padding-bottom: 7rem;
}

section#online p strong {
  color: #ffffff;
}

.online-browser {
  position: relative;
  top: -110px;
  text-align: center;
}

.online-browser img {
    width: 80%;
    max-width: 1430px;
    border-radius: 10px;
    filter: drop-shadow(0 0px 10px rgba(0, 0, 0, 0.25))
}

/* section game */

section#game {
  width: 100%;
  box-sizing: border-box;
  min-height: 450px;
  background-image: url(../img/web-game-squirrel.svg?v=1.0) ;
  background-color: #f7f2c6;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 1258px auto;
  padding-bottom: 500px;
}

.game-top {
  width: 100%;
  vertical-align: top;
}

.game-main {
  max-width: 800px;
  padding: 0px 50px;
  margin: 0px auto;
}

section#game h2 {
  color: #9c833e;
  margin-bottom: 2rem;
  text-align: center;
}

section#game p {
  color: #736800;
}

section#game p strong {
  color: #846e32;
}

/* section demo */

section#demo {
  position: relative;
  background-color: #15b587;
}

.demo-top {
  width: 100%;
}

.demo-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 900px;
  margin: 0px auto;
  padding: 0px 50px;
  position: relative;
}

.demo-dog {
  width: 414px;
  height: 577px;
  margin-top: 30px;
  margin-bottom: 20px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25))
          drop-shadow(0 5px 5px rgba(0, 0, 0, 0.20));
}

.demo-mixed-props {
  position: absolute;
  z-index: 0;
  bottom: 10px;
  left: -100px;
  width: 604px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25))
          drop-shadow(0 5px 5px rgba(0, 0, 0, 0.20));
}

.demo-main {
  display: flex;
  position: relative;
  z-index: 1;
  flex-basis: 350px;
  gap: 1em;
  flex-direction: column;
  align-items: center;
}

.demo-main h2 {
  text-align: center;
  color: #f7f2c6;
  margin-top:4.5rem;
  margin-bottom: 1rem;
}

.demo-main p {
  color: #fcf9e6
}

.demo-main p strong {
  color: #ffffff;
}

a.web-button {
  display: block;
  background-color: #f7993b;
  text-decoration: none;
  color: #fcf9e6;
  padding: 10px 20px;
  border-radius: 5px;
  font-family: Ubuntu-Bold;
  font-size: 14px;
  margin-bottom: 200px;
}

a.web-button i {
  padding-left: 10px;
  font-size: 12px;
}

/* section contactus */

section#contactus {
  position: relative;
  background-image: url('../img/web-contactus-waves.svg?v=1.4');
  background-color: #00c2c2;
  background-position: center top 93px;
  background-repeat: no-repeat;
  background-size: 1848px 523px;
}

.contactus-top {
 background-image: url('../img/web-contactus-top.svg?v=1.9');
 background-repeat: repeat-x;
 background-position: center center;
 background-size: cover;
 height: 50px;
}

.contactus-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  max-width: 800px;
  margin: 0px auto;
  padding: 0px 50px 0px 20px;
}

.contactus-mouse img{
  width: 257px;
  height: 256px;
  margin-top: 110px;
}

.contactus-container h2 {
  text-align: center;
  color: #ccffff;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.contactus-container p {
  color: #e5f5f9
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 600px;
  position: relative;
}

.contact-form .typha-plants {
 position: absolute;
 width: 156px;
 height: 266px;
 bottom: -80px;
 right: -200px;
 filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25))
         drop-shadow(0 5px 5px rgba(0, 0, 0, 0.20));
}

.contact-form .stones {
 position: absolute;
 width: 230px;
 height: 115px;
 bottom: -80px;
 left: -400px;
 filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25))
         drop-shadow(0 5px 5px rgba(0, 0, 0, 0.20));
}

/* Stile comune per input e textarea */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  background-color: rgba(0, 150, 160, 0.4); /* Sfondo semitrasparente in linea con lo stile */
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;                      /* Angoli arrotondati come nel design */
  color: #ffffff;                           /* Testo bianco */
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
}

/* Effetto al passaggio del mouse o quando si scrive */
.contact-form input:focus,
.contact-form textarea:focus {
  background-color: rgba(0, 150, 160, 0.7);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Colore del placeholder (testo di cortesia) */
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #ffffff;
  font-weight: 500;
  opacity: 0.9;
}

/* Gestione specifica per la textarea (più alta come nell'immagine) */
.contact-form textarea {
  resize: vertical; /* Permette all'utente di ridimensionarla verticalmente se necessario */
  min-height: 120px;
}

/* Contenitore del bottone per allinearlo a destra */
.form-submit {
  display: flex;
  justify-content: flex-end; /* Spinge il pulsante sul lato destro */
  margin-top: 8px;
}

/* Stile del pulsante INVIA */
.contact-form button[type="submit"] {
  background-color: rgba(0, 150, 160, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: bold;
  padding: 12px 36px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.contact-form button:disabled {
    opacity: 0.4;
    cursor: wait;
}

.contactus-confirmation {
  background-color: rgb(5 176 176);
  padding: 20px;
  border-radius: 10px;
  color: #fff;
}

.contact-again {
  text-decoration: none;
  color: rgb(167 250 255);
  font-weight: 600;
}

.contactus-confirmation h4 {
  font-family: Ubuntu-Bold;
  font-size: 1.3rem;
  text-align: center;
}

/* Effetto hover sul pulsante */
.contact-form button[type="submit"]:hover {
  background-color: rgba(0, 150, 160, 0.9);
  border-color: #ffffff;
}

/* section about */

section#about {
  width: 100%;
  box-sizing: border-box;
  min-height: 450px;
  background-image: url(../img/web-about-rabbit-field.svg?v=1.2) ;
  background-color: #c4bf99; /* Il colore che riempie le parti trasparenti */
  background-position: center bottom 93px;
  background-repeat: no-repeat;
  background-size: 979px auto;
  padding-bottom: 380px;
}

.about-top {
 background-image: url('../img/web-about-top.svg?v=1.0');
 background-repeat: repeat-x;
 background-position: center center;
 background-size: cover;
 height: 52px;
}

.about-main {
  max-width: 800px;
  padding: 30px 50px 0px 50px;
  margin: 0px auto;
}

section#about h2 {
  color: #7a6000;
  margin-bottom: 1rem;
  text-align: center;
}

section#about p {
  color: #7a6000;
}

section#about p strong {
  hyphens: none;
  -webkit-hyphens: none;
}

/* --- Footer & Privacy (ORIGINALE) --- */

footer {
  position: relative;
  background: #15b587;
  padding: 20px 40px;
  box-sizing: border-box;
}

.web-footer-bush-stone {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: url(../img/web-footer-bush-stone.svg?v=1.8) no-repeat center;
  width: 313px;
  height: 97px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25))
          drop-shadow(0 5px 5px rgba(0, 0, 0, 0.20));

}

.w-footer{
  max-width: 1500px;
  margin: auto;
}

.w-privacy { max-width: 1060px; margin: auto; padding: 20px; }
.w-privacy img {
  float: right;
  width: 120px;
  margin: 20px 40px 20px 20px;
}

.w-privacy .w-privacy-main-title {
  background-color: rgb(251, 251, 251);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 10px;
}

.w-privacy .w-privacy-main-title h1 { font-size: 30px; margin-top: 30px; }
h2.w-privacy-title {
  font-size: 22px;
  padding: 20px;
  background-color: rgb(243, 243, 243);
  border-radius: 10px 10px 0 0;
}

.w-privacy-cookies { clear: both; border: 1px solid #ddd; border-radius: 10px; padding: 10px; }
.w-privacy-cookies h3 { font-size:20px }
.w-privacy-cookies p { margin: 0px; }

/* --- Cookie Consent --- */

.consent {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ddd;
  border-radius: 10px 0 0 10px;
  position: absolute;
  top: 70px;
  right: 0px;
  max-width: 355px;
  padding: 20px;
  font-size: 12px;
  z-index: 1;
}

.consent .mouse {
  margin-top: 20px;
  text-align: center;
  margin-bottom: 20px;
}

.consent p a.privacyandcookies {
  text-decoration: none;
  font-weight: bold;
  color: darkorange;
}

.consent a.consent-button {
  width: 100%;
  background-color: darkorange;
  border-color: darkorange;
  color: white;
  margin-top: 10px;
}

/* --- Responsive (INTEGRATO) --- */
@media screen and (max-width: 1520px) {
  .w-main { max-width: 1520px; }
}

@media screen and (max-width: 800px) {
  .w-book-container-flex { max-width: 1089px; }
}

@media screen and (max-width: 678px) {
  .w-nav img { width: 70%; }
  .w-logo div:first-child { width: 100px; }
  .w-logo .logo-title { font-size: 2.5em; }
  .w-nav ul { flex-direction: column; align-items: normal;}
  .w-nav .w-logo a {
    justify-content: center;
    align-items: center;
    padding-bottom: 15px;
    margin-right: 0px;
  }
  .w-logo p { font-size: 12px; width: 240px; }
  .w-book-container-flex {
    grid-template-columns: 1fr; /* una sola colonna su mobile */
    padding: 0 10px;
    column-gap: 10px;
  }
}

/* Smartphone */
@media screen and (max-width: 767px) {
  p {
    font-size: 1.3rem;
  }

  nav.web-nav ul {
    margin-right: 0px;
    justify-content: space-between;
    padding: 0px 10px;
  }

  li.web-nav-online, li.web-nav-about {
    display: none;
  }

  .intro-main {
    height: 550px;
  }

  .intro-main-container {
    height: 550px;
  }

  .intro-tree-back-left {
    bottom: -130px;
    left: -60px;
    transform: scale(2);
  }

  .intro-tree-back-right {
      bottom: -100px;
      right: -270px;
      transform: scaleX(-1);
      transform: scale(1.8);
  }

  div.intro-details {
    flex-direction: column;
  }

  .intro-animals {
    width: 600px;
    margin-left: -310px;
  }

  div.online-main-container {
    padding-top: 0px;
    background-size: 500px auto;
  }

  img.online-fish {
    position: static;
    display: block;
    margin-inline: auto;
    margin-bottom: 30px;
  }

  div.demo-container {
    flex-direction: column;
    gap: 0px;
  }

  a.web-button {
    margin-bottom: 0px;
  }

  img.demo-dog{
    width: 110%;
    margin-top: 40px;
    margin-bottom: 20px;
  }

  img.demo-mixed-props {
    display: none;
  }

  section#game {
    background-size: 1000px auto;
    padding-bottom: 400px;
  }

  div.contactus-container {
    flex-direction: column;
    gap: 0px;
    padding: 0px 50px 0px 50px;
  }

  div.contactus-mouse {
    text-align: center;
  }

  div.contactus-mouse img {
    margin-top: 80px;
  }

  img.typha-plants{
    display: none;
  }

  section#about {
    background-position: right 50px bottom 93px;
  }

  .web-footer-bush-stone {
    width: 200px;
  }

}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .collapsing {
    transition: none !important;
  }
}

:where(
  a,
  button,
  input,
  select,
  textarea
):focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 2px;
}
