/**
 *  Adding Gotham font
 */
@font-face {
  font-family: "Gotham-Bold";
  src: url("../fonts/Gotham-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Gotham-Book";
  src: url("../fonts/Gotham-Book.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Gotham-Medium";
  src: url("../fonts/Gotham-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

/**
 *  Fonts-related utilities.
 */

:root {
  --grey: #1dacd6;
  --black: #1dacd6;
  --red: #21768a;
  --white: #ffffff;
  --darkwhite: #f9f9f9;
  --lightdark: #35c2ed;
  --redattention: #bb1a06;
}

#home {
  overflow: hidden;
}

/**
 *  Custom styles
 */

* {
  font-family: "Gotham", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  outline: none;
  border: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

h1 {
  font-size: 0px;
}

h2 {
  font-size: 6rem;
}

h2 {
  display: block;
  font-size: 1.17em;
  margin-block-end: 0.3em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
  font-weight: bold;
}

*::selection {
  background: var(--black);
  color: var(--white);
}

html {
  overflow-x: hidden;
}

body {
  background: var(--darkwhite);
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 2rem 3rem;
  background: var(--black);
  font-size: 1.7rem;
  color: var(--white);
  cursor: pointer;
  text-transform: uppercase;
  border: 0.1rem solid var(--white);
  font-weight: 100;
}

/* .button {
  margin-right: 12em;
} */

form .btn:hover,
#wedo .btn:hover,
.btn:hover {
  color: var(--black);
  transition-delay: 0.1s;
  background-color: var(--red);
}

form .btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 2rem 3rem;
  background: var(--white);
  font-size: 1.7rem;
  color: var(--black);
  cursor: pointer;
  text-transform: uppercase;
  border: 0.1rem solid var(--black);
  font-weight: 100;
}

header {
  position: fixed;
  padding-top: 2rem;
  top: 0;
  left: 0;
  width: 100%;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  padding: 2rem 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 3rem;
  background-color: var(--black);
  z-index: 1000;
  height: auto;
  overflow: visible;
}

header .logo {
  font-size: 2rem;
  color: var(--red);
  height: auto;
  max-height: 7rem; /* oppure 100px, da adattare */
  object-fit: contain;
  display: block;
  padding-top: 1rem;
  margin-bottom: 1.5rem;
    /* Aggiunta di margin oppure paddinginferiore per evitare sovrapposizione con il testo */
  }
  
  header .logo img {
    width: 170px;
    height: auto;
    object-fit: contain;
  }

header .logo span {
  color: var(--black);
}

header .navbar a {
  font-size: 1.7rem;
  margin-left: 2rem;
  color: var(--white);
  text-align: center;
}

header .navbar a:hover {
  color: var(--red);
}

header input {
  display: none;
}

header label {
  font-size: 3rem;
  color: var(--grey);
  cursor: pointer;
  visibility: hidden;
  opacity: 0;
}

/**
 *  NAVBAR
 */

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 9vh;
  box-shadow: 0px 5px 0px rgba(0, 0, 0, 0);
  transition: box-shadow 500ms;
}

#navbar.scrolled {
  background-color: var(--lightdark);
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.25);
}

.nav-links {
  display: flex;
  justify-content: space-around;
  width: 40%;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  letter-spacing: 3px;
  font-weight: bold;
  font-size: 1rem;
}

.nav-links a:hover {
  color: var(--red);
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 5px;
  transition: all 0.3s ease;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.25);
}

/**
 *  COOKIE
 */

#consent-popup {
  position: fixed;
  bottom: 0;
  left: 10rem;
  right: 10rem;
  padding: 1rem 1rem;
  background-color: var(--white);
  transition: opacity 2s ease;
  font-size: 1.3rem;
  text-align: center;
}

#consent-popup.hidden {
  opacity: 0;
  flex: 1;
}

#accept {
  height: 50px;
  line-height: 50px;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  text-transform: uppercase;
  border: 0.1rem solid var(--white);
  background: var(--black);
  font-weight: bold;
  padding: 0.6rem 8.6rem;
}

.wrapper {
  position: fixed;
  width: 80%;
}

#consent-popup p {
  width: 80%;
}

.item {
  position: absolute;
  height: 50px;
  line-height: 50px;
  right: 0;
  top: 0;
  margin: 0.2rem;
  padding: 0;
  color: var(--white);
  width: 20%;
  font-weight: bold;
  text-align: center;
}

.item:hover {
  color: var(--black);
  cursor: pointer;
}

/**
 *  HOME
 */

.home .content p {
  font-size: 1.7rem;
  /* color: var(--grey); */
  color: var(--red);
  padding: 1rem 0;
}

/* Slideshow container */
.home {
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  margin: 0;
  padding: 0;
}

.home .content .features {
  height: 100%;
  background-color: var(--black);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.slideshow-container {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: -1;
}

.mySlides {
  display: none;
  width: 100%;
  height: 80rem;
}

.mySlides img {
  object-fit: cover;
  min-width: 100%;
  width: auto;
  height: auto;
  max-width: 100%;
}

/* Next & previous buttons */
.prev,
.next {
  display: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* Caption text */
.text {
  color: var(--white);
  font-size: 4.5rem;
  padding: 3%;
  position: absolute;
  width: 23%;
  margin: 0 10%;
  text-align: left;
  background-color: rgba(0, 0, 0, 0.3);
  top: 40%;
  transform: translateY(-50%);
}

.text h2 {
  margin-bottom: 10px;
  color: var(--white);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.text .titolo-stile {
  color: var(--black) !important;
}

.text .testo-stile {
  color: var(--darkwhite) !important;
}

/* Number text (1/3 etc) */
.numbertext {
  color: var(--black);
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* Fading animation */
.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.box-circles {
  position: absolute;
  top: 8vh;
  left: 50%;
  transform: translateX(-50%);
  padding: 1em;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 12px;
  width: 12px;
  margin: 0 2px;
  border: 1px solid var(--white);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
  background-color: var(--white);
}
/* Slideshow container ends*/

/**
 *  CARDBOX
 */

.card .box-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  padding: 2rem;
}

.card .box-container .box {
  flex: 1 1 30rem;
  margin: 1rem;
  background: var(--white);
  border: 0.1rem solid rgba(0, 0, 0, 0.2);
  border-radius: 0.1rem;
  text-align: center;
  margin-bottom: 3rem;
}

.card .box-container .box .btn {
  display: block;
}

.card .box-container .box .box-text {
  margin: 7rem;
  line-height: 2.5rem;
  height: 14rem;
}

.card .box-container .box .box-pic img {
  height: 15rem;
  object-fit: cover;
  width: 100%;
}

.box-pic {
  overflow: hidden;
  z-index: 1;
}

.box-pic::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transition: 0.5s ease all;
}

img {
  transition: 0.5s ease all;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}
.box-pic:hover img {
  transform: scale(1.2);
}

.box-pic:hover::after {
  opacity: 0.3;
}

/**
 *  ABOUT
 */

.about .column {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  background-color: var(--black);
}

#wedo .column .image,
.about .column .image {
  flex: 0 0 auto;
  width: 73%;
}

#wedo .column .content,
.about .column .content {
  flex: 0 0 auto;
  padding-bottom: 4rem;
}

.about img {
  height: 60rem;
  object-fit: cover;
  width: 100%;
}

#wedo .buttons {
  border: 1rem;
  z-index: 1000;
  margin-right: 10rem;
}

#wedo p,
#wedo a,
#wedo .heading,
#wedo {
  flex-direction: row-reverse;
  background-color: var(--white);
  color: var(--black);
  border-color: var(--black);
  text-align: right;
}

.about .column .content p {
  font-size: 1.8rem;
  color: var(--white);
  padding: 1rem 4rem;
}

.buttons {
  margin-left: 10rem;
}

.about .column .heading {
  text-align: left;
  background: var(--black);
  color: transparent;
  color: var(--white);
  font-size: 7rem;
  line-height: 6.5rem;
  padding: 0 5rem 2rem 5rem;
}

/**
 *  AJAXCALLS
 */

.container-ajx {
  font-size: 1.5rem;
  max-width: 95%;
  margin: auto;
  line-height: 1.5;
  padding: 5rem;
  background-color: var(--white);
}

.flex-ajx {
  display: flex;
  width: 100%;
  margin: auto 0rem 0rem;
  color: var(--white);
}

.colajx {
  margin-left: 0rem;
  margin-right: 0.5rem;
  color: var(--black);
}

.sidebar {
  flex: 1;
  margin: 0;
}

.mainajx {
  flex-shrink: 0;
  flex-basis: 70%;
  height: 42rem;
  background-color: var(--white);
}

#update {
  font-size: 2rem;
  padding: 2rem;
  padding-bottom: clamp(2rem, 3vh, 4rem);
}

#load-1 {
  box-sizing: border-box;
  width: 100%;
  padding: 2rem;
  border: 0.1rem solid var(--white);
  color: var(--white);
  background-color: var(--black);
  text-align: center;
}

#load-2,
#load-3 {
  box-sizing: border-box;
  width: 100%;
  padding: 2rem;
  border: 0.1rem solid --white;
  color: var(--black);
  background-color: #bbbbbb;
  text-align: center;
}

#load-1 {
  color: var(--white);
  background-color: var(--black);
}

#load-2,
#load-3 {
  color: var(--black);
  background-color: #bbbbbb;
}

#load-1,
#load-2,
#load-3 {
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  padding: 2rem;
  border: 0.1rem solid var(--white);
  text-align: center;
}

/**
 *  CONTACTUS
 */

.contact .column {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background-color: var(--black);
  padding-top: 10rem;
}

.contact .column .content h2 {
  font-size: 7rem;
}

.contact .column .content p {
  color: var(--white);
  text-align: left;
  margin-left: 13.5rem;
  padding-bottom: 20rem;
}

.contact .column .heading {
  text-align: left;
  color: transparent;
  color: var(--white);
  line-height: 6.5rem;
  padding-left: 13rem;
  padding-right: 13rem;
  padding-bottom: 2rem;
  margin-right: 13rem;
}

form {
  max-width: 45rem;
  background: var(--black);
  box-sizing: border-box;
  width: 80%;
}

/* .email input, */
.input,
.msg .area {
  background-color: var(--black);
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  margin-bottom: 25px;
  border: 2px solid #e9eaea;
  font-size: 14px;
  outline: none;
  color: var(--white);
}

.login .input {
  width: 48%;
  float: left;
  margin-right: 4%;
}

.login .input:last-child {
  margin-right: 0;
}

.msg .area {
  height: 20rem;
}

#display_message {
  color: var(--lightdark);
  margin-bottom: 20px;
  background: var(--redattention);
  padding: 0px;
  text-align: center;
  font-size: 2rem;
  transition: all 0.5s ease;
}

input,
textarea {
  background-color: var(--black);
  /* background-color: white; */
}

input #email,
input #phone {
  background-color: var(--black);
}

.contact {
  background-color: var(--blue);
  /* color: #bb1a06; */
}

/**
 *  FOOTER
 */

.footer .box-container {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  background: var(--black);
  padding-top: 1rem;
  padding-bottom: 10rem;
}

.footer .box-container .socials {
  display: flex;
  margin: 3rem;
  list-style-type: none;
}

.footer .box-container .socials li {
  padding: 0 3rem;
}

.fa-facebook-f {
  font-size: 4rem;
  color: #3b5998;
}

.fa-instagram {
  color: #8a3ab9;
  font-size: 4rem;
}

.footer .box-container .socials a:hover i {
  color: var(--red);
}

.footer .box-container .nav-footer li {
  float: left;
  list-style-type: none;
  font-size: 1.7rem;
  color: var(--white);
}

.footer .box-container .nav-footer li a {
  display: block;
  color: var(--white);
  text-decoration: none;
  list-style: none;
  margin: 2rem;
  font-size: 1.9rem;
}

.footer .box-container img {
  margin-top: 30%;
  max-width: 100%;
  height: 2rem;
  margin-bottom: 0;
  height: auto;
}

.footer-info {
  text-align: center;
  color: var(--white);
  font-size: clamp(1.2rem, 1.5vw, 1.6rem);
  margin-top: 1rem;
  padding: 0 1rem;
}

/**
 *  MEDIA QUERIES
 */

@media (max-width: 2000px) {
  html {
    font-size: 80%;
  }

  .card .box-container .box {
    flex: 1 1 15rem;
  }

  .mySlides {
    height: 75rem;
  }
  .nav-links a {
    font-size: 1.5rem;
    letter-spacing: 3px;
  }
}

@media (max-width: 1600px) {
  html {
    font-size: 70%;
  }
  .text {
    /* color: yellow; */
    top: 30%;
  }
  .mySlides {
    height: 70rem;
  }

  .nav-links a {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .card .box-container .box .box-text {
    margin: 3rem;
  }

  #accept {
    padding: 1rem 6rem;
    font-size: 2rem;
  }

  #consent-popup {
    left: 0.8rem;
    right: 0.8rem;
    padding: 1rem 1rem;
    /* font-size: 2rem; */
    font-size: 1.6rem;
  }
  .contact .column .heading {
    padding-right: 0;
  }
}

@media (max-width: 1201px) {
  html {
    font-size: 56%;
  }
  .text {
    /* color: rgb(0, 17, 255); */
    top: 27%;
  }
  .mySlides {
    height: 70rem;
  }

  .nav-links a {
    font-size: 2vh;
    letter-spacing: 1px;
  }

  .card .box-container .box .box-text {
    margin: 3rem;
  }

  #accept {
    padding: 1.2rem 9.5rem;
    font-size: 2rem;
  }

  #consent-popup {
    left: 0.8rem;
    right: 0.8rem;
    padding: 1rem 1rem;
    font-size: 1.6rem;
  }
  .contact .column .heading {
    padding-right: 0;
  }
}

@media (max-width: 980px) {
  html {
    font-size: 45%;
  }

  .text {
    /* color: red; */
    top: 23%;
  }

  section {
    padding: 0 0%;
  }

  .nav-links {
    width: 50%;
  }

  .card .box-container .box-text {
    margin: 3rem;
  }

  .home .content p {
    padding: 0;
  }

  #accept {
    padding: 1rem 8.4rem;
    font-size: 2rem;
  }

  #consent-popup {
    left: 0.8rem;
    right: 0.8rem;
    padding: 2rem 1rem;
  }
  form {
    max-width: 50rem;
  }

  .input,
  .msg .area {
    padding: 2rem;
    margin-bottom: 2rem;
  }
  .contact .column .heading {
    padding-right: 0;
  }
}

@media (max-width: 920px) {
  .text {
    /* color: pink; */
    top: 30vh;
  }

  .image img {
    height: 57rem;
  }
}

/* ==============================
   MOBILE / TABLET BREAKPOINTS
   Burger menu visibile fino a 765px
   ============================== */

/* Base mobile: fino a 765px */
@media (max-width: 765px) {
  html { font-size: 28%; }

  /* Layout generale */
  .about .column .content p { padding: 2rem; font-size: 2rem; }
  .about .column .heading { padding: 0 2rem 2rem 2rem; }
  .buttons { margin-left: 2rem; }
  #wedo .buttons { margin-right: 2rem; }
  .text { top: 40%; padding: 0; width: 40%; }
  .nav-links { width: 50%; }
  .home { flex-flow: column-reverse; }
  .home .image img { width: 100%; }
  .home .content p,
  .home .content .text p { font-size: 2rem; }
  .mySlides { height: 85rem; }
  .mySlides img { min-height: 90%; }
  .input,
  .msg .area { padding: 2rem; margin-bottom: 2rem; }
  form { max-width: 50rem; }
  .contact .column .heading { padding-right: 0; }
  #accept { padding: 2.7rem 6rem; font-size: 3rem; }
  #consent-popup { font-size: 2.6rem; padding: 1rem 1rem; }
  .container-ajx { font-size: 1.51rem; max-width: 100%; padding: 1rem; padding-top: 5rem; }
  #update { font-size: 2rem; }
  .flex-ajx { margin: auto 0rem 8rem; }
  .mainajx { height: 45rem; }
  .contact .column .content p { padding-bottom: 10rem; font-size: 2.2rem; }
  .card .box-container .box .box-text { margin: 2rem; }

  /* ==============================
     BURGER MENU / NAV
     ============================== */
  #navbar .burger { display: block; cursor: pointer; }

  .nav-links {
    position: absolute;
    top: 0.7vh;
    right: 10px;
    left: 10px;
    height: 50vh;
    background-color: rgba(217, 217, 217, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateY(-110%);
    transition: transform 0.5s ease-in;
    width: auto;
    padding: 1rem 2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  }

  .nav-links a { color: var(--grey); }
  .nav-links li { opacity: 0; }

  .nav-active { transform: translateX(0%); }

  .toggle .line1 { transform: rotate(-45deg) translate(-5px, 6px); background-color: var(--black); }
  .toggle .line2 { opacity: 0; }
  .toggle .line3 { transform: rotate(45deg) translate(-5px, -6px); background-color: var(--black); }
}

/* ------------------------------
   MEDIA QUERY SPECIFICHE FINO A 480PX
   Si estendono automaticamente dal max-width: 765px
--------------------------------*/
@media (max-width: 540px) {
  .text { top: 30%; }
  .home .image img { height: 62rem; }
}

@media (max-width: 480px) {
  html { font-size: 50%; }
  .text { text-align: center; top: 27%; width: fit-content; }

  .card .box-container .box { flex: 1 1 28rem; }

  .about .column .heading {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 2rem;
    height: 9rem;
    text-align: center;
    margin-top: 6rem;
  }

  .box-circles { display: none; }
  .contact .column { margin-top: 3rem; }
  .contact .column .heading {
    text-align: left;
    color: var(--white);
    line-height: 6.5rem;
    padding-left: 0;
    padding-right: 0;
    height: 5rem;
  }

  .contact .column .content p { padding-bottom: 5rem; padding-top: 1.5rem; }
  .about .column .content p { text-align: center; padding: 1rem 6rem; line-height: 3rem; }
  .card .box-container .box { margin-right: 0; margin-left: 0; }
  .container { width: 100%; }
  .mySlides { height: 100rem; }

  .container-ajx { max-width: 90%; padding: 0.5rem; background-color: var(--white); padding-bottom: 12rem; font-size: 1.6rem; }
  .flex-ajx { flex-direction: column; margin-top: 10rem; text-align: center; }
  .about .column { flex-direction: column; }
  .about .column .content p { font-size: 2.4rem; }

  .about #wedo { flex-direction: column; align-items: center; text-align: center; width: 100%; }
  #wedo .heading, #wedo p, #wedo .btn { text-align: center; width: 100%; }
  #wedo .buttons, .buttons { width: 80%; align-items: center; margin: 0 auto 2rem; }
  .about .column .image img { width: 100%; height: 60rem; object-fit: cover; border: yellow; }
  #wedo .column .image, .about .column .image { flex: 0 0 auto; width: 100%; }
  #accept { padding: 1.5rem 2.6rem; font-size: 1.8rem; }
  #consent-popup { font-size: 1.6rem; text-align: justify; }
  body { overflow-x: hidden; }
}

/* ------------------------------
   MEDIA QUERY FINO A 375PX
--------------------------------*/
@media (max-width: 375px) {
  html { font-size: 50%; }
  .text { top: 27%; }
  .mySlides img { min-height: 92%; }
  .mySlides { height: 83rem; }
  .about .column .image img { height: 37rem; }
  .about .column .content p { padding: 1rem 3rem; font-size: 2.4rem; }
  .about .column .heading { margin-top: 10rem; }
  .contact .column .content p { padding-bottom: 4rem; }
  .home .content p { font-size: 2.3rem; }
  #load-1, #load-2, #load-3 { font-size: 2.2rem; }
  .nav-links a { font-size: 2rem; }
  #consent-popup { font-size: 1.8rem; }
  #accept { padding: 1.3rem 2rem; font-size: 2rem; }
}

/* ------------------------------
   MEDIA QUERY FINO A 320PX
--------------------------------*/
@media (max-width: 320px) {
  html { font-size: 40%; }
  .text { top: 25%; }
  .contact .column .heading { padding-left: 3rem; }
  .about .column .content p { padding: 5rem 6rem; }
  .contact .column .content p { margin-left: 17rem; }
  #accept { font-size: 1.5rem; }
  .card .box-container { padding: 3rem; }
}

/* ==============================
   ANIMAZIONE NAV LINKS
   ============================== */
@keyframes navLinkFade {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0px); }
}
