@import url('https://fonts.googleapis.com/css2?family=Geist:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  font-family: 'Geist';
  font-weight: 200;
  letter-spacing: -1px;
  --primary-color: #2C2825;
  --secondary-color: #0599FE;
  --accent-color1: #F2F2F2;
  --accent-color2: #A3A3A3;
  --primary-background: #011542;
  --primary-background-dark: #010F2E;
  --secondary-background: #E7E9ED;
}

body {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  padding: 0;
  font-weight: 400;
}


header>main {
  padding: 10vh 10vw;
  height: 75vh;
  text-align: center;
  background-image: url('images/background-test.png');
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
}

header>main>div {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 10vh;
}

header .btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.padding-section, #processes{
  padding: 20vh 10vw;
}

#processes {
  padding-right: 0;
  padding-left: 0;
}

#processes > div {
  padding-right: 10vw;
  padding-left: 10vw;
}


header h1,
header .subtitle {
  color: var(--accent-color1);
}

nav {
  box-sizing: border-box;
  position: fixed;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1vh 10vw;
  background-color: #FAFAFA;
  width: 100%;
  z-index: 1000;
}

nav ul {
  display: flex;
  gap: 48px;
}

nav ul li {
  list-style: none;
  font-weight: 500;
}

a {
  text-decoration: none;
}

nav ul li a {
  text-decoration: none;
  color: #2C2825;
}

h1 {
  font-size: 104px;
  line-height: 88%;
  line-break: 1px;
  font-weight: 500;
  letter-spacing: -5%;
}

h2 {
  font-size: 64px;
  line-height: 100%;
  font-weight: 500;
  letter-spacing: -5%;
}

h3 {
  font-size: 32px;
  color: var(--secondary-color);
}

h4 {
  font-size: 40px;
}

.section-title {
  font-size: 20px;
  line-height: 100%;
  color: var(--primary-background);
}

#conttato .section-title {
  color: var(--accent-color2);
}

.subtitle {
  font-size: 32px;
  line-height: 100%;
  letter-spacing: -0.5%;
}

.paragraph1 {
  font-size: 22px;
  letter-spacing: 1%;
}

#stats .paragraph2 {
  margin-top: 14px;
}

.paragraph2 {
  font-size: 18px;
  line-height: 135%;
  margin-bottom: 0;
  letter-spacing: 1%;
  margin-top: 0px;
}

main>.subtitle {
  color: var(--accent-color1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 48px;
}

/* ── Button Lang ── */
.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--secondary-color);
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  min-width: 100px;
  transition: background 0.15s ease, border-radius 0.15s ease;
  outline: none;
}

.lang-btn:hover {
  background: #1E88E5;
}

.lang-btn.open {
  background: #1565C0;
  border-radius: 8px 8px 0 0;
}

.lang-btn .globe-icon {
  width: 20px;
  height: 20px;
  fill: #fff;
  flex-shrink: 0;
}

.lang-btn .lang-label {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  flex: 1;
  text-align: left;
  text-transform: uppercase;

}

.lang-btn .chevron {
  width: 12px;
  height: 12px;
  fill: #fff;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.lang-btn.open .chevron {
  transform: rotate(180deg);
}

/* ── Dropdown ── */
.lang-menu {
  display: none;
  position: absolute;
  top: 60%;
  left: 0;
  right: 0;
  padding: 0px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
  z-index: 2000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.lang-menu.open {
  display: block;
  animation: slideDown 0.15s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lang-option {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0%;
  color: #333;
  transition: background 0.1s ease;
  border-top: 1px solid #f0f0f0;
}

.lang-option:hover {
  background: #f5f5f5;
}

.lang-option.active {
  background: #2196F3;
  color: #fff;
  font-weight: 400;
  border-top-color: transparent;
  border-radius: 8px;
  margin: 1px;
}

.lang-option.active:hover {
  background: #1E88E5;
}

#btn-burger {
  display: none;
  cursor: pointer;
}

#btn-primary {
  background-color: #0599FE;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

#btn-primary:hover {
  background-color: #1E88E5;
}


#btn-hero {
  background: var(--accent-color1);
  color: var(--primary-color);
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  width: 300px;
}

#btn-hero:hover {
  background: #fff;
}

#btn-hero-outline {
  background: transparent;
  color: var(--accent-color1);
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  border: 2px solid var(--accent-color1);
  width: 300px;
}

#btn-hero-outline:hover {
  color: #fff;
 border: 2.3px solid #fff;
}


#stats {
  background: var(--primary-background);
  display: flex;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  color: var(--accent-color1);
  padding: 50px 150px;
}

#stats article {
  display: flex;
  flex-direction: column;
}

#stats article h2 {
  font-size: 54px;
  line-height: 100%;
  font-weight: 500;
  letter-spacing: -5%;
}

#stats article .paragraph2 {
  font-size: 18px;
  line-height: 0%;
}

#about {
  display: flex;
  justify-content: space-between;
  background: var(--secondary-background);
}

#about>main {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 45%;
}

#about>main .paragraph2 {
  color: var(--primary-color);
}

#about>img {
  width: 45%;
}

#img-main {
  background-image: url('images/background-test.png');
  background-size: cover;
  height: 50vh;
}

#our-services {
  background-color: var(--primary-background);
  display: flex;
  flex-direction: column;
}

#our-services main {
  display: flex;
  gap: 60px;
}

#our-services h2 {
  color: var(--accent-color1);
  margin-bottom: 24px;
}

#our-services .container-details article {
  display: none;
}

#our-services .container-details article.active {
  display: block;
}

#our-services ul {
  padding: 0px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 30%;
}

#our-services .container-details {
  width: 60%;
}

.container-details article {
  overflow: hidden;
  opacity: 0;
  transition: max-height .4s ease, opacity .3s ease;
}

.container-details article.active {
  
  opacity: 1;
}

#our-services .container-details header {
  border-bottom: 2px solid var(--accent-color1);
  margin-bottom: 20px;
}

#our-services .container-details header .section-title {
  color: var(--accent-color1);
  letter-spacing: 1%;
}

#our-services .container-details .element,
.modal-content .item-modal {
  display: flex;
  gap: 26px;
  background-color: var(--primary-background-dark);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 10px;
}

#our-services .container-details .element .section-title,
.modal-content .item-modal .section-title {
  color: var(--accent-color1);
  font-weight: 500;
  line-height: 120%;
  margin: 0;
}

#our-services .container-details .element .paragraph2,
.modal-content .item-modal .paragraph2 {
  color: var(--accent-color1);
}

#our-services .services-menu li {
  cursor: pointer;
  list-style: none;
  color: var(--accent-color1);
  font-size: 24px;
  line-height: 120%;
  letter-spacing: -2%;
}

#our-services .services-menu li.active {
  font-weight: bold;
}

#our-services .services-menu .arrow {
  display: none;
}

#processes {
  background-image: url('images/background-test.png');
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--accent-color1);
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

#processes > .arrows-container {
  display: flex;
  justify-content: end;
  gap: 16px;
}

#processes > .arrows-container span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  align-items: center;
}

#processes > .arrows-container span:hover {
  background: rgba(255, 255, 255, 0.371);
  cursor: pointer;
}

#processes > .arrows-container span svg {
  width: 20px;
  height: 20px;
}

#processes > .arrows-container .arrow-left svg {
  transform: rotate(180deg);
}




#processes main {
  display: flex;
  align-items: center;
  overflow-x: scroll;
  gap: 16px;
  padding-bottom: 10px;
 /* Firefox */
  scrollbar-width: none;

  /* IE y Edge antiguo */
  -ms-overflow-style: none;
}

/* Chrome, Edge y Safari */
#processes main::-webkit-scrollbar {
  display: none;
}


#processes main article h4 {
  font-weight: 600;
  font-size: 22px;
  line-height: 120%;
  letter-spacing: -2%;
  color: #F2F2F2;
  width: 75%;
}

#processes main article .btn {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
}

#processes main article .footer {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  width: 100%;
}

#processes main {
  padding-left: 10vw;
}

#processes main article .btn:hover {
  background: rgba(255, 255, 255, 0.71);
  cursor: pointer;
}



#processes main article {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 32px 24px;
  gap: 10px;
  flex: 0 0 300px;
  width: 300px;
  height: 50vh;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid #A3A3A3;
  backdrop-filter: blur(21px);
  border-radius: 20px;
}




#soluzioni {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: var(--primary-background);
  color: var(--accent-color1);
}

#soluzioni>.section-title,
#our-services .section-title {
  color: var(--accent-color2);
}

#soluzioni>.card-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 100%;
}

#soluzioni>.card-container>.card {
  background-color: var(--primary-background-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 56px;
  padding: 8vh;
  border-radius: 20px;
}

#soluzioni>.card-container>.card>div {
  display: flex;
  flex-direction: column;
  width: 45%;
}

#soluzioni>.card-container>.card>img {
  width: 50%;
}

#soluzioni>.card-container>.card>div ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 20px;
}

#settori>div {
  text-align: center;
}

#settori>div h2 {
  margin-bottom: 16px;
}

#settori .sectors-container {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

#settori .sectors-container article {
  width: 17vw;
  height: 300px;
}

#settori .sectors-container article div {
  border-radius: 20px;
  background: var(--primary-background);
  height: 230px;
  width: 17vw;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: margin-top 0.3s ease;
}

#settori .sectors-container article p {
  font-weight: 500;
}

#settori .sectors-container article div:hover {
  margin-top: -20px;
}

#perche-sceglierci {
  background: #E5E5E5;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

#perche-sceglierci .title,
#perche-sceglierci .card-container {
  width: 70%;
}

#perche-sceglierci .card-container {
  margin-top: 40px;
  background: white;
  border-radius: 8px;
  padding: 8vh;
}

#perche-sceglierci .card-container .p-card {
  text-transform: uppercase;
  color: var(--primary-background);
  font-size: 18px;
}


#perche-sceglierci .section-title {
  color: var(--primary-background);
}

#conttato {
  background-color: var(--primary-background);
  color: var(--accent-color1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#conttato>main {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

footer {
  background-color: #0599FE;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 100px;
}

#creators {
  background-color: #0599FE;
  color: var(--accent-color1);
  text-align: center;
  margin: 0px;
  padding: 20px;
}

#creators p {
  margin: 0px;
  padding: 0px;
}

#creators p a {
  color: var(--accent-color1);
  text-decoration: none;
  font-weight: 500;
}

footer div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

footer div h4 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -2%;
  list-style: 120%;
  color: var(--accent-color1);
}

footer div p {
  margin: 0px;
  color: var(--accent-color1);
}

footer ul {
  display: flex;
  justify-content: space-between;
  align-items: end;
  list-style: none;
  width: 50%;
}

footer ul li a {
  color: var(--accent-color1);
  text-decoration: none;
}

@media (max-width: 768px) {
  nav {
    box-sizing: border-box;
    padding: 1vh 4vw;
    height: 8vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
  }

  header>main,
  .padding-section {
    padding: 48px 24px;
  }

  header>main>div {
    height: auto;
    margin-top: 10vh;
  }

  header>main,
  nav ul,
  #stats {
    display: block;
  }

  header>main {
    height: 60vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  nav ul {
    display: none;
  }

  h1 {
    font-size: 60px;
  }

  h2 {
    font-size: 36px;
    line-height: 105%;
  }

  h3 {
    font-size: 25px;
  }

  h4 {
    font-size: 20px;
  }

  .paragraph1 {
    font-size: 16px;
  }

  .subtitle {
    font-size: 22px;
    line-height: 105%;
  }

  footer div h4 {
    font-size: 18px;
  }

  .section-title {
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -2%;
  }
  #processes > div, #processes main {
    padding-left: 0;
  }
  
  #processes main article h4 {
    font-size: 18px;
  }

  #about {
    display: flex;
    flex-direction: column;
    gap: 60px;
  }

  #about>main {
    width: 100%;
  }

  #about>img {
    width: 100%;
  }

  #img-main {
    height: 10vh;
  }

  #soluzioni {
    align-items: start;
  }

  #soluzioni>.card-container>.card {
    background-color: var(--primary-background-dark);
    padding: 4vh;
    flex-direction: column;
  }

  #soluzioni>.card-container>.card-reverse {
    flex-direction: column-reverse;
  }

  #soluzioni>.card-container>.card>div,
  #soluzioni>.card-container>.card>img {
    width: 100%;
  }

  #soluzioni>.card-container>.card>div ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 20px;
  }

  #settori .sectors-container {
    margin-top: 40px;
    flex-direction: column;
    gap: 20px;
  }

  #settori .sectors-container article {
    width: 100%;
    height: auto;
  }

  #settori .sectors-container article div svg {
    width: 70px;
    height: auto;
  }

  #perche-sceglierci .title,
  #perche-sceglierci .card-container {
    width: 100%;
  }

  #perche-sceglierci .card-container {
    width: 80%;
  }

  #perche-sceglierci .card-container {
    padding: 5vh;
  }

  #stats {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  #stats article h2 {
    font-size: 32px;
  }

  #about>main {
    gap: 24px;
  }

  #conttato>main {
    gap: 16px;
  }

  #conttato {
    flex-direction: column;
    align-items: start;
    gap: 40px;
  }

  footer ul {
    padding: 0;
    width: 100%;
  }

  #our-services ul {
    gap: 16px;
  }
  
  #our-services .services-menu li {
    font-size: 18px;
    display: flex;
    align-items: end;
    gap: 80px;
    justify-content: space-between;
    border-bottom: #b4b4b433 1px solid;
    padding-bottom: 20px;
  }


  .container-details article.active {
    height: auto;
    opacity: 1;
  }
}


.fade-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.numbers-scroll {
  opacity: 0;
  transition: opacity 1s ease, transform 1s ease;
}

.numbers-scroll.visible {
  opacity: 1;
}


.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #888;
}

#dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.2s;
}

.dot.active {
  width: 10px;
  height: 10px;
  background: var(--primary-background);
}

#img-main div {
  height: 200px;
  width: 300px;
  background-color: rgb(white, white, white, 0.05);
  filter: blur(3px);
  border: 1px solid white;
}


@media (max-width: 768px) {
  h1 {
    font-size: 38px;
    letter-spacing: -0.5%;
    line-height: 88%;
  }

  .subtitle {
    font-size: 18px;
    line-height: 100%;
    letter-spacing: -0.5%;
  }

  header .btn-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
  }

  button {
    width: 100%;
  }

  #our-services main,
  footer {
    display: block;
  }

  #our-services .services-menu .arrow {
    display: block;
  }

  .services-menu .arrow {
    display: block;
    font-size: 20px;
    transition: transform .3s ease;
  }

  .services-menu li.active .arrow {
    transform: rotate(180deg);
  }

  #processes > .arrows-container {
    display: none;
  }

  #processes main {
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  #processes {
    padding: 48px 24px;
  }

  #processes > div {
   padding-right: 0;
  }


  #processes h2,
  #processes p {
    text-align: center;
  }

  #processes h2 {
    margin-bottom: 24px;
  }

  #processes main article {
    width: 75vw;
    height: 25vh;
  }

  #our-services ul,
  #our-services .container-details,
  #processes main {
    width: 100%;
  }

  #settori .sectors-container article div {
    width: auto;
    height: 220px;
  }

  #stats article .paragraph2 {
    line-height: 94%;
  }

  #stats {
    padding: 30px 70px;
  }

  .paragraph2 {
    font-size: 16px;
    line-height: 135%;
  }
}


@media (min-width: 769px) and (max-width: 1024px) {
  h1 {
    font-size: 70px;
    line-height: 88%;
    letter-spacing: -3%;
  }

  h2 {
    font-size: 64px;
    line-height: 100%;
    font-weight: 500;
    letter-spacing: -5%;
  }
}


.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal .modal-close {
  display: flex;
  justify-content: end;
  align-items: center;
  margin-bottom: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-content {
  background: var(--primary-background);
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 2rem;
  border-radius: 8px;
  min-width: 30vw;
  max-width: 60vw;
  min-height: 50vh;
  max-height: 70vh;
}

.modal-content .items {
  overflow-y: auto;
  padding-right: 2vh;
}

.modal-content .section-title {
  color: var(--accent-color2);
}

.modal-content>div>p {
  font-weight: 500;
  font-size: 24px;
  line-height: 108%;
}

@media (max-width: 768px) {

  .modal-content {
    max-width: 75vw;
    height: auto;
    max-height: 60vh;
    text-align: start;
  }

  .modal-content .items .item-modal {
    flex-direction: column;
  }

  #processes .modal-content h2,
  #processes .modal-content p {
    text-align: start;
  }

  #processes .modal-content>div>p {
    font-size: 16px;
    line-height: 100%;
    letter-spacing: -2%;
  }

  #btn-burger {
    display: block;
  }

  #nav-mobile {
    display: none;
  }

  .nav-right {
    width: 50%;
    justify-content: space-between;
  }
}


.desktop-layout {
  display: block;
}

.mobile-layout {
  display: none;
}

@media (max-width: 768px) {
  .desktop-layout {
    display: none;
  }

  .mobile-layout {
    display: block;
  }

}


#nav-mobile.active {
  display: block;
  position: fixed;
  top: 5vh;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1000;
  background-color: #E7E9ED;
}

#nav-mobile.active li {
  margin: 16px 0;
}

nav.active {
  background-color: #E7E9ED;
}

#close-icon {
  display: none;
}