@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');

:root {
  --first-color: #003D71;
  --second-color: #0088CC;
  --third-color: #6FD0F6;
  --fourth-color: #002a50;
  --white: #ffffff;
  --black: #1d1d1d;
  --background: #f8f9fa;
  /* grigio molto chiaro */
  --font-title: "nasalisation", sans-serif;
  --gray-color: #484848;
}

@font-face {
  font-family: nasalisation;
  src: url('nasalization-rg.woff') format('woff');
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Nunito Sans", sans-serif;
}

body {
  font-family: "Nunito Sans", sans-serif;
  font-weight: normal;
  background-color: var(--background);
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: unset;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background-color: var(--white);
  color: var(--first-color);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  position: sticky;
  top: 0;
  height: 66px;
  z-index: 10000;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  max-width: 205px;
}

.logo img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .logo {
    max-width: 170px;
  }
}

.nav-links li a {
  color: var(--first-color);
  text-decoration: none;
  font-size: 1rem;
  font-family: 'Lexend Deca', Arial, Helvetica, sans-serif;
  font-weight: 500;
}

.dropdown {
  position: relative;
  width: fit-content;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--first-color);
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
  border-radius: 4px;
  min-width: 160px;
  z-index: 1000;
  pointer-events: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu li {
  padding: 0.5rem 1rem;
  transition: background 0.3s;
  cursor: pointer;
}

.dropdown-menu li:hover {
  background-color: var(--second-color);
}

.dropdown-menu li a {
  color: white;
  text-decoration: none;
  display: block;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.burger-menu,
.burger-menu-close {
  display: none;
  justify-content: flex-end;
  gap: 0.5rem;
  align-items: center;
  cursor: pointer;
  position: absolute;
  right: 20px;
  /*  top: 40px; */
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-direction: row;
}

@media screen and (max-width: 768px) {
  .nav-links {
    position: fixed;
    display: flex;
    flex-direction: column;
    padding: 5rem 1rem 1rem 1rem;
    top: 0;
    right: -250px;
    background-color: var(--white);
    width: 250px;
    height: 100%;
    padding-top: 60px;
    box-shadow: -4px 0 8px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    z-index: 10000;
  }

  .nav-links.active {
    right: 0;
  }

  .burger-menu {
    display: flex;
  }

  .nav-links>li:first-of-type {
    margin-top: 40px;
  }

}

.esa {
  font-family: 'nasalisation', sans-serif;
  color: var(--first-color);
  text-shadow: -1px 0 var(--third-color), 0 1px var(--third-color), 1px 0 var(--third-color), 0 -1px var(--third-color);
}

.service {
  font-family: 'nasalisation', sans-serif;
  color: var(--second-color);
  text-shadow: -1px 0 var(--third-color), 0 1px var(--third-color), 1px 0 var(--third-color), 0 -1px var(--third-color);
}

.footer {
  color: var(--first-color);
  background-color: var(--white);
  padding: 2rem 1rem;
  text-align: center;
  font-weight: 600;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.footer-brand {
  text-align: left;
  max-width: 300px;
}

.company-description {
  font-size: 1rem;
  font-weight: 800;
  color: var(--first-color);
  margin-top: 0.2rem;
}

.footer-links, .footer-contact, .footer-company {
  max-width: 200px;
  text-align: left;
}

.footer-links>p,
.footer-contact>p,
.footer-company>p {
  color: var(--fourth-color) !important;
  margin-bottom: 0.5rem !important;
  font-weight: 800 !important;
}

.footer-links ul,
.footer-company ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li,
.footer-company ul li {
  margin: 5px 0;
}

.footer-links ul li a,
.footer-company ul li a {
  color: var(--first-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease-in-out;
}

.footer-links ul li a:hover,
.footer-contact p a:hover,
.footer-company p a:hover,
.footer-company ul li a:hover {
  text-decoration: underline;
}

.footer-contact a,
.footer-company a {
  color: var(--first-color);
  text-decoration: none;
  font-weight: 600;
}

.social-icons {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 0.7rem;
  align-items: center;
}

.social-icons a {
  color: var(--first-color);
  font-size: 28px;
  margin-top: 10px;
  transition: color 0.3s ease-in-out;
}

.footer-bottom {
  margin-top: 1rem;
  /* border-top: 1px solid var(--white); */
  padding-top: 1rem;
  font-size: 0.9rem;
}

@media screen and (max-width: 768px) {
  .footer-brand {
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }
}

.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
  background-color: var(--first-color);
  text-align: center;
  color: var(--white);
}

.hero-container {
  width: 100%;
  height: 50vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  user-select: none;
  -moz-user-select: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  user-select: none;
  -moz-user-select: none;
}

.hero-title-section {
  position: absolute;
}

.hero-title {
  font-size: 2.8rem;
  color: var(--white);
  font-weight: bold;
  padding: 0 1rem;
  font-family: "Lexend Deca", sans-serif;
}

.hero-description {
  font-size: 1rem;
  max-width: 600px;
  color: var(--white);
  padding: 0 1rem;
  font-family: "Lexend Deca", sans-serif;
}

.hero-category {
  /* border: 1px solid var(--white); */
  border-left: unset;
  border-right: unset;
  padding: 0.5rem 0;
  margin: 15px auto;
  max-width: 90%;
}

.hero-category a {
  cursor: pointer;
  color: var(--white);
  font-weight: bold;
  text-transform: uppercase;
}

.hero-category a:hover {
  text-decoration: underline;
}

.hero-button {
  margin: 10px 0 0;
}

.hero-title, .hero-description, .hero-category, .transition-bottom-top, .hero-button {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-title.visible,
.hero-description.visible,
.hero-category.visible,
.transition-bottom-top.visible,
.hero-button.visible {
  opacity: 1;
  transform: translateY(0);
}

/* card */

.services-section {
  padding: 4rem 1rem;
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #FFF;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  height: 100%;
  padding: 20px;
  width: 100%;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service-card p {
  flex-grow: 1;
  padding: 0 1rem;
  font-size: 0.938rem;
  color: var(--gray-color);
  font-weight: 500;
}

.service-card img {
  width: 100%;
  border-radius: 12px;
  height: 180px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.4rem;
  margin: 15px 0;
  font-weight: bold;
  color: var(--first-color);
}

.service-card .btn {
  align-self: center;
  margin: 15px 0 0;
}

.btn {
  padding: 10px 15px;
  background-color: var(--first-color);
  color: var(--white);
  text-decoration: none;
  border-radius: 10px;
  transition: opacity 0.1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  width: min-content;
  margin: 0 auto;
  font-family: "Lexend Deca", sans-serif;
}

.btn:hover {
  opacity: 0.8;
  transition: opacity 0.1s ease-in-out;
}

@media screen and (max-width: 1024px) {
  .services-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 768px) {
  .services-container {
    grid-template-columns: 1fr;
  }
}

/* general section */

.section-base {
  padding: 4rem 2rem;
}

.section-base h2 {
  max-width: 1200px;
  width: 85%;
  margin: 0 auto;
}

.section-base p {
  max-width: 1200px;
  width: 85%;
  margin: 0 auto;
  color: var(--gray-color);
  margin-top: 1rem;
}

.container-base {
  padding: 0rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container-base-responsive {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  width: 85%;
}

.general-section {
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.general-container,
.general-container-reverse {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  width: 85%;
}

.general-text {
  flex: 1;
}

.general-detail {
  text-transform: uppercase;
  color: var(--first-color);
  margin-bottom: 0.8rem;
  font-weight: bold;
  font-size: 1.3rem;
}

.general-text h2,
.title-section {
  font-size: 2rem;
  color: var(--first-color);
  margin-bottom: 0.6rem;
  font-weight: bold;
  font-family: "Lexend Deca", sans-serif;
}

.general-description {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--black);
}

ul.general-description {
  padding-left: 30px;
}

.general-list {
  padding: 0 2rem;
  margin-top: 1rem;
  list-style-type: disc;
  color: var(--black);
  text-align: left;
}

.general-list li {
  margin-top: 0.3rem;
}

.general-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.general-image img {
  width: 100%;
  max-width: 500px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.general-image iframe {
  width: 100%;
  max-width: 500px;
}

@media screen and (max-width: 1024px) {
  .general-container {
    flex-direction: column;
    text-align: center;
  }

  .general-container-reverse {
    flex-direction: column-reverse;
    text-align: center;
  }

  .general-image img {
    max-width: 80%;
  }

  .general-text p a {
    margin-left: auto;
    margin-right: auto;
  }
}

.underline-hover:hover,
.hover-underline:hover {
  text-decoration: underline;
}

/* button scroll to top page */

#scrollToTopBtn {
  position: fixed;
  bottom: 40px;
  right: 20px;
  background-color: var(--first-color);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.2s ease-in-out;
  z-index: 1000;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 2rem;
}

#scrollToTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
}

#scrollToTopBtn:hover {
  opacity: 0.9;
  transform: scale(1.1);
}

.text-left,
.left {
  text-align: left;
}

.margin-unset {
  margin: unset;
}

.zoomable-image {
  position: relative;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.zoomable-image:hover {
  transition: transform 0.3s ease;
}

.zoomable-image:hover {
  opacity: 0.85;
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  user-select: none;
}

.image-modal img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
  box-shadow: 0 0 20px #000;
}

.image-modal .close-modal {
  position: absolute;
  top: 100px;
  right: 80px;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.banner {
  padding: 3rem;
  background-color: var(--first-color);
  color: var(--white);
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-button {
  flex: 0;
  display: flex;
  justify-content: center;
}

.btn-border {
  border: 1px solid #FFF;
}

.carousel-section {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel {
  position: relative;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  height: auto;
  display: block;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 1rem;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
}

.carousel-button.prev {
  left: 10px;
}

.carousel-button.next {
  right: 10px;
}

.carousel-button:hover {
  background: rgba(0, 0, 0, 0.7);
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  padding: 40px 20px;
  text-align: center;
}

.feature {
  width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: scale(1.05);
}

.feature .icon {
  width: 150px;
  height: 150px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature p {
  font-weight: 600;
  color: #444;
  font-size: 0.95rem;
  font-weight: bold;
}

.arrow-down-span {
  box-shadow: inset -2px 2px 0 0;
  color: var(--first-color);
  content: "";
  display: block;
  height: 7px;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 55%;
  -webkit-transform: translateY(-5px) rotate(135deg);
  transform: translateY(-5px) rotate(135deg);
  -webkit-transform-origin: 50% 50%;
  transform-origin: 50% 50%;
  width: 7px;
}

.client-list {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1rem;
  font-weight: 600;
}

.client-column {
  list-style: none;
  color: var(--gray-color);
  width: 50%;
  padding: 0;
  margin: 0;
}

.client-column.right {
  text-align: right;
}

.client-column.left {
  text-align: left;
}

@media (max-width: 768px) {
  .client-list {
    flex-direction: column;
    align-items: center;
  }

  .client-column {
    width: 100%;
    text-align: center;
  }
}

.underline {
  text-decoration: underline;
}

.bold {
  font-weight: bold;
}

.servizi {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px;
  gap: 40px;
  flex-wrap: wrap;
}

.servizio {
  color: var(--first-color);
  background-color: #FFF;
  border-radius: 16px;
  min-height: 510px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.servizio-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.servizio h2 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 800;
  color: var(--first-color);
}

.servizio p {
  margin-bottom: 10px;
  color: var(--gray-color);
  
  font-weight: bold;
}

.servizio ul {
  list-style-type: none;
  padding: 0;
  text-align: center;
  color: var(--gray-color);
}

.servizio ul li::before {
  content: "•";
  margin-right: 8px;
  color: var(--fourth-color);
}

.servizio ul li {
  margin: 6px 0;
  font-size: 18px;
}

.servizio ul li:hover {
  text-decoration: underline;
}

.servizio ul li::before:hover  {
  text-decoration: none !important;
}

.open {
  display: block !important;
}