
body {
    background: linear-gradient(to bottom, #edf0f5, #0bbc75) !important;
}
/* Reset & font ---------------------------------------------------------- */

@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  animation: fadeUp 1.9s linear;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.5);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1)
  }
}


/* Container -------------------------------------------------------------- */

.container {
  max-width: 100%!important;
  width: 100%;
  margin: auto;
}

/* NAVBAR ---------------------------------------------------------------- */

.navbar {
  width: 100%!important;
  box-shadow: 0 1px 4px rgb(146 161 176 / 15%);
  position: sticky;
  top: 0;
  z-index: 99999;
  background: #edf0f5 !important;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 62px;
  position: relative;
  width: 100%!important;
}

/* HAMBURGER MENU -------------------------------------------------------- */

.nav-container .checkbox {
  position: absolute;
  height: 32px;
  width: 32px;
  top: 20px;
  left: 20px;
  z-index: 5;
  opacity: 0;
  cursor: pointer;
}

.nav-container .hamburger-lines {
  height: 26px;
  width: 32px;
  position: absolute;
  top: 17px;
  left: 20px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.nav-container .hamburger-lines .line {
  height: 4px;
  width: 100%;
  border-radius: 10px;
  background: #0e2431;
}

.line1 {
  transform-origin: 0% 0%;
  transition: transform 0.4s ease-in-out;
}

.line2 {
  transition: transform 0.2s ease-in-out;
}

.line3 {
  transform-origin: 0% 100%;
  transition: transform 0.4s ease-in-out;
}

/* MENU ITEMS ------------------------------------------------------------ */

.navbar .menu-items {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  padding-top: 120px;
  background: #edf0f5;
  transform: translateX(-150%);
  display: flex;
  flex-direction: column;
  padding-left: 50px;
  text-align: center;
  transition: transform 0.5s ease-in-out;
  backdrop-filter: blur(2px);
  z-index: 9999;
}

.navbar .menu-items li {
  list-style: none;
  margin-bottom: 4rem;
}

.navbar .menu-items a {
  text-decoration: none;
  color: #0e2431;
  font-size: 1.5rem;
  font-weight: 500;
}

.navbar .menu-items a:hover {
  font-weight: 700;
}

/* MENU OPEN ANIMATIONS -------------------------------------------------- */

.nav-container input[type="checkbox"]:checked ~ .menu-items {
  transform: translateX(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line1 {
  transform: rotate(45deg);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line2 {
  transform: scaleY(0);
}

.nav-container input[type="checkbox"]:checked ~ .hamburger-lines .line3 {
  transform: rotate(-45deg);
}

/* CLOSE BUTTON ---------------------------------------------------------- */

.close-menu {
  position: absolute;
  top: 18px;
  right: 25px;
  font-size: 2rem;
  font-weight: 600;
  cursor: pointer;
  display: none;
  z-index: 99999;
}

.nav-container input[type="checkbox"]:checked ~ .close-menu {
  display: block;
}

/* BLUR BACKGROUND WHEN MENU IS OPEN ------------------------------------- */

.page-content {
  transition: filter 0.4s ease;
}

.nav-container input[type="checkbox"]:checked ~ .page-content {
  filter: blur(30px) brightness(0.2);
}

/* LOGO (senza positioning assoluto!) ------------------------------------ */

.logo {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.logo img {
  height: 180px;
  width: 280px;
  object-fit: contain;
}

/* LOGO BUTTON (flottante sopra la navbar) ------------------------------- */

.logo-button {
  width: 220px;
  height: 140px;
  background: #edf0f5!important;
  border-radius: 25px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;

  position: absolute;
  top: 5px;
  right: 15px;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.logo-button:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.18),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

.logo-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
}

/* BUTTON STYLE ---------------------------------------------------------- */

.btn {
  position: relative;
  font-size: 17px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1em 2.5em;
  cursor: pointer;
  border-radius: 6em;
  transition: all 0.2s;
  border: none;
  font-weight: 500;
  background-color: #edf0f5 !important;
  color: black;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.btn::after {
  content: "";
  height: 100%;
  width: 100%;
  border-radius: 100px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  background-color: #fff;
  transition: all 0.4s;
}

.btn:hover::after {
  transform: scaleX(1.4) scaleY(1.6);
  opacity: 0;
}
/* MENU CENTRATO SU MOBILE */
@media (max-width: 768px) {
  .navbar .menu-items {
    text-align: center;
    padding-left: 0;        /* rimuove lo spostamento a sinistra */
    align-items: center;    /* centra verticalmente e orizzontalmente */
  }

  .navbar .menu-items li {
    width: 100%;
  }

  .navbar .menu-items a {
    font-size: 1.8rem;      /* opzionale: più leggibile su mobile */
    display: block;
    width: 100%;
  }
}

/* END NAVBAR */
/* HEADER START */
.thirteen {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  margin-top: 20px;
}

.thirteen h1 {
  position: relative;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0px;
  text-transform: uppercase;
  width: auto;
  text-align: center;
  white-space: nowrap;
  border: 2px solid #0bbc75;
  padding: 5px 14px 3px 14px;
  margin: 0;
}

/* i due puntini laterali */
.thirteen h1:before,
.thirteen h1:after {
  background-color: #050c31;
  position: absolute;
  content: '';
  height: 7px;
  width: 7px;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.thirteen h1:before {
  left: -20px;
}

.thirteen h1:after {
  right: -20px;
}

/* HEADER END */


/* DIVIDER APPLE *//* Divider lucido */
.divider-glass {
  width: 100%;
  height: 1px;
  margin: 90px 0; /* AUMENTATO per più spazio */
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.15), transparent);
}


/* Divider lucido */
.divider-glass {
  width: 100%;
  height: 1px;
  margin: 140px 0; /* AUMENTATO per più spazio */
  background: linear-gradient(to right, transparent, rgba(0,0,0,0.15), transparent);
}

/* END DIVIDER */

/* DESCRIPTION PROJECT N1 */
/* DESCRIPTION PROJECT N1 */
.title {
  text-align: center;
  font-size: 2rem;
  font-weight: 200;
  color: #000f;
  margin-bottom: 50px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 50px;
  font-family: "poppins", sans-serif;
}



/* ========== 3D CAROUSEL PANELS ========== */
.card-3d {
  position: relative;
  width: 300px;
  height: 180px;
  margin: 0 auto;
  transform-style: preserve-3d;
  animation: spin 20s linear infinite;
}

/* PANELS */
.card-3d div {
  position: absolute;
  height: 380px;
  width: 220px;            /* 🔥 Ora tutte le card hanno la stessa forma */
  background-color: rgb(199,199,199);
  border: 2px solid lightgray;
  border-radius: 0.5rem;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  overflow: hidden;
  border-radius: 12px;
}

.card-3d div img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}



/* STOP ON HOVER */
.card-3d:hover,
.card-3d:hover div {
  animation-play-state: paused !important;
}

/* PANEL POSITIONS (10 panels spaced by 36°) */
.card-3d div:nth-child(1)  { transform: translate(-50%, -50%) rotateY(0deg)   translateZ(350px); }
.card-3d div:nth-child(2)  { transform: translate(-50%, -50%) rotateY(36deg)  translateZ(350px); }
.card-3d div:nth-child(3)  { transform: translate(-50%, -50%) rotateY(72deg)  translateZ(350px); }
.card-3d div:nth-child(4)  { transform: translate(-50%, -50%) rotateY(108deg) translateZ(350px); }
.card-3d div:nth-child(5)  { transform: translate(-50%, -50%) rotateY(144deg) translateZ(350px); }
.card-3d div:nth-child(6)  { transform: translate(-50%, -50%) rotateY(180deg) translateZ(350px); }
.card-3d div:nth-child(7)  { transform: translate(-50%, -50%) rotateY(216deg) translateZ(350px); }
.card-3d div:nth-child(8)  { transform: translate(-50%, -50%) rotateY(252deg) translateZ(350px); }
.card-3d div:nth-child(9)  { transform: translate(-50%, -50%) rotateY(288deg) translateZ(350px); }
.card-3d div:nth-child(10) { transform: translate(-50%, -50%) rotateY(324deg) translateZ(350px); }

/* Versione Mobile */
@media (max-width: 708px) {

  .card-3d {
    width: 160px;
    height: 260px;
  }

  .card-3d div {
    width: 130px;
    height: 230px;
    display: flex;
    align-items: center;
  }

  .card-3d div img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* full image visible, no crop */
    border-radius: 10px;
    display: block;
  }

  .carousel-wrapper {
    overflow: hidden;
    position: relative;
  }
 
  /* Stesse angolazioni ma con distanza Z ridotta per più compattezza */
  .card-3d div:nth-child(1)  { transform: translate(-50%, -50%) rotateY(  0deg) translateZ(200px); }
  .card-3d div:nth-child(2)  { transform: translate(-50%, -50%) rotateY( 36deg) translateZ(200px); }
  .card-3d div:nth-child(3)  { transform: translate(-50%, -50%) rotateY( 72deg) translateZ(200px); }
  .card-3d div:nth-child(4)  { transform: translate(-50%, -50%) rotateY(108deg) translateZ(200px); }
  .card-3d div:nth-child(5)  { transform: translate(-50%, -50%) rotateY(144deg) translateZ(200px); }
  .card-3d div:nth-child(6)  { transform: translate(-50%, -50%) rotateY(180deg) translateZ(200px); }
  .card-3d div:nth-child(7)  { transform: translate(-50%, -50%) rotateY(216deg) translateZ(200px); }
  .card-3d div:nth-child(8)  { transform: translate(-50%, -50%) rotateY(252deg) translateZ(200px); }
  .card-3d div:nth-child(9)  { transform: translate(-50%, -50%) rotateY(288deg) translateZ(200px); }
  .card-3d div:nth-child(10) { transform: translate(-50%, -50%) rotateY(324deg) translateZ(200px); }
}

/* OPTIONAL: ROTATION ANIMATION */
@keyframes spin {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}



/* ========== LOGO AREA (STATIC) ========== */
.logo-container {
  width: 300px;
  height: 200px;
  background-color: rgb(199,199,199);
  border: solid 2px lightgray;
  border-radius: 1rem;
  margin: 0 auto;
  overflow: hidden;
  transition-duration: 200ms;
  animation: none;
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* END DEASCRIPTION PROJECT N1 */
.logo-container {
  width: 300px;
  height: 200px;
  background-color: rgb(199, 199, 199);
  border: solid 2px lightgray;
  border-radius: 1rem;
  margin: 0 auto;
  overflow: hidden;
  transition-duration: 200ms;
  will-change: transform, filter;
  animation: none; 
}

.logo-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;            
  display: block;
}

/* ---- FOOTER ---- */

.footer {
  background: #0e0e0e;
  color: #fff;
  padding: 55px 0 35px;  
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.07);
  width: 100vw!important;
  box-sizing: border-box!important;
}

.footer-title {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-sub {
  font-size: 15px;
  opacity: 0.75;
  margin-bottom: 22px;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin: 18px 0;
}

.social-icon {
  font-size: 26px;
  color: rgba(255, 255, 255, 0.9);
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  transition: 0.25s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
}

.instagram:hover { color: #ff4f9a; }
.whatsapp:hover { color: #25d366; }

.footer-copy {
  font-size: 13px;
  opacity: 0.55;
  margin-top: 25px;
} 
