/* index.css */

/* Reset e base mobile-first */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'MyCustomFont', sans-serif;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navbar ovale */
.navbar {
  background-color: #ffffff;
  border-radius: 50px;
  padding: 8px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 8px auto;
  width: calc(100% - 32px);
}

/* Testo e logo nella navbar */
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.navbar__logo--image {
  height: 36px;
  width: auto;
}
.navbar__logo--text {
  font-weight: 600;
  font-size: 1.1rem;
  color: #000000;
}

/* Navbar link default */
.navbar__menu a {
  color: #000000;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.navbar__menu a:hover {
  background-color: #ffb415;
  color: #ffffff;
}

/* Spazio tra top e navbar */
.hero {
  padding-top: 20px;
}

/* Testo nella hero sempre bianco */
.hero .sectionOne__left--label,
.hero .sectionOne__left--title,
.hero .sectionOne__left--text {
  color: #ffffff;
}

/* Sezioni layout mobile-first */
.sectionOne,
.sectionThree,
.sectionFour {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 24px 0;
}

/* Responsive da tablet in su */
@media (min-width: 768px) {
  .navbar {
    margin-top: 4px;
    padding: 10px 24px;
    width: calc(100% - 48px);
  }
  .hero {
    padding-top: 10px;
  }
  .sectionOne,
  .sectionThree,
  .sectionFour {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }
}

/* Responsive migliorato per mobile */
@media (max-width: 768px) {
  .navbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 12px 8px;
    border-radius: 10px;
    margin-top: 8px;
    gap: 0;
    position: relative;
  }
  .navbar__logo {
    margin-bottom: 0;
  }
  .navbar__hamburger {
    display: flex;
    margin-left: auto;
  }
  .navbar__menu {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-radius: 0 0 16px 16px;
    padding: 16px 0 12px 0;
    z-index: 10;
  }
  .navbar__menu.open {
    display: flex;
  }
  .container {
    padding: 0 px !important;
    width: 98%;
  }
  .sectionOne,
  .sectionThree,
  .sectionFour {
    grid-template-columns: 1fr !important;
    gap: 20px;
    padding: 16px 0;
  }
  .sectionOne__left,
  .sectionThree__right,
  .sectionFour__left {
    align-items: flex-start !important;
    text-align: left !important;
  }
  .responsive-image,
  .sectionThree__left,
  .sectionFour__right,
  .sectionOne__right {
    width: 100% !important;
    max-width: 350px;
    margin: 0 auto;
    display: block;
  }
  .sectionFive__cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px;
    align-items: center;
  }
  .sectionFive__cards > div {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 95%;
    max-width: 350px;
    margin: 0 auto;
  }
  .sectionFive__cards img {
    margin-bottom: 12px;
    margin-right: 0;
    display: block;
  }
  .sectionFive__btn {
    width: 100%;
    font-size: 1.1em;
    margin-top: 18px;
  }
  .footerLinks {
    padding: 10px 0;
  }

  /* Cambia ordine in sectionThree: immagine sopra, testo sotto */
  .sectionThree__left {
    order: 1 !important;
  }
  .sectionThree__right {
    order: 2 !important;
  }

  /* Cambia ordine in sectionFour: immagine sopra, testo sotto */
  .sectionFour__right {
    order: 1 !important;
  }
  .sectionFour__left {
    order: 2 !important;
  }
}

/* Titoli in grassetto */
.common-title {
  font-weight: 700;
}


/* Subtle hover effects for images */
.sectionOne__right img,
.sectionThree__left,
.sectionFour__right,
.sectionThree__left img,
.sectionFour__right img,
.sectionOne__right img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.sectionOne__right img:hover,
.sectionThree__left:hover,
.sectionFour__right:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Button subtle glow on hover */
.white-btn,
.dark-btn,
.sectionFive__btn {
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.white-btn:hover,
.dark-btn:hover,
.sectionFive__btn:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

/* Fade-in animation on page load */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.sectionOne,
.sectionThree,
.sectionFour,
.sectionFive {
  opacity: 0;
  animation: fadeIn 0.6s ease forwards;
}
.sectionOne  { animation-delay: 0.1s; }
.sectionThree { animation-delay: 0.2s; }
.sectionFour  { animation-delay: 0.3s; }
.sectionFive  { animation-delay: 0.4s; }

/* Footer */
.footerWrapper {
  background-color: #000000;
  padding: 24px 0;
}
.footerLinks__copyright {
  color: #ffffff;
  text-align: center;
  font-size: 0.9rem;
}
/* Sezione Team (sectionFive) */
.sectionFive {
  padding: 48px 0;
  text-align: center;
}

.sectionFive__content {
  margin-bottom: 32px;
}

.sectionFive__content--label {
  font-family: 'MyCustomFont', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #369eb9;
  margin-bottom: 8px;
}

.sectionFive__content--title {
  font-size: 2rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 16px;
}

.sectionFive__content--text {
  font-size: 1rem;
  color: #555555;
  max-width: 600px;
  margin: 0 auto;
}

.sectionFive__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 24px;
  justify-items: center;
  margin-bottom: 32px;
}

.sectionFive__cards--1,
.sectionFive__cards--2,
.sectionFive__cards--3,
.sectionFive__cards--4,
.sectionFive__cards--5,
.sectionFive__cards--6,
.sectionFive__cards--7,
.sectionFive__cards--8,
.sectionFive__cards--9,
.sectionFive__cards--10 {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sectionFive__cards--1:hover,
.sectionFive__cards--2:hover,
.sectionFive__cards--3:hover,
.sectionFive__cards--4:hover,
.sectionFive__cards--5:hover,
.sectionFive__cards--6:hover,
.sectionFive__cards--7:hover,
.sectionFive__cards--8:hover,
.sectionFive__cards--9:hover,
.sectionFive__cards--10:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.sectionFive__cards img {
  width: 64px;
  border-radius: 50%;
  margin-bottom: 12px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.sectionFive__cards .name {
  font-size: 1rem;
  font-weight: 700;
  color: #000000;
  margin-bottom: 4px;
}

.sectionFive__cards .position {
  font-size: 0.85rem;
  color: #555555;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sectionFive__btn {
  font-family: 'MyCustomFont', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  background-color: #000000;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sectionFive__btn:hover {
  background-color: #333333;
}

/* Rounded borders per immagini in sectionThree e altre */
.sectionThree__left,
.sectionFour__right,
.sectionOne__right {
  border-radius: 12px;
  overflow: hidden;
}

/* Assicura che l'immagine riempia il contenitore arrotondato */
.sectionThree__left img,
.sectionFour__right img,
.sectionOne__right img {
  display: block;
  width: 100%;
  height: auto;
}

/* Hamburger styles */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 20;
}
.navbar__hamburger span {
  display: block;
  height: 4px;
  width: 100%;
  background: #369fb8;
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile menu */
@media (max-width: 768px) {
  .navbar__hamburger {
    display: flex;
    margin-left: auto;
  }
  .navbar__menu {
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-radius: 0 0 16px 16px;
    padding: 16px 0 12px 0;
    z-index: 10;
  }
  .navbar__menu.open {
    display: flex;
  }
  .navbar {
    position: relative;
  }
}
