/* inter under SIL Open Font License on https://github.com/rsms/inter/blob/master/LICENSE.txt */
/* emoji under Unicode Standard License on https://www.unicode.org/copyright.html */
/* GSAP under GSAP Standard License license on https://gsap.com/community/standard-license/ */
/* Lenis under MIT License on https://github.com/darkroomengineering/lenis/blob/main/LICENSE */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/Inter-Latin-Variable.woff2") format("woff2");
}

* {
  cursor: none !important;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #0f172a;
  overflow-x: hidden;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-weight: 400; 
  color: #0f172a;  
}

/* Intro Header Section */
.intro-section {
  padding: 80px 8% 20px;
  max-width: 900px;
  box-sizing: border-box;
}

.process-tag {
  font-size: 0.8rem;
  letter-spacing: 2.5px;
  color: #059669;
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 700;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 400;
  margin: 0 0 16px 0;
  letter-spacing: -0.8px;
  color: #0f172a;
  line-height: 1.2;
}

.intro-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #334155;
  margin: 0;
}

/* Scope Filter Bar */
.filter-bar {
  display: flex;
  gap: 10px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  background: #f8fafc;
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #334155;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: #059669;
  color: #059669;
  background: #ffffff;
}

.filter-btn.active {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.25);
}

/* Grid Layout Stage */
.grid-stage {
  padding: 40px 8% 100px;
  box-sizing: border-box;
}

.feedback-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px 24px;
  align-items: start;
}

/* Minimal Open Card Component (Aperta, separatore verde) */
.feedback-card-grid {
  background: transparent;
  border: none;
  border-top: 2px solid rgba(16, 185, 129, 0.2); /* Sottile linea verde di riposo */
  border-radius: 0;
  padding: 20px 8px;
  box-sizing: border-box;
  box-shadow: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s ease,
              opacity 0.4s ease;
  opacity: 1;
}

.feedback-card-grid:hover {
  transform: translateY(-2px);
  border-top-color: #059669; /* Verde vivido all'hover */
}

.card-scope {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #059669;
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
  color: #0f172a;
  font-weight: 450;
}

/* Filter Animation Utility Classes */
.feedback-card-grid.is-hidden {
  display: none !important;
}

/* ==========================================
   --- COOKIES (LIGHT MINIMAL EMERALD DESIGN) ---
   ========================================== */

#cookie-banner {
  position: fixed !important;
  bottom: 24px;
  right: 24px;
  z-index: 999999 !important;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Light Glassmorphism main card matching pure white page */
.cookie-full-content {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(5, 150, 105, 0.2);
  padding: 1.25rem;
  border-radius: 16px;
  max-width: 320px;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

/* Clean text styling & links */
.cookie-banner-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #334155;
  margin-bottom: 1rem;
}

/* Modern link with emerald hover state */
.cookie-banner-text a.goto-link {
  color: #0f172a;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.cookie-banner-text a.goto-link:hover {
  color: #059669;
}

/* Buttons Container */
.cookie-buttons-container {
  display: flex;
  gap: 0.5rem;
}

/* Reset default OS button styles & apply clean light design */
.cookie-option-btn {
  flex: 1;
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Primary "Accept" button */
.cookie-option-btn.accept-btn {
  background-color: #059669;
  color: #FFFFFF;
}

.cookie-option-btn.accept-btn:hover {
  background-color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

/* Secondary "Decline" button */
.cookie-option-btn.decline-btn {
  background-color: #f8fafc;
  color: #334155;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.cookie-option-btn.decline-btn:hover {
  background-color: #ffffff;
  border-color: #059669;
  color: #059669;
}

/* Minimal Cookie Icon Toggle Button */
.cookie-icon-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(5, 150, 105, 0.25);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cookie-icon-btn:hover {
  transform: scale(1.08);
  border-color: #059669;
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.15);
}

/* Hidden state (when Accepted) */
#cookie-banner.hidden {
  display: none !important;
}

/* Collapsed state (when Declined or toggled) -> Hide text content, keep icon */
#cookie-banner.collapsed .cookie-full-content {
  display: none !important;
}

/* Page Footer Navigation */
.page-footer {
  padding: 60px 8% 80px;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(16, 185, 129, 0.15);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.footer-link {
  color: #059669;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.footer-link:last-child {
  text-align: right;
}

.footer-link:hover {
  color: #047857;
  transform: translateX(3px);
}

.footer-link:first-child:hover {
  transform: translateX(-3px);
}

/* Subtle Secret Copyright Link */
.footer-copyright {
  color: #64748b;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.8px;
  font-weight: 500;
  transition: color 0.3s ease, opacity 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.footer-copyright:hover {
  color: #059669;
  opacity: 0.9;
}

/* ==========================================
   --- CUSTOM CURSOR (STRUCTURE & LAYER) ---
   ========================================== */
.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 2147483647; /* Maximum z-index value to guarantee front layer placement */
}

.cursor-crosshair {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(5, 150, 105, 0.7); /* Emerald green theme */
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
  pointer-events: none;
  z-index: 2147483647;
  box-sizing: border-box;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.cursor-face {
  position: fixed;
  top: 0;
  left: 0;
  font-family: monospace;
  font-size: 20px; 
  color: #059669; /* Emerald green theme */
  line-height: 1;
  user-select: none;
  transform: translate(-50%, -50%); 
  white-space: nowrap;
  pointer-events: none;
  z-index: 2147483647;
}

.cursor-label {
  position: fixed;
  top: 0;
  left: 0;
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  font-weight: 700;
  color: #059669; /* Emerald green theme */
  margin-left: 25px;
  margin-top: 15px;
  opacity: 0.9;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2147483647;
}

/* ==========================================
   --- DESKTOP ONLY: CUSTOM CURSOR BEHAVIOR ---
   ========================================== */
@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  /* Hide default OS cursor across the entire page on desktop */
  html, 
  body, 
  a, 
  button, 
  input, 
  textarea, 
  select, 
  summary, 
  canvas, 
  .ui-card, 
  .tilt-card,
  [role="button"] {
    cursor: none !important;
  }

  /* Keep custom elements visible */
  .custom-cursor,
  .cursor-crosshair,
  .cursor-face,
  .cursor-label {
    display: block;
  }
}

/* ==========================================
   --- MOBILE & TOUCH: DISABLE CUSTOM CURSOR ---
   ========================================== */
@media (hover: none), (pointer: coarse), (max-width: 768px) {
  /* Completely hide custom cursor HTML elements on mobile devices */
  .custom-cursor,
  .cursor-crosshair, 
  .cursor-face, 
  .cursor-label {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  /* Restore standard touch and system pointer behaviors */
  html, 
  body, 
  input, 
  textarea, 
  select, 
  canvas, 
  .ui-card, 
  .tilt-card {
    cursor: auto !important;
  }

  /* Restore pointer hand for clickables */
  a, 
  button, 
  summary, 
  [role="button"],
  .ui-btn,
  .ui-toggle-btn {
    cursor: pointer !important;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .intro-section {
    padding: 60px 6% 15px;
  }

  .main-title {
    font-size: 1.9rem;
  }

  .intro-text {
    font-size: 0.95rem;
  }

  .grid-stage {
    padding: 30px 6% 60px;
  }

  .feedback-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feedback-card-grid {
    padding: 16px 4px;
  }

  .card-text {
    font-size: 0.88rem;
  }

  .page-footer {
    padding: 40px 6% 60px;
  }

  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
  }

  .footer-link:last-child {
    text-align: center;
  }

  #cookie-banner {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
}