/* Prevent horizontal scroll and center site */
html, body {
  overflow-x: hidden;
  cursor: none;
}

  /* style.css */
/* … all your existing styles … */
.site-header {
  width: 100%;
  overflow: hidden;           /* crop any overflow */
}
.site-header img {
  width: 100%;
  display: block;
  height: auto;
  object-fit: cover;          /* cover if you set a fixed height */
  /* optional: set a fixed height
  height: 40vh;
  */
}

/* ─── MOUSE POINTER ───────────────────────────────────────────────────── */
/* Outer cursor handles bouncing */

.trail-dot {
  position: fixed;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(8px);
  opacity: 0.3;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease;
}

/* Base style for cursor */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bounce-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cursor-inner {
  width: 16px;
  height: 16px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

/* Glow, color & star shape on interaction */
.custom-cursor.interactive .cursor-inner {
  outline: 2px solid orange; /* debug only */
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 0;
  clip-path: polygon(
    50% 0%, 60% 40%, 100% 50%, 60% 60%,
    50% 100%, 40% 60%, 0% 50%, 40% 40%
  );
  box-shadow: 0 0 14px 6px rgba(255, 255, 0, 0.9);
  animation: bounceStar 1.5s linear infinite;
  animation: rotateStar 1.5s linear infinite;
}

/* Rotating star animation */
@keyframes rotateStar {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); } 
  
}

@keyframes bounceStar {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(20px); } 
}



/* ─── Floating Glass Nav ─────────────────────────────────────────────── */
/* ─── MAIN NAV BAR ───────────────────────────────────────────────────── */
.main-nav {
  position: sticky;
  top: 0;
  margin: 2rem;
  width: 100%;
  z-index: 1000;
}
.nav-container {
  width: 80%;                   /* 80% width */
  max-width: 1200px;
  margin: 0 auto;              /* center it */
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Logo */
.logo img {
  height: 2.5rem;
  display: block;
}

/* Grouped nav items */
.nav-items {
  display: flex;
  align-items: center;
  gap: 1.5rem; /* space between dots */
}

/* ─── DOT BUTTONS ───────────────────────────────────────────────────── */
.nav-btn,
.sub-btn {
  display: inline-block;
  position: relative;
  width: 2rem;      /* bigger dots */
  height: 2rem;
  background: rgba(255,255,255,0.8);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.nav-btn:hover,
.sub-btn:hover {
  background: rgba(255,255,255,1);
  transform: scale(1.1);
}

/* Hover labels */
.nav-btn::before,
.sub-btn::before {
  content: attr(data-label);
  position: absolute;
  right: 120%; top: 50%;
  transform: translateY(-50%);
  padding: 0.3rem 0.6rem;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.85rem;
  white-space: nowrap;
  border-radius: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.nav-btn:hover::before,
.sub-btn:hover::before {
  opacity: 1;
}

/* ─── DROPDOWN ───────────────────────────────────────────────────────── */
.dropdown {
  position: relative;
}
.dropdown-menu {
  position: absolute;
  top: 150%; right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.dropdown.open .dropdown-menu {
  pointer-events: auto;
}

/* border-only style for submenu dots */
.sub-btn {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.9);
  opacity: 0;
  transform: translateY(-10px);
  animation: none;
}
.dropdown.open .sub-btn {
  animation: fadeInUp 0.4s forwards;
  animation-delay: calc(var(--i) * 0.1s);
}

/* Cascade-in animation */
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0) scale(1.05); }
}

/* … the rest of your existing CSS … */


.site-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Base & Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", sans-serif;
  background: #000;
  color: #fff;
  padding: 2rem 0;
}

/* Presentation Section */
.presentation {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}
.presentation-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: right;
  align-items: flex-end;
  line-height: 1.5;
}
.presentation-text h2 { font-size: 2rem; margin-bottom: 1rem; }
.presentation-text p { font-size: 1.1rem; margin-bottom: 1.5rem; }
.presentation-image {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.presentation-image img {
  max-width: 400px;
  width: auto;
  height: 100%;
  border-radius: 0.5rem;
  object-fit: cover;
}
@media (max-width: 768px) {
  .presentation { flex-direction: column; gap: 1.5rem; }
  .presentation-text { text-align: center; align-items: center; }
  .presentation-image img { width: 100%; height: auto; }
}

@media (max-width: 768px) {
.custom-cursor {
 visibility:hidden;
 }
.trail-dot {
 visibility:hidden;
 }
.cursor-inner {
 visibility:hidden;
 }
	
}

/* Staircase */
.staircase {
  position: relative;
  width: 90%;
  max-width: 800px;
  margin: 5rem auto 8rem;
  overflow: visible;
}

.step {
  position: relative;
  opacity: 0;
  transform: translateY(25%);
  transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}
.step.visible {
  opacity: 1;
  transform: translate(0, 0);
}
.step:nth-child(1) { left: 0%;    top: 0rem;    }
.step:nth-child(2) { left: 25%;  top: 4rem;  }
.step:nth-child(3) { left: 50%;  top: 8rem; }
.step:nth-child(4) { left: 75%;  top: 12rem; }
.step:nth-child(5) { left: 50%;  top: 16rem; }
.step:nth-child(6) { left: 0%;  top: 20rem; }
.block {
  width: 27%; min-width: 120px;
  height: 0.5rem;
  background: #ff0080;
  border-radius: 0.25rem;
  box-shadow: 0 0 1rem rgba(255,0,128,0.6);
  padding-left: 25%
}

.blockV {
  width: 0.5rem;
  height: 5rem;
  background: #ff0080;
  border-radius: 0.25rem;
  box-shadow: 0 0 1rem rgba(255,0,128,0.6);
}
.text {
  position: absolute;
  padding: 0.4rem 0.8rem;
  background: rgba(30,30,30,0.85);
  border-radius: 0.25rem;
  color: #fff;
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
  max-width: 20%;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease-out;
}
.step.visible .text { opacity: 1; }
.step:nth-child(4n+1) .text { left: 10%;  top: -3rem; }
.step:nth-child(4n+2) .text { left: 50%;  top: -3rem;  }
.step:nth-child(4n+3) .text { left: -23%; top: -3rem; }
.step:nth-child(4n+4) .text { left: 0%;  top: 3rem; }
@media (max-width: 768px) {
  .staircase { width: 95%; 
	padding-left: 1rem; 
	}
  .step {
    transform: translate(0, 5rem);
  }
  .step.visible { transform: translate(0, 0); }
  .block {
    width: 27%; min-width: 80px; height: 0.4rem;
  }
	
	  .blockV {
    width: 0.4rem;  height: 5rem;
  }
	
.step.visible .text { opacity: 1; }
.step:nth-child(4n+1) .text { left: 10%;  top: -3rem!important; }
.step:nth-child(4n+2) .text { left: 50%;  top: -3rem;  }
.step:nth-child(4n+3) .text { left: -23%; top: -20rem; }
.step:nth-child(4n+4) .text { left: 0%;  top: 1rem!important; }
  
	.step .text {
    transform: translateX(-50%) !important;
    top: -3rem !important;
    white-space: normal;
    word-break: break-word;
    hyphens: auto;
    width: 80vw;
    max-width: 120px;
    text-align: center;
    font-size: 0.9rem;
  }
}

/* Cards */
h1 {
  text-align: center;
  font-size: 2.5rem;
  margin: 5rem 0 0.5rem;
}
p.description {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  background-color: #000;
  padding: 2rem;
  border-radius: 1rem;
}
.card-wrapper { position: relative; display: flex; flex-direction: column; align-items: center; }
.tooltip {
  position: absolute; top: -40px;
  background: #ff4081; color: #fff;
  padding: 0.4rem 0.8rem; border-radius: 1rem;
  font-size: 0.8rem; opacity: 0;
  transform: scale(0.8) translateY(0);
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 10; white-space: nowrap;
}
.tooltip::after {
  content: "";
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  border-width: 8px; border-style: solid;
  border-color: #ff4081 transparent transparent transparent;
}
.card-wrapper:hover .tooltip {
  opacity: 1; transform: scale(1) translateY(-5px);
}
.card {
  width: 300px; height: 300px;
  padding: 1.5rem; border-radius: 1rem;
  backdrop-filter: blur(2px); text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer; position: relative; color: #333;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  background-repeat: no-repeat; background-size: cover;
  background-position: center; background-blend-mode: overlay;
}
.card:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.icon { font-size: 3rem; margin: 2rem 0 1.5rem; }
.card-title { font-size: 1.5rem; margin-bottom: 0.5rem; }
.card-text { font-size: 1rem; margin-bottom: 1rem; }
.card button {
  padding: 0.5rem 1.2rem; background: #000;
  color: #fff; border: none; border-radius: 2rem;
  font-size: 1rem; cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.card button:hover {
  background: #ff0080;
  box-shadow: 0 0 10px #ff0080, 0 0 20px #ff0080, 0 0 40px #ff0080;
}
.lift { flex-direction: row; align-items: right; }
.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: #ff00aa;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0, 1, 2, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  user-select: none;
  outline: none;

}

 .btn a, a:hover, a:focus, a:active {
      text-decoration: none;
      color: inherit;
 }
.btn:hover {
  background-color: #e00095; /* darker blue */
  box-shadow: 0 0px 20px 5px rgba(224,0,149,0.40);
}
.btn:focus {
  background-color: #e00095; /* darker blue */
  box-shadow: 0 4px 8px rgba(224,0,149,0.40);
  outline: none;
  text-decoration: none;
}

.btn:active {
  background-color: #FF39BD;
  box-shadow: 0 2px 4px rgba(224,0,149,0.40);
  text-decoration: none;
}

.btn-link {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background-color: rgba(0,0,0,1.00); /* blue color */
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0, 123, 255, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.btn-link:hover,
.btn-link:focus {
  background-color: #ff0080; /* darker blue */
  box-shadow: 0 4px 8px rgba(0, 86, 179, 0.6);
  outline: none;
}

.btn-link:active {
  background-color: #004494;
  box-shadow: 0 2px 4px rgba(0, 68, 148, 0.8);
}

#blue    { background-image: url("assets/img/Sfondo-port-blue.png"); }
#magenta { background-image: url("assets/img/Sfondo-port-magenta.png"); }
#yellow  { background-image: url("assets/img/Sfondo-port-yellow.png"); }
@media (max-width: 768px) {
  .card-container { flex-direction: column; align-items: center; }
}

@media (max-width: 768px) {
  .lift { flex-direction: column; align-items: center; }
}

/* Divider */
hr.rounded {
  border-top: 8px solid #bbb; border-radius: 5px;
  margin-top: 5rem;
}

/* Contact Form */
.container-form {
  height: 100%; width: 100%; display: flex;
  justify-content: center; align-items: center;
  padding: 40px; box-sizing: border-box; margin-top: 5rem;
}
.custom-form {
  width: 100%; font-family: 'Inter',sans-serif;
  color: #fff; display: flex; flex-direction: column;
  gap: 1.5rem; background: rgba(25,25,25,0.9);
  padding: 2rem; border-radius: 0.5rem;
}
.custom-form label {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.field-description { font-size: 14px; color: #fff; }
.field-description .required { color: red; }
.custom-form input,
.custom-form textarea {
  background: transparent; border: none;
  border-bottom: 1px solid #555; padding: 8px 4px;
  color: #fff; font-size: 16px; outline: none;
  transition: transform 0.2s ease; resize: none;
}
.custom-form input:focus,
.custom-form textarea:focus { transform: scale(1.03); }
.custom-form button {
  padding: 10px 16px; background: #ff00aa;
  color: #fff; border: none; border-radius: 4px;
  cursor: pointer; font-weight: bold;
  transition: background 0.2s ease; align-self: flex-end;
}
.custom-form button:hover { background: #e00095; }
.success-message {
  display: none; color: lightgreen;
  font-size: 16px; margin-top: 20px;
}
