@font-face{font-family:"Montserrat";font-style:normal;font-weight:900;font-display:swap;src:url("assets/fonts/montserrat-900.woff2") format("woff2");}
/* cyrillic */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/playfair_5.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/playfair_1.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/playfair_2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/playfair_4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/playfair_5.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/playfair_1.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/playfair_2.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/playfair_4.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/playfair_3.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/playfair_0.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/playfair_6.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/playfair_7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/playfair_3.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* vietnamese */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/playfair_0.woff2) format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/playfair_6.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/playfair_7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
*{box-sizing:border-box}
  /* --- OVERRIDE DESIGN SYSTEM (Platinum & Fonts) --- */
  :root {
    --gold: #C0C0C0 !important; /* Silver */
    --gold-highlight: #FFFFFF !important; /* Luminous Platinum */
    --gold-deep: #808080 !important; /* Dark Silver */
    --border-gold: rgba(192, 192, 192, 0.4) !important;
    --shadow-gold-glow: 0 0 16px rgba(192, 192, 192, 0.15) !important;
    
    /* SF Pro Display come font base per i testi */
    --font-body: var(--font-display) !important;
  }

  /* Classe per l'effetto Platino Luminoso (Keywords in italic) */
  .platinum-glow {
    font-weight: 500 !important;
    background: linear-gradient(to right, #FFFFFF, #C0C0C0, #FFFFFF) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6), 0 0 24px rgba(255, 255, 255, 0.4), 0 0 40px rgba(255, 255, 255, 0.2) !important;
    display: inline-block;
  }

  html,body{margin:0;padding:0;background:#000;overflow:hidden}
  body{font-family:var(--font-body);color:var(--text-primary);-webkit-font-smoothing:antialiased;text-wrap:pretty}
  a{color:var(--gold);text-decoration:none;transition:color var(--duration-fast) var(--ease-standard)}
  a:hover{color:var(--gold-highlight)}
  button{font-family:inherit}
  [data-scroller]::-webkit-scrollbar{width:0;height:0}
  [data-hscroll]::-webkit-scrollbar{height:0}
  /* ——— keyframes: solo animazioni continue / autonome ——— */
  @keyframes fc-draw{to{stroke-dashoffset:0}}
  @keyframes fc-loader-out{0%,55%{opacity:1;visibility:visible}100%{opacity:0;visibility:hidden}}
  @keyframes fc-rise{from{opacity:0;transform:translate3d(0,0.7em,0)}to{opacity:1;transform:translate3d(0,0,0)}}
  @keyframes fc-fade{from{opacity:0}to{opacity:1}}
  @keyframes fc-marquee{from{transform:translate3d(0,0,0)}to{transform:translate3d(-50%,0,0)}}
  @keyframes fc-float{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,-16px,0)}}
  @keyframes fc-float-slow{0%,100%{transform:translate3d(0,0,0)}50%{transform:translate3d(0,10px,0)}}
  @keyframes fc-shimmer{0%{transform:translate3d(-140%,0,0)}100%{transform:translate3d(240%,0,0)}}
  @keyframes fc-scrollpulse{0%{opacity:0;transform:translate3d(0,-8px,0)}40%{opacity:1}100%{opacity:0;transform:translate3d(0,14px,0)}}
  @keyframes fc-ping{0%{transform:scale(1);opacity:0.55}70%{transform:scale(3.4);opacity:0}100%{transform:scale(3.4);opacity:0}}
  @keyframes fc-sheen{0%{background-position:0% 50%}100%{background-position:200% 50%}}
  /* Animazioni sempre attive anche se prefers-reduced-motion è impostato su Windows */
  @media (prefers-reduced-motion: reduce){
    /* disabilitato per permettere le animazioni ovunque */
  }


      .marquee-wrapper {
        overflow: hidden;
        padding: 72px 0;
        display: flex;
        flex-direction: column;
        gap: 32px;
      }
      .marquee-row {
        display: flex;
        gap: 24px;
        width: max-content;
      }
      .marquee-track {
        display: flex;
        gap: 24px;
        flex-shrink: 0;
      }
      /* Animazioni in pausa di default */
      .marquee-track {
        animation-play-state: paused;
      }
      /* Partono quando in viewport */
      .marquee-wrapper.is-inview .marquee-track {
        animation-play-state: running;
      }
      
      .marquee-left .marquee-track {
        animation: scroll-left 50s linear infinite;
      }
      .marquee-right .marquee-track {
        animation: scroll-right 50s linear infinite;
      }
      
      /* Pausa marquee al passaggio del mouse (solo Desktop) */
      @media (min-width: 901px) {
        .marquee-row:hover .marquee-track {
          animation-play-state: paused !important;
        }
      }
      
      @keyframes scroll-left {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-100% - 24px)); }
      }
      @keyframes scroll-right {
        0% { transform: translateX(calc(-100% - 24px)); }
        100% { transform: translateX(0); }
      }
      
      .review-card {
        transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out), border-color 400ms var(--ease-out);
        cursor: pointer;
      }
      .review-card:hover {
        transform: translateY(-8px);
        box-shadow: var(--shadow-gold-glow) !important;
        border-color: var(--border-gold) !important;
      }

      /* Effetto "Hover Tilt 3D" per la card Piattaforma (Desktop) */
      @media (min-width: 901px) {
        [data-pin-inner-card="1"] {
          transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
          transform-style: preserve-3d;
        }
        [data-pin-inner-card="1"]:hover {
          transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) scale3d(1.02, 1.02, 1.02);
          box-shadow: 0 20px 40px rgba(192, 192, 192, 0.15) !important;
          border-color: var(--border-gold) !important;
        }
      }

/* Swup Page Transitions */
.transition-fade {
  transition: 400ms opacity ease-in-out, 400ms transform ease-in-out;
  opacity: 1;
  transform: translateY(0);
}
html.is-animating .transition-fade {
  opacity: 0;
  transform: translateY(10px);
}


/* ==========================================================================
   PERFORMANCE STORICHE
   ========================================================================== */
.historical-perf-section {
  position: relative;
  padding: 140px 40px;
  background: var(--black-void);
  border-top: 1px solid var(--border-subtle);
  overflow: hidden;
}
.historical-perf-grid {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.monitor-container {
  display: flex;
  justify-content: flex-end;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OVERRIDES
   ========================================================================== */
@media (max-width: 900px) {
  /* Navbar & Menu */
  [data-navlinks], [data-navactions] {
    display: none !important;
  }
  [data-burger] {
    display: flex !important;
  }
  
  /* Typography & Spacing */
  html {
    font-size: 14px; /* Riduce leggermente la base */
  }
  
  /* Hero & Typography Overrides */
  #top { padding: 120px 20px 40px !important; }
  #top h1, #top p, .historical-perf-section h2, .historical-perf-section p {
    text-shadow: 0 2px 12px rgba(0,0,0,0.85);
  }
  header[data-nav="1"] { padding: 15px 20px !important; }
  h1 { font-size: clamp(32px, 8vw, 48px) !important; line-height: 1.1 !important; }
  h2 { font-size: clamp(26px, 7vw, 36px) !important; line-height: 1.2 !important; }
  
  /* Modifiche ai padding esagerati */
  .padding-desktop { padding: 40px 20px !important; }
  div[style*="padding: 120px 0"] { padding: 40px 0 !important; }
  div[style*="padding: 0 40px"] { padding: 0 20px !important; }
  div[style*="padding: 160px 0"] { padding: 60px 0 !important; }
  section[style*="padding:140px 0"] { padding: 60px 20px !important; }
  section[style*="padding:140px 40px"] { padding: 60px 20px !important; }
  section[style*="padding:160px 40px"] { padding: 60px 20px !important; }
  section[style*="padding:120px 20px"] { padding: 60px 20px !important; }
  footer { padding: 60px 20px 20px !important; }
  
  /* Sezione Piattaforma/Automazione (Monitor stacking) */
  #piattaforma > div {
    flex-direction: column !important;
    gap: 40px !important;
  }
  
  /* Sezione Performance Storiche (Stacking) */
  .historical-perf-section {
    padding: 80px 20px !important;
    background: var(--black-void) !important;
  }
  .monitor-container {
    justify-content: center !important;
  }
  .monitor-container img {
    max-width: 100% !important;
    min-height: auto !important;
  }
  
  /* Ottimizzazione FAQ su Mobile */
  div[data-faq-list="1"] {
    margin-bottom: 32px !important;
  }
  button[data-faq-toggle="1"] {
    padding: 20px 0 !important;
  }
  button[data-faq-toggle="1"] span {
    font-size: 15px !important;
  }
  
  /* Ottimizzazione Footer su Mobile */
  footer > div {
    gap: 32px !important;
  }
  
  /* Coin & Hero Layout */
  [data-three-wrap] {
    height: 30vh !important;
    min-height: 280px !important;
    margin-top: 10px !important;
  }
  

  
  /* ═══════════════ PINNED SECTIONS ═══════════════ */
/* Questo container abilita lo scroll snapping se supportato */
[data-scroller="1"] {
  scroll-snap-type: y proximity;
}

[data-pin-panel] {
  scroll-snap-align: center;
}

  /* Servizi / Horizontal Gallery Native */
  [data-hscroll] {
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    padding: 0 20px !important;
  }
  [data-hscroll] > div {
    scroll-snap-align: center !important;
    min-width: 85vw !important;
  }
  
  /* Touch Feedback (No Hover on Mobile) */
  a:active, button:active, [data-magnetic]:active {
    transform: scale(0.96) !important;
    transition: transform 0.1s ease !important;
  }

  /* Nasconde la scritta 'Marchio FlowCapital' sotto la moneta 3D su mobile */
  [data-three-hint] {
    display: none !important;
  }

  /* ================================== */
  /*  PIATTAFORMA MOBILE GESTITA IN HTML */
  /* ================================== */
  
  /* Cards Recensioni più piccole su mobile per favorire la lettura */
  .review-card {
    width: 290px !important;
    min-height: 260px !important;
    padding: 24px !important;
    gap: 16px !important;
  }
  .review-card p {
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  
  .historical-perf-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .monitor-container {
    justify-content: center !important;
  }
}

/* Timeline Animation Styles */
.timeline-item .timeline-connector { background: rgba(255,255,255,0.1); box-shadow: none; transition: background 0.4s ease, box-shadow 0.4s ease; }
.timeline-item .timeline-dot { background: rgba(255,255,255,0.2); box-shadow: none; transition: background 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease; }
.timeline-item .timeline-box { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.01); box-shadow: none; transition: all 0.4s ease; }
.timeline-item strong, .timeline-item span { color: rgba(255,255,255,0.4); transition: color 0.4s ease; }

.timeline-item.active .timeline-connector { background: #FFF; box-shadow: 0 0 10px #FFF; }
.timeline-item.active .timeline-dot { background: #FFF; box-shadow: 0 0 15px #FFF; transform: scale(1.2); }
.timeline-item.active .timeline-box { border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); box-shadow: 0 0 20px rgba(255,255,255,0.08); }
.timeline-item.active strong { color: #FFF; }
.timeline-item.active span { color: var(--text-secondary-bright); }

@media (max-width: 900px) {
  #collabora-hero {
    padding-top: 160px !important;
    padding-bottom: 60px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    align-items: flex-start !important;
    min-height: auto !important;
  }
}


@media (max-width: 900px) {
  .disclaimer-box {
    padding: 8px 12px !important;
    margin-bottom: 24px !important;
  }
  .disclaimer-box p {
    font-size: 9.5px !important;
    line-height: 1.3 !important;
  }
}

/* Compensa l'altezza della navbar sticky quando si clicca su un'ancora (#link) */
section[id] {
  scroll-margin-top: 120px;
}

/* Logo respiro desktop */
@media (min-width: 1181px) {
  .nav-logo-link {
    margin-left: -20px;
  }
}

/* Override body text font to match display font */
p, li {
  font-family: var(--font-display) !important;
  font-weight: 300 !important;
}
